/* Главная страница сайта (src/landing.js): цвета, шрифты и скругления — как в приложении */
@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin-wght-normal.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: Mono; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0400-045F; }
@font-face { font-family: Mono; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root { --bg: #F4F1EA; --ink: #14213D; --mut: #55607A; --blue: #1B49C9; --blueSoft: #E4EBFC; --orange: #C2410C; --line: #D6CFBE; --dev: #0B1226; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Onest, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); } a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.pad { padding-inline: 16px; }
.wrap-in { max-width: 1200px; margin: 0 auto; }
.sec { padding-top: 72px; }
.sec2 { padding-top: 24px; }
.center { text-align: center; }
.kicker { font-family: Mono, ui-monospace, monospace; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
h2 { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.sub { font-size: 19px; line-height: 1.5; color: var(--mut); margin-top: 18px; }
h2.center + .sub { max-width: 620px; margin-inline: auto; }

/* шапка */
/* шапка закреплена сверху; при прокрутке появляется тень (public/js/landing.js) */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(244,241,234,.92); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); transition: box-shadow .2s; }
.bar.scrolled { box-shadow: 0 1px 0 rgba(20,33,61,.08), 0 10px 30px rgba(13,23,48,.06); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
section[id] { scroll-margin-top: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand.small { font-size: 15px; font-weight: 700; gap: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--mut); text-decoration: none; } .nav a:hover { color: var(--ink); }
.acts { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { list-style: none; height: 44px; min-width: 56px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang .menu { position: absolute; inset-inline-end: 0; top: 52px; z-index: 10; width: min(560px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px rgba(13,23,48,.18); display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px; }
.lang .menu a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang .menu a:hover { background: var(--bg); }
.lang .menu a[aria-current] { background: var(--blueSoft); color: var(--blue); font-weight: 700; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 30px; border-radius: 30px; text-decoration: none; font-size: 18px; font-weight: 700; white-space: nowrap; }
.btn .tg { flex: none; } .btn .tg path { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.btn.white { background: #fff; color: var(--ink); } .btn.white .tg path { stroke: var(--blue); } .btn.white:hover { background: #E9EEFB; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; } .btn.dark .tg path { stroke: #fff; } .btn.dark:hover { background: #24365F; color: #fff; }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn .lap { flex: none; } .btn .lap rect, .btn .lap path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr-web { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; padding: 0 6px; }
.hdr-web:hover { color: var(--blue); }
.btn.sm { height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; gap: 10px; }
.btn.sm .tg { width: 18px; height: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* телефоны */
.phone { width: 330px; max-width: 100%; padding: 10px; border-radius: 48px; background: var(--dev); }
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; }
.phone.cut { width: 310px; padding-bottom: 0; border-radius: 46px 46px 0 0; }
.phone.cut img { aspect-ratio: 290 / 520; object-fit: cover; object-position: top; border-radius: 38px 38px 0 0; }
.phone.big { width: 320px; } .phone.big img { aspect-ratio: 300 / 480; }
.phone.framed { width: 290px; padding: 9px; border-radius: 44px; box-shadow: 0 30px 60px rgba(13,23,48,.18); }
.phone.framed img { border-radius: 36px; }
/* шаги «Как это работает»: верх экрана, книзу растворяется в фоне */
.phone.framed.half { padding-bottom: 0; border-radius: 44px 44px 0 0; box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.phone.framed.half img { aspect-ratio: 272 / 400; object-fit: cover; object-position: top; border-radius: 36px 36px 0 0; }

/* первый экран */
.hero { border-radius: 40px; background: var(--ink); color: #fff; padding: 52px 64px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; overflow: hidden; }
.hero .txt { flex: 1 1 460px; min-width: 0; padding-bottom: 44px; align-self: center; }
.hero .kicker { color: #8FB0FF; }
.hero h1 { margin-top: 16px; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.hero .lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: #C9D4F0; max-width: 540px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; color: #C9D4F0; }
.hero .art { flex: 0 1 380px; min-width: 0; display: flex; justify-content: center; }
/* на компьютере первый экран — ровно окно под шапкой (--hdr ставит public/js/landing.js): снизу ничего не выглядывает */
@media (min-width: 901px) { #top .hero { min-height: min(calc(100vh - var(--hdr, 76px) - 24px), 860px); } }
.hero .phone { box-shadow: 0 0 0 2px rgba(255,255,255,.12); }

/* как это работает */
.how-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 48px; }
.how-head .sub { margin-top: 14px; max-width: 560px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 36px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .num { font-family: Mono, ui-monospace, monospace; font-size: 15px; color: var(--blue); margin-top: 4px; }
.step h3 { margin-top: 8px; font-size: 24px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--mut); max-width: 320px; }
/* на компьютере блок целиком — заголовок, телефоны и подписи — помещается в окно под шапкой: телефоны ниже на невысоких экранах */
@media (min-width: 901px) {
  .steps { margin-top: 28px; }
  .step p { max-width: 360px; }
  .steps .phone.framed.half { width: clamp(180px, calc((100vh - var(--hdr, 76px) - 305px) / 1.47), 290px); }
}

/* блоки возможностей */
.panel { border-radius: 40px; padding: 64px 64px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; overflow: hidden; }
.panel.rev { flex-wrap: wrap-reverse; }
.panel .txt { flex: 1 1 420px; min-width: 0; padding-bottom: 64px; }
.panel .art { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }
.panel h2 { margin-top: 16px; }
.panel ul { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.45; }
.panel li { display: flex; gap: 12px; }
.ck { flex: none; } .ck path { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panel.blue { background: var(--blueSoft); }
.panel.white { background: #fff; }
.panel.orange { background: var(--orange); color: #fff; }
.panel.orange .kicker, .panel.orange .sub { color: #FFE1D2; }
.panel.orange .ck path { stroke: #fff; }
.panel.orange .phone { box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.panel.navy { background: var(--ink); color: #fff; }
.panel.navy .kicker { color: #8FB0FF; } .panel.navy .sub { color: #C9D4F0; }
.panel.navy .ck path { stroke: #8FB0FF; }
.panel.ai { padding: 64px; align-items: center; }
.panel.ai .txt { padding-bottom: 0; }
.fine { margin-top: 24px; font-size: 15px; line-height: 1.5; color: #9AA8C9; }
.chat { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.logos { display: flex; align-items: flex-start; gap: 14px; height: 104px; padding-inline-start: 6px; }
.lg { display: grid; place-items: center; color: #fff; }
.lg svg { fill: currentColor; }
.lg.claude { width: 84px; height: 84px; border-radius: 24px; background: #D97757; transform: rotate(-9deg); margin-top: 4px; box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.lg.claude svg { width: 46px; height: 46px; }
.lg.gpt { width: 64px; height: 64px; border-radius: 19px; background: #000; transform: rotate(11deg); margin-top: 34px; box-shadow: 0 18px 36px rgba(0,0,0,.35); }
.lg.gpt svg { width: 36px; height: 36px; }
.msg { max-width: 92%; padding: 15px 18px; font-size: 17px; line-height: 1.45; }
.msg.me { align-self: flex-end; max-width: 86%; background: var(--blue); border-radius: 22px 22px 6px 22px; }
.msg.bot { align-self: flex-start; background: #24365F; color: #E4EBFC; border-radius: 22px 22px 22px 6px; }
[dir=rtl] .msg.me { border-radius: 22px 22px 22px 6px; } [dir=rtl] .msg.bot { border-radius: 22px 22px 6px 22px; }
.draft { align-self: flex-start; width: 92%; background: #fff; color: var(--ink); border-radius: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.draft svg { flex: none; }
.draft .d { flex: 1 1 auto; min-width: 0; }
.draft .k { font-family: Mono, ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.draft .v { font-size: 17px; font-weight: 700; margin-top: 4px; }
.draft .send { flex: none; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; }

/* данные и вопросы */
.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq .data { flex: 1 1 340px; min-width: 0; }
.faq .more { display: inline-block; margin-top: 20px; font-size: 17px; font-weight: 600; }
.faq .qs { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.q { background: #fff; border-radius: 24px; padding: 24px 28px; }
.q h3 { font-size: 20px; font-weight: 700; }
.q p { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--mut); }

/* финальный призыв и подвал */
.cta { border-radius: 40px; background: var(--blue); color: #fff; padding: 72px 48px; text-align: center; }
.cta h2 { font-size: 48px; max-width: 760px; margin: 0 auto; }
.cta p { margin: 18px auto 0; font-size: 19px; line-height: 1.5; color: #DCE6FB; max-width: 560px; }
.cta .ctas { justify-content: center; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 48px 56px; font-size: 15px; color: var(--mut); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot a { color: var(--mut); }

/* кнопка «Наверх»: появляется, когда первый экран прокручен */
.totop { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 40; width: 52px; height: 52px; border-radius: 26px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(13,23,48,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--blue); color: #fff; }
.totop path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* телефон и планшет */
@media (max-width: 900px) {
  .nav { display: none; }
  .hdr-web { display: none; }
  .sec { padding-top: 56px; }
  h2, .cta h2 { font-size: 34px; }
  .hero { padding: 48px 28px 0; border-radius: 32px; }
  .hero .txt { padding-bottom: 8px; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 18px; }
  .panel { padding: 44px 28px 0; border-radius: 32px; }
  .panel .txt { padding-bottom: 8px; }
  .panel.ai { padding: 44px 28px; }
  .cta { padding: 52px 24px; border-radius: 32px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .pad { padding-inline: 8px; }
  .acts .btn.sm span { display: none; }
  .acts .btn.sm { padding: 0 13px; }
  .btn { padding: 0 24px; font-size: 17px; }
  .hero h1 { font-size: 36px; }
  .msg, .draft .v { font-size: 16px; }
  .msg.bot, .draft { max-width: 100%; width: 100%; }
  .draft { flex-wrap: wrap; }
  .draft .d { flex: 1 1 170px; }
  .totop { width: 42px; height: 42px; inset-inline-end: 12px; bottom: 12px; opacity: 0; }
  .totop.show { opacity: .9; }
}
