/* CzechCloud – styly webu
   Motiv: serverový rack. Výrazný je jen rack v hlavičce úvodní stránky,
   zbytek je klidný a věcný. */

:root {
  --paper: #edf1ef;
  --surface: #ffffff;
  --tint: #e2e8e5;
  --ink: #16202a;
  --muted: #55636e;
  --line: #c9d2ce;
  --rack: #1d2730;
  --rack-face: #26323c;
  --rack-line: #36434e;
  --rack-text: #c9d4dc;
  --led: #f5a524;
  --led-ok: #3fbf8a;
  --action: #17624f;
  --action-hover: #0f4a3b;
  --action-ink: #ffffff;
  --error: #b42318;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Modulární stupnice 1,25 */
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: clamp(1.953rem, 1.4rem + 1.8vw, 2.441rem);
  --step-5: clamp(2.441rem, 1.6rem + 3.2vw, 3.815rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-s: 4px;
  --radius-m: 8px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  font-feature-settings: "tnum" 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { color: var(--action-hover); }

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

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.muted { color: var(--muted); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38em;
}

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font: 600 var(--step-0) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: var(--action-hover); color: var(--action-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

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

.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-s);
  background: var(--led);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
}

/* ---------- Hlavička ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: var(--step-2);
}
.brand:hover { color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--action); }
.site-nav__phone {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.4rem; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  content: "";
}
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    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: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  .site-nav__phone { padding-top: 1rem; }
}

/* ---------- Úvod: hero s rackem ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-5);
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11em;
}
.hero .lead { margin-top: 1.25rem; }
.hero .actions { margin-top: 2rem; }

.hero__support {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: var(--step--1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--led-ok);
  box-shadow: 0 0 0 3px rgb(63 191 138 / 0.2);
  flex: none;
}

.rack { margin: 0; }

.rack__chassis {
  background: var(--rack);
  border-radius: var(--radius-m);
  padding: 0.9rem 1.75rem;
  position: relative;
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -24px rgb(22 32 42 / 0.55);
}
/* Montážní lišty s otvory po stranách */
.rack__chassis::before,
.rack__chassis::after {
  content: "";
  position: absolute;
  top: 0.9rem; bottom: 0.9rem;
  width: 0.45rem;
  background: radial-gradient(circle, #0f161c 38%, transparent 42%) 0 0 / 0.45rem 0.9rem repeat-y;
}
.rack__chassis::before { left: 0.65rem; }
.rack__chassis::after { right: 0.65rem; }

.rack__unit {
  display: grid;
  grid-template-columns: auto 5.2rem repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.5rem 1rem;
  margin-block: 0.35rem;
  background: var(--rack-face);
  border: 1px solid var(--rack-line);
  border-radius: var(--radius-s);
  color: var(--rack-text);
  text-decoration: none;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background-color 0.15s;
}
.rack__unit:hover,
.rack__unit:focus-visible {
  background: #2d3a45;
  border-color: var(--led);
  color: #fff;
}
.rack__unit b { color: #fff; font-weight: 600; font-size: var(--step-0); }

.rack__led {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--led-ok);
  box-shadow: 0 0 6px var(--led-ok);
}
.rack__unit.is-featured .rack__led { background: var(--led); box-shadow: 0 0 8px var(--led); }

.rack__name, .rack__spec, .rack__price { white-space: nowrap; }
.rack__name {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-1);
  color: #fff;
}
.rack__price {
  font-weight: 600;
  color: #fff;
  font-size: var(--step-0);
  text-align: right;
  min-width: 5.5rem;
}

.rack figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
  text-align: right;
}

/* Jediná animace: diody se postupně rozsvítí při načtení */
.rack__unit:nth-child(2) { --i: 1; }
.rack__unit:nth-child(3) { --i: 2; }
.rack__unit:nth-child(4) { --i: 3; }
.rack__unit:nth-child(5) { --i: 4; }
.rack__unit:nth-child(6) { --i: 5; }
.rack__unit:nth-child(7) { --i: 6; }
.rack__unit:nth-child(n+8) { --i: 7; }

@media (prefers-reduced-motion: no-preference) {
  .rack__led {
    animation: led-on 0.5s steps(2, jump-none) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.14s);
  }
  @keyframes led-on {
    0% { background: #3a4651; box-shadow: none; }
    100% { }
  }
}

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .rack__chassis { padding-inline: 1.4rem; }
  .rack__unit {
    grid-template-columns: auto 1fr auto;
    row-gap: 0.15rem;
  }
  .rack__spec { display: none; }
}

/* ---------- Fakta ---------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.facts__list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__list li {
  padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts__list strong {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: var(--step-2);
  line-height: 1.15;
}
.facts__list span { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 52rem) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__list li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts__list li:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sekce ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tint { background: var(--tint); }

.section__title {
  font-size: var(--step-4);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Služby: seznam, ne karty */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.service {
  border-top: 2px solid var(--ink);
  padding-block: 1.25rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  row-gap: 0.6rem;
}
.service h3 { font-size: var(--step-3); }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.service__price {
  align-self: end;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.service > p:last-child { grid-column: 1 / -1; color: var(--muted); max-width: 34em; }

@media (max-width: 44rem) {
  .services { grid-template-columns: 1fr; }
}

/* Postup – skutečná posloupnost, proto čísla */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps__item { counter-increment: step; }
.steps__item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}
.steps__item h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.steps__item p { color: var(--muted); }

@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* Reference */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.quote { margin: 0; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.3;
}
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "“"; }
.quote figcaption {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}
.quote figcaption span { color: var(--muted); font-size: var(--step--1); }

/* Pruh s telefonem */
.call-band {
  background: var(--rack);
  color: var(--rack-text);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.call-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.call-band h2 { color: #fff; font-size: var(--step-4); margin-bottom: 0.75rem; }
.call-band p { max-width: 32em; }
.call-band__contacts { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.call-band a { color: #fff; }
.call-band__phone {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-3);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.call-band__phone:hover { color: var(--led); }

@media (max-width: 44rem) { .call-band__grid { grid-template-columns: 1fr; } }

/* ---------- Hlavička podstránky ---------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--step-5); font-stretch: 80%; font-weight: 800; }
.page-head .lead { margin-top: 1rem; }
.page-head--compact h1 { font-size: var(--step-4); }

/* ---------- Tarify ---------- */

.plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}
.plans-head .section__title { margin: 0; }
.plans-head p { font-size: var(--step--1); }

.plans { list-style: none; margin: 0; padding: 0; }

.plan {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr) minmax(12rem, auto);
  grid-template-areas:
    "id specs buy"
    "id features buy";
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 0.75rem;
  padding: 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius-s);
  margin-bottom: 0.75rem;
}
.plan.is-featured { border-left-color: var(--led); }

.plan__id { grid-area: id; }
.plan__led {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--led-ok);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.plan.is-featured .plan__led { background: var(--led); }
.plan__name { display: inline; font-size: var(--step-3); vertical-align: middle; }
.plan__id .tag { margin-left: 0.4rem; vertical-align: middle; }
.plan__tagline { margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); max-width: 22em; }

.plan__specs {
  grid-area: specs;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  align-self: start;
}
.plan__specs dt { font-size: var(--step--1); color: var(--muted); }
.plan__specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.plan__features {
  grid-area: features;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.plan__features li::before { content: "✓ "; color: var(--action); font-weight: 600; }

.plan__buy {
  grid-area: buy;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  text-align: right;
}
.plan__price { font-variant-numeric: tabular-nums; }
.plan__amount {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1;
}
.plan__per { color: var(--muted); }
.plan__saving { font-size: var(--step--1); color: var(--action); }

.empty { padding: 2rem 0; color: var(--muted); }

@media (max-width: 60rem) {
  .plan {
    grid-template-columns: 1fr;
    grid-template-areas: "id" "specs" "features" "buy";
  }
  .plan__buy { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; flex-wrap: wrap; }
}
@media (max-width: 34rem) {
  .plan__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan__buy .btn { width: 100%; }
}

/* Doplňky a OS */
.extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.extras .section__title { font-size: var(--step-3); margin-bottom: 1rem; }

.addon-list, .os-list { list-style: none; margin: 0; padding: 0; }
.addon-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.addon-list p { color: var(--muted); font-size: var(--step--1); margin-top: 0.2rem; }
.addon-list__price { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

.os-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
  border-top: 1px solid var(--line);
}
.os-list__family { width: 4.5rem; color: var(--muted); font-size: var(--step--1); }
.os-list small { color: var(--muted); }
.os-list + .muted { margin-top: 1rem; font-size: var(--step--1); }

/* ---------- Obsahové bloky ---------- */

.prose-wide > * + * { margin-top: clamp(2rem, 4vw, 3rem); }

.block-heading { font-size: var(--step-4); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.75rem 2.5rem;
  margin: 1.5rem 0 0;
}
.features div { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.features dt { font-weight: 600; font-size: var(--step-1); margin-bottom: 0.35rem; }
.features dd { margin: 0; color: var(--muted); }

.faq { max-width: 48rem; }
.faq .block-heading { margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600;
  font-size: var(--step-1);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 0.85rem;
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details .prose { padding-bottom: 1.25rem; color: var(--muted); }

.cta-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--action);
  border-radius: var(--radius-s);
}
.cta-block h2 { font-size: var(--step-3); }
.cta-block p { color: var(--muted); margin-top: 0.4rem; }

.image-block { margin: 0; }
.image-block img { border-radius: var(--radius-m); }
.image-block figcaption { margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); }

/* ---------- Formuláře ---------- */

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.field label, .field__label { font-weight: 500; }
.field__help { font-size: var(--step--1); color: var(--muted); }
.field__error { font-size: var(--step--1); color: var(--error); font-weight: 500; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #9aa8a3;
  border-radius: var(--radius-s);
  padding: 0.65rem 0.8rem;
  min-height: 2.875rem;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--ink); }
.has-error input, .has-error textarea { border-color: var(--error); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-row--city { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 34rem) { .form-row, .form-row--city { grid-template-columns: 1fr; } }

.choices { display: flex; flex-direction: column; gap: 0.5rem; }
.choices--inline { flex-direction: row; flex-wrap: wrap; }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.choice input { margin: 0.25rem 0 0; accent-color: var(--action); width: 1.05rem; height: 1.05rem; flex: none; }
.choice--addon span { flex: 1; display: flex; flex-direction: column; }
.choice--addon small { color: var(--muted); font-size: var(--step--1); }
.choice--addon em { font-style: normal; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice--check { background: none; border: 0; padding: 0.5rem 0; }
.choice--check:has(input:checked) { box-shadow: none; }
.choice.has-error span { color: var(--error); }

.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
  border-left: 4px solid;
  background: var(--surface);
  margin-bottom: 1.5rem;
}
.notice--ok { border-color: var(--led-ok); }
.notice--error { border-color: var(--error); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.contact__phone {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-4);
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--action); }
.contact__mail { font-size: var(--step-1); margin-bottom: 1.5rem; }
.contact__dl { margin: 0; width: 100%; }
.contact__dl div { padding-block: 0.8rem; border-top: 1px solid var(--line); }
.contact__dl dt { font-size: var(--step--1); color: var(--muted); }
.contact__dl dd { margin: 0; }
.contact__form .section__title { font-size: var(--step-3); margin-bottom: 1.25rem; }

@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }

/* Objednávka */
.plan-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.plan-switch a {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
.plan-switch small { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-switch a:hover { border-color: var(--ink); }
.plan-switch a[aria-current="page"] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.order > .notice, .order > .field__error, .order > .hp { grid-column: 1 / -1; }

.order__group { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.order__group legend {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-3);
  margin-bottom: 1.25rem;
  padding: 0;
}
.company-fields[hidden] { display: none; }

.order__summary { position: sticky; top: 5.5rem; }
.summary {
  background: var(--rack);
  color: var(--rack-text);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}
.summary h2 { color: #fff; font-size: var(--step-2); margin-bottom: 1rem; }
.summary__lines { margin: 0; }
.summary__lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--rack-line);
  font-size: var(--step--1);
}
.summary__lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  color: #fff;
}
.summary__total strong {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: var(--step-3);
  font-variant-numeric: tabular-nums;
}
.summary__vat { text-align: right; font-size: var(--step--1); margin-bottom: 1.25rem; }
.summary .choice--check { color: var(--rack-text); }
.summary .choice--check a { color: #fff; }
.summary .btn { margin-top: 0.75rem; }
.summary__note { margin-top: 0.9rem; font-size: var(--step--1); }

@media (max-width: 52rem) {
  .order { grid-template-columns: 1fr; }
  .order__summary { position: static; }
}

/* Poděkování */
.thanks { max-width: 44rem; }
.thanks__led {
  display: block;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: var(--led-ok);
  box-shadow: 0 0 0 6px rgb(63 191 138 / 0.2);
  margin-bottom: 1.5rem;
}
.thanks__summary {
  font: inherit;
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 1rem;
}
.thanks .muted { margin-top: 1rem; }

/* ---------- Patička ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.site-footer__title {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  position: relative;
}
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--line);
}

@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
