/* BUZZ Pay: сайт платёжки. Палитра и шрифты из брендбука BUZZ (Гид по стилю 2026). */

@font-face { font-family: "Akony"; src: url("/fonts/akony.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "VCR"; src: url("/fonts/vcr.ttf") format("truetype"); font-display: swap; }

:root {
  --aqua: #02A1B9; --aqua-deep: #017E91; --aqua-bright: #2FC0D6; --aqua-soft: #DDF2F5;
  --violet: #8C52FF; --violet-hover: #9D6BFF; --violet-ink: #B9A2FF; --violet-deep: #6A35E8;
  --black: #1D1D1B; --ink: #141413; --white: #F2F0EF; --paper: #FFFFFF;
  --grey: #6F6F6C; --grey-light: #A8A7A3; --line-dark: rgba(242,240,239,.12); --line-light: rgba(29,29,27,.12);
  --head: "Akony", "Archivo Black", Impact, sans-serif;
  --mono: "VCR", "Share Tech Mono", ui-monospace, monospace;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r: 22px;
}
* { box-sizing: border-box; }
/* Плавная прокрутка включается скриптом после загрузки: первый переход по ссылке с якорем мгновенный */
html.smooth { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--white); background: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
/* Фокус с клавиатуры виден на любом фоне: обводка цветом текста. У кнопок и полей своя, ниже. */
a:focus-visible, summary:focus-visible, .burger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* «К содержанию»: первая остановка клавиши Tab, до неё спрятана над экраном */
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--white); color: var(--black); padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
::selection { background: var(--violet); color: #fff; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; min-width: 0; }
.wrap > *, .split > *, .head > *, .form > * { min-width: 0; }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; overflow: hidden; }
.section.light { background: var(--white); color: var(--black); }
.section.dark { background: var(--ink); color: var(--white); }
.section.deep { background: var(--black); color: var(--white); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua-bright); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--violet); border-radius: 2px; }
.light .eyebrow { color: var(--aqua-deep); }
h1, h2, h3 { margin: 0; line-height: 1.02; text-wrap: balance; hyphens: none; }
h2 { font-family: var(--head); font-size: clamp(30px, 4.6vw, 54px); letter-spacing: .005em; text-transform: uppercase; margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--grey-light); max-width: 62ch; margin: 0; }
.light .lead { color: var(--grey); }
.head { display: grid; gap: 12px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); font-family: var(--body); line-height: 1; white-space: nowrap; }
.btn .ar { display: inline-block; width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(5px); }
.btn.primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px rgba(140,82,255,.28); }
.btn.primary:hover { background: var(--violet-hover); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(140,82,255,.38); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn.ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.light .btn.ghost { color: var(--black); border-color: var(--line-light); }
.light .btn.ghost:hover { border-color: var(--black); }
.btn.aqua { background: var(--aqua); color: var(--white); }
.btn.aqua:hover { background: var(--aqua-deep); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--aqua-bright); outline-offset: 3px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(20,20,19,.72); border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--grey-light); transition: color .25s; }
.nav a:hover { color: var(--white); }
.top .btn { padding: 12px 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; color: var(--white); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s, opacity .3s; }
.top.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top.open .burger span:nth-child(2) { opacity: 0; }
.top.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Логотип: файл из набора бренда BUZZ PAY (26.09.2026), фиолетовые буквы на бирюзовой карте */
.logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; flex: none; }
.logo img { height: 48px; width: auto; display: block; }
footer .logo img { height: 34px; }

/* Первый экран */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 100px); position: relative; overflow: hidden; background: var(--ink); }
.hero .orbit { position: absolute; width: 1100px; height: 1100px; right: -380px; top: -420px; color: var(--aqua); opacity: .5; animation: spin 90s linear infinite; pointer-events: none; }
.hero .orbit.two { width: 700px; height: 700px; left: -320px; bottom: -380px; top: auto; right: auto; color: var(--violet); opacity: .32; animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(2,161,185,.35), transparent 70%); right: -160px; top: -200px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 420px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-family: var(--head); font-size: clamp(32px, 4.2vw, 58px); overflow-wrap: normal; word-break: keep-all; text-transform: uppercase; letter-spacing: .005em; line-height: .98; }
.hero h1 .hl { display: inline-block; background: var(--violet); color: #fff; padding: .04em .18em .02em; border-radius: .12em; margin-top: .12em; }
.hero .lead { margin: 26px 0 36px; font-size: clamp(18px, 1.5vw, 22px); color: #CFCDC8; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 13px 7px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--grey-light); }

/* Живая демонстрация платежа */
.demo { position: relative; background: var(--black); border: 1px solid var(--line-dark); border-radius: 28px; padding: 26px; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.demo .bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 20px; }
.demo .bar b { color: var(--aqua-bright); font-weight: 400; }
.demo .steps { display: grid; gap: 10px; }
.demo .st { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(242,240,239,.03); opacity: .45; transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s; }
.demo .st.on { opacity: 1; border-color: rgba(2,161,185,.6); transform: translateX(4px); background: rgba(2,161,185,.08); }
.demo .st.done { opacity: .85; }
.demo .st .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .05em; background: var(--aqua); color: var(--white); }
.demo .st:nth-child(2) .ic { background: var(--violet); color: #fff; }
.demo .st:nth-child(3) .ic { background: var(--white); color: var(--black); }
.demo .st .t { font-weight: 700; font-size: 15px; }
.demo .st .s { font-size: 13px; color: var(--grey-light); }
.demo .st .v { font-family: var(--mono); font-size: 14px; color: var(--aqua-bright); white-space: nowrap; }
.demo .st.done .v { color: #4FD07A; }
.demo .total { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-dark); display: flex; justify-content: space-between; align-items: baseline; }
.demo .total span { font-size: 13px; color: var(--grey-light); }
.demo .total b { font-family: var(--head); font-size: 22px; color: var(--white); letter-spacing: .01em; }
.demo .timer { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--violet-ink); }
.demo .qr { width: 44px; height: 44px; border-radius: 10px; background:
  linear-gradient(90deg, var(--white) 0 0) 0 0 / 30% 30% no-repeat,
  linear-gradient(90deg, var(--white) 0 0) 100% 0 / 30% 30% no-repeat,
  linear-gradient(90deg, var(--white) 0 0) 0 100% / 30% 30% no-repeat,
  repeating-linear-gradient(90deg, var(--white) 0 14%, transparent 14% 28%) 50% 55% / 40% 40% no-repeat,
  var(--black); border: 4px solid var(--white); }

/* Бегущая строка */
.ticker { background: var(--aqua); color: var(--black); overflow: hidden; border-block: 3px solid var(--black); }
.ticker .track { display: flex; width: max-content; animation: run 40s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; padding: 16px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: "✦"; color: var(--white); }
@keyframes run { to { transform: translateX(-50%); } }

/* Сетки карточек */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border-radius: var(--r); padding: 28px; border: 1px solid var(--line-dark); background: rgba(242,240,239,.035); transition: transform .4s var(--ease), border-color .4s, background .4s; }
.card:hover { transform: translateY(-4px); border-color: rgba(2,161,185,.5); }
.light .card { background: var(--paper); border-color: var(--line-light); box-shadow: 0 1px 0 rgba(29,29,27,.04); }
.light .card:hover { border-color: var(--aqua); box-shadow: 0 18px 40px rgba(29,29,27,.08); }
.card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--mono); font-size: 18px; letter-spacing: .04em; margin-bottom: 20px; background: var(--violet); color: #fff; }
.card:nth-child(even) .ic { background: var(--aqua); color: var(--white); }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--grey-light); font-size: 15.5px; }
.light .card p { color: var(--grey); }
.num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--violet-ink); margin-bottom: 14px; }
.light .num { color: var(--violet-deep); }

/* Полоса-вывод под сеткой */
.band { margin-top: 28px; border-radius: var(--r); padding: 26px 30px; background: var(--violet); color: #fff; display: grid; gap: 4px; }
.band b { font-size: 20px; font-weight: 800; }
.band span { font-size: 16px; }
.band.aqua { background: var(--aqua); color: var(--white); }
.band.black { background: var(--black); color: var(--white); }
/* Полоса с кнопкой: текст слева, действие справа */
.band.cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 28px; }
.band.cta > div { display: grid; gap: 4px; }
.band.cta .btn { background: #fff; color: var(--violet-deep); }
.band.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29,29,27,.22); }
.band.cta .btn:focus-visible { outline-color: #fff; }

/* Шаги */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 24px 26px; border-radius: var(--r); border: 1px solid var(--line-dark); background: rgba(242,240,239,.035); }
.light .step { background: var(--paper); border-color: var(--line-light); }
.step .n { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; padding: 10px 14px 8px; border-radius: 999px; background: var(--violet); color: #fff; white-space: nowrap; }
.step:nth-child(even) .n { background: var(--aqua); color: var(--white); }
.step b { display: block; font-size: 19px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--grey-light); }
.light .step p { color: var(--grey); }

/* Кому подходит */
.who { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.who div { padding: 20px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-light); font-weight: 700; font-size: 16px; display: grid; gap: 12px; transition: transform .35s var(--ease), border-color .35s; }
.who div:hover { transform: translateY(-3px); border-color: var(--aqua); }
.who i { font-style: normal; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--aqua-deep); }

/* Двухколоночные секции с макетом */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .list { display: grid; gap: 14px; margin-top: 8px; }
.split .it { display: flex; gap: 16px; align-items: flex-start; }
.split .it .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; background: var(--violet); color: #fff; }
.split .it:nth-child(even) .ic { background: var(--aqua); color: var(--white); }
.split .it b { display: block; font-size: 17px; }
.split .it span { color: var(--grey-light); font-size: 15px; }
.light .split .it span { color: var(--grey); }

/* Макет кабинета */
.laptop { border-radius: 22px; background: var(--paper); color: var(--black); border: 10px solid var(--black); box-shadow: 0 40px 90px rgba(0,0,0,.35); overflow: hidden; display: grid; grid-template-columns: 140px minmax(0, 1fr); font-size: 13px; }
.laptop .side { background: var(--black); color: var(--white); padding: 18px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; line-height: 2.2; }
.laptop .side .on { color: var(--aqua-bright); }
.laptop .main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.laptop .kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.laptop .kpi div { background: var(--aqua-soft); border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--grey); }
.laptop .kpi b { display: block; font-family: var(--mono); font-size: 15px; color: var(--aqua-deep); letter-spacing: .02em; margin-top: 2px; }
.laptop table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.laptop td { padding: 9px 6px; border-top: 1px solid var(--line-light); white-space: nowrap; }
.laptop td.r { text-align: right; font-variant-numeric: tabular-nums; }
.laptop .ok { color: #1E7A45; font-family: var(--mono); font-size: 11px; }
.laptop .wait { color: var(--violet-deep); font-family: var(--mono); font-size: 11px; }
.laptop .exp { color: var(--grey); font-family: var(--mono); font-size: 11px; }

/* Макет кассы на стойке */
.phone { width: min(320px, 100%); margin-inline: auto; border-radius: 40px; background: var(--paper); color: var(--black); border: 10px solid var(--black); padding: 30px 22px; box-shadow: 0 40px 90px rgba(0,0,0,.35); text-align: center; }
.phone .shop { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--aqua-deep); }
.phone .ask { font-weight: 800; font-size: 17px; margin: 8px 0 16px; }
.phone .f { text-align: left; border: 1px solid var(--line-light); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.phone .f small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--grey); }
.phone .f b { font-size: 24px; font-family: var(--head); letter-spacing: .01em; }
.phone .note { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--grey); text-align: left; margin: 6px 0 16px; }
.phone .note b { color: var(--aqua-deep); font-weight: 400; }
.phone .pay { background: var(--aqua); color: var(--white); border-radius: 999px; padding: 14px; font-weight: 800; }
.phone .qrbig { width: 120px; height: 120px; margin: 0 auto 16px; border: 6px solid var(--black); border-radius: 14px; background:
  linear-gradient(90deg, var(--black) 0 0) 0 0 / 28% 28% no-repeat, linear-gradient(90deg, var(--black) 0 0) 100% 0 / 28% 28% no-repeat,
  linear-gradient(90deg, var(--black) 0 0) 0 100% / 28% 28% no-repeat,
  repeating-linear-gradient(90deg, var(--black) 0 12%, transparent 12% 24%) 56% 58% / 44% 44% no-repeat, var(--paper); }

/* Правила и лимиты */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rule { border-radius: var(--r); padding: 26px; background: var(--paper); border: 1px solid var(--line-light); }
.rule .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-deep); margin-bottom: 12px; }
.rule .v { font-family: var(--head); font-size: clamp(18px, 1.4vw, 21px); white-space: normal; overflow: visible; letter-spacing: .01em; margin-bottom: 8px; line-height: 1.05; }
.rule p { margin: 0; color: var(--grey); font-size: 15px; }

/* API */
.code { border-radius: var(--r); background: var(--black); border: 1px solid var(--line-dark); padding: 22px 24px; font-family: "JetBrains Mono", Consolas, ui-monospace, monospace; font-size: 13.5px; line-height: 1.7; color: #CFCDC8; overflow-x: auto; }
.code .k { color: var(--aqua-bright); } .code .s { color: #FFB58F; } .code .c { color: var(--grey); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line-light); border-radius: 18px; background: var(--paper); padding: 0 24px; transition: border-color .3s; }
.faq details[open] { border-color: var(--aqua); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-light); position: relative; }
.faq summary .sign::before, .faq summary .sign::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--black); transform: translate(-50%,-50%); }
.faq summary .sign::before { width: 12px; height: 2px; }
.faq summary .sign::after { width: 2px; height: 12px; transition: transform .3s var(--ease); }
.faq details[open] .sign::after { transform: translate(-50%,-50%) scaleY(0); }
.faq p { margin: 0 0 20px; color: var(--grey); }

/* Заявка */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form .box { background: var(--black); border: 1px solid var(--line-dark); border-radius: 26px; padding: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-light); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--white); background: rgba(242,240,239,.05); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .25s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--aqua-bright); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--aqua-bright); outline-offset: 1px; }
.field select option { color: var(--black); }
.field textarea { min-height: 96px; resize: vertical; }
.form .hint { font-size: 14px; color: var(--grey-light); }
.form .alt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.contact-list { display: grid; gap: 16px; margin-top: 24px; }
.contact-list a { text-decoration: none; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-dark); transition: border-color .3s, transform .3s var(--ease); }
.contact-list a:hover { border-color: var(--aqua-bright); transform: translateX(4px); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua); color: var(--white); font-family: var(--mono); font-size: 13px; }
.contact-list a > span:not(.ic) { flex: 1; min-width: 0; }
.contact-list b { display: block; }
.contact-list a span span { display: block; font-size: 14px; color: var(--grey); }

/* Подвал */
footer { background: var(--black); color: var(--grey-light); padding-block: 40px; border-top: 1px solid var(--line-dark); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--grey-light); text-decoration: none; }
footer a:hover { color: var(--white); }
footer .family { order: 9; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }
footer .family span { color: var(--grey-light); opacity: .75; }

/* Кнопка «Наверх»: появляется после пары экранов */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--white); border: 1px solid rgba(242,240,239,.28); box-shadow: 0 10px 28px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .3s; }
.totop.on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--violet); }
.totop:focus-visible { outline: 3px solid var(--aqua-bright); outline-offset: 3px; }
.totop .ar { width: 20px; height: 20px; transform: rotate(-90deg); }

/* Переход по якорю не прячет заголовок раздела под липкой шапкой */
section[id] { scroll-margin-top: 72px; }

/* Страница 404 */
.page-lost { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-lost .lost { flex: 1; }
.lost { min-height: 60vh; display: grid; place-items: center; padding-block: 56px; position: relative; overflow: hidden; background: var(--ink); }
.lost .orbit { position: absolute; width: 900px; height: 900px; right: -340px; top: -360px; color: var(--aqua); opacity: .4; pointer-events: none; }
.lost .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.lost .code404 { font-family: var(--head); font-size: clamp(56px, 16vw, 168px); line-height: .9; color: var(--violet); letter-spacing: .01em; }
.lost h1 { font-family: var(--head); font-size: clamp(22px, 3.4vw, 38px); text-transform: uppercase; }
.lost .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.lost .en { margin: 14px 0 0; font-size: 15px; color: var(--grey-light); }
.lost .en a { color: var(--aqua-bright); }

/* Появление при прокрутке */
.anim .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.anim .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

/* Юридические страницы */
.legal-page { max-width: 820px; padding-block: 56px 96px; }
.legal-page h1 { font-family: var(--head); font-size: clamp(15px, 4.7vw, 40px); overflow-wrap: anywhere; text-transform: uppercase; margin-bottom: 8px; }
.legal-page .date { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--grey); margin-bottom: 36px; }
.legal-page h2 { font-family: var(--body); font-size: 20px; text-transform: none; margin: 34px 0 10px; }
.legal-page ol, .legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page p { margin: 0 0 12px; }

/* В двух колонках заголовок меньше, чтобы длинное слово не вылезало в соседнюю колонку */
@media (min-width: 981px) {
  .split h2 { font-size: min(48px, 3.5vw); }
}
/* Меню из семи пунктов помещается в строку от 1100 px, уже него работает кнопка-бургер */
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 10px 20px 18px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav:not(.stay) .lang { align-self: flex-start; margin-top: 16px; }
  .top.open .nav { display: flex; }
  .burger { display: block; }
  .top .wrap > .btn { margin-left: auto; }
}
/* Короткое меню юридических страниц и 404 остаётся строкой на любой ширине */
.nav.stay { display: flex; position: static; flex-direction: row; align-items: center; gap: 20px; padding: 0; border: 0; background: none; max-height: none; overflow: visible; }
.nav.stay a:not(.lang) { padding: 12px 4px; border: 0; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .form { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top .btn { display: none; }
  .band.cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .logo img { height: 40px; }
  /* Шрифт заголовков очень широкий: размер считается от ширины экрана так, чтобы слово из десяти букв помещалось в строку целиком.
     Слова длиннее переносятся по мягкому переносу, который стоит в разметке. */
  h2 { font-size: min(30px, calc((100vw - 40px) / 14.8)); overflow-wrap: anywhere; -webkit-hyphens: manual; hyphens: manual; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 34px); }
  .demo .st .v { white-space: normal; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
  .laptop { grid-template-columns: 1fr; }
  .laptop .side { display: none; }
  .demo { padding: 18px; }
  .demo .st { grid-template-columns: 40px 1fr; }
  .demo .st .v { grid-column: 2; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .btn { width: 100%; justify-content: center; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer .family { flex-basis: auto; align-self: stretch; flex-direction: column; gap: 10px; padding-right: 76px; }
}
/* Печать и сохранение в PDF: всё содержимое видно, без плавающих кнопок */
@media print {
  .rv, .anim .rv { opacity: 1 !important; transform: none !important; }
  .top { position: static; }
  .totop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .anim .rv { opacity: 1; transform: none; }
  html, html.smooth { scroll-behavior: auto; }
}

/* Переключатель языка в меню */
.nav .lang { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 11px 5px; }
.nav .lang:hover { border-color: var(--white); }
