/* Barvy motivu jako animovatelné vlastnosti: díky tomu může svítání plynule přejít z tmavého do světlého režimu */
@property --bg { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --surface { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --surface-2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --on-ink { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --line { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --line-strong { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --accent-text { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --glass { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --aurora-1 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --aurora-2 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --aurora-3 { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --aurora-opacity { syntax: '<number>'; inherits: true; initial-value: .5; }

:root, [data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f2fd;
  --ink: #1a1033;
  --on-ink: #ffffff;
  --muted: #6b6480;
  --line: rgba(76, 29, 149, .1);
  --line-strong: rgba(76, 29, 149, .2);
  --accent: #7c3aed;
  --accent-2: #c084fc;
  --on-accent: #ffffff;
  --accent-text: #6d28d9;
  --glass: rgba(255, 255, 255, .7);
  --shadow: 0 1px 2px rgba(76,29,149,.05), 0 14px 36px -14px rgba(76,29,149,.22);
  --aurora-1: #c4b5fd;
  --aurora-2: #e9d5ff;
  --aurora-3: #a78bfa;
  --aurora-opacity: .6;
  --radius: 22px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0818;
  --surface: #160f26;
  --surface-2: #1f1634;
  --ink: #f5f2ff;
  --on-ink: #0d0818;
  --muted: #a69cbf;
  --line: rgba(196, 181, 253, .1);
  --line-strong: rgba(196, 181, 253, .22);
  --accent: #8b5cf6;
  --accent-2: #d8b4fe;
  --on-accent: #ffffff;
  --accent-text: #c4b5fd;
  --glass: rgba(22, 15, 38, .65);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -16px rgba(0,0,0,.7);
  --aurora-1: #5b21b6;
  --aurora-2: #7e22ce;
  --aurora-3: #312e81;
  --aurora-opacity: .45;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s, color .4s; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Pozadí: aurora + zrno */
.aurora { position: absolute; inset: 0 0 auto 0; height: 900px; overflow: hidden; pointer-events: none; z-index: -1; opacity: var(--aurora-opacity); }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--aurora-1); top: -120px; left: -80px; }
.aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--aurora-2); top: 40px; right: -60px; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 380px; height: 380px; background: var(--aurora-3); top: 380px; left: 40%; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.1); } }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, var(--bg)); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Nav: plovoucí pilulka */
.nav { position: sticky; top: 14px; z-index: 20; padding: 0 16px; }
.nav__pill { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.logo__mark { width: 1.45em; height: 1.45em; flex: none; }
.logo__mark rect { fill: var(--accent); }
.logo__mark g { stroke: #fff; }
.logo__mark { transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__word b { font-weight: 700; color: var(--accent-text); }
.logo__word i { font-style: normal; font-weight: 500; color: var(--muted); }
.nav__links { display: flex; gap: 4px; font-size: 14px; color: var(--muted); }
.nav__links a { padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active { color: var(--ink); background: var(--surface-2); font-weight: 500; }
.nav__actions { display: flex; gap: 6px; align-items: center; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--ink); }
/* podstránky začínají nadpisem sekce, ne velkým úvodem */
body:not(.page-index) main > .section:first-child { padding-top: 72px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; overflow: hidden; position: relative; }
.theme-toggle svg { position: absolute; transition: transform .45s cubic-bezier(.5,1.6,.4,1), opacity .3s; }
[data-theme="light"] .i-moon, [data-theme="dark"] .i-sun { transform: translateY(24px) rotate(90deg); opacity: 0; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--on-ink); border: 0; padding: 10px 10px 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; }
.cart-count { background: var(--accent); color: var(--on-accent); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.1); } }

/* Typografie */
h1, h2 { font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
h1 { font-size: clamp(46px, 6.6vw, 92px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; padding-right: .06em; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(124,58,237,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(124,58,237,0); } 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); } }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-top: 24px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), #9d4edd); color: var(--on-accent); box-shadow: 0 10px 28px -8px rgba(124, 58, 237, .6); }
.btn--primary:hover { box-shadow: 0 14px 34px -8px rgba(124, 58, 237, .75); }
.btn--dark { background: var(--ink); color: var(--on-ink); }
.btn--ghost { border-color: var(--line-strong); background: var(--glass); backdrop-filter: blur(8px); }
.btn--block { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 100px; padding-bottom: 80px; }
.hero__cta { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.trust strong { color: var(--ink); font-weight: 600; }

.hero__visual { position: relative; height: 460px; }
.mock { position: absolute; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock--old { width: 62%; top: 10px; left: 0; transform: rotate(-5deg); filter: saturate(.6); opacity: .85; }
.mock__old-body { padding: 18px; font-family: "Times New Roman", serif; background: #e8e3c8; color: #1b2a8a; height: 220px; display: flex; flex-direction: column; gap: 10px; }
.mock__old-body b { font-size: 13px; color: #b00; }
.mock__old-body u { font-size: 12px; }
.mock__old-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.mock__old-grid span { height: 54px; background: #9db0c9; border: 2px outset #ccc; }
.mock--new { width: 72%; right: 0; top: 90px; z-index: 2; transform: rotate(2deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(2deg) translateY(-10px); } }
.mock__new-body { padding: 22px; display: grid; gap: 12px; height: 270px; align-content: start; }
.sk { border-radius: 8px; background: var(--surface-2); height: 12px; }
.sk--pill { width: 34%; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.sk--h { height: 22px; width: 90%; background: var(--ink); opacity: .85; }
.sk--short { width: 60%; }
.sk--btn { width: 32%; height: 30px; border-radius: 999px; background: var(--accent); margin-top: 4px; }
.mock__new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mock__new-grid span { height: 64px; border-radius: 10px; background: linear-gradient(135deg, var(--aurora-2), var(--aurora-3)); opacity: .7; }
.tag { position: absolute; top: 46px; right: 12px; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: #000; color: #fff; }
.tag--accent { background: var(--accent); color: var(--on-accent); }
.float-card { position: absolute; left: 4%; bottom: 0; z-index: 3; width: 180px; padding: 16px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob2 7s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(8px); } }
.float-card__label { font-size: 12px; color: var(--muted); }
.float-card strong { display: block; font-size: 30px; letter-spacing: -0.04em; }
.float-card svg { width: 100%; height: 30px; color: var(--accent-text); }

/* Fakta v číslech (pod úvodem) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 28px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.fact dd { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sekce */
.section { padding-top: 112px; padding-bottom: 32px; }
.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--sm { margin: 56px 0 20px; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Karty balíčků */
#products { align-items: start; }
/* Doplňky: všechny dlaždice stejně velké, rozbalený seznam se vznáší nad obsahem */
#addons { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
@media (max-width: 980px) { #addons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #addons { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.addon { position: relative; }
.addon__kind { display: inline-block; vertical-align: 2px; margin-right: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.addon__tag { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); margin-bottom: 6px; }
.addon__more { margin-top: 4px; padding-top: 10px; }
.addon__more .card__list--more { position: absolute; z-index: 5; left: -1px; top: calc(100% + 8px); width: calc(100% + 2px); margin: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s; position: relative; cursor: pointer; }
/* Zvýrazněný balíček (najetí myší / výběr klikem) */
.card.is-active { background: var(--ink); color: var(--on-ink); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 40%, var(--aurora-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity .3s; }
.card.is-active::before { opacity: 1; }
.card.is-active .card__desc, .card.is-active .card__list li, .card.is-active .card__meta, .card.is-active .price small, .card.is-active .card__more summary { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.card.is-active .card__more { border-color: color-mix(in srgb, var(--on-ink) 15%, transparent); }
.card.is-active .btn--dark { background: var(--accent); color: var(--on-accent); }
.badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card__desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 4px; }
.price small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__list { list-style: none; margin: 16px 0 20px; display: grid; gap: 8px; }
.card__more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.card__more summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.card__more summary::-webkit-details-marker { display: none; }
.card__more summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .25s; }
.card__more[open] summary::after { transform: rotate(45deg); }
.card__list--more { margin: 12px 0 0; }
.card__list--more li::before { background: transparent; color: var(--accent-text); border: 1px solid currentColor; }
.card.is-active .card__list--more li::before { color: var(--accent-2); }
.card__list li { font-size: 14px; padding-left: 28px; position: relative; }
.card__list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; display: grid; place-items: center; font-weight: 700; }

.addon { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.addon:hover { border-color: var(--line-strong); }
.addon p { font-size: 13px; color: var(--muted); flex: 1; }
.addon__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.add-sm { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 18px; transition: background .2s, transform .2s; }
.add-sm:hover { transform: rotate(90deg); }
.add-sm.in { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: none; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; position: relative; overflow: hidden; }
.tile p { color: var(--muted); font-size: 14px; }
.tile--big { grid-column: span 2; grid-row: span 2; background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), var(--surface); }
.tile__num { font-size: clamp(120px, 16vw, 220px); font-weight: 700; letter-spacing: -0.08em; line-height: .8; margin-bottom: auto; }
.tile--big h4 { font-size: 24px; }
.tile--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; justify-content: space-between; }
.tile--accent p { color: color-mix(in srgb, var(--on-accent) 65%, transparent); }
.tile--wide { grid-column: span 2; }
.gauge { position: relative; width: 120px; }
.gauge svg { width: 100%; display: block; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge__bg { stroke: rgba(255,255,255,.25); }
.gauge__fg { stroke: var(--on-accent); stroke-dasharray: 157; stroke-dashoffset: 6; }
.gauge b { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 28px; letter-spacing: -0.04em; }

/* Kroky */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; }
.steps li:first-child span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.steps h4 { margin: 20px 0 8px; font-size: 20px; }
.steps p { font-size: 14px; color: var(--muted); }

/* Pro první klienty */
.founding { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.founding__lead { color: var(--muted); font-size: 18px; margin-top: 24px; }
.founding__perks { list-style: none; display: grid; gap: 12px; }
.founding__perks li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: border-color .2s, transform .2s; }
.founding__perks li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.founding__perks p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.perk__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.seats { margin-top: 48px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 18px; display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.seats strong { color: var(--ink); }
.seats__bar { flex: 1; height: 10px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(10% - 4px), transparent calc(10% - 4px) 10%); }
.seats__bar span { display: block; height: 100%; width: calc(var(--n) * 10%); border-radius: inherit; background: var(--accent); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 18px; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* CTA */
.cta { margin: 112px 0 64px; position: relative; overflow: hidden; background: linear-gradient(135deg, #2e1065, #5b21b6 55%, #7c3aed); color: #fff; border-radius: 32px; padding: 88px 48px; text-align: center; border: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: -360px; transform: translateX(-50%); background: radial-gradient(circle, rgba(233,213,255,.45), transparent 65%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 em { background: linear-gradient(100deg, #e9d5ff, #f5d0fe); -webkit-background-clip: text; background-clip: text; }
.cta p { color: rgba(255,255,255,.75); margin: 16px auto 32px; max-width: 480px; }
.cta .btn--primary { background: #fff; color: #5b21b6; box-shadow: none; }
.cta__form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.cta__form input::placeholder { color: rgba(255,255,255,.6); }
.cta__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 18px; color: #fff; outline: none; }

.footer { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }

/* Košík */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; z-index: 40; transform: translateX(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
body.drawer-open .overlay { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }

.line { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line h4 { font-size: 15px; }
.line small { color: var(--muted); font-size: 13px; }
.line__right { text-align: right; }
.line__remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 64px 0; }
.empty p { margin-bottom: 20px; }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.sum--total { color: var(--ink); font-size: 18px; font-weight: 600; margin: 10px 0 18px; }

.form { display: grid; gap: 12px; padding: 16px 0; }
.form label { font-size: 13px; font-weight: 500; display: grid; gap: 6px; }
.form input, .form textarea { border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.next-steps { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.next-steps h4 { font-size: 14px; margin-bottom: 8px; }
.next-steps ol { padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.next-steps b { color: var(--ink); font-weight: 600; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); padding: 0; }
.check small { display: block; color: var(--muted); margin-top: 4px; }
.foot-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; margin-top: 10px; width: 100%; }
.done { text-align: center; padding: 56px 8px; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 28px; }
.done p { color: var(--muted); margin-top: 8px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: var(--on-ink); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 50; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.toast.show { transform: translate(-50%, 0); }

/* Služby na úvodní stránce */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 22px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.service:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.service h3 { font-size: 28px; letter-spacing: -0.03em; }
.service__copy p { color: var(--muted); margin: 6px 0 18px; font-size: 16px; }
.service--main { grid-column: 1 / -1; padding: 32px; background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--surface); }
.service--main h3 { font-size: 40px; }
.service--main .service__copy p { font-size: 18px; }
.badge-inline { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); margin-bottom: 12px; }
.link-inline { color: var(--accent-text); font-weight: 500; white-space: nowrap; }
.link-inline:hover { text-decoration: underline; }
.service__visual { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }

/* Ceník: kotvy na služby nesmí schovat pevná navigace */
#products .card { scroll-margin-top: 110px; }

/* Reference: porovnání před a po (posuvník) */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.refs:empty { display: none; }
.refs:not(:empty) + .refs-empty { display: none; }
.ref { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ref__compare { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ref__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ref__compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ref__slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ref__tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: #000; color: #fff; pointer-events: none; }
.ref__tag--after { left: auto; right: 12px; background: var(--accent); color: var(--on-accent); }
.ref__info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 8px 6px; }
.ref__info p { color: var(--muted); font-size: 14px; }
.ref__score { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ref__score b { color: #16a34a; }

.refs-empty { text-align: center; max-width: 640px; margin: 0 auto; padding: 8px 0 24px; }
.refs-empty h3 { font-size: 26px; letter-spacing: -0.03em; margin-top: 28px; }
.refs-empty p { color: var(--muted); margin: 10px auto 24px; max-width: 480px; }
.refs-empty__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.refs-empty__frame { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; border: 2px dashed var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.refs-empty__side { position: relative; background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, transparent 12px 24px); }
.refs-empty__side--after { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.refs-empty__handle { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line-strong); }
.refs-empty__handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }

/* Co nabízíme */
.offer { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.offer__item { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.offer__item:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.offer__item p { color: var(--muted); font-size: 15px; }
.offer__num { font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: .08em; }
.offer__item--main { grid-column: span 4; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--surface); justify-content: flex-end; min-height: 220px; }
.offer__item--main h3 { font-size: 30px; letter-spacing: -0.03em; }
.offer__item:nth-child(3), .offer__item:nth-child(4) { grid-column: span 3; }
.offer__item--own { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent), #9d4edd); color: var(--on-accent); border-color: transparent; }
.offer__item--own p, .offer__item--own .offer__num { color: rgba(255,255,255,.82); }
.offer__item--own h3 { font-size: 26px; letter-spacing: -0.03em; }

/* Vyber si: ukázky webů */
.section__sub { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 620px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab:disabled { cursor: default; opacity: .7; }
.tab small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); }
.btn--sm { padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.btn--sm.is-chosen { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.demos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.demo:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-4px); }
.demo__frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.demo__bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.demo__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.demo__bar span { margin-left: 10px; font-size: 11px; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 999px; flex: 1; max-width: 200px; }
.demo__view { height: 330px; overflow: hidden; position: relative; }
.demo__page { transition: transform 2.8s cubic-bezier(.45,0,.25,1); font-family: system-ui, sans-serif; font-size: 11px; line-height: 1.4; min-height: 100%; }
.demo:hover .demo__page { transform: translateY(calc(-100% + 330px)); }
.demo__page h5 { font-size: 12px; margin-bottom: 8px; }
.demo__page nav { display: flex; gap: 12px; align-items: center; }
.demo__info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 8px 6px; }
.demo__info p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Obec */
.d-obec { background: #f6f3ea; color: #1f2e27; }
.o-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 3px solid #2f5d48; }
.o-brand { display: flex; gap: 8px; align-items: center; }
.o-brand b { display: block; font-size: 13px; }
.o-brand small { color: #6c7a72; font-size: 9px; }
.o-crest { width: 24px; height: 28px; background: linear-gradient(#2f5d48 50%, #d9b24c 50%); border-radius: 3px 3px 12px 12px; }
.o-btn { background: #2f5d48; color: #fff; padding: 4px 10px; border-radius: 4px; }
.o-hero { position: relative; height: 140px; background: linear-gradient(#cfe3ea, #eaf2e9); }
.o-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.o-hero__txt { position: absolute; left: 16px; top: 18px; }
.o-hero__txt b { display: block; font-size: 20px; font-family: Georgia, serif; }
.o-hero__txt span { color: #3d5249; }
.o-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px; margin-top: -24px; position: relative; }
.o-quick span { background: #fff; border-radius: 8px; padding: 10px 6px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.08); font-size: 16px; }
.o-quick b { display: block; font-size: 10px; margin-top: 4px; }
.o-news { padding: 6px 16px 14px; }
.o-news p { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e3ddcc; }
.o-news time { color: #2f5d48; font-weight: 700; min-width: 40px; }
.o-foot { background: #2f5d48; color: #fff; padding: 16px; display: flex; justify-content: space-between; }

/* Sportovní klub */
.d-sport { background: #0b0f1a; color: #fff; }
.s-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.s-head b { font-size: 15px; font-style: italic; letter-spacing: .02em; }
.s-head b span { color: #ffcc00; }
.s-head nav { color: #9aa3b5; }
.s-btn { background: #ffcc00; color: #0b0f1a; padding: 4px 10px; font-weight: 700; transform: skewX(-10deg); }
.s-hero { padding: 22px 16px 26px; background: linear-gradient(120deg, #13203d, #0b0f1a 60%), #0b0f1a; position: relative; overflow: hidden; }
.s-hero::after { content: ""; position: absolute; right: -30px; top: -20px; width: 180px; height: 220px; background: repeating-linear-gradient(-60deg, rgba(255,204,0,.18) 0 10px, transparent 10px 22px); }
.s-hero small { color: #ffcc00; font-weight: 600; }
.s-hero b { display: block; font-size: 38px; line-height: .9; font-style: italic; font-weight: 900; margin: 8px 0 14px; }
.s-match { display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); padding: 6px 12px; border-left: 3px solid #ffcc00; font-weight: 800; }
.s-match em { color: #ffcc00; font-size: 10px; }
.s-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.s-results div { background: #151b2b; padding: 10px; border-radius: 6px; }
.s-results small { color: #9aa3b5; font-size: 9px; text-transform: uppercase; }
.s-results b { display: block; font-size: 22px; font-weight: 900; color: #ffcc00; }
.s-results span { color: #c8cfdc; font-size: 10px; }
.s-table { padding: 4px 16px 14px; }
.s-table p { display: flex; gap: 10px; padding: 7px 8px; border-bottom: 1px solid #1d2436; }
.s-table p span { color: #9aa3b5; width: 12px; }
.s-table p b { margin-left: auto; }
.s-table p.me { background: rgba(255,204,0,.12); color: #ffcc00; }
.s-cta { margin: 0 16px 16px; padding: 14px; background: #ffcc00; color: #0b0f1a; font-weight: 800; text-transform: uppercase; font-style: italic; }

/* Mateřská škola */
.d-ms { background: #fffaf2; color: #3b2f5c; font-family: "Comic Neue", "Trebuchet MS", system-ui, sans-serif; }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.m-head b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.m-sun { width: 18px; height: 18px; border-radius: 50%; background: #ffb703; box-shadow: 0 0 0 4px #ffe8a3; }
.m-hero { margin: 4px 12px; padding: 26px 18px; border-radius: 24px; background: #a0c4ff; position: relative; overflow: hidden; min-height: 150px; }
.m-hero b { display: block; font-size: 19px; max-width: 62%; line-height: 1.15; position: relative; z-index: 1; }
.m-btn { display: inline-block; margin-top: 12px; background: #ff6b6b; color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; position: relative; z-index: 1; }
.m-blob { position: absolute; border-radius: 50%; }
.m-blob--1 { width: 90px; height: 90px; background: #ffd6a5; right: 20px; top: 16px; }
.m-blob--2 { width: 50px; height: 50px; background: #caffbf; right: 90px; bottom: -10px; }
.m-blob--3 { width: 36px; height: 36px; background: #ffadad; right: 10px; bottom: 14px; }
.m-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.m-cards div { background: var(--c); border-radius: 16px; padding: 12px; }
.m-cards b { display: block; margin-bottom: 4px; }
.m-foot { margin: 0 12px 12px; padding: 14px; text-align: center; border-radius: 16px; background: #3b2f5c; color: #fff; }

/* Ordinace */
.d-doc { background: #fff; color: #12343b; }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e3eef0; }
.d-head b { color: #0f766e; font-size: 13px; }
.d-btn { background: #0f766e; color: #fff; padding: 4px 10px; border-radius: 999px; }
.d-btn--lg { display: inline-block; margin-top: 12px; padding: 7px 14px; }
.d-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding: 22px 16px; background: linear-gradient(#f0f9f8, #fff); }
.d-hero small { color: #0f766e; font-weight: 600; }
.d-hero b { display: block; font-size: 19px; line-height: 1.2; margin-top: 6px; }
.d-photo { border-radius: 16px; background: radial-gradient(circle at 50% 38%, #f4d6c1 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #fff 0 42%, transparent 43%), linear-gradient(#99d5cf, #5eb3aa); min-height: 120px; }
.d-notice { margin: 4px 16px 12px; padding: 10px 12px; background: #fff7e6; border-left: 3px solid #f59e0b; border-radius: 6px; }
.d-hours { padding: 4px 16px 18px; }
.d-hours p { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #d5e6e8; }
.d-hours span { color: #5b7a80; }

/* Úvod: vycentrovaný, s kuželem světla shora a světlem za kurzorem */
.hero--center { display: block; position: relative; text-align: center; padding-top: 120px; padding-bottom: 96px; isolation: isolate; }
.hero--center .chip { margin-bottom: 28px; }
.hero--center h1 { max-width: 980px; margin: 0 auto; }
.hero--center .lead { margin: 26px auto 0; max-width: 620px; }
.hero--center .hero__cta, .hero--center .trust { justify-content: center; }
.hero__spot { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); }
.hero--center:hover .hero__spot { opacity: 1; }

/* Svítání: noc → červánky a vycházející slunce → den (jen pozadí, text je vidět hned) */
.dawn { display: none; }
.dawn-play .dawn { display: block; position: absolute; z-index: -2; top: -110px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none; }
.dawn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 70%, var(--bg)); animation: dawn-fade 3.6s ease forwards; }
.dawn__night, .dawn__sunrise, .dawn__stars, .dawn__sun { position: absolute; }
.dawn__night { inset: 0; background: linear-gradient(#060920, #161038 55%, #2a1b52); animation: night-out 3.6s ease forwards; }
.dawn__stars { inset: 0; animation: stars-out 1.8s ease forwards;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 42%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 35% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 48% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 61% 9%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 73% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 86% 16%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 93% 44%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 15% 60%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 80% 58%, #fff 50%, transparent 52%); }
.dawn__sunrise { inset: 0; opacity: 0; background: linear-gradient(#2c2466 0%, #6d4a9c 38%, #d98aa8 68%, #ffc9a0 100%); animation: sunrise 3.6s ease forwards; }
.dawn__sun { left: 50%; bottom: -200px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff8e6 0 22%, #ffd58a 36%, rgba(255,160,110,.55) 52%, transparent 70%); animation: sun-rise 3.6s cubic-bezier(.25,.7,.2,1) forwards; }
@keyframes night-out { 0%, 15% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes stars-out { to { opacity: 0; } }
@keyframes sunrise { 0% { opacity: 0; } 30%, 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sun-rise { 0% { opacity: .5; transform: translateY(60px) scale(.8); } 55% { opacity: 1; transform: translateY(-220px) scale(1); } 100% { opacity: 0; transform: translateY(-300px) scale(1.25); } }
@keyframes dawn-fade { to { opacity: 0; } }

/* během svítání se celý web plynule přepne z tmavého do světlého režimu */
.dawn-to-light { transition: --bg 2.8s ease, --surface 2.8s ease, --surface-2 2.8s ease, --ink 2.8s ease, --on-ink 2.8s ease, --muted 2.8s ease, --line 2.8s ease, --line-strong 2.8s ease, --accent 2.8s ease, --accent-2 2.8s ease, --on-accent 2.8s ease, --accent-text 2.8s ease, --glass 2.8s ease, --aurora-1 2.8s ease, --aurora-2 2.8s ease, --aurora-3 2.8s ease, --aurora-opacity 2.8s ease; }
.dawn-to-light body { transition: none; }

/* text úvodu: v noci světlý, s rozedněním přejde do běžných barev */
.dawn-play .hero--center { animation: dawn-ink 3.6s ease forwards; }
.dawn-play .hero--center .lead, .dawn-play .hero--center .trust li { animation: dawn-muted 3.6s ease forwards; }
.dawn-play .hero--center .trust strong { animation: dawn-ink 3.6s ease forwards; }
.dawn-play .hero--center .chip, .dawn-play .hero--center .btn--ghost { animation: dawn-glass 3.6s ease forwards; }
@keyframes dawn-ink { 0%, 40% { color: #fff; } 100% { color: var(--ink); } }
@keyframes dawn-muted { 0%, 40% { color: rgba(255,255,255,.85); } 100% { color: var(--muted); } }
@keyframes dawn-glass { 0%, 40% { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; } 100% { background: var(--glass); border-color: var(--line-strong); color: var(--ink); } }

/* Služby: tři karty, které se při najetí „rozsvítí“ */
.services--3 { grid-template-columns: repeat(3, 1fr); }
.service--lamp { position: relative; overflow: hidden; gap: 10px; padding: 28px; }
.service--lamp::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at 30px 30px, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.service--lamp > * { position: relative; z-index: 1; }
.service--lamp:hover::before, .service--featured::before { opacity: 1; }
.service--lamp p { color: var(--muted); flex: 1; margin-bottom: 14px; }
.service--lamp .btn { align-self: flex-start; }
.service__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); transition: background .4s, color .4s, box-shadow .4s; }
.service__icon svg { width: 26px; height: 26px; }
.service--lamp:hover .service__icon, .service--featured .service__icon { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent), 0 0 32px color-mix(in srgb, var(--accent) 55%, transparent); }
.service--featured { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.service--lamp .badge-inline { position: absolute; top: 28px; right: 28px; margin: 0; }

/* Přepnutí tmavý/světlý: kruh světla nebo tmy od tlačítka */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-circle .65s cubic-bezier(.4,0,.2,1); }
@keyframes theme-circle { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 30px)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 30px)); } }

/* Patička s identifikací provozovatele */
.footer { display: block; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; }
.footer__legal p { max-width: 720px; }
.footer__legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--ink); text-decoration: underline; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card > p { color: var(--muted); }
.contact-card strong { color: var(--ink); }
.contact-card.form { padding: 28px; }
.form-legal, .cta__legal { font-size: 12px; color: var(--muted); }
.form-legal a, .cta__legal a { text-decoration: underline; }
.cta .cta__legal { color: rgba(255,255,255,.65); margin: 14px 0 0; max-width: none; }
.form .check a { text-decoration: underline; color: var(--accent-text); }

/* Právní stránky (obchodní podmínky, ochrana údajů) */
.legal { max-width: 820px; }
.legal__title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal p { margin-bottom: 10px; color: var(--muted); }
.legal p strong { color: var(--ink); }
.legal a { color: var(--accent-text); text-decoration: underline; }
.legal__box { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 20px 22px; background: var(--surface); }
.legal__table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 600; background: var(--surface-2); }
.legal__table td { color: var(--muted); }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table thead { display: none; }
  .legal__table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  .legal__table td { border: 0; padding: 4px 12px; }
}

/* Odhalení při scrollu */
.reveal { opacity: 0; transform: translateY(24px); filter: brightness(.25) blur(3px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter 1s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

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

/* Lišta se stránkami: na menším notebooku zhustit, schovat až na tabletu */
@media (max-width: 1100px) {
  .nav__pill { padding-left: 16px; gap: 10px; }
  .nav__links { gap: 0; font-size: 13px; }
  .nav__links a { padding: 8px 10px; }
  .logo { font-size: 18px; }
}
@media (max-width: 820px) {
  /* odkazy na stránky se přesunou do druhého řádku lišty a dají se posouvat do strany */
  .nav__pill { flex-wrap: wrap; border-radius: 24px; padding: 8px 8px 6px 16px; row-gap: 6px; }
  .nav__links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px 0 -10px; padding: 0 4px; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
}

/* Responzivita */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero__visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .footer { flex-wrap: wrap; gap: 16px; }
  .grid--3, .steps, .founding, .demos { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr 1fr; }
  .services, .service--main, .refs, .services--3 { grid-template-columns: 1fr; }
  .offer__item, .offer__item:nth-child(3), .offer__item:nth-child(4) { grid-column: span 1; }
  .offer__item--main, .offer__item--own { grid-column: 1 / -1; }
  .founding { gap: 32px; }
  .seats { flex-direction: column; align-items: stretch; }
  .grid--4, .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 0 10px; }
  .nav__pill { padding-left: 16px; }
  .section { padding-top: 80px; }
  .hero__visual { height: 340px; }
  .grid--4, .bento { grid-template-columns: 1fr; }
  .tile--big, .tile--wide { grid-column: auto; grid-row: auto; }
  .cta { padding: 56px 20px; border-radius: 24px; }
  .cta__form { flex-direction: column; border-radius: 20px; }
  .demo__info { flex-direction: column; align-items: flex-start; }
  .offer { grid-template-columns: 1fr; }
}
