/* v2: тёмный смелый дизайн. Unbounded (заголовки) + Geologica (текст), свой хостинг. */
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica Fallback"; src: local("Arial"); size-adjust: 125.62%; ascent-override: 77.61%; descent-override: 21.89%; line-gap-override: 0%; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 112%; ascent-override: 86%; descent-override: 21%; line-gap-override: 0%; }

:root {
  --bg: #0f1418;
  --bg-2: #161e24;
  --bg-3: #1f2a32;
  --line: rgba(255, 255, 255, .10);
  --text: #f1f4f2;
  --muted: #a5b3b8;
  --sun: #ffd25a;
  --cool: #79d8e0;
  --wa: #25d366;
  --wa-ink: #08291a;
  --radius-lg: 26px;
  --radius-md: 18px;
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Unbounded", "Unbounded Fallback", "Arial Black", sans-serif;
  --body: "Geologica", "Geologica Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cool); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #4be07f; color: var(--wa-ink); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: var(--text); }
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgba(15, 20, 24, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--text); }
.lang { color: var(--text); font-weight: 600; text-decoration: none; padding: 10px 12px; display: inline-flex; align-items: center; min-height: 44px; }

/* Первый экран */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.8vw, 4.1rem); }
.hero-sub { margin-top: 26px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { margin-top: 26px; font-size: .95rem; color: var(--muted); max-width: 52ch; }

/* Телефон с ботом */
.phone { position: relative; width: min(100%, 340px); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 44px; background: #05080a; border: 1px solid rgba(255, 255, 255, .18); padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 8px #1a2228; }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #0b141a; display: flex; flex-direction: column; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #1f2c34; }
.phone-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .75rem; flex: none; }
.phone-name { font-weight: 600; font-size: .95rem; }
.phone-status { font-size: .78rem; color: var(--muted); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #0b141a; }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.msg-bot { align-self: flex-start; background: #1f2c34; border-top-left-radius: 4px; }
.msg-me { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .45; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 16px; background: #0b141a; border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--wa); background: transparent; color: var(--text); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; text-decoration: none; text-align: left; }
.chip:hover { background: var(--wa); color: var(--wa-ink); }
.chip-ghost { border-color: rgba(255, 255, 255, .25); color: var(--muted); }
.chat-options .btn { min-height: 44px; padding: 0 16px; font-size: .88rem; }
.toast { position: absolute; left: 50%; top: 30px; width: calc(100% - 36px); transform: translate(-50%, -140%); opacity: 0; background: rgba(255, 255, 255, .96); color: #0f1418; border-radius: 16px; padding: 10px 14px; font-size: .82rem; line-height: 1.35; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; pointer-events: none; }
.toast b { display: block; font-size: .78rem; color: #3d5862; margin-bottom: 2px; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; } .toast { transition: none; } }
.phone-note { margin-top: 16px; text-align: center; font-size: .85rem; color: var(--muted); }

/* Полоса результатов */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.proof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-item { padding: 26px clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); text-decoration: none; color: inherit; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--sun); letter-spacing: -0.02em; line-height: 1.1; }
.proof-text { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.proof-item:hover .proof-text { color: var(--text); }

/* Разделы */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

/* Демо */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.demo-media { aspect-ratio: 4 / 3; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.demo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo h3 { font-size: 1.15rem; }
.demo p { color: var(--muted); font-size: .97rem; }
.demo-price { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--sun); }
.tag { display: inline-flex; align-self: flex-start; font-size: .78rem; font-weight: 600; color: var(--bg); background: var(--cool); border-radius: 999px; padding: 3px 10px; }

/* Кейсы */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; }
.case--flip .case-media { order: 2; }
.case-media { position: relative; }
.frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.frame-bar { padding: 10px 14px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.case-kicker { color: var(--muted); font-size: .95rem; }
.case h3 { margin-top: 10px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.case-metric { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--sun); line-height: 1; letter-spacing: -0.03em; }
.case-metric-note { margin-top: 8px; color: var(--muted); }
.case-text { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.case-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid, .case { grid-template-columns: 1fr; }
  .case--flip .case-media { order: 0; }
  .demos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-row .lang { margin-left: auto; }
  .proof-row { grid-template-columns: 1fr; }
  .proof-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .proof-item:first-child { border-top: 0; }
  .demos { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .top-row { gap: 8px; }
  .logo { font-size: .92rem; }
  .top-row .lang { padding-inline: 8px; }
  .top-row .btn-sm { padding: 0 12px; font-size: .88rem; }
}

/* Демо: карточки со скриншотами */
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.demo-media { overflow: hidden; }
.demo-includes { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; display: grid; gap: 4px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.demo-actions .btn { min-height: 46px; padding: 0 20px; font-size: .95rem; }

/* Реклама, схема бота, другие работы */
.metrics { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.metrics li { display: grid; grid-template-columns: 5.2em 1fr; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.metrics b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--sun); letter-spacing: -0.02em; }
.metrics span { color: var(--muted); }
.flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.flow li::before { content: counter(flow); width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); color: var(--sun); font-family: var(--display); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.more-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.more-item img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.more-body { padding: 18px 22px 22px; }
.more-body h3 { font-size: 1.1rem; }
.more-body p { margin-top: 8px; color: var(--muted); font-size: .97rem; }
.also { margin-top: clamp(40px, 6vw, 64px); color: var(--muted); }
.also h3 { color: var(--text); font-size: 1.1rem; }
.also ul { margin: 14px 0 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: 78ch; }

/* Цены */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pack { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.pack-for { color: var(--muted); font-size: .95rem; }
.pack h3 { font-size: 1.3rem; }
.pack ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; font-size: .97rem; }
.pack-price { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--sun); letter-spacing: -0.02em; }
.pack-month { color: var(--muted); font-size: .92rem; }
.pack .btn { margin-top: 6px; }
.pack-demo { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.services { margin-top: clamp(40px, 6vw, 64px); }
.services h3 { font-size: 1.25rem; margin-bottom: 16px; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.service-name { font-weight: 600; }
.service-what { grid-column: 1; color: var(--muted); font-size: .95rem; }
.service-price { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 700; white-space: nowrap; }
.service-price small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.terms { margin-top: 24px; color: var(--muted); font-size: .95rem; max-width: 78ch; }

/* Как работаю, вопросы, обо мне */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--sun); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin-top: 8px; color: var(--muted); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; min-height: 44px; }
.faq details[open] summary { color: var(--sun); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); }
.about-text p + p { margin-top: 14px; }
.about-text p { color: var(--muted); max-width: 62ch; }
.about-text strong { color: var(--text); }
.facts-list { margin: 0; display: grid; gap: 16px; }
.facts-list dt { font-weight: 600; color: var(--sun); font-size: .92rem; }
.facts-list dd { margin: 4px 0 0; color: var(--muted); }

/* Финал и подвал */
.final { background: var(--sun); color: var(--bg); }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; }
.final p { margin-top: 12px; font-size: 1.05rem; }
.final a { color: var(--bg); }
.final :focus-visible { outline-color: var(--bg); }
.final .btn-wa { background: var(--bg); color: var(--text); }
.final .btn-wa:hover { background: #26323a; color: var(--text); }
.final-actions { display: grid; gap: 8px; justify-items: start; }
.final .tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer { padding-block: 22px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; }
.footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.notfound { padding-block: 120px; }
.notfound p { margin-top: 16px; color: var(--muted); }
.notfound .btn { margin-top: 28px; }

@media (max-width: 960px) {
  .packs, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .more { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service-price { grid-column: 1; grid-row: auto; text-align: left; }
}
