/* ==========================================================================
   HopsHouse — rozpočtové poradenství pro domácnosti
   styles.css
   ========================================================================== */

:root {
  --clay: #b3543a;
  --clay-dark: #8f3f2a;
  --clay-soft: #e8b49b;
  --sand: #f6efe5;
  --sand-2: #fbf6ef;
  --paper: #fffdf9;
  --oak: #a97b4f;
  --oak-soft: #d8c1a3;
  --ink: #2b231e;
  --ink-soft: #6d5f55;
  --line: #e7d9c8;
  --sage: #5e7a5f;
  --amber: #c88a2e;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 6px 18px -12px rgba(64, 42, 26, .45);
  --shadow-md: 0 20px 44px -28px rgba(64, 42, 26, .5);
  --shadow-lg: 0 34px 70px -40px rgba(64, 42, 26, .55);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-utility: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --wrap: 1180px;
  --gap: 26px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

small { font-size: .86rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 800px; }

.section { padding: clamp(52px, 8vw, 92px) 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(38px, 5vw, 60px) 0; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 14px; }

.section-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- eyebrow / pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-utility);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-dark);
  background: rgba(179, 84, 58, .09);
  border: 1px solid rgba(179, 84, 58, .18);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay); flex: none;
}

.tag {
  display: inline-block;
  font-size: .78rem; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--sand); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-dark); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--oak-soft); }
.btn--ghost:hover { background: rgba(169, 123, 79, .12); }

.btn--oak { background: var(--ink); color: var(--sand); }
.btn--oak:hover { background: #3d322b; }

.btn--wide { width: 100%; }
.btn--sm { padding: 9px 17px; font-size: .92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 246, 239, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink); line-height: 1;
}
.brand__sub {
  display: block; font-family: var(--font-utility);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--oak); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); font-size: .93rem; font-weight: 500;
  padding: 8px 11px; border-radius: var(--r-pill);
  text-decoration: none !important;
}
.nav a:hover { background: rgba(169, 123, 79, .14); }
.nav a[aria-current="page"] { background: rgba(179, 84, 58, .12); color: var(--clay-dark); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone {
  font-weight: 600; font-size: .93rem; color: var(--ink);
  white-space: nowrap; text-decoration: none !important;
}
.header-phone:hover { color: var(--clay-dark); }

.nav-toggle {
  display: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 46px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto;
  position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 22px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--r-sm); }
  .site-header { position: relative; }
}
@media (max-width: 620px) {
  .header-cta .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 88% -8%, rgba(232, 180, 155, .55), transparent 62%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
  padding: clamp(46px, 7vw, 86px) 0 clamp(52px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: .55em; }
.hero__title-accent { color: var(--clay); font-style: italic; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero-stat { flex: 1 1 130px; }
.hero-stat b {
  display: block; font-family: var(--font-display); font-size: 1.7rem;
  line-height: 1; color: var(--clay-dark);
}
.hero-stat span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- media frames ---------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--oak-soft), var(--sand));
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(169, 123, 79, .28);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--fallback::after {
  content: attr(data-fallback);
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 20px;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 12px, transparent 12px 24px);
}
.hero__media-wrap { position: relative; }

/* signature element: oak shelf with budget envelopes */
.shelf {
  position: relative;
  margin-top: -46px;
  margin-left: auto; margin-right: auto;
  width: min(370px, 92%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 20px;
}
.shelf::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -9px; height: 9px;
  background: linear-gradient(180deg, var(--oak), #8a6440);
  border-radius: 0 0 8px 8px;
}
.shelf h4 {
  font-family: var(--font-utility); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--oak); margin-bottom: 14px;
}
.envelope {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.envelope:last-of-type { border-bottom: 0; }
.envelope b { font-family: var(--font-display); font-size: 1rem; }
.envelope-bar {
  height: 6px; border-radius: var(--r-pill); background: var(--sand);
  overflow: hidden; margin-top: 12px;
  display: flex;
}
.envelope-bar i { display: block; height: 100%; }
.envelope-bar i:nth-child(1) { background: var(--clay); }
.envelope-bar i:nth-child(2) { background: var(--oak); }
.envelope-bar i:nth-child(3) { background: var(--sage); }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card--flat { box-shadow: none; }
.card--sand { background: var(--sand); }
.card__media { margin: -26px -26px 22px; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 0; box-shadow: none; overflow: hidden; }
.card__media > .media { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
.card__media img { aspect-ratio: 3 / 2; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card__link { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .94rem; }
.card__link::after { content: " →"; }

.icon-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(179, 84, 58, .1);
  border: 1px solid rgba(179, 84, 58, .2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--clay-dark);
  margin-bottom: 16px;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-utility); font-size: .95rem; color: var(--clay);
  border-right: 1px solid var(--line); padding-right: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); align-items: start; }
.plan {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.plan--featured {
  border-color: var(--clay); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff8f2, var(--paper));
}
.plan__badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--clay); color: #fff;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: var(--r-pill);
}
.plan h3 { margin-bottom: .25em; }
.plan__price {
  font-family: var(--font-display); font-size: 2.3rem; line-height: 1;
  color: var(--clay-dark); margin: 14px 0 4px;
}
.plan__price small { font-family: var(--font-body); font-size: .8rem; color: var(--ink-soft); display: block; margin-top: 8px; }
.plan__list { list-style: none; padding: 0; margin: 18px 0 22px; }
.plan__list li { position: relative; padding-left: 26px; font-size: .95rem; }
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--sage); font-weight: 700;
}
.plan__list li.is-off { color: var(--ink-soft); }
.plan__list li.is-off::before { content: "–"; color: var(--oak); }
.plan .btn { margin-top: auto; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--sand); font-family: var(--font-body); font-weight: 600; font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
td b { font-family: var(--font-display); font-size: 1.02rem; }

/* ---------- callout ---------- */
.callout {
  background: var(--sand); border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--r-md); padding: 22px 24px;
}
.callout--sage { border-left-color: var(--sage); }
.callout--amber { border-left-color: var(--amber); }
.callout h4 { margin-bottom: .4em; }
.callout p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- quotes ---------- */
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
}
.quote blockquote { margin: 0 0 18px; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; }
.quote blockquote::before { content: "„"; color: var(--clay-soft); font-size: 1.6em; line-height: 0; vertical-align: -.25em; margin-right: 3px; }
.quote figcaption { font-size: .88rem; color: var(--ink-soft); display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ---------- accordion (native details) ---------- */
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--clay); line-height: 1; flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item__body { padding: 18px 22px 22px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sand-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.field--check .error-text { flex-basis: 100%; margin-top: 0; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.field--check label { font-weight: 400; font-size: .9rem; margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--clay); background: #fff5f1; }
.error-text { color: var(--clay-dark); font-size: .84rem; margin-top: 6px; display: none; }
.field.has-error .error-text { display: block; }

.form-status {
  display: none; margin-top: 18px; padding: 16px 18px;
  border-radius: var(--r-md); font-size: .95rem;
  background: rgba(94, 122, 95, .12); border: 1px solid rgba(94, 122, 95, .35);
}
.form-status.is-visible { display: block; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 40px); align-items: start; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.calc__panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px);
}
.calc__result { background: var(--sand); position: sticky; top: 96px; }
@media (max-width: 880px) { .calc__result { position: static; } }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.result-row:last-of-type { border-bottom: 0; }
.result-row span { font-size: .94rem; color: var(--ink-soft); }
.result-row b { font-family: var(--font-display); font-size: 1.25rem; }
.result-big b { font-size: 1.9rem; color: var(--clay-dark); }
.bars { margin-top: 22px; display: grid; gap: 10px; }
.bar-line { font-size: .86rem; }
.bar-line__top { display: flex; justify-content: space-between; margin-bottom: 5px; }
.bar-track { height: 9px; background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--clay); transition: width .4s ease; }
.bar-line:nth-child(2) .bar-fill { background: var(--oak); }
.bar-line:nth-child(3) .bar-fill { background: var(--amber); }
.bar-line:nth-child(4) .bar-fill { background: var(--sage); }
.bar-line:nth-child(5) .bar-fill { background: #7a6a9e; }
.calc__verdict {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); font-size: .95rem;
}

/* ---------- article / legal typography ---------- */
.doc { background: var(--paper); }
.doc-body h2 { margin-top: 2.2em; }
.doc-body h3 { margin-top: 1.6em; }
.doc-body ul { padding-left: 1.3em; }
.doc-meta {
  font-family: var(--font-utility); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--oak); margin-bottom: 10px;
}
.toc {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 34px;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .95rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 6vw, 66px) 0 clamp(34px, 5vw, 54px);
}
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 8px; color: var(--oak); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--sand);
  border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 48px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 26px; align-items: center;
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--paper); margin-bottom: .3em; }
.cta-band p { color: rgba(246, 239, 229, .82); margin: 0; }
.cta-band .btn--primary { background: var(--clay-soft); color: var(--ink); }
.cta-band .btn--primary:hover { background: #f0c8b2; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--line);
  padding: clamp(42px, 6vw, 66px) 0 26px;
  font-size: .93rem;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-utility); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--oak); margin-bottom: 14px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { color: var(--ink); }
.footer-note {
  border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--ink-soft); font-size: .85rem;
}
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--clay-dark);
  cursor: pointer; text-decoration: underline;
}

/* ---------- cookie consent ---------- */
.cookie {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px;
  background: var(--paper); border: 1px solid var(--oak-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 22px 24px; max-width: 560px;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie h4 { margin-bottom: .4em; }
.cookie p { font-size: .9rem; color: var(--ink-soft); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie__prefs { display: none; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.cookie__prefs.is-open { display: block; }
.switch-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row input { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.switch-row div { font-size: .88rem; }
.switch-row strong { display: block; font-size: .93rem; }
.switch-row p { margin: 2px 0 0; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--sand); border: 0; cursor: pointer;
  font-size: 1.1rem; display: none; box-shadow: var(--shadow-md);
}
.to-top.is-visible { display: block; }
@media (max-width: 620px) { .to-top { bottom: 14px; right: 14px; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .cookie, .to-top, .cta-band { display: none !important; }
  body { background: #fff; }
}
