/* Zlatá éra podnikání v3: one dark theme, one accent (gold), one button. Mobile first. */
:root {
  --bg: #07090d; --bg2: #0d1117; --card: #121821; --line: rgba(255,255,255,.09);
  --tx: #f4f1ea; --mu: #a9adb6; --gold: #f2c14e; --gold2: #ffd978; --ink: #14110a;
  --r: 18px; --g: 20px;
  --ff: 'Inter Tight', system-ui, -apple-system, sans-serif; --fd: 'Anton', 'Inter Tight', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 17px/1.55 var(--ff); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 700; }
.gold { color: var(--gold); font-style: normal; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--g); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.preview-flag { position: fixed; top: 10px; right: 10px; z-index: 60; background: rgba(242,193,78,.14); color: var(--gold); border: 1px solid rgba(242,193,78,.4); font: 700 11px/1 var(--ff); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 0 0 56px; background: var(--bg); }
.hero-photo img { width: 100%; height: 240px; object-fit: cover; object-position: 50% 25%; }
.hero-photo { position: relative; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,13,0) 45%, var(--bg) 97%); }
.hero-in { position: relative; margin-top: -56px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(13,17,23,.75); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--tx); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255,77,77,.18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,77,77,0); } }
.wordmark { font: 400 22px/1 var(--fd); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 22px 0 12px; }
.wordmark-sm { font-size: 18px; margin: 0 0 14px; }
h1 { font: 800 clamp(31px, 8.6vw, 60px)/1.08 var(--ff); letter-spacing: -.025em; text-wrap: balance; }
.sub { color: var(--mu); font-size: 17px; margin: 16px auto 26px; max-width: 620px; text-wrap: pretty; }
.bez { list-style: none; padding: 0; margin: 16px 0 0; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--mu); font-size: 14px; }
.bez li { display: flex; align-items: center; gap: 6px; }
.bez svg { width: 16px; height: 16px; color: var(--gold); }

/* button: the only bright element */
.btn { text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; border: 0; cursor: pointer; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--ink); font: 800 17px/1 var(--ff); letter-spacing: .01em; padding: 18px 22px; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(242,193,78,.55), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .15s, box-shadow .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(242,193,78,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .x:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-xl { padding: 20px 24px; font-size: 18px; }
.micro { color: var(--mu); font-size: 14px; margin-top: 12px; }
.cta-row { text-align: center; margin-top: 40px; }

/* sections */
.sec { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg2); }
.h2 { font: 800 clamp(28px, 7vw, 44px)/1.1 var(--ff); letter-spacing: -.02em; text-align: center; text-wrap: balance; margin-bottom: 34px; }
.lead { color: var(--mu); text-align: center; margin: -18px auto 34px; max-width: 560px; }

/* program: identical episode cards */
.eps { display: grid; gap: 16px; }
.ep { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; }
.ep-thumb { margin: -22px -20px 18px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.ep-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ep-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ep-n { font: 400 22px/1 var(--fd); letter-spacing: .04em; color: var(--gold); text-transform: uppercase; }
.ep-when { font-size: 13px; font-weight: 700; color: var(--tx); background: rgba(255,255,255,.06); border-radius: 99px; padding: 6px 11px; white-space: nowrap; }
.ep h3 { font: 800 21px/1.22 var(--ff); letter-spacing: -.01em; margin-bottom: 16px; text-wrap: balance; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: #d9dbe0; font-size: 16px; line-height: 1.45; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(242,193,78,.14); color: var(--gold); display: grid; place-items: center; margin-top: 1px; }
.tick svg { width: 14px; height: 14px; }

/* proof */
.big { font: 400 clamp(64px, 20vw, 120px)/1 var(--fd); color: var(--gold); text-align: center; letter-spacing: .01em; margin-bottom: 14px; }
.story { display: grid; gap: 12px; text-align: center; color: #d9dbe0; margin-top: -14px; }
.story p:last-child { color: var(--tx); font-weight: 700; }
/* agent flow: message › team of agents › outputs › result */
.flow { margin: 0 auto 26px; max-width: 640px; text-align: center; }
.fl-title { display: block; font: 400 clamp(26px, 7vw, 38px)/1.4 var(--fd); letter-spacing: .02em; text-wrap: balance; text-transform: uppercase; color: var(--tx); margin: 0 0 18px; }
.fl-msg { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid rgba(255,255,255,.14); border-radius: 18px 18px 18px 6px; padding: 12px 18px 12px 12px; text-align: left; }
.fl-phone { flex: none; width: 26px; height: 42px; border: 2px solid var(--gold); border-radius: 7px; position: relative; }
.fl-phone i { position: absolute; left: 50%; bottom: 4px; width: 8px; height: 2px; margin-left: -4px; background: var(--gold); border-radius: 2px; }
.fl-msg p { font-weight: 700; font-size: 17px; }
.fl-pipe { width: 3px; height: 30px; margin: 0 auto; background: rgba(255,255,255,.1); position: relative; overflow: hidden; border-radius: 2px; }
.fl-pipe i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(1); box-shadow: 0 0 8px var(--gold); }
.fl-core { position: relative; width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffe7a6 0%, var(--gold) 45%, #b8862a 100%); box-shadow: 0 0 40px rgba(242,193,78,.45), inset 0 -8px 20px rgba(0,0,0,.25); }
.fl-core b { color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.1; max-width: 90px; }
.fl-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(242,193,78,.5); animation: ring 2.4s ease-out infinite; }
.fl-ring.r2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.fl-out { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.fo { position: relative; background: var(--card); border: 1px solid var(--gold); border-radius: 14px; padding: 12px 12px 12px 40px; transition: background .35s, border-color .35s, transform .35s; }
.fo b { display: block; font-size: 15px; line-height: 1.2; color: var(--tx); }
.fo span:last-child { display: block; font-size: 13px; color: var(--mu); line-height: 1.3; margin-top: 2px; }
.fo-ck { position: absolute; left: 11px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .3s, opacity .3s; }
.fo-ck svg { width: 12px; height: 12px; }
.fl-result { margin: 4px 0 0; }
/* running: start dark, light up step by step (static/no-JS = everything finished) */
.flow.run .fl-msg { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.flow.run .fl-pipe i { transform: scaleY(0); transition: transform .45s ease-in; }
.flow.run .fl-core { filter: grayscale(1) brightness(.45); transition: filter .5s; }
.flow.run .fl-core .fl-ring { display: none; }
.flow.run .fo { border-color: var(--line); }
.flow.run .fo-ck { transform: scale(0); opacity: 0; }
.flow.run .fl-result { opacity: 0; transition: opacity .4s; }
.flow.s1 .fl-msg { opacity: 1; transform: none; }
.flow.s2 .fl-pipe:nth-of-type(2) i { transform: scaleY(1); }
.flow.s3 .fl-core { filter: none; }
.flow.s3 .fl-core .fl-ring { display: block; }
.flow.s4 .fl-pipe:nth-of-type(4) i { transform: scaleY(1); }
.flow .fo.on { border-color: var(--gold); background: #1b1810; transform: translateY(-2px); }
.flow .fo.on .fo-ck { transform: none; opacity: 1; }
.flow.s6 .fl-pipe:nth-of-type(5) i { transform: scaleY(1); }
.flow.s7 .fl-result { opacity: 1; }
/* odd tile count: the last tile takes the whole row on the phone */
.fo:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .fl-out { grid-template-columns: repeat(3, 1fr); } .fo:last-child:nth-child(odd) { grid-column: auto; } .fl-core { width: 150px; height: 150px; } }

/* proof under a timeline step */
.tl-proof { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }
/* for whom */
.fw { display: grid; gap: 14px; margin-top: 8px; }
.fw-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.fw-yes { border-color: rgba(242,193,78,.45); }
.fw-col h3 { font-size: 18px; margin: 0 0 12px; }
.fw-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fw-col li { position: relative; padding-left: 32px; color: var(--tx); line-height: 1.45; }
.fw-ic { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.fw-yes .fw-ic { background: var(--gold); color: var(--ink); }
.fw-yes .fw-ic svg { width: 13px; height: 13px; }
.fw-no .fw-ic { background: rgba(255,255,255,.1); color: var(--mu); font-size: 16px; }
.fw-no li { color: var(--mu); }
@media (min-width: 760px) { .fw { grid-template-columns: 1.4fr 1fr; } }

/* details */
.facts { display: grid; gap: 14px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.fact h3 { font: 400 22px/1 var(--fd); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.fact p { color: #d9dbe0; font-size: 16px; }


/* about */
.about { display: grid; gap: 30px; }
.about-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 3px solid rgba(242,193,78,.55); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(242,193,78,.1)); }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline h3 { font: 800 19px/1.25 var(--ff); color: var(--gold); margin-bottom: 6px; }
.timeline p { color: #d9dbe0; font-size: 16px; }

/* final */
.final { background: radial-gradient(120% 80% at 50% 0%, rgba(242,193,78,.12), transparent 60%), var(--bg); }
.final .lead { margin-top: -18px; }
.when { font-weight: 700; margin: -8px 0 22px; }
.foot { color: #6f747d; font-size: 13px; text-align: center; padding: 28px 0 110px; border-top: 1px solid var(--line); }

/* sticky phone button */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(7,9,13,0), var(--bg) 35%); transform: translateY(110%); transition: transform .25s; display: flex; justify-content: center; }
.sticky.on { transform: none; }

/* form modal */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.sheet { position: relative; width: 100%; max-width: 460px; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); text-align: center; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h2 { font: 800 26px/1.15 var(--ff); letter-spacing: -.01em; }
.sheet-when { color: var(--mu); font-size: 14px; margin: 6px 0 20px; }
.x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.06); color: var(--tx); font-size: 24px; line-height: 1; border-radius: 50%; cursor: pointer; }
.f { display: block; text-align: left; margin-bottom: 12px; }
.f span { display: block; font-size: 13px; font-weight: 700; color: var(--mu); margin-bottom: 6px; }
.f input { width: 100%; font: 400 17px/1.2 var(--ff); color: var(--tx); background: var(--card); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 15px 14px; }
.f input::placeholder { color: #6f747d; }
.f input:focus { border-color: var(--gold); outline: none; }
.err { color: #ff8a8a; font-size: 14px; min-height: 0; margin: 0 0 8px; text-align: left; }
.err:empty { display: none; }
.sheet .btn { max-width: none; margin-top: 4px; }
.ok-unused { display: none; margin-top: 16px; background: rgba(242,193,78,.1); border: 1px solid rgba(242,193,78,.35); border-radius: 12px; padding: 14px; font-size: 15px; text-align: left; }
.ok.on { display: block; }

/* desktop */
@media (min-width: 760px) {
  :root { --g: 32px; }
  body { font-size: 18px; }
  .hero { padding: 0; min-height: 720px; display: flex; align-items: center; }
  .hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; }
  .hero-photo img { height: 100%; object-position: 50% 15%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(7,9,13,.6) 30%, rgba(7,9,13,0) 60%), linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0) 25%); }
  .hero-in { margin: 0 auto; padding-top: 90px; padding-bottom: 90px; text-align: left; }
  .hero-in > * { max-width: 600px; }
  .sub { margin-left: 0; }
  .bez { justify-content: flex-start; }
  .sec { padding: 110px 0; }
  .h2 { margin-bottom: 48px; }
  .eps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ep { padding: 28px; }
  .ep-thumb { margin: -28px -28px 22px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
  .about .h2 { text-align: left; }
  .about-photo img { width: 240px; height: 240px; }
  .modal { align-items: center; }
  .sheet { border-radius: 22px; padding: 36px 32px 30px; }
  .sticky { display: none; }
  .foot { padding-bottom: 32px; }
}

/* motion: content is visible without JS; .anim is set by app.js */
.anim [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dot, .sheet, .fl-ring { animation: none; }
  .anim [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* thank-you page */
.ty-in { padding: 64px var(--g) 40px; text-align: center; }
.ty-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(242,193,78,.14); color: var(--gold); }
.ty-ok svg { width: 32px; height: 32px; }
.ty-h { font-size: clamp(30px, 8vw, 46px); margin-bottom: 14px; }
.ty .lead { margin: 0 auto 36px; }
.ty-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.ty-step { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; }
.ty-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 17px/34px var(--ff); text-align: center; }
.ty-step h2 { font: 800 19px/1.25 var(--ff); margin: 5px 0 6px; }
.ty-step p { color: #d9dbe0; font-size: 16px; }
.cal-days { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 6px; font-size: 15px; color: #d9dbe0; }
.cal-days b { color: var(--gold); font-weight: 700; display: inline-block; min-width: 58px; }
.ty .btn { max-width: none; }
.ty .foot { padding-bottom: 32px; }
