/* Společný základ verzí 2 až 4: to, co musí fungovat stejně (ovládání, formulář, otázky, přístupnost).
   Vzhled a rozvržení si každá verze řeší sama v style.css a mění proměnné níže. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap, 72rem); margin-inline: auto; padding-inline: var(--gutter, 1rem); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 20; }
.skip:focus { top: 0.5rem; }
.todo {
  background: var(--todo-bg, #fff3b8); color: var(--todo-ink, #5a4700); padding: 0.15em 0.5em; border-radius: 4px;
  font: 600 0.92em var(--font-body); font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* hlavička */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { font-weight: 700; text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.6rem; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-s, 6px); }
/* Logo Vizdom (dva domy jednou čarou, spojovací čára v akcentu, slunce na vrcholu). Barvy z tokenů verze. */
.brand-logo { width: 2.25rem; height: auto; flex: none; overflow: visible; }
.brand-logo .logo-ink { stroke: var(--logo-ink, var(--ink)); }
.brand-logo .logo-line { stroke: var(--logo-line, var(--accent)); }
.brand-logo .logo-sun { fill: var(--logo-sun, #ff8a3d); }
@font-face { font-family: "Sora Znacka"; font-weight: 100 800; font-display: swap; src: url("fonts/sora-latin-wght-normal.woff2") format("woff2"); }
.brand-name { font-family: "Sora Znacka", var(--font-head, sans-serif); text-transform: none; font-weight: 300; letter-spacing: 0.2em; font-size: 1.05rem; color: var(--logo-ink, var(--ink)); }
.top .btn { display: none; }
.top nav { display: none; gap: 1.5rem; }
.top nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: var(--radius-s, 6px); transition: transform 0.2s var(--ease, ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0.5rem 1rem; }

/* hero a snímky */
.hero { display: grid; gap: 2rem; }
.shot { margin: 0; }
.shot img { width: 100%; }
.shot figcaption { color: var(--ink-3); font-size: 0.875rem; margin-top: 0.75rem; }
.kota { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-note { margin: 1rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 em { font-style: normal; }
h3 { font-size: 1.15rem; }
.lead { text-wrap: pretty; }

/* seznamy a kroky: číslování dělá CSS, vzhled si určí verze */
.see-list, .steps { list-style: none; margin: 0; padding: 0; }
.see-list { counter-reset: k; }
.see-list li { counter-increment: k; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps strong { display: block; }
.steps p { margin: 0; }
.limits ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.price { font-variant-numeric: tabular-nums; margin: 0 0 0.5rem; line-height: 1; }
.price small { letter-spacing: 0; }

/* otázky */
.faq { max-width: 46rem; }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 0.9rem 2.5rem 0.9rem 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent-text, var(--accent)); transition: transform 0.25s var(--ease, ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 2.5rem 1.1rem 0; color: var(--ink-2); }

/* formulář */
form { display: grid; gap: 1.1rem; }
label, .label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.hint { color: var(--ink-3); font-size: 0.875rem; font-weight: 400; display: block; }
input[type="text"], input[type="email"], input[type="file"] {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: inherit; font-size: 1rem; /* 16 px: iOS nezoomuje */
  color: var(--ink); background: var(--field, var(--paper)); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s, 6px);
}
input[type="file"] { padding: 0.5rem; }
input:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; border-color: var(--accent); }
.row { display: grid; gap: 1.1rem; }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; font-weight: 400; min-height: 44px; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.form-msg { margin: 0; padding: 0.75rem 1rem; background: var(--accent-soft); color: var(--accent-text, var(--ink)); font-weight: 600; border-radius: var(--radius-s, 6px); }
.form-msg[hidden] { display: none; }
footer { color: var(--ink-2); font-size: 0.9375rem; }
footer p { margin: 0 0 0.5rem; max-width: 46rem; }

@media (min-width: 48rem) {
  .top nav { display: flex; }
  .top .btn { display: inline-flex; }
  .row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* přepínač jazyka (CZ / SK) v hlavičce: krátký odkaz, vždy viditelný, i na mobilu */
.top .lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.5rem; text-decoration: none; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--ink-2); margin-left: auto; }
.top .lang + .lang { margin-left: 0; }
.top .lang:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 48rem) { .top .lang { margin-left: 0; } }

/* Úzký telefon: logo, jazyky a tlačítko se vejdou na jeden řádek, nic se nezalomí. */
.brand { flex-wrap: nowrap; }
.top .btn { white-space: nowrap; }
@media (max-width: 30rem) {
  .top { gap: 0.25rem; }
  .top .brand { gap: 0.45rem; }
  .top .brand-logo { width: 1.9rem; }
  .top .brand-name { font-size: 0.9rem; letter-spacing: 0.14em; }
  .top .btn { padding-inline: 0.75rem; font-size: 0.84rem; }
  .top .lang { min-width: 38px; padding-inline: 0.2rem; }
}
