/* ==========================================================
   webovkahned.cz – design tokens
   ========================================================== */
:root {
  --ink: #0A0F0C;
  --ink-2: #3B443F;
  --muted: #6B756F;
  --line: #E5E8E6;
  --bg: #FFFFFF;
  --soft: #F5F7F4;
  --accent: #FFC928;        /* CTA – vysoký kontrast s tmavým textem */
  --accent-hover: #FFB800;
  --accent-soft: #FFF4CC;
  --brand: #0E7A4F;         /* zelená – potvrzení, detaily */
  --brand-soft: #E3F4EC;
  --danger: #D0342C;
  --danger-soft: #FDECEA;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10,15,12,.06), 0 8px 24px rgba(10,15,12,.08);
  --shadow-lg: 0 2px 4px rgba(10,15,12,.06), 0 24px 60px rgba(10,15,12,.16);
  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* patička vždy u spodního okraje okna, i když je obsahu málo */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .95rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1f2823; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--text { background: none; border: 0; padding: 0 8px; color: var(--muted); font-weight: 600; }
.btn--text:hover { color: var(--ink); }

.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .6; }
.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(10,15,12,.05); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.2rem; letter-spacing: -.02em; }
.logo__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo__mark svg { width: 18px; height: 18px; fill: var(--ink); }
.logo__text { font-weight: 600; }
.logo__text strong { font-weight: 800; }
.logo--light { color: #fff; }

.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.nav a:hover { color: var(--ink); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.header__phone--always { display: flex; }
.header__phone svg { width: 18px; height: 18px; fill: var(--brand); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 36px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; gap: 36px; align-items: start; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .38em; background: var(--accent); border-radius: 4px; z-index: -1; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 18px 0 22px; max-width: 34em; }

.checks { display: grid; gap: 10px; margin-bottom: 28px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 auto; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* ============ Form card ============ */
.formcard {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 24px 20px 18px; scroll-margin-top: calc(var(--header-h) + 12px);
}
.formcard__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.formcard__sub { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.progress { height: 6px; border-radius: 99px; background: var(--soft); margin: 16px 0 6px; overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 50%; background: var(--brand); border-radius: inherit; transition: width .35s ease; }
.formcard__step { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.formcard__note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.formcard.is-done .formcard__step, .formcard.is-done .progress { display: none; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step__actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F0C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field__error { display: none; color: var(--danger); font-size: .82rem; font-weight: 500; margin-top: 5px; }
.field.has-error input, .field.has-error select { border-color: var(--danger); background-color: var(--danger-soft); }
.field.has-error .field__error { display: block; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 64px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s; line-height: 1.25;
}
.choice--sm span { min-height: 46px; font-size: .92rem; font-weight: 500; }
.choice strong { font-size: 1rem; }
.choice small { font-size: .78rem; color: var(--muted); }
.choice:hover span { border-color: #C9CFCB; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--brand); }
.field__error--consent { margin: 4px 0 8px 30px; }
.consent.has-error { color: var(--danger); }
.consent.has-error + .field__error--consent { display: block; }

.success { text-align: center; padding: 12px 0 4px; animation: stepIn .35s ease; }
.success:focus { outline: none; }
.success__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.success__icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.success p:not(.success__title) { color: var(--ink-2); margin-bottom: 16px; }

.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; font-weight: 500; margin: 4px 0 12px; }
.form-error a { color: inherit; font-weight: 700; }

/* ============ Děkovná stránka ============ */
.thanks { padding: 56px 0 80px; text-align: center; }
.thanks__icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; animation: pop .4s ease; }
.thanks__icon svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks__lead { font-size: 1.15rem; color: var(--ink-2); margin: 14px auto 36px; max-width: 32em; }
.thanks__steps { display: grid; gap: 12px; max-width: 640px; margin: 0 auto 36px; text-align: left; counter-reset: t; }
.thanks__steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.thanks__steps li::before { counter-increment: t; content: counter(t); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ Strip ============ */
.strip { background: var(--ink); color: #fff; }
.strip__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-top: 22px; padding-bottom: 22px; }
.strip__inner div { display: flex; flex-direction: column; }
.strip strong { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.strip span { font-size: .85rem; color: rgba(255,255,255,.72); }

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.section__sub s { color: var(--danger); font-weight: 600; }
.section__cta { text-align: center; margin-top: 36px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 10px; }
.kicker--light { color: var(--accent); }

.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--ink-2); }
.card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.card--bad .card__icon { background: var(--danger-soft); color: var(--danger); }
.card--good { border: 2px solid var(--brand); background: var(--brand-soft); }
.card--good .card__icon { background: var(--brand); color: #fff; }

/* ============ Pricing ============ */
.pricing { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 24px; display: flex; flex-direction: column; }
.price--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.price__badge { position: absolute; top: -14px; left: 24px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.price__name { font-weight: 700; font-size: 1.1rem; }
.price__amount { font-size: 1.3rem; font-weight: 700; margin-top: 6px; line-height: 1; }
.price__amount strong { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; }
.price__amount span { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.price__note { color: var(--muted); font-size: .92rem; margin: 8px 0 20px; }
.price__list { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.price__list li { position: relative; padding-left: 28px; color: var(--ink-2); }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.pricing__foot { text-align: center; margin-top: 26px; color: var(--ink-2); }
.pricing__foot a { font-weight: 700; color: var(--ink); }
.phase0 {
  display: grid; gap: 16px; align-items: center; max-width: 880px; margin: 0 auto;
  padding: 24px; border-radius: 22px; background: var(--ink); color: rgba(255,255,255,.8);
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}

.phase0__title { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.phase0__title strong { color: var(--accent); }
.phase0 .btn { position: relative; }
.pricing__then { text-align: center; font-weight: 700; margin: 28px 0 22px; color: var(--ink-2); }
.pricing__then::before, .pricing__then::after { content: "↓"; color: var(--brand); margin: 0 10px; }
.price__hint { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.price.is-picked { outline: 3px solid var(--accent); outline-offset: 4px; }

/* ============ Steps ============ */
.steps { display: grid; gap: 16px; counter-reset: s; }
.steps__item { position: relative; background: var(--soft); border-radius: var(--radius); padding: 26px 24px; }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.steps__item p { color: var(--ink-2); margin-top: 6px; }
.steps__time { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--brand); }

/* ============ Features ============ */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.features li {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 600; line-height: 1.3;
}
.features svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Reference ============ */
.refs { display: grid; gap: 20px; }
.ref { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.ref:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ref__bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.ref__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DAD7; }
.ref__bar span { margin-left: 8px; font-size: .75rem; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 6px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref__img { width: 100%; height: auto; aspect-ratio: 960 / 520; object-fit: cover; object-position: top; background: var(--soft); }
.ref__meta { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.ref__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.ref__name { font-size: 1.2rem; font-weight: 800; margin-top: 2px; }
.ref__name::after { content: " ↗"; color: var(--muted); font-weight: 600; transition: color .2s; }
.ref:hover .ref__name::after { color: var(--ink); }
.refs__more { text-align: center; margin-top: 28px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink-2); }
.ref__desc { color: var(--ink-2); font-size: .95rem; margin-top: 2px; }

/* ============ Tmavé bloky – jemná mřížka ============ */
.phase0::after, .local__map::after, .final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
  mask-image: linear-gradient(to left, #000, transparent 65%);
}
.phase0 > *, .local__map > *, .final__inner { position: relative; z-index: 1; }

/* ============ Local ============ */
.local { display: grid; gap: 28px; align-items: center; }
.local h2 { margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; }
.local__map { background: var(--ink); color: #fff; border-radius: 22px; padding: 28px 24px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }

.local__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.cities li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: rgba(255,255,255,.88); }
.cities .is-main { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.local__foot { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.7); }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--soft); border-radius: 14px; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.faq details[open] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* ============ Final CTA ============ */
.final { background: var(--ink); color: #fff; padding: 72px 0; text-align: center; position: relative; overflow: hidden; }

.final__inner { position: relative; }
.final p { color: rgba(255,255,255,.75); margin-top: 12px; font-size: 1.1rem; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.final__hours { font-size: .9rem !important; margin-top: 20px !important; }

/* ============ Footer ============ */
.footer { background: #050806; color: rgba(255,255,255,.72); padding: 48px 0 110px; font-size: .92rem; }
.footer__grid { display: grid; gap: 28px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__claim { margin-top: 14px; max-width: 30em; }
.footer__h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer__links { display: grid; gap: 6px; }
.footer--slim { padding: 28px 0; font-size: .8rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .8rem; display: grid; gap: 10px; }
.footer__company { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__company span:not(:last-child)::after { content: "·"; margin: 0 8px; opacity: .5; }

/* ============ Mobile bar ============ */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: auto 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10,15,12,.08);
  transform: translateY(110%); transition: transform .3s ease;
}
.mbar.is-visible { transform: none; }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.mbar__call { padding: 0 18px; border: 2px solid var(--ink); }
.mbar__call svg { width: 18px; height: 18px; fill: var(--brand); }
.mbar__cta { background: var(--accent); }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,15,12,.6); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 32px 24px 24px; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.modal__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: var(--soft); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__title { font-size: 1.4rem; font-weight: 800; line-height: 1.25; margin-bottom: 18px; letter-spacing: -.01em; }
.callback__note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ============ Cookie lišta ============ */
.cookie {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 560px; max-height: calc(100vh - 2 * var(--gutter)); overflow-y: auto;
  background: var(--ink); color: rgba(255,255,255,.85); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 20px; font-size: .88rem; line-height: 1.5;
  animation: pop .3s ease;
}
.cookie.is-leaving { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.cookie a { color: var(--accent); font-weight: 600; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie__btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cookie__btn:hover { border-color: #fff; }
.cookie__btn--accept { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.cookie__btn--accept:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cookie__panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 12px; }
.cookie__title { color: #fff; font-weight: 700; font-size: .95rem; }
.cookie__opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); cursor: pointer; }
.cookie__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie__switch { position: relative; width: 40px; height: 22px; margin-top: 2px; border-radius: 99px; background: rgba(255,255,255,.2); transition: background-color .2s; }
.cookie__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cookie__opt input:checked + .cookie__switch { background: var(--brand); }
.cookie__opt input:checked + .cookie__switch::after { transform: translateX(18px); }
.cookie__opt input:disabled + .cookie__switch { opacity: .6; }
.cookie__opt input:focus-visible + .cookie__switch { outline: 3px solid var(--accent); outline-offset: 2px; }
.cookie__info { display: grid; gap: 2px; }
.cookie__info strong { color: #fff; }
.cookie__info small { font-size: .78rem; color: rgba(255,255,255,.55); }
.cookie__info small:empty { display: none; }
.cookie__save .cookie__btn { width: 100%; }
body.has-cookie-bar .mbar { transform: translateY(110%); }

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

/* ============ Breakpoints ============ */
@media (min-width: 600px) {
  .strip__inner { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .hero__actions .btn { flex: 0 0 auto; }
  .refs { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cookie__actions { grid-template-columns: auto auto 1fr; }
  .cookie__btn--accept { grid-column: auto; }
}
@media (min-width: 760px) {
  .cards--3, .steps { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .local { grid-template-columns: 1.2fr 1fr; }
  .phase0 { grid-template-columns: 1fr auto; gap: 24px; padding: 28px 32px; }
  .section { padding: 88px 0; }
  .formcard { padding: 28px 28px 20px; }
}
@media (min-width: 960px) {
  :root { --gutter: 24px; --header-h: 76px; }
  .nav, .header__phone { display: flex; }
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__copy { padding-top: 12px; }
  .mbar { display: none; }
  .footer { padding-bottom: 40px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

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