/* Публичные страницы: тарифы, оферта, политика, реквизиты (15.11.2026).
   Стиль – как у /news и /connect. */
@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url("/static/assets/fonts/Manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500 800; font-display: swap; src: url("/static/assets/fonts/Manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Russo One"; font-display: swap; src: url("/static/assets/fonts/RussoOne-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F; }
@font-face { font-family: "Russo One"; font-display: swap; src: url("/static/assets/fonts/RussoOne-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
:root {
  --bg: #f3f6fc; --card: #fff; --soft: #eef2fb; --line: #dfe6f4; --line-strong: #c8d3ec;
  --ink: #0c1638; --muted: #5a6788; --navy: #0a1a4f; --blue: #2a4fd6; --violet: #6a3fc0; --red: #e0262e; --green: #1baf7a;
  --grad: linear-gradient(90deg, #2a4fd6 0%, #6a3fc0 50%, #e0262e 100%);
  --shadow: 0 1px 2px rgba(10, 26, 79, .05), 0 12px 32px -12px rgba(10, 26, 79, .18);
  --display: "Russo One", "Manrope", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(860px, 100% - 32px); margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 246, 252, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font: 700 14px "Manrope", system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .1s, box-shadow .15s, opacity .15s; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn.primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(106, 63, 192, .9); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.block { width: 100%; }
@media (max-width: 620px) { .top .long { display: none; } .logo img { height: 24px; } .top .wrap { gap: 8px; } .btn { padding: 0 12px; } }

.hero { position: relative; overflow: hidden; margin-top: 24px; padding: 36px 40px 32px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(42, 79, 214, .55), transparent 55%), radial-gradient(90% 100% at 100% 0%, rgba(224, 38, 46, .4), transparent 60%), linear-gradient(140deg, #0d1d58, #0a1238 70%); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f5c242; }
.hero h1 { margin: 0; font: 400 clamp(28px, 4.6vw, 44px)/1.12 var(--display); }
.hero p { max-width: 680px; margin: 12px 0 0; color: #c9d4ff; font-size: 16px; }
@media (max-width: 620px) { .hero { padding: 26px 20px; border-radius: 22px; } }

/* Документы */
.doc { margin: 22px 0 0; padding: 32px 40px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc h2 { margin: 28px 0 10px; font: 400 21px/1.25 var(--display); color: var(--navy); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 18px 0 6px; font-size: 16px; color: var(--navy); }
.doc p, .doc li { font-size: 15px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .meta { color: var(--muted); font-size: 13.5px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { width: 38%; color: var(--muted); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
@media (max-width: 620px) { .doc { padding: 22px 18px; border-radius: 18px; } .doc th { width: 44%; } }
.todo { padding: 1px 6px; border-radius: 6px; background: #fff3cd; color: #7a5300; font-weight: 700; }

/* Тарифы */
.switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.switch button { border: 0; border-radius: 10px; padding: 8px 16px; background: transparent; color: #dbe3ff; font: 700 14px "Manrope", system-ui, sans-serif; cursor: pointer; }
.switch button.on { background: #fff; color: var(--navy); }
.switch small { color: var(--green); font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10, 26, 79, .04); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 22px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { margin: 0; font: 400 22px var(--display); color: var(--navy); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 400 34px/1 var(--display); color: var(--navy); }
.price span { color: var(--muted); font-weight: 700; }
.plan .note { margin: -6px 0 0; color: var(--muted); font-size: 13px; min-height: 20px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; flex: 1; }
.plan li { position: relative; padding-left: 22px; font-size: 14.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.schools { margin-top: 30px; }
.schools h2 { margin: 0 0 6px; font: 400 24px var(--display); color: var(--navy); }
.schools > p { margin: 0 0 14px; color: var(--muted); }
.school-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1040px) { .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .school-grid { grid-template-columns: 1fr; } }
.school { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.school h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.school b { display: block; font: 400 20px var(--display); color: var(--navy); margin-bottom: 6px; }
.school p { margin: 0; color: var(--muted); font-size: 13.5px; }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .info { grid-template-columns: 1fr; } }
.info div { padding: 16px 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; }
.info b { display: block; color: var(--navy); margin-bottom: 4px; }

/* Окно оплаты */
dialog.pay { width: min(520px, 100% - 24px); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 80px -20px rgba(10, 26, 79, .5); }
dialog.pay::backdrop { background: rgba(10, 18, 56, .55); }
.pay form { display: grid; gap: 12px; padding: 24px; }
.pay h2 { margin: 0; font: 400 22px var(--display); color: var(--navy); }
.pay .sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.pay .sum b { font: 400 24px var(--display); color: var(--navy); }
.pay label.field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pay input[type=email] { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); font: 600 15px "Manrope", system-ui, sans-serif; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }
.pay .msg { min-height: 20px; margin: 0; font-size: 13.5px; color: var(--muted); }
.pay .msg.err { color: var(--red); }
.pay .row { display: flex; gap: 10px; }
.pay .row .btn { flex: 1; }
.secure { margin: 0; color: var(--muted); font-size: 12.5px; }

/* Мой тариф */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10, 26, 79, .04); }
.card h2 { margin: 0 0 10px; font: 400 20px var(--display); color: var(--navy); }
.card .big { font: 400 28px var(--display); color: var(--navy); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--soft); color: var(--navy); }
.status.ok { background: #e3f7ee; color: #0d7a52; }
.status.bad { background: #fde8e9; color: #b0141b; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pay-table td, .pay-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.pay-table th { color: var(--muted); font-size: 12.5px; }
.form-inline { display: flex; gap: 8px; margin-top: 10px; }
.form-inline input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); font: 600 14px "Manrope", system-ui, sans-serif; }

/* СБП (15.11.2026) */
.pay .methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pay .methods legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pay .method { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer; }
.pay .method:has(input:checked) { border-color: var(--blue); background: #f2f5ff; }
.pay .method input { margin-top: 3px; accent-color: var(--blue); }
.pay form[hidden], .sbp-step[hidden] { display: none; }
.sbp-step { display: grid; gap: 12px; padding: 24px; text-align: center; }
.sbp-step h2 { margin: 0; font: 400 22px var(--display); color: var(--navy); }
.sbp-step p { margin: 0; }
.sbp-step .qr { display: grid; place-items: center; min-height: 220px; }
.sbp-step .qr svg { width: 220px; height: 220px; }
.sbp-step .row { justify-content: center; }
.pay [hidden] { display: none !important; }
