/* =========================================================
   Osnova — knitshed.digital
   Farebná osnova: wool white / dusty sage / soft terracotta / dark pine
   ========================================================= */

:root {
  --wool: #F8F6F2;
  --wool-deep: #EFEAE1;
  --paper: #FFFDFA;
  --sage: #7D9278;
  --sage-soft: #A8B7A3;
  --terracotta: #C47A5A;
  --terracotta-deep: #A9603F;
  --pine: #2F4F3E;
  --pine-ink: #1E3128;
  --muted: #62705F;
  --line: rgba(47, 79, 62, 0.14);
  --line-strong: rgba(47, 79, 62, 0.28);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 40px -28px rgba(47, 79, 62, 0.55);
  --shadow-soft: 0 10px 24px -20px rgba(47, 79, 62, 0.6);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--pine-ink);
  background-color: var(--wool);
  background-image:
    repeating-linear-gradient(45deg, rgba(125, 146, 120, 0.09) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(125, 146, 120, 0.09) 0 1px, transparent 1px 9px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--pine);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section { padding: clamp(58px, 8vw, 104px) 0; }
.section--tint { background: rgba(239, 234, 225, 0.72); border-block: 1px solid var(--line); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--pine); color: var(--wool);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 8px;
  background-image: linear-gradient(135deg, transparent 45%, var(--sage-soft) 45% 55%, transparent 55%),
                    linear-gradient(45deg, transparent 45%, var(--sage-soft) 45% 55%, transparent 55%);
  background-size: 8px 8px;
}

.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #FFF7F1; }
.btn--primary:hover { background: var(--terracotta-deep); color: #FFF7F1; }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--pine); color: var(--wool); border-color: var(--pine); }
.btn--pine { background: var(--pine); color: var(--wool); }
.btn--pine:hover { background: var(--pine-ink); color: var(--wool); }
.btn--wide { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.brand svg { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: block; }
.brand-text b {
  font-family: var(--display); font-size: 1.32rem; font-weight: 600;
  letter-spacing: -0.01em; display: block; line-height: 1.05;
  color: var(--pine); text-transform: none;
}
.brand-text > span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { border-bottom-color: var(--terracotta); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--pine); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--terracotta-deep); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--pine); transform: translateX(-50%); transition: 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; left: 0; transform: none; }
.nav-toggle span::after { top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--terracotta-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex: none; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
  max-width: 250px;
}
.hero-badge strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--pine); }
.hero-badge span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Knit divider ---------- */
.stitch-band {
  height: 16px;
  background-image:
    linear-gradient(135deg, transparent 46%, var(--sage-soft) 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, var(--sage-soft) 46% 54%, transparent 54%);
  background-size: 16px 16px;
  opacity: 0.6;
}

/* ---------- Section head ---------- */
.section-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Cards / služby ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  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 img { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { color: var(--muted); font-size: 0.97rem; }
.card-tag {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Rady / kroky ---------- */
.rows { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: rad; }
.row-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  position: relative;
}
.row-step .rad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 12px;
}
.row-step .rad::after {
  content: "";
  width: 34px; height: 8px;
  background-image: linear-gradient(135deg, transparent 45%, var(--terracotta) 45% 55%, transparent 55%),
                    linear-gradient(45deg, transparent 45%, var(--terracotta) 45% 55%, transparent 55%);
  background-size: 8px 8px;
  opacity: 0.75;
}
.row-step p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-mosaic img { border-radius: var(--r-md); object-fit: cover; aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); }
.about-mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-list { list-style: none; padding: 0; margin: 0 0 26px; }
.about-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 8px;
  background-image: linear-gradient(135deg, transparent 45%, var(--sage) 45% 55%, transparent 55%),
                    linear-gradient(45deg, transparent 45%, var(--sage) 45% 55%, transparent 55%);
  background-size: 8px 8px;
}

/* ---------- Kalkulačka ---------- */
.calc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.calc-form {
  background: var(--pine);
  color: var(--wool);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
}
.calc-form h3 { color: var(--wool); }
.calc-form p { color: rgba(248, 246, 242, 0.78); font-size: 0.95rem; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--pine-ink);
}
.calc-form .field input, .calc-form .field select { border-color: rgba(248, 246, 242, 0.4); }
.field textarea { min-height: 132px; resize: vertical; }
.calc-error { display: none; font-size: 0.9rem; color: #FFD9C7; margin: 0 0 14px; }
.calc-error.is-visible { display: block; }

.calc-out { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.calc-total { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; margin-bottom: 18px; }
.calc-total strong { font-family: var(--display); font-size: 1.7rem; color: var(--pine); }
.calc-total span { font-size: 0.9rem; color: var(--muted); }
.calc-rows { list-style: none; padding: 0; margin: 0 0 20px; }
.calc-rows li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.calc-rows li:last-child { border-bottom: 0; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-weight: 700; color: var(--pine); }
.calc-line em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.88rem; }
.calc-bar { height: 12px; margin-top: 8px; border-radius: 999px; background: var(--wool-deep); overflow: hidden; }
.calc-bar i {
  display: block; height: 100%; border-radius: 999px; background: var(--sage);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.35) 45%, transparent 45% 55%, rgba(255,255,255,0.35) 55%),
                    linear-gradient(45deg, rgba(255,255,255,0.35) 45%, transparent 45% 55%, rgba(255,255,255,0.35) 55%);
  background-size: 10px 10px;
  transition: width 0.4s ease;
}
.calc-rows li:nth-child(4) .calc-bar i { background-color: var(--terracotta); }
.calc-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }

/* ---------- Cenník ---------- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price--feature { border-color: var(--terracotta); box-shadow: var(--shadow); }
.price-flag {
  position: absolute; top: -13px; left: 26px;
  background: var(--terracotta); color: #FFF7F1;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.price h3 { margin-bottom: 6px; }
.price .price-tag { font-family: var(--display); font-size: 2.15rem; color: var(--pine); line-height: 1.1; }
.price .price-unit { font-size: 0.88rem; color: var(--muted); display: block; margin-bottom: 16px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--muted); }
.price li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 7px;
  background-image: linear-gradient(135deg, transparent 45%, var(--sage) 45% 55%, transparent 55%),
                    linear-gradient(45deg, transparent 45%, var(--sage) 45% 55%, transparent 55%);
  background-size: 7px 7px;
}
.price .btn { margin-top: auto; }

.price-notes {
  margin-top: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 26px;
}
.price-notes h3 { font-size: 1.12rem; }
.price-notes ul { margin-bottom: 0; }
.price-notes li { font-size: 0.94rem; color: var(--muted); }
.price-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.95rem; }
.price-table th, .price-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--pine); white-space: nowrap; }

/* ---------- Recenzie ---------- */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.quote p { font-family: var(--display); font-size: 1.06rem; color: var(--pine); }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.quote .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--wool);
  display: grid; place-items: center; font-weight: 700; flex: none;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--pine);
  text-align: left;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--terracotta); border-bottom: 2px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { display: none; padding: 0 10px 22px 0; color: var(--muted); }
.faq-a.is-open { display: block; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--sage); }
.form-error { display: none; font-size: 0.88rem; color: var(--terracotta-deep); margin: -8px 0 14px; }
.form-error.is-visible { display: block; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(125, 146, 120, 0.16); border: 1px solid var(--sage); font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.honeypot { position: absolute; left: -9999px; }

.contact-info { display: grid; gap: 18px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { margin-bottom: 0; color: var(--muted); font-size: 0.96rem; }
.info-card a { font-weight: 700; }
.contact-photo img { border-radius: var(--r-md); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow-soft); }

.disclaimer {
  margin-top: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 22px 24px;
  background: rgba(255, 253, 250, 0.7);
}
.disclaimer p { margin-bottom: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(248, 246, 242, 0.82); padding: clamp(44px, 6vw, 70px) 0 28px; }
.site-footer h4 { font-family: var(--display); color: var(--wool); font-size: 1.05rem; margin: 0 0 12px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer a { color: rgba(248, 246, 242, 0.86); text-decoration: none; }
.site-footer a:hover { color: #FFD9C7; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand svg { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand b { font-family: var(--display); font-size: 1.25rem; color: var(--wool); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(248, 246, 242, 0.2);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.87rem;
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(248, 246, 242, 0.86); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: #FFD9C7; }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 150;
  max-width: 720px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -24px rgba(30, 49, 40, 0.55);
  padding: 22px 24px;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cookie p { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { padding: 12px 22px; font-size: 0.92rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--pine);
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

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

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(40px, 6vw, 72px) 0 10px; }
.legal { max-width: 800px; margin-inline: auto; padding-bottom: clamp(50px, 7vw, 90px); }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.7em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: 0.88rem; color: var(--sage); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.legal-nav a {
  display: inline-block; font-size: 0.88rem; font-weight: 700; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--pine);
}
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: var(--pine); color: var(--wool); border-color: var(--pine); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .calc-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-badge { left: 16px; bottom: 16px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.is-active { border-bottom-color: var(--line); color: var(--terracotta-deep); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-mosaic img:first-child { aspect-ratio: 3 / 2; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px; }
  .cookie-actions .btn { width: 100%; }
  .to-top { display: none; }
}

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