/* =====================================================================
   Zrnovňa — threshworks.digital
   Rustikálny žatevný vizuál: tmavá pšenica, machová zeleň, ľan, pálená oranžová
   ===================================================================== */

:root {
  --wheat: #8b6b3e;
  --wheat-dark: #6d5330;
  --moss: #607744;
  --moss-dark: #4b5e35;
  --linen: #f5efe4;
  --linen-deep: #ece2d0;
  --ember: #d97742;
  --ember-dark: #bd5f2f;
  --parchment: #fbf7ef;
  --ink: #2f2718;
  --ink-soft: #5b503d;
  --husk: #ddceb2;
  --shadow: 0 18px 40px -28px rgba(47, 39, 24, 0.55);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-ui: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 6px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

/* ------------------------------ základ ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--linen);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(139, 107, 62, 0.07), transparent 42%),
    radial-gradient(circle at 88% 32%, rgba(96, 119, 68, 0.08), transparent 45%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--wheat-dark); text-underline-offset: 3px; }
a:hover { color: var(--ember-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); }

p { margin: 0 0 1.1rem; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--linen);
  padding: 0.7rem 1.2rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ------------------------------ ozdoby ------------------------------ */
.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss-dark);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.section {
  padding-block: clamp(3.4rem, 7vw, 5.6rem);
  position: relative;
}
.section--linen { background: rgba(236, 226, 208, 0.5); }
.section--parchment { background: var(--parchment); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.rule-sheaf {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.2rem;
  color: var(--husk);
}
.rule-sheaf::before,
.rule-sheaf::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--husk), transparent);
}
.rule-sheaf svg { width: 26px; height: 26px; flex: none; }

.frame {
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  background: var(--parchment);
  position: relative;
  box-shadow: var(--shadow);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(139, 107, 62, 0.35);
  border-radius: 3px;
  pointer-events: none;
}

/* ------------------------------ tlačidlá ------------------------------ */
.btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.82rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ember {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(189, 95, 47, 0.9);
}
.btn--ember:hover { background: var(--ember-dark); color: #fff; }

.btn--moss { background: var(--moss); color: #fff; }
.btn--moss:hover { background: var(--moss-dark); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--wheat-dark);
  border-color: var(--wheat);
}
.btn--outline:hover { background: rgba(139, 107, 62, 0.1); color: var(--wheat-dark); }

.btn--ghost {
  background: rgba(251, 247, 239, 0.9);
  color: var(--ink);
  border-color: var(--husk);
}
.btn--ghost:hover { background: #fff; }

.btn--wide { width: 100%; }

/* ------------------------------ hlavička ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 239, 228, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--husk);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-dark);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-family: var(--font-ui);
  font-size: 0.87rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--wheat-dark); border-bottom-color: var(--ember); }

.header-cta { display: inline-flex; gap: 0.6rem; align-items: center; }
.header-phone {
  font-family: var(--font-ui);
  font-size: 0.87rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  background: var(--parchment);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--husk);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(47, 39, 24, 0.88) 0%, rgba(47, 39, 24, 0.72) 42%, rgba(96, 119, 68, 0.42) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.6rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}
.hero-copy { color: var(--linen); max-width: 40rem; }
.hero-copy h1 { color: #fff; }
.hero-copy .eyebrow { color: #e9d7a8; }
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: rgba(245, 239, 228, 0.9);
  max-width: 33rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-note {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(245, 239, 228, 0.78);
  margin-top: 1.2rem;
}

.harvest-card {
  background: rgba(251, 247, 239, 0.96);
  border: 1px solid rgba(221, 206, 178, 0.9);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 26px 50px -30px rgba(20, 16, 8, 0.8);
}
.harvest-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.harvest-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: seed;
}
.harvest-card li {
  counter-increment: seed;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(139, 107, 62, 0.28);
  font-size: 0.94rem;
}
.harvest-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.harvest-card li::before {
  content: counter(seed);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wheat-dark);
  background: rgba(139, 107, 62, 0.12);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

/* ------------------------------ pás s číslami ------------------------------ */
.stats {
  background: var(--ink);
  color: var(--linen);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 2.2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #e9d7a8;
  display: block;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.72);
}

/* ------------------------------ o nás ------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--husk);
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(47, 39, 24, 0.85));
  color: var(--linen);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.values { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.values li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.8rem;
  font-size: 0.97rem;
}
.values svg { width: 22px; height: 22px; color: var(--moss); margin-top: 4px; }

/* ------------------------------ služby ------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 3px solid var(--husk); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.45rem; }
.card-body p { font-size: 0.95rem; color: var(--ink-soft); }
.card-price {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wheat-dark);
  border-top: 1px dashed rgba(139, 107, 62, 0.35);
  padding-top: 0.8rem;
}

/* ------------------------------ postup ------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  position: relative;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: rgba(139, 107, 62, 0.28);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------ kalkulačka ------------------------------ */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
.calc-panel { padding: clamp(1.4rem, 3vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label,
.field legend {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 0.72rem 0.85rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--wheat); }

input[type="range"] {
  width: 100%;
  accent-color: var(--ember);
}
.range-value {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--wheat-dark);
  font-weight: 600;
}

.calc-out {
  background: var(--ink);
  color: var(--linen);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.calc-out h3 { color: #e9d7a8; font-size: 1.15rem; }
.calc-metrics { display: grid; gap: 0.9rem; margin: 1.2rem 0; }
.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px dashed rgba(233, 215, 168, 0.28);
  padding-bottom: 0.6rem;
}
.metric span:first-child {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.75);
}
.metric span:last-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}
.silo {
  height: 14px;
  border-radius: 999px;
  background: rgba(245, 239, 228, 0.18);
  overflow: hidden;
  margin-top: 0.4rem;
}
.silo-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wheat), var(--ember));
  transition: width 0.5s ease;
}
.calc-note {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: rgba(245, 239, 228, 0.7);
  margin: 0.9rem 0 0;
}

/* ------------------------------ cenník ------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured {
  border-color: var(--ember);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ember);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { margin-bottom: 0.2rem; }
.plan-for {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--moss-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--wheat-dark);
}
.plan-price small {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.45rem;
  letter-spacing: 0.03em;
}
.plan ul {
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.94rem;
}
.plan ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
}
.plan ul li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--moss);
  transform: rotate(45deg);
  margin-top: 8px;
}
.plan .btn { margin-top: auto; }

.price-table-wrap { overflow-x: auto; margin-top: 2.4rem; }
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  font-size: 0.95rem;
  min-width: 520px;
}
.price-table caption {
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-dark);
  padding-bottom: 0.7rem;
}
.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--husk);
  text-align: left;
}
.price-table thead th {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(139, 107, 62, 0.08);
}
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.price-table tbody tr:last-child td { border-bottom: 0; }

.price-terms {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  background: rgba(96, 119, 68, 0.09);
  border-left: 4px solid var(--moss);
  border-radius: var(--radius);
}
.price-terms h3 { font-size: 1.08rem; }
.price-terms ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; color: var(--ink-soft); }
.price-terms li { margin-bottom: 0.45rem; }

/* ------------------------------ referencie ------------------------------ */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.quote {
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.quote blockquote { margin: 0 0 1.1rem; font-size: 0.98rem; }
.quote blockquote::before { content: "„"; font-family: var(--font-display); font-size: 2rem; color: var(--ember); line-height: 0; vertical-align: -0.3rem; margin-right: 2px; }
.quote-person { display: flex; align-items: center; gap: 0.8rem; }
.monogram {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(139, 107, 62, 0.16);
  color: var(--wheat-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  flex: none;
}
.quote-person strong { display: block; font-family: var(--font-ui); font-size: 0.88rem; }
.quote-person span { font-family: var(--font-ui); font-size: 0.76rem; color: var(--ink-soft); }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  background: var(--parchment);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--ember);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a {
  padding: 0 1.2rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.faq-a[hidden] { display: none; }

/* ------------------------------ kontakt ------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.form-panel { padding: clamp(1.4rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--moss); }
.error-text {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--ember-dark);
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(96, 119, 68, 0.14);
  border: 1px solid rgba(96, 119, 68, 0.4);
  font-size: 0.92rem;
}
.form-status[hidden] { display: none; }

.contact-aside { display: grid; gap: 1.2rem; }
.contact-block {
  background: var(--parchment);
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.contact-block h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.95rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list dt,
.hours dt {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-dark);
}
.hours { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.45rem 1rem; font-size: 0.93rem; }
.hours dd { margin: 0; text-align: right; }
.contact-media img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ------------------------------ pätička ------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.82);
  padding-block: 3rem 1.6rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9d7a8;
  margin: 0 0 0.9rem;
}
.site-footer a { color: rgba(245, 239, 228, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand .brand-name { color: var(--linen); }
.footer-note { font-size: 0.85rem; color: rgba(245, 239, 228, 0.62); }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(245, 239, 228, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(245, 239, 228, 0.6);
}

/* ------------------------------ cookies ------------------------------ */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(960px, calc(100% - 24px));
  background: var(--parchment);
  border: 1px solid var(--wheat);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 24px 50px -26px rgba(20, 16, 8, 0.75);
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.4rem;
  align-items: center;
  transition: transform 0.35s ease;
}
.cookie-bar.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-bar p { margin: 0; font-size: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cookie-actions .btn { padding: 0.62rem 1.1rem; font-size: 0.82rem; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(31, 26, 15, 0.6);
  padding: 1rem;
}
.modal-box {
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px solid var(--husk);
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.6rem;
}
.modal-box h2 { font-size: 1.4rem; }
.cookie-option {
  border: 1px solid var(--husk);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  align-items: center;
}
.cookie-option p { margin: 0.3rem 0 0; font-size: 0.86rem; color: var(--ink-soft); grid-column: 1 / -1; }
.cookie-option strong { font-family: var(--font-ui); font-size: 0.92rem; }
.cookie-option input { width: 20px; height: 20px; accent-color: var(--moss); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1.2rem; }

/* ------------------------------ späť hore ------------------------------ */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--husk);
  background: var(--parchment);
  color: var(--wheat-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ------------------------------ právne stránky ------------------------------ */
.page-hero {
  background: var(--ink);
  color: var(--linen);
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: rgba(245, 239, 228, 0.78); margin: 0; }
.legal { max-width: 840px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.12rem; margin-top: 1.4rem; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--ember);
  padding-left: 0.9rem;
  margin-bottom: 2rem;
}

/* ------------------------------ animácie ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------ responzivita ------------------------------ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .calc, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--husk);
    padding: 0.6rem var(--gutter) 1.1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid rgba(221, 206, 178, 0.6); }
  .nav a.is-active { border-bottom-color: var(--ember); }
  .header-inner { position: relative; }
  .header-cta .btn { display: none; }
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-bar { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .price-terms { padding: 1.1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
