/* ezze.uz — по брендбуку ezze (Onest, белое/серое и один красный), как в утверждённом макете сайта */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F, U+2190-2193; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url('/static/fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url('/static/fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F, U+2190-2193; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url('/static/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url('/static/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F, U+2190-2193; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url('/static/fonts/onest-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url('/static/fonts/onest-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F, U+2190-2193; }
@font-face { font-family: Onest; font-weight: 800; font-display: swap; src: url('/static/fonts/onest-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: Onest; font-weight: 800; font-display: swap; src: url('/static/fonts/onest-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+02BB-02BC, U+2000-206F, U+2190-2193; }

/* казахский, кыргызский, таджикский (cyrillic-ext) и туркменский (latin-ext) */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-cyrillic-ext-400-normal.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: Onest; font-weight: 400; font-display: swap; src: url('/static/fonts/onest-latin-ext-400-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: 500; font-display: swap; src: url('/static/fonts/onest-cyrillic-ext-500-normal.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: Onest; font-weight: 500; font-display: swap; src: url('/static/fonts/onest-latin-ext-500-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: 600; font-display: swap; src: url('/static/fonts/onest-cyrillic-ext-600-normal.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: Onest; font-weight: 600; font-display: swap; src: url('/static/fonts/onest-latin-ext-600-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: 700; font-display: swap; src: url('/static/fonts/onest-cyrillic-ext-700-normal.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: Onest; font-weight: 700; font-display: swap; src: url('/static/fonts/onest-latin-ext-700-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: 800; font-display: swap; src: url('/static/fonts/onest-cyrillic-ext-800-normal.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: Onest; font-weight: 800; font-display: swap; src: url('/static/fonts/onest-latin-ext-800-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; }
:root { --text: #0F172B; --muted: #45556C; --soft: #62748E; --line: #E2E8F0; --line2: #F1F5F9; --bg2: #F8FAFC;
  --brand: #C10007; --brand-h: #9F0712; --brand-50: #FEF2F2; --green-bg: #DCFCE7; --green: #166534; --amber-bg: #FEF3C7; --amber: #92400E;
  --bg: #fff; --card: #fff; --text2: #314158; --hdr: rgb(255 255 255 / .85); --bar: rgb(255 255 255 / .94); --hl: #FFFBEB;
  --red-bg: #FEE2E2; --red: #991B1B; --okbg: #F0FDF4; --ink: #0F172B; color-scheme: light; }
/* тёмная тема — как в программах (класс dark на html, выбор в localStorage «ezze-theme») */
html.dark { --text: #F1F5F9; --muted: #A9B6C8; --soft: #8A9AB0; --line: #2A3546; --line2: #1E2736; --bg2: #131B29;
  --brand-50: rgb(231 0 11 / .14); --green-bg: rgb(34 197 94 / .16); --green: #86EFAC; --amber-bg: rgb(245 158 11 / .16); --amber: #FCD34D;
  --bg: #0B1220; --card: #172031; --text2: #CBD5E1; --hdr: rgb(11 18 32 / .85); --bar: rgb(23 32 49 / .94); --hl: rgb(245 158 11 / .10);
  --red-bg: rgb(239 68 68 / .16); --red: #FCA5A5; --okbg: rgb(34 197 94 / .14); --ink: #334155; color-scheme: dark; }
html.dark .card { box-shadow: 0 0 0 1px var(--line), 0 4px 16px -4px rgb(0 0 0 / .4); }
html.dark .prod.main { box-shadow: 0 0 0 2px var(--brand), 0 4px 16px -4px rgb(0 0 0 / .4); }
html.dark .btn-primary { box-shadow: none; }
.themebtn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--line2); color: var(--soft); cursor: pointer; padding: 0; }
.themebtn:hover { color: var(--text); }
.themebtn svg { width: 18px; height: 18px; }
.themebtn .sun, html.dark .themebtn .moon { display: none; }
html.dark .themebtn .sun { display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; }
body.gray { background: var(--line2); }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-h); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 1080px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 10px;
  font: 600 16px Onest, system-ui, sans-serif; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px -2px rgb(193 0 7 / .45); }
.btn-primary:hover { background: var(--brand-h); color: #fff; }
/* продажи закрыты (админка «Продажи на сайте») — кнопка видна, но не нажимается */
.btn.btn-off, .btn.btn-off:hover { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary.btn-off:hover { background: var(--brand); }
.btn-secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-secondary:hover { color: var(--text); background: var(--bg2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 16px -4px rgb(15 23 42 / .08), 0 0 0 1px rgb(15 23 42 / .05); }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.gray { background: var(--line2); color: var(--muted); } .pill.red { background: var(--red-bg); color: var(--red); }
.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text2); }
.input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: 400 15px Onest, system-ui, sans-serif; color: var(--text); background: var(--card); }
textarea.input { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; }
.input:focus { outline: none; border-color: #E7000B; box-shadow: 0 0 0 4px var(--brand-50); }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 14px; } .xs { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.err { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.ok { background: var(--okbg); color: var(--green); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 5; background: var(--hdr); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 4px; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
nav.menu { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
nav.menu a { color: var(--text2); }
.grow { flex: 1; }
/* выбор языка: кнопка «RU ▾» → список с полными названиями (details/summary — работает и без JS) */
.langsel { position: relative; flex: none; }
.langsel > summary { list-style: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px;
  background: var(--line2); color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.langsel > summary::-webkit-details-marker { display: none; }
.langsel > summary:hover, .langsel[open] > summary { color: var(--text); }
.langsel > summary svg { width: 14px; height: 14px; transition: transform .15s; }
.langsel[open] > summary svg { transform: rotate(180deg); }
.langsel > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; display: flex; flex-direction: column;
  background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px -8px rgb(15 23 42 / .25); }
.langmenu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px;
  color: var(--text2); font-size: 15px; font-weight: 500; }
.langmenu a span { font-size: 12px; font-weight: 600; color: var(--soft); }
.langmenu a:hover { background: var(--bg2); color: var(--text); }
.langmenu a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.langmenu a.on span { color: var(--brand); }
@media (max-width: 900px) { nav.menu, .hide-sm { display: none; } header.top .wrap { gap: 12px; } }

/* разделы главной */
.hero { padding: 80px 0 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero > div { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }  /* тире — неразрывно с прежним словом (index.html), строки ровные (uz/kk, 28.10) */
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.checks span { display: flex; align-items: center; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
section.band { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
section .sec { padding: 80px 24px; display: flex; flex-direction: column; gap: 40px; }
.sec h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-faq { display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.prod { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.prod.main { box-shadow: 0 0 0 2px var(--brand), 0 4px 16px -4px rgb(15 23 42 / .08); }
.price { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-top: auto; line-height: 1.2; }
.price small { font-size: 16px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.feat { padding: 24px; display: flex; gap: 16px; }
.feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.55; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
ol.steps li { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
ol.steps .n { font-size: 32px; font-weight: 800; color: var(--brand); }
details.card { padding: 20px 24px; }
details summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.cta { border-radius: 24px; padding: 48px; background: linear-gradient(135deg, #E7000B, #460809); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 80px; }
.cta h2 { font-size: 32px; font-weight: 800; }
.cta p { font-size: 17px; color: #FFE2E2; margin-top: 8px; }
@media (max-width: 600px) { .cta { padding: 28px; } .cta h2 { font-size: 26px; } }
footer.bottom { border-top: 1px solid var(--line); }
footer.bottom .wrap { padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; color: var(--soft); }
footer.bottom .col { display: flex; flex-direction: column; gap: 6px; }
footer.bottom b { color: var(--text); }

/* пример экрана программы */
.shot { padding: 0; overflow: hidden; }
.shot .bar { height: 40px; background: var(--bg2); border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 12px; color: #90A1B9; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.cal { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); font-size: 12px; }
.cal > div { padding: 6px; border-left: 1px solid var(--line2); min-width: 0; }
.cal > .h { padding: 10px; border-bottom: 1px solid var(--line2); }
.cal > .t { border-left: 0; padding: 8px; color: var(--soft); text-align: right; font-weight: 600; }
.cal .ev { border-radius: 8px; padding: 8px; overflow: hidden; text-overflow: ellipsis; }
.cal .ev div { opacity: .8; }

/* заказ */
main.order { padding: 40px 0 64px; display: flex; flex-direction: column; gap: 24px; }
ol.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
ol.track li { padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--soft); }
ol.track li.on { background: var(--brand); color: #fff; }
ol.track li.done { background: var(--green-bg); color: var(--green); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 999 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.cols > aside { flex: 1 1 300px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 600px) { .cols > .main { padding: 22px; } }
.f2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.qrbox { padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qrbox img { display: block; width: 220px; height: 220px; object-fit: contain; }
.clickpay { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line2); }
.clickpay .btn { width: 100%; }
.btn-lg { height: 56px; font-size: 17px; }
.qrsum b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.qrsum p { margin: 4px 0 0; line-height: 1.5; }
.zk { background: var(--brand-50); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.zk div { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.spin { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--line2); border-top-color: var(--brand); animation: s 1s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.kv b { color: var(--text); }
.hr { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.keybox { font: 600 13px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; background: var(--bg2); border-radius: 10px; padding: 12px 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 700; display: grid; place-items: center; flex: none; }

/* подтверждение заказа в Telegram */
.tgstep { display: flex; flex-direction: column; gap: 16px; }
.tgbtn { width: 100%; }
.tgbtn .tgi { width: 22px; height: 22px; }
.tgi { flex: none; color: #229ED9; }
.tgbtn .tgi { color: #fff; }
.tgwait { display: flex; gap: 12px; align-items: center; background: var(--bg2); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.tgwait[hidden] { display: none; }
.spin.sm { width: 22px; height: 22px; border-width: 3px; flex: none; }
.notg { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line2); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--text); }

/* выбор программы на главной: карточка выбирает блок возможностей ниже */
.prod.pick { cursor: pointer; transition: box-shadow .15s; scroll-margin-top: 80px; }
.prod.pick:hover { box-shadow: 0 0 0 1px #FCA5A5, 0 4px 16px -4px rgb(15 23 42 / .12); }
.prod.pick.main:hover { box-shadow: 0 0 0 2px var(--brand), 0 4px 16px -4px rgb(15 23 42 / .12); }
.prod.pick:focus-visible { outline: 3px solid #FCA5A5; outline-offset: 2px; }
.prod-acts { justify-content: space-between; }
.prod .more { font-size: 14px; font-weight: 600; color: var(--soft); }
.prod.main .more { color: var(--brand); }
.fset { display: flex; flex-direction: column; gap: 32px; }
.fset[hidden], .cta[hidden] { display: none; }
/* первый экран: сетка всех программ — клик выбирает программу (как карточка) */
.heropick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.heropick .hp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 14px 8px;
  border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.25; transition: background .15s, box-shadow .15s; }
.heropick .hp:hover, .heropick .hp:focus-visible { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); outline: none; }
@media (max-width: 600px) { .hero { padding: 40px 0 48px; gap: 32px; } .heropick { padding: 8px; gap: 4px; } .heropick .hp { min-height: 84px; padding: 10px 4px; gap: 6px; font-size: 12px; } .heropick .tile { width: 36px; height: 36px; } }
section[id] { scroll-margin-top: 64px; }
/* тарифы: крупные карточки-радио на странице покупки и в блоке «Перейти на тариф выше» */
fieldset.tariffs { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
fieldset.tariffs legend { grid-column: 1 / -1; margin-bottom: 8px; }
.tcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 14px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tcard input { position: absolute; opacity: 0; pointer-events: none; }
.tcard b { font-size: 17px; }
.tcard .tprice { font-size: 18px; font-weight: 700; margin-top: 6px; }
.tcard:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-50); }
.tcard:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.upgrade { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.uprow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg2); }
.uprow form { margin: 0; }
.payqr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* путь клиента по макету mockups/onboarding (21.10.2026): одна узкая колонка, 3 шага, вкладки оплаты, «Оплата прошла» */
main.order { max-width: 680px; gap: 16px; padding: 40px 24px 64px; }
main.order.wide { max-width: 1080px; }
main.order > .card.main { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) { main.order { padding: 20px 16px 48px; } main.order > .card.main { padding: 20px; }
  .pane[data-p="click"] .qrbox:not(:only-child), .cqrhint { display: none; } }  /* на телефоне QR Click на своём же экране не отсканировать — только кнопка */
.order .h1 { font-size: 26px; line-height: 1.2; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.soft2 { color: var(--text2); font-weight: 600; }
.card.center { align-items: center; text-align: center; }
.btn-xs { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-xl { height: 60px; padding: 0 32px; font-size: 18px; border-radius: 12px; }
@media (max-width: 600px) { .btn-xl { width: 100%; padding: 0 16px; } }
/* тарифы на /buy/<код>: карточки с «Купить» */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan.hl, html.dark .plan.hl { box-shadow: 0 0 0 2px var(--brand), 0 4px 16px -4px rgb(15 23 42 / .08); }
.plan h3 { font-size: 19px; }
.plan .pprice { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan .ck { color: var(--brand); flex: none; margin-top: 3px; }
/* Telegram */
.tgstep { gap: 14px; padding-top: 36px; padding-bottom: 32px; }
.tgstep .tgbtn { width: auto; background: #229ED9; color: #fff; box-shadow: 0 2px 8px -2px rgb(34 158 217 / .5); }
.tgstep .tgbtn:hover { background: #1C8DC2; color: #fff; }
.tgflow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--text2); }
.tgflow span { background: var(--line2); padding: 4px 10px; border-radius: 999px; }
.tgstep .tgwait { background: none; padding: 0; font-size: 13px; }
.tgstep form { margin: 0; }
/* оплата */
.payhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
@media (max-width: 600px) { .amount { font-size: 28px; } }
.tabs { display: flex; gap: 4px; background: var(--line2); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: transparent; font: 600 15px Onest, system-ui, sans-serif; color: var(--muted); padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 0 0 1px var(--line); }
.pane { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pane[hidden] { display: none; }
.paybox { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.paybox form { margin: 0; }
.qrbox.sm { padding: 10px; border-radius: 12px; flex: none; }
.qrbox.sm img { width: 150px; height: 150px; }
.order .qrsum b { font-size: 24px; }
.order .zk { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; background: var(--line2); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--text2); align-self: flex-start; }
.order .zk b { font: 700 17px ui-monospace, Consolas, monospace; color: var(--text); letter-spacing: 0; }
/* оплата прошла: только «Скачать установщик»; редкое — свёрнуто внизу */
.paid { align-items: center; text-align: center; padding-top: 36px !important; }
.okc { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.okc .ck { width: 34px; height: 34px; }
.paid .h1 { font-size: 28px; }
.more { width: 100%; text-align: left; border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.more > details > summary { list-style: none; font-size: 14px; font-weight: 500; color: var(--soft); padding: 6px 0; display: flex; gap: 6px; align-items: center; scroll-margin-top: 90px; }
.more > details > summary::-webkit-details-marker { display: none; }
.more > details > summary:hover { color: var(--text); }
.more .chev { transition: transform .15s; flex: none; }
.more > details[open] > summary .chev { transform: rotate(180deg); }
.more .in { padding: 4px 0 14px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text2); }
.more .uprow { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.keyrow { display: flex; gap: 8px; margin: 0; }
.keyrow .input { height: 40px; font-size: 14px; min-width: 0; }
.kd summary { font-weight: 500; margin-top: 6px; }
.kd .keybox { margin-top: 6px; }
.nw { white-space: nowrap; }

/* версия программы: десктоп — тёмная метка, веб — серая (23.10.2026) */
.pill.ink { background: var(--text); color: var(--bg); }
.pill.ed { font-size: 11px; padding: 2px 8px; vertical-align: 1px; }

/* главная: 21 программа — группы по сферам (23.10.2026) */
.heropick[data-mode="groups"] { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.hp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 10px 10px; }
.hg { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; color: var(--text); }
.hg:hover, .hg:focus-visible { background: var(--bg2); color: var(--text); outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.hg-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hg-t b { font-size: 15px; font-weight: 600; }
.hg-t span { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-n { font-size: 13px; font-weight: 600; color: var(--soft); background: var(--line2); border-radius: 999px; padding: 2px 9px; flex: none; }
.pgroups { display: flex; flex-direction: column; gap: 40px; }
.pgroup { scroll-margin-top: 80px; }
.pgroup > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pgroup > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgroup > .grid { grid-template-columns: minmax(0, 1fr); } }
.ghead { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.tile.sm { width: 32px; height: 32px; border-radius: 9px; }
.prod h3 { font-size: 20px; }
.pdesc { font-size: 15px; line-height: 1.55; flex: 1; }
.prod.soon .tile { background: var(--line2); color: var(--soft); }
.soonnote { font-size: 14px; font-weight: 600; color: var(--soft); height: 48px; display: inline-flex; align-items: center; }
.prod.other { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 22px 28px; }
@media (max-width: 600px) { .hp-head > span { display: none; } .heropick[data-mode="groups"] { padding: 6px; } .hg { padding: 9px 8px; gap: 12px; } .pgroups { gap: 32px; } .ghead { font-size: 18px; } .prod { padding: 22px; } }
@media (max-width: 640px) { .pgroup .prod { padding: 18px; gap: 10px; } .pgroup .prod h3 { font-size: 18px; } .pgroup .pdesc { font-size: 14px; line-height: 1.45; }
  .pgroup .prod .btn { height: 42px; } .pgroup .prod .tile { width: 38px; height: 38px; } .soonnote { height: 42px; } }

/* главная: 80 программ (28.10.2026) — чипы сфер + поиск, плитки поменьше (4 в ряд) */
.ptools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; min-width: 0; max-width: 100%; }
.ptools[hidden] { display: none; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { border: 0; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text2);
  font: 500 14px Onest, system-ui, sans-serif; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.pchip i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--soft); }
.pchip:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.pchip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.pchip.on i { color: var(--bg); opacity: .7; }
.psearch { position: relative; max-width: 480px; }
.psearch svg { position: absolute; left: 14px; top: 13px; color: var(--soft); pointer-events: none; }
.psearch .input { padding-left: 42px; }
.pnone { font-size: 16px; }
.pnone[hidden], .pgroup[hidden], .prod.pick[hidden] { display: none; }
.pgroup > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pgroup .prod { padding: 20px; gap: 10px; }
.pgroup .prod .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pgroup .prod h3 { font-size: 17px; line-height: 1.3; }
.pgroup .prod .ph .tile { width: 40px; height: 40px; flex: none; }
.pgroup .prod .more { width: auto; border: 0; margin: 0; padding: 0; display: inline; }
.pgroup .pdesc { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pgroup .price { font-size: 20px; }
.pgroup .price small { font-size: 14px; }
.pgroup .prod .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.pgroup .soonnote { height: 40px; font-size: 13px; }
.pgroup .prod .more { font-size: 13px; }
.pgroup .prod-acts { flex-wrap: nowrap; gap: 8px; }
@media (max-width: 1200px) { .pgroup > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pgroup > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pgroup > .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pchips { flex-wrap: nowrap; overflow-x: auto; min-width: 0; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .pchips::-webkit-scrollbar { display: none; }
  .pchip { flex: none; }
  .psearch { max-width: none; }
  .pgroup .prod { padding: 16px; gap: 8px; }
  .pgroup .pdesc { -webkit-line-clamp: 2; }
}

/* пробная версия 7 дней (04.11.2026): вторая кнопка того же размера, что «Купить», — контурная (красный только у «Купить»),
   с иконкой Telegram и подписью «Откроется Telegram-бот…». Плитка каталога, блок возможностей, «Как купить», /buy, главная */
.btn-try { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 2px var(--text2); white-space: normal; text-align: center; line-height: 1.2; padding-inline: 16px; text-wrap: balance; }
.btn-try:hover { background: var(--bg2); color: var(--text); }
.btn-try .tgi { color: #229ED9; flex: none; }
.btn-try.btn-off:hover { background: var(--card); }
.trynote { font-size: 13px; line-height: 1.35; color: var(--soft); }
.pacts { display: flex; flex-direction: column; gap: 8px; }
.pacts .btn { width: 100%; }
.pacts .trynote { text-align: center; margin-top: -2px; font-size: 12px; text-wrap: balance; }
.pacts .more { align-self: center; margin-top: 2px; }
.pgroup .prod .pacts .btn { height: auto; min-height: 44px; padding: 8px 12px; font-size: 15px; }
.fcta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fbtns { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tryhow, .trybuy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 28px; margin-top: 16px; }
.trybuy { margin-top: 0; }
@media (max-width: 600px) {
  .fcta { width: 100%; align-items: stretch; } .fbtns { flex-direction: column; } .fcta .btn { width: 100%; } .fcta .trynote { text-align: center; }
  .tryhow, .trybuy { padding: 20px; } .tryhow .btn, .trybuy .btn { width: 100%; }
  .hero .row > .btn { width: 100%; }
}
.trialcard .btn-xl { margin-top: 4px; }
/* «Подробнее» → лендинг программы /p/<код> (05.11.2026) */
.pmore { font-size: 14px; font-weight: 600; align-self: center; }
.fset .pmore { align-self: flex-start; font-size: 15px; }
