/* Касса+ — сайт kassaplus.online. Без фреймворков.
   Тема: /js/theme.js ставит data-theme="light|dark" на <html> до отрисовки (выбор посетителя или как в системе).
   Без JavaScript работает запасной вариант — по настройке системы (prefers-color-scheme). */
:root {
  --brand: #0f766e; --brand-2: #115e59; --brand-soft: #e6f4f1; --accent: #0f766e; --accent-ink: #115e59;
  --bg: #ffffff; --bg-alt: #f4f6f5; --card: #ffffff; --ink: #15201d; --muted: #56655f; --line: #e1e7e5;
  --warn: #b45309; --down: #b91c1c; --header: rgba(255, 255, 255, 0.88);
  --hero-glow: #d7efe9; --frame: #e9eeec; --shadow: 0 1px 2px rgba(16, 40, 36, .06), 0 10px 30px rgba(16, 40, 36, .08);
  --input-bg: #ffffff; --input-line: #7d8d88; --ok-bg: #ecfdf5; --ok-ink: #065f46; --bad-bg: #fef2f2; --bad-ink: #991b1b;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
  --radius: 16px; --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --brand: #0f766e; --brand-2: #13897f; --brand-soft: #133a35; --accent: #5eead4; --accent-ink: #99f6e4;
  --bg: #0e1513; --bg-alt: #121c1a; --card: #151f1d; --ink: #e4ece9; --muted: #9aaba6; --line: #26332f;
  --warn: #fbbf24; --down: #f87171; --header: rgba(14, 21, 19, 0.85);
  --hero-glow: #123a35; --frame: #1b2825; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --input-bg: #101917; --input-line: #5f716b; --ok-bg: #0f2a1c; --ok-ink: #86efac; --bad-bg: #2c1515; --bad-ink: #fca5a5;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --brand: #0f766e; --brand-2: #13897f; --brand-soft: #133a35; --accent: #5eead4; --accent-ink: #99f6e4;
    --bg: #0e1513; --bg-alt: #121c1a; --card: #151f1d; --ink: #e4ece9; --muted: #9aaba6; --line: #26332f;
    --warn: #fbbf24; --down: #f87171; --header: rgba(14, 21, 19, 0.85);
    --hero-glow: #123a35; --frame: #1b2825; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    --input-bg: #101917; --input-line: #5f716b; --ok-bg: #0f2a1c; --ok-ink: #86efac; --bad-bg: #2c1515; --bad-ink: #fca5a5;
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--accent); }
.btn-soft { background: var(--brand-soft); color: var(--accent-ink); min-height: 40px; padding: 0 14px; border-radius: 10px; }
.btn-soft:hover { border-color: var(--accent); }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo b { color: var(--accent); }
.main-nav { display: flex; gap: 2px; margin-left: 12px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { background: var(--bg-alt); color: var(--accent); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; padding: 6px 8px; border-radius: 8px; }
.header-phone .ic { width: 18px; height: 18px; flex: 0 0 auto; }
.header-phone:hover { color: var(--accent); background: var(--bg-alt); }
@media (max-width: 720px) {
  .header-phone { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .header-phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.lang { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang button, .lang a { border: 0; text-decoration: none; display: inline-grid; place-items: center; background: transparent; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 5px 8px; border-radius: 7px; cursor: pointer; min-width: 34px; min-height: 30px; }
.lang button[aria-pressed="true"], .lang a[aria-current="page"] { background: var(--card); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.theme { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.theme button { border: 0; background: transparent; color: var(--muted); padding: 0; border-radius: 7px; cursor: pointer; width: 32px; min-height: 30px; display: inline-grid; place-items: center; }
.theme button svg { width: 17px; height: 17px; }
.theme button:hover, .lang button:hover, .lang a:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--card); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
/* на узком экране — одна кнопка с текущей темой, нажатие переключает по кругу */
@media (max-width: 560px) { .theme button:not([aria-pressed="true"]) { display: none; } }
@media (max-width: 1180px) { .main-nav { display: none; } }
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .header-row { gap: 8px; }
  .logo { font-size: 1.08rem; gap: 7px; }
  .logo-mark { width: 30px; height: 30px; }
  .header-right { gap: 6px; }
  .btn-soft { padding: 0 11px; min-height: 36px; font-size: .88rem; }
  .btn-soft .ic { display: none; }
  .lang button, .lang a { min-width: 30px; padding: 5px 6px; }
}
/* узкий телефон: «Войти» — только значок (подпись остаётся для экранного диктора) */
@media (max-width: 400px) {
  .header-right .btn-soft { width: 40px; padding: 0; }
  .header-right .btn-soft .ic { display: block; }
  .header-right .btn-soft span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 340px) {
  .container { padding: 0 12px; }
  .logo { font-size: 1rem; gap: 6px; }
  .logo-mark { width: 28px; height: 28px; }
  .lang button, .lang a { min-width: 28px; padding: 5px 4px; }
  .theme button { width: 30px; }
}

/* первый экран */
.hero { background: radial-gradient(900px 480px at 85% -10%, var(--hero-glow), transparent 60%); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .88rem; font-weight: 600; }
.chips .ic { width: 17px; height: 17px; color: var(--accent); }
.hero-visual { position: relative; padding-bottom: 40px; }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--frame); border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 8px; }
@media (max-width: 900px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }

/* разделы */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 700px) { .section { padding: 56px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.edition-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent-ink); margin-bottom: 14px; }
.edition-icon svg { width: 26px; height: 26px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) var(--tick) center / 12px no-repeat; }
.note { margin-top: 20px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; gap: 12px; } .feature { padding: 18px; } }

.safe { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--accent-ink); font-weight: 600; }
.demo-note { font-size: .85rem; color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.licenses { margin-top: 22px; }
.licenses h3 { margin-bottom: .3em; }
.licenses p { margin: 0; color: var(--muted); }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

.section-cta { background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; }
.section-cta .lead, .section-cta .muted { color: rgba(255, 255, 255, .92); }
.contacts-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contacts-grid.no-contacts { grid-template-columns: 1fr; max-width: 760px; }
.contact-buttons:empty { display: none; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-light { background: #fff; color: #134e4a; }
.btn-light:hover { background: #e6f4f1; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 14px; }
.contact-list b { display: block; font-size: .8rem; opacity: .8; font-weight: 600; }
.contact-list a { color: #fff; font-weight: 700; }
.contact-list .pending { font-style: italic; opacity: .85; }
@media (max-width: 800px) { .contacts-grid { grid-template-columns: 1fr; } .contact-buttons .btn { flex: 1 1 160px; } }
.contacts-grid { align-items: start; }
.contact-list:not([hidden]) { margin-top: 22px; }

/* форма «Заявка» — карточка в цветах выбранной темы */
.lead-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); }
.lead-card h3 { font-size: 1.3rem; margin-bottom: .25em; }
.section-cta .lead-card .muted, .lead-sub { color: var(--muted); }
.lead-sub { margin-bottom: 16px; }
.lead-card form { display: grid; gap: 14px; }
.lead-card form > * { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--input-bg); border: 1.5px solid var(--input-line); border-radius: 11px; padding: 11px 13px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--down); }
.lead-card :focus-visible { outline-color: var(--accent); }
.lead-send { width: 100%; }
.lead-send:disabled { opacity: .7; cursor: progress; }
.lead-msg { padding: 11px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-ink); font-weight: 600; font-size: .95rem; }
.lead-note { font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lead-done { text-align: center; padding: 18px 4px; outline: none; }
.lead-done-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; background: var(--ok-bg); color: var(--ok-ink); }
.lead-done p { color: var(--muted); }
.lead-done .btn { margin-top: 6px; }
@media (max-width: 480px) { .lead-card { padding: 20px 16px; } }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-row { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 24px; align-items: start; }
.footer-row p { margin: 8px 0 0; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); text-decoration: none; }
.footer-social a .ic { width: 20px; height: 20px; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(15, 23, 20, .25); text-decoration: none; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { filter: brightness(1.05); }
@media (max-width: 800px) { .footer-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }

/* карточки редакций, «что будет после заявки» (страницы редакций) */
.editions .card { display: flex; flex-direction: column; }
.next-box { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.next-box h3 { margin-bottom: .6em; }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 12px; }
.next-steps li { counter-increment: n; position: relative; padding-left: 40px; color: rgba(255, 255, 255, .94); min-height: 28px; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #134e4a; font-weight: 800; font-size: .9rem; }

/* страницы редакций (/programma-dlya-…, /tg/…): хлебные крошки, текст, карточки других редакций */
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--bg-alt); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-hero .hero-visual { padding-bottom: 0; }
.page-hero figure.frame { margin: 0; }
.page-hero .demo-note { margin-top: 10px; }
.prose h2 { margin-bottom: .6em; }
.prose p { font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }
.ed-cards { align-items: start; }
.ed-cards .card h3 { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.related .card { display: flex; flex-direction: column; }
.related .card p { margin-bottom: 0; }
.more-link { display: block; margin-top: auto; padding-top: 16px; font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.section-head a { font-weight: 600; }
.footer-links { display: grid; gap: 12px; }

/* ---------------------------------------------------------------- главная: короткая и с мокапами устройств */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.hero-main { padding: 48px 0 40px; }
.hero-main .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px; }
.hero-main h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero-main .lead { font-size: 1.15rem; max-width: 30em; }
.hero-main .chips li { font-size: .85rem; padding: 5px 12px; }
.hero-mock { margin-right: -24px; }
.hero-mock img, .slide img, .mock img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-main { padding: 32px 0 24px; }
  .hero-main .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-mock { margin: 0 -8px; }
}
/* редакции: четыре компактные карточки */
.ed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ed-card { display: flex; flex-direction: column; padding: 22px; }
.ed-card h3 { margin-bottom: .2em; }
.ed-card > p { margin: 0; font-size: .93rem; }
.ed-card .ticks { gap: 7px; font-size: .95rem; }
@media (max-width: 1080px) { .ed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .ed-grid { grid-template-columns: 1fr; gap: 12px; }
  .ed-grid .ed-card { display: block; padding: 18px; }
  .ed-card .edition-icon { float: left; width: 42px; height: 42px; margin: 0 12px 0 0; }
  .ed-grid .ed-card > p { overflow: hidden; }
  .ed-card .ticks { clear: both; padding-top: 12px; margin-top: 0; }
  .ed-card .more-link { padding-top: 12px; }
}
/* слайдер экранов: CSS scroll-snap + немного JS (стрелки, точки, клавиатура, автопрокрутка) */
.slider { max-width: 1000px; margin: 0 auto; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius); }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline-offset: 4px; }
.slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; text-align: center; }
.slide img { aspect-ratio: 1600 / 1080; }
.slide figcaption { margin: 4px auto 0; max-width: 40em; padding: 0 12px; color: var(--muted); font-size: .98rem; }
.slide figcaption b { color: var(--ink); margin-right: 4px; }
.slider-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.sl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s; }
.sl-btn:hover { border-color: var(--accent); color: var(--accent); }
.sl-btn svg { width: 20px; height: 20px; }
.sl-dots { display: flex; gap: 2px; }
.sl-dots button { width: 26px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sl-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .25s, background-color .25s; }
.sl-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
.sl-dots button:hover::before { background: var(--muted); }
.sl-dots button[aria-current="true"]:hover::before { background: var(--accent); }
/* возможности: плитки «значок + одна строка» */
.tiles { gap: 14px; }
.tiles .feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.tiles .feature svg { flex: none; width: 28px; height: 28px; margin: 2px 0 0; }
.tiles .feature h3 { margin-bottom: .15em; font-size: 1.02rem; }
@media (max-width: 560px) { .tiles { gap: 10px; } .tiles .feature { padding: 14px 16px; } }
/* облако / мониторинг с телефона */
.cloud-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.cloud-row .ticks { margin-top: 18px; }
.monitor-how { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.monitor-how li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.how-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent-ink); font-weight: 800; font-size: .82rem; }
.cloud-aside { margin: 14px 0 0; font-size: .95rem; }
.cloud-aside + .cloud-aside { margin-top: 6px; }
.cloud-aside.muted { color: var(--muted); font-weight: 500; }
.phone-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.phone { width: min(260px, 68vw); background: #0b0d0e; border-radius: calc(min(260px, 68vw) * .15); padding: calc(min(260px, 68vw) * .035); box-shadow: 0 0 0 2px #c4c9ca, 0 28px 48px rgba(16, 40, 36, .22); }
html[data-theme="dark"] .phone { box-shadow: 0 0 0 2px #4a5053, 0 28px 48px rgba(0, 0, 0, .55); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .phone { box-shadow: 0 0 0 2px #4a5053, 0 28px 48px rgba(0, 0, 0, .55); }
}
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: calc(min(260px, 68vw) * .12); display: block; }
.phone-tags { position: absolute; inset: 0; pointer-events: none; list-style: none; margin: 0; padding: 0; }
.phone-tags li { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); color: var(--ink); white-space: nowrap; }
.phone-tags li:nth-child(1) { top: 18%; left: 0; }
.phone-tags li:nth-child(2) { top: 46%; right: 0; }
.phone-tags li:nth-child(3) { bottom: 16%; left: 2%; }
@media (max-width: 900px) {
  .cloud-row { grid-template-columns: 1fr; gap: 28px; }
  .phone-stage { min-height: 0; padding: 8px 0 4px; flex-direction: column; }
  .phone { width: min(220px, 58vw); }
  .phone-tags { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
  .phone-tags li { position: static; }
}
.section-cta .ticks { margin-top: 22px; }
.section-cta .ticks li { color: rgba(255, 255, 255, .94); }
.section-cta .ticks li::before { background-color: #fff; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .section-cta .ticks { margin-top: 22px; }
.section-cta .ticks li { color: rgba(255, 255, 255, .94); }
.section-cta .ticks li::before { background-color: #fff; }
.steps-3 { grid-template-columns: 1fr; } }
/* мокап устройства на страницах редакций (вместо рамки браузера) */
.page-hero figure.mock { margin: 0 -12px 0 0; }
@media (max-width: 900px) { .page-hero figure.mock { margin: 0 -8px; } }

.ed-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 16px; }
.ed-actions[hidden], .ed-trial[hidden] { display: none !important; }
.ed-card .more-link { margin-top: 8px; padding-top: 0; }
.btn-dl { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; font-size: .92rem; text-decoration: none; border-radius: 8px; }
@media (max-width: 600px) {
  .ed-card .ed-actions { clear: both; padding-top: 12px; }
}
