/*
 * Лендинг daddy.cloud. Токены — как в кабинете (bb-my: resources/css/app.css): Manrope, жёлтый + графит.
 * Структура — по мотивам timeweb.cloud: hero с макетом панели, цифры, услуги, «почему мы» (bento), тарифы, панель, CTA, подвал.
 */

/* Шрифты — свои (assets/fonts, вариативные, OFL): латиница + кириллица, без запросов к Google. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-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: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jbmono-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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jbmono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
    --yellow: #ffdd2d;
    --yellow-dark: #ffca0a;
    --ink: #1a1a1a;
    --graphite: #2b2b2b;
    --soft: #f5f6f8;
    --softer: #fafbfc;
    --border: #e8eaed;
    --muted: #6b7079;
    --success: #067647;
    --radius: 14px;
    --radius-lg: 28px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-pop: 0 24px 60px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Кнопки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 15px; cursor: pointer; border: 0; transition: background-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 202, 10, .35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--graphite); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* --- Шапка --- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--border); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--yellow); font-style: normal; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: background-color .15s; }
.nav a:hover { background: var(--soft); }
.nav .nav-cabinet { display: none; }
.header .actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 800; font-size: 14px; transition: background-color .15s; }
.lang:hover { background: var(--border); }
.lang .ico { width: 18px; height: 18px; }

/* Модалка выбора языка */
.lang-dialog { width: min(520px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-pop); }
.lang-dialog::backdrop { background: rgba(26, 26, 26, .45); backdrop-filter: blur(2px); }
.lang-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.lang-dialog h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.lang-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.lang-close:hover { background: var(--soft); color: var(--ink); }
.lang-options { display: grid; gap: 10px; }
.lang-option { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; border-radius: var(--radius); background: var(--soft); font-weight: 500; font-size: 15px; transition: background-color .15s; }
.lang-option:hover { background: var(--border); }
.lang-option[aria-current] { font-weight: 800; }
.lang-option .ico { margin-left: auto; }
.lang-flag { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); border: 0; cursor: pointer; place-items: center; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; background: linear-gradient(180deg, #fff 0%, var(--softer) 100%); }
.hero::before { content: ''; position: absolute; width: 760px; height: 760px; left: 50%; top: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 221, 45, .45) 0%, rgba(255, 221, 45, 0) 65%); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.badge b { background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.hero h1 { margin: 24px auto 0; max-width: 900px; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.hero h1 span { position: relative; white-space: nowrap; }
.hero h1 span::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; background: var(--yellow); z-index: -1; border-radius: 6px; }
.hero p.lead { margin: 22px auto 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero .note span { display: inline-flex; align-items: center; gap: 6px; }
.hero .note .ico { width: 16px; height: 16px; color: var(--success); }

/* Макет панели в hero (HTML, не картинка — чёткий на любом экране) */
.mock { position: relative; margin: 56px auto 0; max-width: 1040px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: var(--shadow-pop); border: 1px solid var(--border); border-bottom: 0; overflow: hidden; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--softer); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); font-weight: 600; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; }
.mock-body { display: grid; grid-template-columns: 64px 1fr 300px; min-height: 360px; }
.mock-rail { border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-rail i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #7d828b; }
.mock-rail i.on { background: var(--yellow); color: var(--ink); }
.mock-rail i:first-child { background: var(--yellow); color: var(--ink); font-style: normal; font-weight: 800; margin-bottom: 8px; }
.mock-main { padding: 24px; background: var(--soft); }
.mock-main .mock-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.mock-main small { color: var(--muted); font-size: 12px; }
.mock-tabs { display: inline-flex; margin: 16px 0; background: #fff; border-radius: 12px; padding: 4px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
.mock-tabs b { background: var(--ink); color: #fff; border-radius: 9px; padding: 6px 12px; }
.mock-tabs span { padding: 6px 12px; color: var(--muted); }
.mock-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-plan { background: #fff; border-radius: 16px; padding: 14px; border: 2px solid transparent; box-shadow: var(--shadow); }
.mock-plan.on { border-color: var(--ink); }
.mock-plan b { display: block; font-size: 14px; }
.mock-plan strong { display: block; margin-top: 10px; font-size: 20px; letter-spacing: -.02em; }
.mock-plan em { font-style: normal; font-size: 11px; color: var(--muted); }
.mock-plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: 11px; font-weight: 600; }
.mock-plan li { background: var(--soft); border-radius: 8px; padding: 5px 8px; }
.mock-side { padding: 20px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.mock-side .mock-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.mock-side dl { margin: 0; display: grid; gap: 9px; font-size: 12px; }
.mock-side dl div { display: flex; justify-content: space-between; }
.mock-side dt { color: rgba(255, 255, 255, .5); }
.mock-side dd { margin: 0; font-weight: 700; }
.mock-side .total { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .15); }
.mock-side .total small { color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mock-side .total strong { display: block; margin-top: 4px; font-size: 26px; color: var(--yellow); letter-spacing: -.02em; }
.mock-side .pay { margin-top: auto; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* --- Цифры --- */
.stats { padding: 64px 0 24px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* --- Секции --- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--yellow); }
.section-head h2, .h2 { margin: 12px 0 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }

/* --- Услуги --- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { position: relative; background: var(--soft); border-radius: var(--radius-lg); padding: 28px; transition: background-color .2s, transform .2s, box-shadow .2s; }
.service:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.service .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.service .icon .ico { width: 26px; height: 26px; }
.service h3 { margin: 22px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.service p { margin: 0; color: var(--muted); line-height: 1.55; }
.service .tag { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 10px; background: var(--border); color: var(--muted); }
.service .tag.live { background: var(--yellow); color: var(--ink); }

/* --- Почему мы (bento) --- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px; background: var(--soft); }
.tile h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.tile p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 360px; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, .6); }
.tile.yellow { background: var(--yellow); }
.tile.yellow p { color: rgba(26, 26, 26, .7); }
/* Спидометр */
.gauge { position: absolute; right: 28px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(var(--yellow) 0 62%, rgba(255, 255, 255, .12) 62% 100%); }
.gauge span { position: absolute; inset: 26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; text-align: center; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.gauge small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .5); }
/* Карта с пинами */
.map { position: absolute; inset: auto 0 0 0; height: 300px; background-image: radial-gradient(circle, rgba(26, 26, 26, .18) 1.6px, transparent 1.8px); background-size: 14px 14px; mask-image: radial-gradient(ellipse at 50% 70%, #000 30%, transparent 72%); }
.pin { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-pop); font-weight: 800; font-size: 14px; }
.pin .flag { width: 28px; height: 18px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pin small { font-weight: 700; font-size: 11px; color: var(--muted); }
.pin.soon { opacity: .75; }
/* Чат поддержки */
.chat { margin-top: 24px; display: grid; gap: 8px; max-width: 360px; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; width: fit-content; max-width: 100%; }
.bubble.me { background: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.us { background: var(--ink); color: #fff; border-bottom-left-radius: 4px; }
.big-icon { position: absolute; right: -10px; bottom: -10px; width: 150px; height: 150px; color: rgba(26, 26, 26, .12); }

/* --- Тарифы --- */
.plan-switches { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.period { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border); }
.period.currency button { min-width: 48px; padding: 0 12px; justify-content: center; }
.period button { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.period button.on { background: var(--ink); color: #fff; }
.period button em { font-style: normal; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured .desc, .plan.featured .per { color: rgba(255, 255, 255, .55); }
.plan.featured li { background: rgba(255, 255, 255, .08); }
.plan .hot { position: absolute; top: 24px; right: 24px; background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.plan h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.plan .desc { margin: 8px 0 0; color: var(--muted); min-height: 48px; line-height: 1.5; }
.plan .price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.plan .price strong { font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.plan .per { color: var(--muted); font-weight: 700; }
.plan .yearly { margin-top: 6px; min-height: 20px; font-size: 13px; color: var(--muted); font-weight: 600; }
.plan.featured .yearly { color: var(--yellow); }
.plan ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-weight: 600; font-size: 15px; }
.plan li .ico { width: 18px; height: 18px; opacity: .6; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.included { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.included div { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--soft); font-weight: 700; font-size: 15px; }
.included .ico { width: 22px; height: 22px; }

/* --- Панель --- */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.panel-list { display: grid; gap: 6px; margin-top: 32px; }
.panel-item { padding: 16px 20px; border-radius: 18px; border-left: 3px solid transparent; transition: background-color .2s, border-color .2s; cursor: default; }
.panel-item:hover { background: var(--soft); border-left-color: var(--yellow); }
.panel-item h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel-item p { margin: 6px 0 0 32px; color: var(--muted); line-height: 1.5; }
.panel-shot { border-radius: var(--radius-lg); background: var(--soft); padding: 28px; }
.code { border-radius: 18px; overflow: hidden; background: var(--ink); color: #e6e6e6; box-shadow: var(--shadow-pop); font: 500 13px/1.7 'JetBrains Mono', ui-monospace, monospace; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #fff; color: var(--ink); font: 700 13px 'Manrope', sans-serif; }
.code pre { margin: 0; padding: 22px; overflow-x: auto; }
.code .k { color: var(--yellow); }
.code .s { color: #a5d6a7; }
.code .c { color: #7d828b; }

/* --- CTA --- */
.cta-block { position: relative; overflow: hidden; border-radius: 36px; background: var(--ink); color: #fff; padding: 72px 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-block::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 221, 45, .5), rgba(255, 221, 45, 0) 65%); }
.cta-block h2 { position: relative; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.cta-block p { position: relative; margin: 16px 0 0; color: rgba(255, 255, 255, .6); font-size: 18px; line-height: 1.55; }
.cta-block .cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-block .btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.cta-block .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* --- FAQ --- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--soft); padding: 4px 24px; transition: background-color .2s; }
.faq details[open] { background: #fff; box-shadow: var(--shadow-pop); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 800; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }

/* --- Подвал --- */
.footer { margin-top: 32px; padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .foot-h { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s; }
.footer li a:hover { color: var(--ink); }
.footer .about { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 300px; margin: 14px 0 0; }
.footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* --- Появление при прокрутке (уважаем reduced motion) --- */
/* Прячем только при работающем JS (класс .js ставится в <head>) — без скрипта контент виден. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .service, .plan { transition: none; }
}

/* --- Адаптив --- */
@media (max-width: 1024px) {
    .nav { display: none; }
    .mock-body { grid-template-columns: 56px 1fr; }
    .mock-side { display: none; }
    .services, .plans, .included { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .tile.wide { grid-column: span 2; }
    .tile.tall { grid-row: auto; min-height: 360px; }
    .panel { grid-template-columns: minmax(0, 1fr); }
    .cta-block { grid-template-columns: 1fr; padding: 48px 32px; }
    .cta-block .cta { justify-content: flex-start; }
    .footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .wrap { padding: 0 16px; }
    .header .wrap { gap: 12px; height: 64px; }
    .header .actions .btn-ghost { display: none; }
    .header .actions .btn-primary { height: 40px; padding: 0 12px; font-size: 13px; }
    .burger { width: 40px; height: 40px; }
    .logo { font-size: 17px; }
    .logo i { width: 34px; height: 34px; }
    .badge { font-size: 13px; text-align: left; line-height: 1.35; }
    .hero h1 { font-size: clamp(32px, 10.5vw, 48px); }
    .panel > * { min-width: 0; }
    .hero { padding-top: 48px; }
    .hero p.lead { font-size: 17px; }
    .mock-plans { grid-template-columns: 1fr 1fr; }
    .mock-plan:last-child { display: none; }
    .mock-main { padding: 16px; }
    .stats .wrap { grid-template-columns: 1fr 1fr; }
    .section { padding: 64px 0; }
    .services, .plans, .included, .bento { grid-template-columns: 1fr; }
    .tile.wide { grid-column: auto; }
    .gauge { width: 170px; height: 170px; right: -10px; }
    .footer .grid { grid-template-columns: 1fr; }
}

/* Узкие телефоны: «Создать аккаунт» — в первом экране и в меню, шапку не распираем */
@media (max-width: 480px) {
    .header .actions .btn-primary { display: none; }
}

/* Мини-панель «Сайты» в секции про кабинет */
.sites { background: #fff; border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; }
.sites-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.sites-head b { font-size: 16px; }
.sites-head span { background: var(--yellow); border-radius: 10px; padding: 7px 12px; font-size: 12px; font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.sites-head span .ico { width: 14px; height: 14px; }
.site-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.site-row:last-child { border-bottom: 0; }
.site-row b { display: block; }
.site-row small { color: var(--muted); font-size: 12px; }
.pill { font-size: 12px; font-weight: 800; border-radius: 8px; padding: 4px 9px; background: var(--soft); white-space: nowrap; }
.pill.ok { background: #ecfdf3; color: var(--success); display: inline-flex; align-items: center; gap: 4px; }
.pill.ok .ico { width: 13px; height: 13px; }

/* Мобильное меню */
@media (max-width: 1024px) {
    .burger { display: grid; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-pop); }
}
@media (max-width: 680px) {
    .nav.open { top: 64px; padding: 12px 16px 20px; }
    .nav .nav-cabinet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
    .nav .nav-cabinet .btn { padding: 0 12px; border-radius: var(--radius); }
    .nav .nav-cabinet .btn-ghost, .nav .nav-cabinet .btn-ghost:hover { background: var(--soft); }
    .nav .nav-cabinet .btn-primary:hover { background: var(--yellow-dark); }
}

/* --- Внутренние страницы: тарифы, контакты, документы, 404 --- */
.nav a[aria-current="page"] { color: var(--ink); }
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero h1 { margin: 12px auto 0; max-width: 820px; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.page-hero .lead { margin: 16px auto 0; max-width: 640px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.page-hero .plan-switches { margin: 28px 0 0; }
.h3 { margin: 0 0 20px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

.compare { margin-top: 64px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 16px; font-weight: 800; background: var(--softer); }
.compare thead th.hot { background: var(--yellow); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--graphite); }
.compare td { font-weight: 700; }
.compare .ok { margin: 0 auto; width: 20px; height: 20px; color: var(--success); }

.billing-rules { margin-top: 64px; scroll-margin-top: 96px; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule { padding: 24px; border-radius: 22px; background: var(--soft); }
.rule .ico { width: 24px; height: 24px; }
.rule h3 { margin: 16px 0 0; font-size: 17px; }
.rule p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Документы (оферта, политика) — как telvera.io/ru/terms/: серый hero, оглавление слева, «Коротко» жёлтым */
.doc-hero { background: var(--soft); padding: 56px 0 44px; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.doc-hero h1 { margin: 0; max-width: 820px; font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.doc-hero .lead { margin: 16px 0 0; max-width: 680px; font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; font-size: 13px; font-weight: 700; color: var(--graphite); }
.doc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.doc-meta span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-dark); }
.doc-draft { display: flex; gap: 12px; align-items: flex-start; max-width: 680px; margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1.5px dashed #e8c200; font-size: 14px; font-weight: 600; line-height: 1.5; color: #5c4b00; }
.doc-draft .ico { margin-top: 1px; }
mark.todo { background: #fffbea; color: #5c4b00; box-shadow: inset 0 0 0 1px #ffe98a; padding: 1px 6px; border-radius: 6px; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc-page { display: grid; gap: 40px; margin-top: 44px; margin-bottom: 80px; }
.doc-toc { display: none; }
.doc-toc b { display: block; padding-left: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; }
.doc-toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.doc-toc a:hover { background: var(--soft); color: var(--ink); }
.doc-toc a.on { background: var(--ink); color: #fff; }
.doc-body { min-width: 0; max-width: 760px; line-height: 1.65; }
.doc-sum { background: var(--yellow); border-radius: 24px; padding: 24px 26px; margin-bottom: 44px; }
.doc-sum h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.doc-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.doc-sum li { position: relative; padding-left: 17px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.doc-sum li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.doc-sum a { text-decoration: underline; text-underline-offset: 3px; }
.doc-sum mark.todo { background: rgba(255, 255, 255, .6); box-shadow: none; }
.doc-body section { scroll-margin-top: 96px; padding-top: 6px; }
.doc-body section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.doc-body h2 { display: flex; gap: 12px; align-items: baseline; margin: 0 0 16px; font-size: clamp(21px, 3vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.doc-body h2 .n { flex-shrink: 0; font-size: .75em; color: #9ca3af; font-variant-numeric: tabular-nums; }
.doc-body h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; }
.doc-body p, .doc-body li { font-size: 15.5px; color: var(--graphite); }
.doc-body p { margin: 0; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul.l, .doc-body ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc-body li::marker { color: #9ca3af; font-weight: 700; }
.doc-body strong { color: var(--ink); }
.doc-body a { text-decoration: underline; text-decoration-color: var(--yellow-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc-body .tbl { margin-top: 14px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.doc-body .row { display: grid; gap: 4px; padding: 16px 18px; }
.doc-body .row + .row { border-top: 1px solid var(--border); }
.doc-body .row .k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; }
.doc-body .row .v { font-size: 15px; color: var(--graphite); }
.doc-body .purpose { margin-top: 16px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.doc-body .purpose > b { display: block; padding: 14px 18px; background: var(--soft); font-size: 15px; }
.doc-body .purpose dl { display: grid; margin: 0; }
.doc-body .purpose dl div { display: grid; gap: 2px; padding: 12px 18px; border-top: 1px solid var(--border); }
.doc-body .purpose dt { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #9ca3af; }
.doc-body .purpose dd { margin: 0; font-size: 14.5px; color: var(--graphite); }
.doc-body .note { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: 14.5px; color: var(--graphite); }
.doc-contact { margin-top: 44px; padding: 26px; border-radius: 24px; background: var(--ink); color: #fff; }
.doc-contact h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #fff; }
.doc-contact p { margin: 0; color: #d1d5db; font-size: 15.5px; }
.doc-contact a { color: var(--yellow); text-decoration: none; }
@media (min-width: 1024px) {
    .doc-page { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
    .doc-toc { display: block; margin-left: -12px; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; }
}
@media (max-width: 680px) {
    .doc-hero { padding: 40px 0 32px; }
    .doc-sum { padding: 20px; }
}
@media print {
    .header, .footer, .doc-toc, .doc-draft { display: none; }
    .doc-hero { background: none; padding: 0 0 20px; }
    .doc-page { display: block; }
    .doc-sum { background: none; border: 1px solid #000; }
}

/* Выбор редакции документа по стране */
.editions { display: grid; gap: 14px; max-width: 760px; margin: 44px 0 80px; }
.editions a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 20px; transition: border-color .15s, transform .15s; }
.editions a:hover { border-color: var(--ink); transform: translateY(-1px); }
.editions a.mine { border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(255, 221, 45, .35); }
.editions small { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.editions .mine-tag, .editions em.mine { display: none; }
.editions a.mine em.mine { display: inline-block; font-style: normal; background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.editions b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.editions i { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--muted); }
.editions .ico { flex-shrink: 0; }

@media (max-width: 680px) {
    .page-hero h1 { font-size: clamp(26px, 8vw, 34px); overflow-wrap: break-word; }
}

.not-found { min-height: 100vh; display: grid; place-items: center; background: var(--softer); }
.not-found main { padding: 24px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.not-found strong { font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.not-found h1 { margin: 0; font-size: 28px; font-weight: 800; }
.not-found p { margin: 0 0 12px; color: var(--muted); }

@media (max-width: 1024px) {
    .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .page-hero { padding: 48px 0 24px; }
    .rules { grid-template-columns: 1fr; }
}
