/* ==========================================================================
   BALANCE CUP – účetnictví a daně
   Tmavý vzhled. Písma hostovaná lokálně (bez Google Fonts kvůli GDPR).

   Pohyb na webu má jedno téma: linky se rýsují jako v účetní knize.
   - úvod: T-účet se chová jako váha a srovná se do rovnováhy (jednou po načtení)
   - při scrollu: rýsují se řádky služeb, plní se postup, dotahují se tečky v ceníku
   Kdo má v systému vypnuté animace, vidí rovnou hotový stav.
   ========================================================================== */

@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/red-hat-display-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/red-hat-display-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/red-hat-text-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/red-hat-text-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Barvy a proměnné ---------- */
:root {
  color-scheme: dark;

  /* Paleta odvozená z loga, tmavý základ */
  --paper: #0e1c28;         /* hlavní pozadí */
  --mist: #132433;          /* střídavé pozadí sekcí */
  --ink: #e4edf5;           /* hlavní text */
  --ink-soft: #a9bccb;      /* vedlejší text */
  --steel: #9cc4e8;         /* odkazy, tlačítka */
  --steel-hover: #c2dcf3;
  --on-steel: #0e1c28;      /* text na tlačítku */
  --line: #6e9cc2;          /* linky T-účtu */
  --rule: #284558;          /* tenké linky */
  --footer-bg: #09141d;
  --footer-ink: #a9bccb;
  --placeholder-bg: #4a3d0a;
  --placeholder-ink: #ffe69a;
  --field-border: #5f7f98;  /* rámeček polí, kontrast přes 4 : 1 */
  --ok-bg: #17382a;
  --ok-ink: #bfe8cf;
  --error-bg: #3e1a1a;
  --error-ink: #f5c2c2;

  --font-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --ease-draw: cubic-bezier(.6, 0, .2, 1);
  --ease-swing: cubic-bezier(.45, 0, .55, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--steel-hover); }

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

::selection { background: var(--steel); color: var(--on-steel); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--steel);
  color: var(--on-steel);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Viditelné místo pro chybějící údaje – před spuštěním odstranit */
.placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  font-style: normal;
  white-space: nowrap;
}

/* ---------- Tlačítka ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--steel);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button--primary { background: var(--steel); color: var(--on-steel); }
.button--primary:hover { background: var(--steel-hover); border-color: var(--steel-hover); color: var(--on-steel); }
.button--ghost { background: transparent; color: var(--steel); }
.button--ghost:hover { background: var(--mist); color: var(--steel-hover); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(14 28 40 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}

.site-header__logo { flex: none; }
.site-header__logo img { width: 11.5rem; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--steel); text-decoration-color: currentColor; }

.site-header__phone {
  flex: none;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 1rem;
}

/* ---------- Úvod ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 1.6rem + 5vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

.hero__lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- T-účet jako váha ----------
   Vodorovné rameno (.ledger__beam) se otáčí kolem vrcholu svislé nohy,
   seznamy pod ním se zvedají a klesají jako misky vah. */
.ledger {
  --stroke: 3px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "beam  beam"
    "vy    my"
    "total total";
}

.ledger__beam {
  grid-area: beam;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: calc(0.6rem + var(--stroke));
  transform-origin: 50% 100%;
}
.ledger__beam::after {          /* samotné rameno */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--stroke);
  background: var(--line);
  border-radius: 2px;
}

.ledger::after {                /* svislá noha T */
  content: "";
  grid-area: my;
  justify-self: start;
  width: var(--stroke);
  margin-left: calc(var(--stroke) / -2);
  background: var(--line);
  transform-origin: bottom;
}

.ledger__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--steel);
}
.ledger__title:first-child { padding-right: 1.5rem; }
.ledger__title:last-child { padding-left: 1.5rem; }

.ledger__list {
  margin: 0;
  padding: 1.25rem 0 1.75rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
}
.ledger__list li + li { margin-top: 0.85rem; }
.ledger__list--vy { grid-area: vy; padding-right: 1.5rem; }
.ledger__list--my { grid-area: my; padding-left: 1.5rem; }

.ledger__total {
  grid-area: total;
  padding-top: 0.75rem;
  border-top: 6px double var(--ink);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  /* 1) noha vyroste ze země */
  .ledger::after { animation: grow-up 0.5s var(--ease-draw) both; }

  /* 2) rameno se objeví převážené na straně „Vy“ … */
  .ledger__beam {
    animation:
      appear 0.4s ease-out 0.3s both,
      beam-settle 2.1s 0.3s both;
  }
  .ledger__list--vy { animation: pan-vy 2.1s 0.3s both; }
  .ledger__list--my { animation: pan-my 2.1s 0.3s both; }

  /* 3) … zapíšou se položky; jakmile přibude „My“, váha se srovná */
  .ledger__list li { animation: write-in 0.4s ease-out both; }
  .ledger__list--vy li:nth-child(1) { animation-delay: 0.45s; }
  .ledger__list--vy li:nth-child(2) { animation-delay: 0.55s; }
  .ledger__list--vy li:nth-child(3) { animation-delay: 0.65s; }
  .ledger__list--my li:nth-child(1) { animation-delay: 0.85s; }
  .ledger__list--my li:nth-child(2) { animation-delay: 0.95s; }
  .ledger__list--my li:nth-child(3) { animation-delay: 1.05s; }
  .ledger__list--my li:nth-child(4) { animation-delay: 1.15s; }

  /* 4) účet se uzavře dvojitou čarou */
  .ledger__total { animation: close-account 0.6s ease-out 2.3s both; }
}

@keyframes grow-up { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Tlumený kmit: −5° → +3° → −1,3° → +0,45° → 0° */
@keyframes beam-settle {
  0%, 26% { rotate: -5deg;   animation-timing-function: var(--ease-swing); }
  50%     { rotate: 3deg;    animation-timing-function: var(--ease-swing); }
  68%     { rotate: -1.3deg; animation-timing-function: var(--ease-swing); }
  84%     { rotate: 0.45deg; animation-timing-function: var(--ease-swing); }
  100%    { rotate: 0deg; }
}
/* Misky vah – posun odpovídá náklonu ramene */
@keyframes pan-vy {
  0%, 26% { translate: 0 10px;    animation-timing-function: var(--ease-swing); }
  50%     { translate: 0 -6px;    animation-timing-function: var(--ease-swing); }
  68%     { translate: 0 2.6px;   animation-timing-function: var(--ease-swing); }
  84%     { translate: 0 -0.9px;  animation-timing-function: var(--ease-swing); }
  100%    { translate: 0 0; }
}
@keyframes pan-my {
  0%, 26% { translate: 0 -10px;   animation-timing-function: var(--ease-swing); }
  50%     { translate: 0 6px;     animation-timing-function: var(--ease-swing); }
  68%     { translate: 0 -2.6px;  animation-timing-function: var(--ease-swing); }
  84%     { translate: 0 0.9px;   animation-timing-function: var(--ease-swing); }
  100%    { translate: 0 0; }
}
@keyframes write-in {
  from { opacity: 0; translate: -0.4rem 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes close-account {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ---------- Sekce obecně ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__head h2 { margin-bottom: 1rem; }
.section__head p { color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Služby: řádky jako v účetní knize ---------- */
.services {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.service__about {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-content: start;
  padding: 2rem 2.5rem 2rem 0;
}
.service__about h3 { margin-bottom: 0.6rem; align-self: end; }
.service__about p { grid-column: 2; }
.service__icon { grid-row: 1 / span 2; width: 4rem; height: 4rem; margin-top: -0.25rem; }
.service__about p { color: var(--ink-soft); max-width: 30rem; }

.service__items {
  position: relative;
  margin: 0;
  padding: 2rem 0 2rem 2.5rem;
  border-left: 1px solid var(--rule);
  list-style: none;
  align-self: stretch;
}
.service__items li {
  position: relative;
  padding-left: 1.25rem;
}
.service__items li + li { margin-top: 0.5rem; }
.service__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.45rem;
  height: 2px;
  background: var(--line);
}
.service__items--note { color: var(--ink-soft); }
.service__items--note li { padding-left: 0; }
.service__items--note li::before { display: none; }

/* ---------- O nás ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;   /* text a ilustrace svisle na střed */
}

.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { max-width: 36rem; }

.about__quote {
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--line);
  max-width: 30rem;
}
.about__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Ilustrace pracovního stolu (místo fotek) */
.about__visual { margin: 0; }
.about__visual svg { display: block; width: 100%; height: auto; }
.desk__steam path { opacity: .4; }

/* Na co se můžete spolehnout – přes celou šířku pod textem a ilustrací */
.assurances { margin-top: clamp(3.5rem, 7vw, 5rem); }
.assurances h3 { margin-bottom: 1.25rem; }
.assurances ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.assurances li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  padding-top: 1.1rem;
  border-top: 3px solid var(--line);
}
.assurances li::before {
  content: "✓";
  color: var(--steel);
  font-weight: 700;
}
.assurances strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
}
.assurances span { color: var(--ink-soft); }

/* ---------- Jak spolupráce probíhá (skutečná posloupnost → čísla) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--steel);
  border-radius: 50%;
  background: var(--paper);
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.step:not(:last-child)::after {   /* spojnice k dalšímu kroku */
  content: "";
  position: absolute;
  top: calc(1.375rem - 1px);
  left: 2.75rem;
  right: -2rem;
  height: 2px;
  background: var(--rule);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); }

/* Nadpis sekce s ilustrací vedle */
.section__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 3rem;
  align-items: center;   /* nadpis svisle na střed vůči ilustraci */
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__split .section__head { margin-bottom: 0; }
.section__ill { margin: 0; }
.section__ill svg,
.pricing__ill svg { display: block; width: 100%; height: auto; }

/* ---------- Ceník ---------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;   /* ceník svisle na střed vůči nadpisu s ilustrací */
}
.pricing .section__head { margin-bottom: 0; }
.pricing__ill { margin: 2.5rem 0 0; max-width: 22rem; }

.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.price-list li:first-child { border-top: 1px solid var(--rule); }
.price-list__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}
.price-list__leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--field-border);
  transform: translateY(-0.3em);
  transform-origin: left;
}
.price-list__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.price-list__unit { color: var(--ink-soft); }
.pricing__note { margin-top: 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Užitečné odkazy ---------- */
.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.links li { border-top: 1px solid var(--rule); }
.links a {
  display: block;
  padding-block: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
}
.links__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}
.links a:hover .links__name { text-decoration-color: currentColor; }
.links__desc { display: block; margin-top: 0.3rem; color: var(--ink-soft); }
.links__domain { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Kontakt: tmavý závěr, otevřený dvojitou čarou uzávěrky ---------- */
.contact {
  background: var(--paper);
  color: var(--ink);
  padding-block: var(--section-y);
}
.contact h2 { margin-bottom: 1rem; }

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact__close {
  grid-column: 1 / -1;
  height: 0;
  border-top: 6px double var(--ink);
  transform-origin: left;
}

.contact__intro { max-width: 32rem; font-size: 1.125rem; margin-bottom: 2rem; color: var(--ink-soft); }

/* Telefon a e-mail jako T-účet: stejná velikost i styl, mezi nimi noha T */
.contact__ledger {
  --stroke: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 30rem;
}
.contact__label {
  margin: 0;
  padding: 0 1.25rem calc(0.55rem + var(--stroke)) 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--steel);
}
.contact__side + .contact__side .contact__label { padding: 0 0 calc(0.55rem + var(--stroke)) 1.25rem; }
.contact__label::after {          /* vodorovné rameno */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--stroke);
  background: var(--line);
}
.contact__value {
  display: block;
  position: relative;
  padding: 1rem 1.25rem 1.25rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.contact__side + .contact__side .contact__value { padding: 1rem 0 1.25rem 1.25rem; }
.contact__side + .contact__side .contact__value::before {   /* svislá noha */
  content: "";
  position: absolute;
  left: calc(var(--stroke) / -2);
  top: 0;
  bottom: 0;
  width: var(--stroke);
  background: var(--line);
}
.contact__value:hover { color: var(--steel); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.contact__details {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
  max-width: 30rem;
}
.contact__details dt,
.contact__details dd {
  margin: 0;
  padding-block: 0.8rem;
  border-top: 1px solid var(--rule);
}
.contact__details dt { color: var(--ink-soft); }

/* ---------- Poptávkový formulář ---------- */
.inquiry {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.inquiry__title { margin-bottom: 1.5rem; }

.field { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.field__optional { font-family: var(--font-text); font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--field-border);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
.field input:hover,
.field textarea:hover { border-color: var(--steel); }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
}
.field__hint { margin-top: 0.4rem; font-size: 0.875rem; color: var(--ink-soft); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

/* Výběr služeb jako přepínací štítky */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choices label:hover { border-color: var(--steel); }
.choices label:has(input:checked) {
  background: rgb(156 196 232 / 0.14);
  border-color: var(--steel);
}
.choices input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  border: 1.5px solid var(--field-border);
  border-radius: 0.3rem;
  background: transparent center / 85% no-repeat;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.choices input:checked {
  border-color: var(--steel);
  background-color: var(--steel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230e1c28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choices input:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* Pole proti spamu – mimo obrazovku, ne display:none (to roboti poznají) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry__submit { margin-top: 0.5rem; }
.inquiry__privacy { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-soft); }

/* Hláška po odeslání – text doplní skript podle ?odeslano= v adrese */
.form-status {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0.5rem;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status--ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-status--error { background: var(--error-bg); color: var(--error-ink); }
/* Po úspěšném odeslání formulář schováme */
.inquiry--sent .inquiry__form { display: none; }
.inquiry { scroll-margin-top: 6rem; }

.button:disabled { opacity: 0.65; cursor: progress; }

/* ---------- Patička ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: 3rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: var(--ink); }
.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 4rem;
  align-items: start;
}
.site-footer__logo { width: 13rem; }
.site-footer__legal { max-width: 44rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { font-weight: 600; }

/* ==========================================================================
   Rýsování linek při scrollu (jen prohlížeče se scroll animacemi;
   ostatní ukážou rovnou hotový stav)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    /* Hlavička: nahoře splývá s úvodem, po odscrollování dostane linku */
    .site-header {
      animation: header-solid linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }

    /* Služby: vodorovné linky se rýsují zleva … */
    .service { border-top-color: transparent; }
    .service::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -1px;
      height: 1px;
      background: var(--line);
      transform-origin: left;
      animation: rule-x linear both, fade-rule linear both;
      animation-timeline: view(), view();
      animation-range: entry 0% cover 30%, cover 30% cover 45%;
    }

    /* Postup: kroky se postupně vybarví, spojnice se dotáhnou */
    .steps { view-timeline-name: --steps; }
    .step::before {
      animation: step-fill linear both;
      animation-timeline: --steps;
    }
    .step:not(:last-child)::after {
      background: linear-gradient(var(--steel), var(--steel)) 0 0 / 0% 100% no-repeat, var(--rule);
      animation: connector-fill linear both;
      animation-timeline: --steps;
    }
    .step:nth-child(1)::before { animation-range: cover 18% cover 22%; }
    .step:nth-child(1)::after  { animation-range: cover 22% cover 30%; }
    .step:nth-child(2)::before { animation-range: cover 30% cover 33%; }
    .step:nth-child(2)::after  { animation-range: cover 33% cover 41%; }
    .step:nth-child(3)::before { animation-range: cover 41% cover 44%; }
    .step:nth-child(3)::after  { animation-range: cover 44% cover 52%; }
    .step:nth-child(4)::before { animation-range: cover 52% cover 55%; }

    /* Kontakt: stránka se „uzavře“ dvojitou čarou */
    .contact__close {
      animation: rule-x linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }

    /* Ceník: tečky se dotáhnou od služby k ceně */
    .price-list__leader {
      animation: rule-x linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 40.01rem) {
  @supports (animation-timeline: view()) {
    /* … a svislá dělicí čára služeb se rýsuje shora */
    .service__items { border-left-color: transparent; }
    .service__items::after {
      content: "";
      position: absolute;
      left: -1px;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--rule);
      transform-origin: top;
      animation: rule-y linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
  }
}

@keyframes header-solid {
  from { background-color: rgb(14 28 40 / 0); border-bottom-color: transparent; }
  to   { background-color: rgb(14 28 40 / 0.9); border-bottom-color: var(--rule); }
}
@keyframes rule-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes rule-y { from { scale: 1 0; } to { scale: 1 1; } }
/* Čerstvě narýsovaná linka je chvíli výraznější, pak se uklidní */
@keyframes fade-rule { from { background-color: var(--line); } to { background-color: var(--rule); } }
@keyframes step-fill { to { background-color: var(--steel); color: var(--on-steel); } }
@keyframes connector-fill { to { background-size: 100% 100%; } }

/* ---------- Ilustrace: pára z kávy a dokreslení ikon služeb ---------- */
@media (prefers-reduced-motion: no-preference) {
  .desk__steam path { opacity: 0; animation: steam 5.4s ease-in-out infinite; }
  .desk__steam path:nth-child(2) { animation-delay: 1.8s; }
  .desk__steam path:nth-child(3) { animation-delay: 3.6s; }

  @supports (animation-timeline: view()) {
    .service__icon { view-timeline-name: --ikona; }
    .service__icon [pathLength] {
      stroke-dasharray: 1;
      animation: ink linear both;
      animation-timeline: --ikona;
      animation-range: entry 20% cover 40%;
    }
  }
}
@keyframes steam {
  0%   { opacity: 0;   transform: translateY(10px); }
  35%  { opacity: .55; }
  75%  { opacity: .2; }
  100% { opacity: 0;   transform: translateY(-16px); }
}
@keyframes ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Responzivita ---------- */
@media (max-width: 64rem) {
  .site-nav ul { gap: 1.25rem; }
  .site-header__phone { display: none; }
}

@media (max-width: 54rem) {
  .site-header { position: static; }
  .site-header__inner { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 1rem 0; }
  .site-header__phone { display: inline-flex; margin-left: auto; }
  .site-nav {
    order: 3;
    margin: 0 calc(var(--gutter) * -1);
    width: calc(100% + var(--gutter) * 2);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding: 0.85rem var(--gutter); gap: 1.5rem; }

  .hero__inner,
  .about,
  .pricing,
  .contact__inner { grid-template-columns: 1fr; }


  .section__split { grid-template-columns: 1fr; gap: 2rem; }
  .assurances ul { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .section__ill { max-width: 26rem; }
  .pricing__ill { max-width: 20rem; margin-top: 2rem; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .step:not(:last-child)::after { display: none; }

  .links { grid-template-columns: 1fr 1fr; }

  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .site-header__logo img { width: 9.5rem; }
  .site-header__phone { font-size: 0.9375rem; padding-inline: 0.9rem; }

  .ledger__title:first-child, .ledger__list--vy { padding-right: 1rem; }
  .ledger__title:last-child,  .ledger__list--my { padding-left: 1rem; }

  .service { grid-template-columns: 1fr; }
  .service__about { padding: 1.75rem 0 0.75rem; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
  .service__icon { width: 3rem; height: 3rem; }
  .service__items { border-left: 0; padding: 0 0 1.75rem; }

  .steps { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; }
  .assurances ul { grid-template-columns: 1fr; gap: 1.25rem; }
  .inquiry__submit { width: 100%; }

  .price-list li { flex-wrap: wrap; }
  .price-list__leader { display: none; }
  .price-list__value { width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
