/* Prowatt: public site. One system (see the "Дизайн-система" board of the design).
   Color: ink #0b1230 · surface #f3f4fa · white · blue #2f5bff (small labels, links) · amber #ffc23d (accent on dark, primary button on dark)
   Type: Montserrat 800 for headings (46 / 34 / 20), Montserrat 500 for text (18 / 16 / 14)
   Radius: 28 big blocks · 24 cards · 14 buttons, inputs, chips. One soft shadow. Rhythm of backgrounds: dark / gray / white. */

/* fonts are served from this site (public/assets/fonts): no third-party requests, works on slow links */
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('../assets/fonts/montserrat-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --ink: #0b1230; --ink-2: #12192e; --surface: #f3f4fa; --blue: #2f5bff; --amber: #ffc23d;
    --text: #475569; --cap: #56657a; --line: #e5e7f0; --dark-text: #9db0d9; --dark-cap: #b4c2e4;
    --wa: #22c55e; --danger: #e5484d;
    --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Montserrat', system-ui, sans-serif;
    --shadow: 0 30px 60px -36px rgba(15, 23, 60, .35);
    --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(body.site) img, :where(body.site) svg { max-width: 100%; }
:where(body.site) svg { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
:where(body.site) a { color: inherit; text-decoration: none; }
:where(body.site) :is(h1, h2, h3) { margin: 0; font-family: var(--display); font-weight: 800; text-wrap: balance; }
:where(body.site) p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #1a1200; padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible, .hdr :focus-visible, .hero :focus-visible { outline-color: var(--amber); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ sections and type */
.sec { padding: 72px 0; position: relative; }
.sec-flush { padding-top: 32px; }
.white { background: #fff; color: var(--ink); }
.gray { background: var(--surface); color: var(--ink); }
.dark { background: var(--ink); color: #fff; }
.h1 { font-size: 46px; line-height: 1.32; letter-spacing: -.02em; }
.h2 { font-size: 34px; line-height: 1.35; letter-spacing: -.02em; max-width: 760px; }
.eb { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.dark .eb, .hero .eb, .page-hero .eb { color: var(--amber); }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); margin-top: 24px; max-width: 620px; }
.dark .lead, .hero .lead, .page-hero .lead { color: var(--dark-text); }
.cap { font-size: 14px; color: var(--cap); }
.dark .cap, .hero .cap, .dcard .cap, .sched .cap { color: var(--dark-cap); }
.dcard .lead { color: var(--dark-cap); }
.link { display: inline-block; padding-block: 10px; font-weight: 700; color: var(--blue); }
.dark .link, .hero .link, .page-hero .link, .dcard .link { color: var(--amber); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { font-size: 13px; color: var(--cap); line-height: 1.5; }
.fine a { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 56px; padding: 0 28px; border: 0; border-radius: 4px; font: 700 16px/1 var(--font); white-space: nowrap; transition: transform .18s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 60px; }
.btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1a2550; }
.btn-amber { background: var(--amber); color: #1a1200; }
.btn-amber:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #052e16; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-line { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.card { background: #fff; border-radius: 4px; box-shadow: var(--shadow); }
.dcard { background: linear-gradient(160deg, #17234a, #0c1530); border-radius: 4px; border: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; border: 1.5px solid var(--line); border-radius: 4px; padding: 6px 14px; font-weight: 700; font-size: 14px; background: #fff; color: var(--ink); }
.dcard .chip, .page-hero .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 4px; background: var(--amber); color: var(--ink); }
.ic svg { width: 28px; height: 28px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-weight: 500; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--blue); stroke-width: 3; }
.dcard .ticks svg { color: var(--amber); }
.ticks-lg { margin-top: 0; font-size: 18px; gap: 16px; }
.ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }

/* ------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(11, 18, 48, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .04em; color: #fff; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 30px; margin-left: 16px; }
.nav a { font-size: 15px; color: var(--dark-text); transition: color .2s; }
.nav a:hover { color: #fff; }
.hdr-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.hdr-phone { font-weight: 700; font-size: 15px; color: var(--dark-text); white-space: nowrap; }
.hdr-phone:hover { color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .18); background: none; color: #fff; place-items: center; }
.burger svg { width: 1.4rem; height: 1.4rem; }
.burger .b-close { display: none; }
.burger[aria-expanded="true"] .b-open { display: none; }
.burger[aria-expanded="true"] .b-close { display: block; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(800px 480px at 88% 0%, rgba(47, 91, 255, .35), transparent 60%), var(--ink); color: #fff; }
.hero-traces { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.trc { position: absolute; width: calc((100vw - 1140px) / 2 + 30px); height: auto; max-width: none; }
.trc-tl { top: 0; left: 0; } .trc-tr { top: 0; right: 0; transform: scaleX(-1); } .trc-bl { bottom: 0; left: 0; transform: scaleY(-1); } .trc-br { bottom: 0; right: 0; transform: scale(-1, -1); }
@media (max-width: 1300px) { .hero-traces { display: none; } }
.hero-traces .tr { fill: none; stroke: var(--blue); stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 12; animation: flow 6s linear infinite; }
.hero-traces .nd { fill: var(--amber); fill-opacity: .6; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; padding-block: 48px 72px; }
.hero .lead { max-width: 500px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 40px; }
.trust { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: var(--dark-text); }
.trust b { display: block; color: #fff; font-size: 18px; }
.hero-visual { display: grid; place-items: center; }

/* the breaker panel: lit by default, dim until the switch is flipped when JavaScript runs */
.panel { position: relative; width: 100%; max-width: 520px; padding: 28px; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 18px; font-size: 12px; letter-spacing: .16em; color: var(--dark-text); }
.panel-status { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 180px; gap: 8px; letter-spacing: 0; font-weight: 700; font-size: 13px; color: var(--dark-cap); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(255, 194, 61, .7); }
.panel-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px; border-radius: 4px; background: rgba(2, 6, 23, .5); }
.main-sw { display: grid; justify-items: center; gap: 10px; align-content: start; }
.lever { padding: 0; border: 0; background: none; }
.lever-slot { display: block; position: relative; width: 84px; height: 156px; border-radius: 4px; background: #070d1c; border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .6); }
.lever-slot::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 10px; transform: translateX(-50%); border-radius: 3px; background: #020617; }
.lever-arm { position: absolute; left: 50%; top: 10px; width: 46px; height: 72px; margin-left: -23px; border-radius: 4px; background: linear-gradient(180deg, #ff7a59, #e2553a); box-shadow: 0 10px 18px -6px rgba(226, 85, 58, .6); transition: transform .38s cubic-bezier(.3, 1.4, .5, 1), background .3s; }
.main-hint { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.rail { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; }
.brk { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; }
.brk-body { position: relative; display: block; width: 58px; height: 108px; border-radius: 4px; background: linear-gradient(180deg, #e8edf8, #b9c3dc); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7); transition: transform .2s; }
.brk-body::before { content: ""; position: absolute; inset: 10px; border-radius: 3px; background: #1d2850; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6); }
.brk-toggle { position: absolute; left: 10px; right: 10px; top: 10px; height: 42px; border-radius: 3px; background: #2f855a; box-shadow: 0 4px 8px rgba(0, 0, 0, .35); transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), background .25s; }
.brk-label { font-size: 12px; font-weight: 700; color: var(--dark-cap); }
.wire { display: flex; justify-content: space-around; margin-top: 18px; padding: 0 12px; position: relative; }
.wire::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), var(--amber), transparent); opacity: .6; }
.bulb { display: block; width: 52px; padding-top: 8px; }
.bulb svg { width: 52px; height: 72px; filter: drop-shadow(0 0 14px rgba(255, 194, 61, .85)); transition: filter .35s; }
.bulb .glass { fill: #ffc23d; transition: fill .35s; }
.bulb .base { fill: #64748b; }
.panel-foot { display: grid; margin-top: 18px; }
.panel-foot > * { grid-area: 1 / 1; }
.panel-note { margin: 0; padding: 14px 16px; min-height: 96px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .16); line-height: 1.5; }
.panel-win { align-self: center; }
.panel-win[hidden] { display: flex; visibility: hidden; }
.panel-foot:has(.panel-win:not([hidden])) .panel-note { visibility: hidden; }
.js .lever[aria-checked="false"] .lever-arm { transform: translateY(66px); background: linear-gradient(180deg, #6a7aa6, #3c4a78); box-shadow: none; }
.js .panel:not(.is-on) .led { background: #3a4778; box-shadow: none; }
.js .panel:not(.is-on) .brk { opacity: .5; }
.js .panel.is-on .main-hint { visibility: hidden; }
.js .brk[aria-checked="false"] .brk-toggle, .js .panel:not(.is-on) .brk-toggle { transform: translateY(46px); background: #64748b; }
.js .brk:not([disabled]):hover .brk-body { transform: translateY(-2px); }
.js .bulb:not(.is-lit) svg { filter: none; }
.js .bulb:not(.is-lit) .glass { fill: #1e293b; stroke: #334155; }
.js .panel.is-win { box-shadow: 0 40px 90px -30px rgba(255, 194, 61, .5); }

/* ------------------------------------------------------------ courses */
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ccard { display: flex; flex-direction: column; padding: 32px; }
.ccard.card { border: 1px solid #eceffa; }
.ccard h3 { font-size: 28px; line-height: 1.2; margin-top: 24px; }
.ccard h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ccard .lead { margin-top: 12px; font-size: 17px; }
.ccard-foot { margin-top: auto; padding-top: 28px; }
.ccard-foot .cap b { color: var(--ink); }
.dcard .ccard-foot .cap b { color: #fff; }
.ccard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 16px; }

/* ------------------------------------------------------------ result tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tile { padding: 32px; }
.tile h3 { font-size: 20px; line-height: 1.3; margin-top: 24px; }
.tile .cap { margin-top: 8px; font-size: 15px; }

/* ------------------------------------------------------------ three months */
.months { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.months::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; height: 2px; background: var(--line); }
.months li { position: relative; }
.mn { display: grid; place-items: center; position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--amber); font: 800 20px/1 var(--display); }
.mn-amber { background: var(--amber); color: #1a1200; }
.months .card { padding: 28px; margin-top: 24px; border: 1px solid #eceffa; box-shadow: 0 20px 50px -34px rgba(15, 23, 60, .4); }
.months h3 { font-size: 20px; }
.months .cap { margin-top: 8px; font-size: 15px; }

/* ------------------------------------------------------------ reels */
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.reel { display: block; }
.reel-pic, .review-pic { display: block; position: relative; border-radius: 4px; background: linear-gradient(160deg, #1c2a55, #111a3a) center/cover; overflow: hidden; }
.reel-pic { aspect-ratio: 9 / 16; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 4px; background: var(--amber); color: #1a1200;  transition: transform .2s; }
.play svg { width: 22px; height: 22px; margin-left: 2px; }
.reel:hover .play, .review:hover .play { transform: scale(1.08); }
.reel-cap { display: block; margin-top: 12px; font-size: 14px; color: var(--dark-cap); line-height: 1.4; }


/* ------------------------------------------------------------ schedule */
.sched-wrap { margin-top: 36px; }
.sched { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 40px 48px; border-radius: 4px; background: linear-gradient(160deg, #17234a, #0c1530); border: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.sched-big { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.03em; margin-top: 8px; }
.sched-left { margin-top: 28px; }
.cd { display: flex; gap: 12px; margin-top: 12px; }
.cd span { display: grid; justify-items: center; background: rgba(255, 255, 255, .07); border-radius: 4px; padding: 16px 20px; min-width: 88px; }
.cd b { font: 800 32px/1.1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.cd i { font-style: normal; font-size: 13px; color: var(--dark-cap); }
.sched-pick { display: grid; gap: 12px; }
.gpick { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 24px; border-radius: 4px; border: 1.5px solid #26305a; background: transparent; color: #fff; text-align: left; transition: border-color .2s, background .2s; }
.gpick:hover { border-color: #3a4778; }
.gpick.is-on { border: 2px solid var(--amber); padding: 19px 23px; background: rgba(255, 194, 61, .06); }
.gpick-text { display: grid; gap: 2px; }
.gpick b { font-size: 18px; }
.gpick small { font-size: 14px; color: var(--dark-cap); }
.gpick em { font-style: normal; font-size: 13px; color: var(--dark-text); }
.gpick .gpick-full { color: #ff9b9e; font-weight: 700; }
.radio { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #3a4778; }
.radio svg { width: 14px; height: 14px; color: #1a1200; opacity: 0; stroke-width: 3.4; }
.gpick.is-on .radio { background: var(--amber); border-color: var(--amber); }
.gpick.is-on .radio svg { opacity: 1; }
.ics { justify-self: center; padding: 10px 8px; font-size: 13px; color: var(--dark-text); text-decoration: underline; text-underline-offset: 4px; }
.sched-foot { margin-top: 20px; }
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 24px; border-radius: 4px; border: 1.5px dashed #cbd5e1; }
.empty h3 { font-size: 22px; }
.empty p { max-width: 420px; color: var(--text); }
.empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: #1a1200; }
.empty-ic svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------ reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.review { display: block; }
.review-pic { height: 360px; background: linear-gradient(160deg, #dfe3f3, #eceffa) center/cover; }
.review h3 { font-size: 20px; line-height: 1.4; margin-top: 20px; }
.review .cap { display: block; margin-top: 4px; }

/* ------------------------------------------------------------ calculator */
.calc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.calc-intro .btn { margin-top: 32px; }
.calc-box { padding: 32px; border-radius: 4px; display: grid; gap: 24px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 4px; background: var(--surface); justify-self: start; }
.seg button { padding: 12px 20px; border: 0; border-radius: 4px; background: none; font-weight: 700; font-size: 14px; color: var(--cap); }
.seg button.is-on { background: var(--ink); color: #fff; }
.appl { display: flex; flex-wrap: wrap; gap: 8px; }
.appl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.appl-chip span { display: block; border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 16px; font-weight: 700; font-size: 14px; line-height: 1.25; background: #fff; cursor: pointer; transition: all .15s; }
.appl-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--cap); }
.appl-chip:hover span { border-color: var(--blue); }
.appl-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.appl-chip input:checked + span small { color: var(--amber); }
.appl-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.calc-custom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 700; font-size: 14px; }
.calc-custom input { width: 7rem; height: 48px; padding: 0 14px; border-radius: 4px; border: 1.5px solid var(--line); font: 700 16px var(--font); }
.calc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.co { display: grid; padding: 16px; border-radius: 4px; background: var(--surface); }
.co small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cap); }
.co b { font: 800 28px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.co i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--cap); }
.co-key { background: linear-gradient(145deg, #17234a, #0a1230); color: #fff; }
.co-key small, .co-key i { color: var(--dark-cap); }
.co-key b { color: var(--amber); }
.load { display: grid; gap: 10px; font-size: 14px; font-weight: 700; color: var(--cap); }
.load-bar { height: 10px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #34c38f, #ffc23d 70%, #ef4444); transition: width .4s cubic-bezier(.3, 1, .5, 1); }

/* ------------------------------------------------------------ award */
.award { background: linear-gradient(135deg, #fff1b8, #ffe08a 55%, #ffc23d); color: #1a1200; padding: 64px 0; }
.award-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 80px; align-items: center; }
.trophy { width: 220px; height: auto; justify-self: center; filter: drop-shadow(0 24px 30px rgba(120, 70, 0, .3)); animation: float 5s ease-in-out infinite; }
.award .eb { color: #1e3a8a; }
.award .h2 { max-width: 760px; }
.award .lead { color: #3b2f06; max-width: 720px; }
.award .cap { color: #5c4700; font-weight: 700; margin-top: 16px; }
.award .btn { margin-top: 28px; }

/* ------------------------------------------------------------ faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.faq-wrap .btn { margin-top: 28px; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--ink-2); border: 1px solid #1c2540; border-radius: 4px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--amber); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; color: var(--amber); stroke-width: 2.6; transition: transform .25s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 26px 22px; color: var(--dark-text); max-width: 640px; }

/* ------------------------------------------------------------ form and contacts */
.contacts { padding: 0 0 40px; }
.contacts-in { border-top: 1px solid #1c2540; padding-top: 72px; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.contacts .h2 { max-width: 560px; }
.contacts .lead { max-width: 460px; }
.contact-list { display: grid; gap: 6px; margin-top: 40px; }
.contact-phone { font: 800 24px/1.3 var(--display); color: #fff; }
.corp { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding: 22px 26px; border-radius: 4px; }
.corp .link { white-space: nowrap; }
.form-card { padding: 36px; border-radius: 4px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.lform { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select { width: 100%; height: 56px; padding: 0 18px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff; font: 500 16px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 255, .15); }
.field.has-error input { border-color: var(--danger); background: #fff7f7; }
.err { color: #c62d33; font-weight: 700; font-size: 14px; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { padding: 14px 16px; border-radius: 4px; background: #fff7f7; color: #c62d33; font-size: 14px; font-weight: 700; }
.form-msg[hidden], .lform[hidden], .form-done[hidden] { display: none; }
.lform .btn-lg { margin-top: 8px; }
.lform .fine { text-align: center; }
.lform.is-sending .btn { opacity: .7; pointer-events: none; }
.form-done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 24px 0; }
.form-done h3 { font-size: 24px; line-height: 1.25; margin-top: 8px; }
.form-done p { color: var(--text); max-width: 300px; }
.form-done .btn { margin-top: 12px; }
.done-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--amber); color: #1a1200; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.done-ic svg { width: 32px; height: 32px; stroke-width: 3; }

/* ------------------------------------------------------------ footer and floaters */
.ftr { background: var(--ink); color: var(--dark-cap); border-top: 1px solid #1c2540; }
.ftr-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 40px 24px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.ftr-nav a { padding-block: 10px; }
.ftr-nav a:hover { color: #fff; }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 16px 40px; border-top: 1px solid #1c2540; font-size: 13px; color: var(--dark-text); }
.wa-float { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 4px; background: var(--wa); color: #fff;  transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.sticky-cta { display: none; }

/* ------------------------------------------------------------ inner pages */
.page-hero { position: relative; background: radial-gradient(800px 420px at 88% 0%, rgba(47, 91, 255, .35), transparent 60%), var(--ink); color: #fff; padding: 56px 0 72px; }
.page-hero .h1 { max-width: 780px; }
.page-hero .chips { margin-top: 28px; }
.page-hero .hero-actions { margin-top: 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dark-text); margin-bottom: 32px; }
.crumbs a:hover { color: #fff; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.modules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.modules li { display: flex; gap: 20px; padding: 28px; }
.modules h3 { font-size: 20px; }
.modules .cap { margin-top: 6px; font-size: 15px; }
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p { margin-top: 12px; color: var(--text); font-size: 17px; }
.prose a { color: var(--blue); text-decoration: underline; }

/* ------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes flow { to { stroke-dashoffset: -180; } }
@keyframes float { 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
    .hero-in, .calc, .contacts-grid, .faq-wrap, .two, .award-in, .sched { grid-template-columns: 1fr; gap: 48px; }
    .sched { padding: 40px; }
    .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hdr-phone { display: none; }
    .tiles, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; gap: 4px; margin: 0; padding: 16px 20px 24px; background: rgba(11, 18, 48, .98); border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 4px; font-size: 17px; }
    .burger { display: grid; }
    .hdr-cta { margin-left: auto; }
    .hdr-cta .btn { display: none; }
    .courses, .months, .modules { grid-template-columns: 1fr; }
    .months::before { display: none; }
    .ticks-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body.site { padding-bottom: 76px; }
    .wrap { padding-inline: 16px; }
    .sec { padding: 40px 0; }
    .sec-flush { padding-top: 24px; }
    .h1 { font-size: 28px; }
    .h2 { font-size: 23px; line-height: 1.22; }
    .lead { font-size: 16px; margin-top: 16px; }
    .hero-in { padding-block: 32px 48px; gap: 32px; }
    .hero-actions .btn { width: 100%; }
    .hero-actions { gap: 16px; }
    .trust { gap: 16px 24px; margin-top: 32px; }
    .panel { padding: 16px; max-width: none; }
    .panel-body { grid-template-columns: 1fr; justify-items: center; }
    .lever-slot { width: 76px; height: 128px; }
    .lever-arm { width: 40px; height: 58px; margin-left: -20px; }
    .js .lever[aria-checked="false"] .lever-arm { transform: translateY(54px); }
    .rail { width: 100%; }
    .ccard { padding: 24px; }
    .ccard h3 { font-size: 21px; margin-top: 16px; }
    .ccard-actions .btn { width: 100%; }
    .tiles, .reviews { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
    .tile { padding: 18px; }
    .tiles > * { min-width: 0; }
    .tile h3 { font-size: 13px; margin-top: 16px; overflow-wrap: anywhere; hyphens: auto; }
    .tile .cap { display: none; }
    .ic { width: 48px; height: 48px; border-radius: 4px; }
    .ic svg { width: 24px; height: 24px; }
    .months { margin-top: 28px; gap: 14px; }
    .months li { display: flex; gap: 16px; }
    .months .card { margin-top: 0; padding: 18px; flex: 1; }
    .mn { width: 48px; height: 48px; font-size: 17px; flex: none; }
    .reels { display: flex; overflow-x: auto; gap: 12px; margin-top: 24px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
    .reel { flex: none; width: 170px; scroll-snap-align: start; }
    .sec-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sched { padding: 24px; gap: 28px; }
    .sched-big { font-size: 38px; }
    .cd span { min-width: 0; padding: 12px 16px; flex: 1; }
    .cd b { font-size: 24px; }
    .reviews { grid-template-columns: 1fr; }
    .review-pic { height: 260px; }
    .calc-box { padding: 18px; }
    .calc-out { grid-template-columns: 1fr 1fr; }
    .co b { font-size: 22px; }
    .award { padding: 48px 0; }
    .trophy { width: 100px; justify-self: start; }
    .faq-item summary { padding: 16px 18px; font-size: 15px; }
    .faq-a { padding: 0 18px 16px; }
    .contacts-in { padding-top: 48px; }
    .row2 { grid-template-columns: 1fr; }
    .form-card { padding: 20px; border-radius: 4px; }
    .corp { flex-direction: column; align-items: flex-start; }
    .contact-phone { font-size: 18px; }
    .wa-float { display: none; }
    .sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
    .sticky-cta.is-on { transform: none; }
    .sticky-cta .btn { height: 46px; font-size: 15px; padding: 0; }
    .page-hero { padding: 32px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ details */
.eb::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: currentColor; opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px; border-radius: 4px; background: rgba(255, 194, 61, .12); border: 1px solid rgba(255, 194, 61, .3); color: var(--amber); font-size: 14px; font-weight: 700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: ping 2s infinite; }
.meta { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.meta li { display: flex; gap: 12px; align-items: center; }
.meta svg { width: 20px; height: 20px; color: var(--blue); }
.dcard .meta { border-color: rgba(255, 255, 255, .1); color: var(--dark-cap); }
.dcard .meta svg { color: var(--amber); }
.ccard .ticks { margin-top: 20px; }
.tile { position: relative; transition: transform .25s, box-shadow .25s; }
.tile:hover, .ccard:hover, .months .card:hover, .review:hover .review-pic { transform: translateY(-4px); }
.tile-n { position: absolute; right: 24px; top: 20px; font: 800 14px/1 var(--display); color: #cdd2e4; }
.dcard .tile-n { color: #3a4778; }
.ccard, .months .card { transition: transform .25s; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.mini { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.mini li { display: flex; gap: 8px; align-items: center; }
.mini svg { width: 16px; height: 16px; color: var(--blue); stroke-width: 3; }
.reel-pic { transition: transform .25s; }
.reel:hover .reel-pic { transform: translateY(-4px); }
.reel-tag { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: rgba(11, 18, 48, .6); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; color: #fff; }
.reel-tag svg { width: 14px; height: 14px; }
.reel-mark { position: absolute; left: 50%; top: 32%; width: 46%; height: auto; transform: translateX(-50%); color: rgba(255, 194, 61, .1); }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.days span { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 6px; border-radius: 4px; background: rgba(255, 255, 255, .05); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #5f709f; transition: background .2s, color .2s; }
.days span.on { background: var(--amber); color: #1a1200; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 24px; font-size: 14px; color: #5c4700; }
.facts b { display: block; font-size: 17px; color: #1a1200; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--dark-cap); }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #1a1200; font: 800 13px/1 var(--display); }
.contact-list { margin-top: 28px; }
.ftr-soc { display: flex; gap: 10px; }
.ftr-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; border: 1px solid #26305a; color: var(--dark-cap); transition: border-color .2s, color .2s; }
.ftr-soc a:hover { border-color: var(--amber); color: var(--amber); }
.js .reveal { transition-delay: var(--d, 0ms); }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 194, 61, 0); } }
@media (max-width: 640px) {
    .tile-n { display: none; }
    .meta { margin-top: 16px; padding-top: 14px; }
    .facts { gap: 10px 24px; }
    .pill { font-size: 13px; }
}

.logo-img { display: block; height: 36px; width: auto; }
.logo-plate { background: #fff; border-radius: 4px; padding: 5px 10px; height: 40px; }
@media (max-width: 640px) { .panel-top { font-size: 11px; letter-spacing: .1em; } .panel-status { min-width: 0; } }

/* ------------------------------------------------------------ spec layout: label column + content, rules instead of cards */
.spec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.spec .side { position: relative; }
.spec .side .eb { position: sticky; top: 104px; margin: 0; display: flex; align-items: baseline; gap: 14px; }
.spec .side .eb::before { display: none; }
.spec .num { font: 800 13px/1 var(--display); color: var(--cap); letter-spacing: .04em; }
.spec .h2 { max-width: 720px; }

.rows { margin-top: 40px; border-top: 2px solid var(--ink); }
.crow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.crow h3 { font-size: 30px; line-height: 1.15; }
.crow h3 a:hover { color: var(--blue); }
.crow .lead { margin-top: 14px; font-size: 17px; max-width: 440px; }
.crow-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.sheet { margin: 0; align-self: center; }
.sheet > div { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 15px; }
.sheet dt { color: var(--cap); font-weight: 500; white-space: nowrap; }
.sheet > div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #b9c0d4; transform: translateY(-4px); }
.sheet dd { order: 2; margin: 0; font-weight: 700; text-align: right; }
.sheet dt { order: 0; }
.sheet > div::after { order: 1; }
.sheet .hot { color: var(--blue); }

.skills { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.skills li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 22px 0 24px; border-bottom: 1px solid #d9dcea; }
.sk-n { grid-row: span 2; font: 800 13px/1.9 var(--display); color: var(--cap); }
.skills h3 { font-size: 19px; line-height: 1.3; }
.skills p { margin: 6px 0 0; color: var(--text); font-size: 15px; }
.skills .is-hot h3 { color: var(--blue); }

.plan { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.plan li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.plan-n { font: 800 88px/.9 var(--display); letter-spacing: -.04em; color: var(--ink); }
.plan li:last-child .plan-n { color: var(--blue); }
.plan h3 { font-size: 24px; line-height: 1.2; }
.plan-t { margin: 10px 0 0; max-width: 560px; color: var(--text); }
.plan-b { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }

/* faq: plain rules */
.faq { gap: 0; border-top: 1px solid #26315a; }
.faq-item { background: none; border: 0; border-bottom: 1px solid #26315a; border-radius: 0; }
.faq-item[open] { border-color: #26315a; }
.faq-item summary { padding: 22px 0; }
.faq-a { padding: 0 0 24px; }

/* current rail: a line down the left edge that lights up section by section */
.rail-nav { position: fixed; left: 28px; top: 50%; z-index: 30; transform: translateY(-50%); display: none; flex-direction: column; gap: 18px; }
.rail-nav::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: rgba(120, 130, 170, .35); }
.rail-nav a { position: relative; display: flex; align-items: center; gap: 12px; width: 10px; height: 10px; }
.rail-nav i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #aab2cc; box-shadow: 0 0 0 3px var(--rail-bg, #fff); transition: background .25s, transform .25s; }
.rail-nav span { position: absolute; left: 22px; padding: 4px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.rail-nav a:hover span, .rail-nav a:focus-visible span { opacity: 1; transform: none; }
.rail-nav a.is-on i { background: var(--amber); transform: scale(1.4); }
.rail-nav a.is-past i { background: var(--blue); }
@media (min-width: 1380px) { .rail-nav { display: flex; } }

@media (max-width: 900px) {
    .spec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .spec .side .eb { position: static; }
    .crow { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0; }
    .crow h3 { font-size: 26px; }
    .skills { grid-template-columns: minmax(0, 1fr); }
    .plan li { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
    .plan-n { font-size: 56px; }
}

.plan-sm li { padding: 24px 0; grid-template-columns: 72px minmax(0, 1fr); }
.plan-sm .plan-n { font-size: 32px; line-height: 1.1; color: var(--cap); letter-spacing: -.02em; }
.plan-sm li:last-child .plan-n { color: var(--blue); }
.plan-sm h3 { font-size: 20px; }

/* contact block: one list, one style */
.contacts-grid { align-items: start; }
.sheet-dark { margin-top: 36px; border-top: 1px solid #26315a; }
.sheet-dark > div { padding: 13px 0; border-bottom: 1px solid #26315a; }
.sheet-dark > div::after { display: none; }
.sheet-dark dt { color: var(--dark-cap); min-width: 110px; font-weight: 500; }
.sheet-dark dd { order: 1; flex: 1; text-align: left; font-weight: 600; color: #fff; }
.sheet-dark a { color: #fff; }
.sheet-dark a:hover { color: var(--amber); }
.sheet-dark > div:first-child dd a { font: 800 22px/1.2 var(--display); }
.sheet-dark > div:nth-last-child(-n+2) dd a { color: var(--amber); }
.co b { overflow-wrap: anywhere; }
.co b.is-txt { font-size: 20px; line-height: 1.5; }

/* plainer: no numerals, labels only */
.skills li { display: block; padding: 22px 0 24px; }
.plan li { grid-template-columns: 140px minmax(0, 1fr); padding: 28px 0; }
.plan-k { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.plan h3 { font-size: 22px; }
.plan-sm li { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .plan li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* award: plain section */
.award-lead { max-width: 560px; margin-top: 14px; }
.sheet-line { margin-top: 32px; border-top: 2px solid var(--ink); }
.sheet-line > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.sheet-line > div::after { display: none; }
.sheet-line dt { min-width: 120px; }
.sheet-line dd { order: 1; flex: 1; text-align: left; }

/* calculator readout: a small device display */
.readout { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 0; border-radius: 4px; background: linear-gradient(160deg, #17234a, #0a1230); color: #fff; overflow: hidden; }
.ro-cell { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 24px 12px; min-height: 190px; }
.ro-cell + .ro-cell, .ro-stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.ro-cell small, .ro-stat dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-cap); }
.brk-fig { position: relative; display: block; width: 66px; }
.brk-fig svg { display: block; width: 100%; height: auto; }
.brk-fig b { position: absolute; left: 0; right: 0; top: 61%; text-align: center; font: 800 15px/1.8 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cw { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #3a4778; }
.cw i { display: block; width: var(--w, 0px); height: var(--w, 0px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd98a, #d98a06); transition: width .35s cubic-bezier(.3, 1, .5, 1), height .35s cubic-bezier(.3, 1, .5, 1); }
.ro-big { font: 800 26px/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.ro-stat { margin: 0; display: grid; align-content: center; gap: 20px; padding: 24px 22px; }
.ro-stat dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--dark-cap); }
.ro-stat b { font: 800 30px/1.1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .readout { grid-template-columns: 1fr 1fr; } .ro-stat { grid-column: span 2; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); } }

/* readout, tidy: every cell = picture / value / label on the same lines */
.ro-cell { align-content: start; gap: 8px; min-height: 0; padding: 24px 12px 22px; }
.fig { display: grid; place-items: center; width: 100%; height: 84px; }
.brk-svg { display: block; height: 84px; width: auto; }
.cw { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #3a4778; }
.ro-big { font: 800 28px/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; margin-top: 6px; }
.ro-stat { align-content: center; gap: 14px; padding: 22px 24px; }
.ro-stat > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.ro-stat dd { margin: 0; text-align: right; }
.ro-stat b { font-size: 24px; }
.ro-stat dd { white-space: nowrap; }
.ro-stat > div { grid-template-columns: auto 1fr; }
.ro-stat b { font-size: 22px; }
.readout { grid-template-columns: 1fr 1fr 1.25fr; }
.cw::before, .cw::after { content: none; }
.calc { align-items: start; }
.calc-intro { position: sticky; top: 120px; }
.load span { display: block; min-height: 2.9em; }

/* the hidden checkbox must sit inside its chip, otherwise focusing it scrolls the page */
.appl-chip { position: relative; }
.appl-chip input { top: 0; left: 0; width: 1px; height: 1px; margin: 0; }
.calc-intro { position: static; }
.cw i { transition: none; }
.load-bar i { transition: none; }

/* nothing may change size while numbers change */
.readout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.ro-stat b { display: inline-block; min-width: 4.2ch; text-align: right; }
.ro-stat dd { text-align: right; }
.load span { line-height: 1.5; min-height: 3em; }
.ro-big { min-width: 3ch; text-align: center; }

/* readout: the stat column never overflows */
.ro-stat { padding: 20px 18px; gap: 12px; min-width: 0; }
.ro-stat > div { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.ro-stat dt { font-size: 10px; letter-spacing: .06em; }
.ro-stat dd { white-space: nowrap; font-size: 13px; }
.ro-stat b { min-width: 3.6ch; font-size: 20px; }
@media (max-width: 1320px) {
    .readout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ro-stat { grid-column: span 2; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); gap: 8px; }
    .ro-stat > div { grid-template-columns: 1fr; row-gap: 2px; justify-items: start; }
    .ro-stat dd { text-align: left; }
    .ro-stat b { min-width: 0; text-align: left; }
}

/* small phones: nothing is wider than the screen */
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
    .btn { white-space: normal; height: auto; min-height: 54px; padding: 12px 20px; line-height: 1.25; text-align: center; }
    .btn-lg { padding: 14px 22px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .link { text-align: center; }
}

/* tablets and small laptops */
@media (min-width: 701px) and (max-width: 900px) {
    .crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
    .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .spec { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
    .crow { gap: 32px; }
    .hero .h1 { font-size: 40px; }
}

/* ------------------------------------------------------------ phones: compact, sliders with a proper left margin */
@media (max-width: 640px) {
    .wrap.reels, .wrap.reviews { display: flex; overflow-x: auto; gap: 12px; width: 100%; margin-top: 20px; padding: 0 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .wrap.reels::-webkit-scrollbar, .wrap.reviews::-webkit-scrollbar { display: none; }
    .wrap.reels::after, .wrap.reviews::after { content: ""; flex: none; width: 4px; }
    .reel { flex: none; width: 150px; scroll-snap-align: start; }
    .review { flex: none; width: 72%; max-width: 280px; scroll-snap-align: start; }
    .review-pic { height: 190px; background-position: center 38%; border-radius: 4px; }
    .review h3 { font-size: 15px; margin-top: 12px; }
    .reel-pic { border-radius: 4px; }
    .reel-cap { font-size: 13px; margin-top: 8px; }

    .sec { padding: 32px 0; }
    .h1 { font-size: 26px; }
    .h2 { font-size: 21px; }
    .eb { font-size: 11px; margin-bottom: 10px; }
    .lead { font-size: 15px; margin-top: 12px; }
    .btn { min-height: 48px; padding: 10px 18px; font-size: 15px; border-radius: 4px; }
    .btn-lg { padding: 12px 20px; }
    .hero-in { padding-block: 24px 36px; gap: 24px; }
    .trust { margin-top: 24px; gap: 12px 20px; }
    .trust b { font-size: 15px; }

    .rows { margin-top: 20px; }
    .crow { padding: 22px 0; gap: 16px; }
    .crow h3 { font-size: 22px; }
    .crow .lead { font-size: 15px; margin-top: 8px; }
    .crow-act { margin-top: 16px; }
    .sheet > div { padding: 6px 0; font-size: 14px; }
    .skills { margin-top: 20px; }
    .skills li { padding: 14px 0 16px; }
    .skills h3 { font-size: 16px; }
    .skills p { font-size: 14px; margin-top: 3px; }
    .plan { margin-top: 20px; }
    .plan li { padding: 18px 0; gap: 4px; }
    .plan h3 { font-size: 18px; }
    .plan-t { font-size: 14px; margin-top: 6px; }
    .sheet-line { margin-top: 20px; }
    .sheet-line > div, .sheet-dark > div { padding: 10px 0; }
    .sheet-dark { margin-top: 24px; }
    .sheet-dark > div:first-child dd a { font-size: 19px; }

    .sched { padding: 18px; gap: 20px; }
    .sched-big { font-size: 32px; }
    .calc-box { padding: 14px; gap: 14px; }
    .appl-chip span { padding: 8px 12px; font-size: 13px; }
    .readout { border-radius: 4px; }
    .ro-cell { padding: 16px 8px 14px; gap: 6px; }
    .fig { height: 64px; }
    .brk-svg { height: 64px; }
    .cw { width: 56px; height: 56px; }
    .ro-big { font-size: 22px; margin-top: 2px; }
    .ro-stat { padding: 12px 14px; }
    .ro-stat b { font-size: 18px; }
    .load span { font-size: 13px; }
    .faq-item summary { padding: 14px 0; font-size: 15px; }
    .faq-a { padding: 0 0 16px; font-size: 14px; }
    .form-card { padding: 16px; }
    .field input, .field select { height: 50px; }
    .contacts-in { padding-top: 32px; }
    .ftr .wrap { padding-block: 24px; }
}
@media (max-width: 640px) {
    .reviews { display: flex; overflow-x: auto; gap: 12px; margin: 20px -16px 0; padding: 0 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .reviews::-webkit-scrollbar { display: none; }
    .reviews::after { content: ""; flex: none; width: 4px; }
}
@media (max-width: 640px) {
    .panel { padding: 14px; }
    .panel-body { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; align-items: end; gap: 10px; padding: 12px; }
    .lever-slot { width: 62px; height: 104px; }
    .lever-arm { width: 34px; height: 48px; margin-left: -17px; }
    .js .lever[aria-checked="false"] .lever-arm { transform: translateY(44px); }
    .rail { width: auto; gap: 6px; }
    .wire { margin-top: 10px; }
    .bulb svg { width: 30px; height: auto; }
    .panel-note { min-height: 72px; font-size: 13px; padding: 12px 14px; }
}
@media (max-width: 640px) { .brk-label { font-size: 10.5px; letter-spacing: 0; } .main-hint { font-size: 11px; } .panel-body { padding: 12px 10px; } }

/* phones: floating action pill instead of a white bar */
@media (max-width: 640px) {
    .sticky-cta { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(11, 18, 48, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -10px rgba(5, 9, 28, .6); }
    .sc-wa { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: #fff; }
    .sc-wa svg { width: 24px; height: 24px; }
    .sticky-cta .sc-main { flex: 1; height: 48px; min-height: 48px; border-radius: 4px; font-size: 15px; }
    body.site { padding-bottom: 88px; }

    /* course cards */
    .rows { border-top: 0; display: grid; gap: 14px; margin-top: 18px; }
    .crow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px; border: 0; border-radius: 4px; background: var(--surface); }
    .crow-main { display: contents; }
    .crow h3 { order: 1; font-size: 22px; }
    .crow .lead { order: 2; margin: 6px 0 0; font-size: 14px; color: var(--text); }
    .sheet { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; align-self: stretch; }
    .sheet > div { display: grid; gap: 1px; padding: 10px 12px; border-radius: 4px; background: #fff; }
    .sheet > div::after { display: none; }
    .sheet dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cap); font-weight: 700; }
    .sheet dd { text-align: left; font-size: 14px; line-height: 1.3; }
    .crow-act { order: 4; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 14px; }
    .crow-act .btn { width: 100%; }
    .crow-act .link { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 640px) { .crow .sheet > div:nth-child(3), .crow .sheet > div:nth-child(4) { display: none; } .crow .sheet dd { font-size: 15px; } }
@media (max-width: 640px) { .crow .sheet > div { align-content: start; } }
.wa-float svg { width: 30px; height: 30px; display: block; margin: 0; }
.wa-float { line-height: 0; }
@media (max-width: 640px) {
    .sc-wa { background: var(--wa); color: #fff; }
    .sc-wa svg { width: 26px; height: 26px; display: block; }
}

/* the card-style facts are for course cards only; contact and award lists stay plain rows */
@media (max-width: 640px) {
    .sheet-dark, .sheet-line { display: block; }
    .sheet-dark > div, .sheet-line > div { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-radius: 0; background: none; }
    .sheet-dark dt, .sheet-line dt { min-width: 92px; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
    .sheet-dark dt { color: var(--dark-cap); }
    .sheet-line dt { color: var(--cap); }
    .sheet-dark dd, .sheet-line dd { order: 1; flex: 1; text-align: left; font-size: 15px; }
    .sheet-dark dd { color: #fff; }
}

/* scroll line: current flowing along the wire, with a spark at the head */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 0; height: 4px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 194, 61, 0) 0, #fff3c4 45%, rgba(255, 194, 61, 0) 90%) 0 0 / 120px 100% repeat-x, repeating-linear-gradient(90deg, #ffb41f 0 14px, #ffd36b 14px 20px); animation: flow-line 1.1s linear infinite; }
.progress::after { content: ""; position: absolute; right: -3px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px rgba(255, 194, 61, .9); }
@keyframes flow-line { to { background-position: 120px 0, 20px 0; } }
@media (prefers-reduced-motion: reduce) { .progress { animation: none; } }

/* phone hero: one message, one button */
@media (max-width: 640px) {
    .hero .eb, .hero .trust, .h1-sub { display: none; }
    .hero .h1 { font-size: 34px; line-height: 1.12; }
    .hero .pill { margin-bottom: 14px; }
    .hero .lead { margin-top: 12px; font-size: 16px; max-width: 30ch; }
    .hero-actions { margin-top: 22px; gap: 10px; }
}

/* play marker: a small tag in the corner instead of a big button in the middle */
.play { left: 10px; top: auto; bottom: 10px; z-index: 2; width: auto; height: 32px; margin: 0; padding: 0 12px 0 10px; display: flex; align-items: center; gap: 7px; border-radius: 3px; background: rgba(11, 18, 48, .82); color: #fff; font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.play svg { width: 12px; height: 12px; margin: 0; color: var(--amber); }
.play::after { content: "Смотреть"; }
.reel:hover .play, .review:hover .play { transform: none; background: var(--amber); color: #1a1200; }
.reel:hover .play svg, .review:hover .play svg { color: #1a1200; }
.reel-pic::after, .review-pic::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(5, 9, 28, .6), transparent); pointer-events: none; }
.reel:hover .reel-pic { transform: none; }
.faq-wa { display: inline-block; margin-top: 20px; }

/* ------------------------------------------------------------ phones: calculator in order, fewer buttons */
@media (max-width: 640px) {
    .calc-box { display: flex; flex-direction: column; gap: 14px; }
    .calc-box > .seg { order: 1; display: grid; width: 100%; justify-self: stretch; }
    .calc-box > .readout { order: 2; }
    .calc-box > .load { order: 3; }
    .calc-box > .appl { order: 4; }
    .calc-box > .calc-custom { order: 5; }
    .calc-box > .fine { order: 6; margin: 0; }
    .seg button { padding: 11px 8px; font-size: 14px; text-align: center; }
    .appl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .appl-chip { display: block; }
    .appl-chip span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; height: 100%; padding: 11px 12px; font-size: 13px; }
    .appl-chip small { display: inline; font-size: 12px; white-space: nowrap; }
    .calc-custom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
    .calc-custom input { width: 6rem; height: 44px; }

    .hero-actions .link, .crow-act .btn, .form-card .btn-line, .faq-wa { display: none; }
    .crow-act { grid-template-columns: 1fr; margin-top: 12px; }
    .crow-act .link { display: block; padding: 12px 0; text-align: center; border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 700; color: var(--ink); }
}

.about { margin-top: 24px; max-width: 680px; display: grid; gap: 14px; }
.about p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; }
@media (max-width: 640px) { .about { gap: 10px; margin-top: 14px; } .about p { font-size: 15px; line-height: 1.6; } }

/* ------------------------------------------------------------ one slider for reviews and lessons */
.wrap.reels { display: flex; overflow-x: auto; gap: 16px; margin-top: 28px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wrap.reels::-webkit-scrollbar { display: none; }
.wrap.reels .reel { flex: none; width: 210px; scroll-snap-align: start; }
.reel-cap small { display: block; margin-top: 2px; color: var(--amber); font-weight: 700; }
.vnav { display: flex; gap: 8px; flex: none; }
.vnav button { width: 44px; height: 44px; border: 1.5px solid #3a4778; border-radius: 4px; background: none; color: #fff; font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.vnav button:hover { background: var(--amber); border-color: var(--amber); color: #1a1200; }
.reviews-link { margin-top: 20px; }
.dark .wrap + .wrap > .link { display: inline-block; margin-top: 8px; }

/* course photo next to the text */
.crow { grid-template-columns: 190px minmax(0, 1.1fr) minmax(0, .9fr); }
.crow-pic { align-self: start; aspect-ratio: 4 / 5; border-radius: 4px; background: #dfe3f3 center 30% / cover no-repeat; }

/* award: compact */
.sec-tight { padding: 44px 0; }
.award-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.award-pic { flex: none; width: 200px; height: auto; border-radius: 4px; }
.award-lead { max-width: 560px; margin: 12px 0 14px; }

/* schedule in the tone of the other sections */
.sched { background: none; color: var(--ink); border-radius: 0; border-top: 2px solid var(--ink); padding: 32px 0 0; gap: 56px; }
.sched .cap, .sched small, .sched .cd i { color: var(--cap); }
.sched .link { color: var(--blue); }
.sched .cd span { background: #fff; }
.sched .cd b { color: var(--ink); }
.sched .days span { background: #fff; color: var(--cap); }
.sched .days span.on { background: var(--ink); color: #fff; }
.sched .gpick { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.sched .gpick:hover { border-color: var(--ink); }
.sched .gpick.is-on { border: 2px solid var(--ink); padding: 19px 23px; background: #fff; }
.sched .gpick em { color: var(--text); }
.sched .gpick .radio { border-color: #c5cadc; }
.sched .gpick.is-on .radio { background: var(--ink); border-color: var(--ink); color: #fff; }
.sched .btn-amber { background: var(--ink); color: #fff; }

/* form: the group is picked in the schedule */
.field-group { display: none; }
.field-group.is-shown { display: block; }
.row2:has(.field-group:not(.is-shown)) { grid-template-columns: 1fr; }

/* the spark on the scroll line is for phones only */
@media (min-width: 641px) {
    .progress { animation: none; height: 3px; background: var(--amber); }
    .progress::after { display: none; }
}

@media (max-width: 900px) and (min-width: 701px) { .crow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .crow-pic { grid-column: 1 / -1; aspect-ratio: 16 / 7; } }
@media (min-width: 901px) and (max-width: 1100px) { .crow { grid-template-columns: 140px minmax(0, 1.1fr) minmax(0, .9fr); } }
@media (max-width: 700px) {
    .crow-pic { aspect-ratio: 16 / 9; order: 0; margin-bottom: 14px; background-position: center 25%; }
    .vnav { display: none; }
    .wrap.reels .reel { width: 150px; }
    .award-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sched { padding-top: 20px; gap: 24px; }
    .sec-tight { padding: 32px 0; }
}
@media (max-width: 700px) { .crow { grid-template-columns: minmax(0, 1fr); } .crow-pic { grid-column: auto; } }

/* courses: no photo column */
.crow-pic { display: none; }
.crow { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 700px) { .crow { grid-template-columns: minmax(0, 1fr); } }

/* logo: white, no plate */
.logo-img { height: 30px; }

/* schedule: the chosen group is marked with the accent, not with a black blob */
.sched .gpick.is-on { border: 2px solid var(--amber); padding: 19px 23px; background: rgba(255, 194, 61, .1); }
.sched .gpick.is-on .radio { background: var(--amber); border-color: var(--amber); color: #1a1200; }
.sched .days span.on { background: var(--amber); color: #1a1200; }
.sched .btn-amber { background: var(--amber); color: #1a1200; }
.sched .cd b { color: var(--ink); }

/* ------------------------------------------------------------ footer */
.ftr-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 56px; padding-block: 48px 32px; }
.ftr-brand p { margin: 16px 0 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: var(--dark-text); }
.ftr-col { display: grid; align-content: start; gap: 2px; }
.ftr-col h3 { margin: 0 0 10px; font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--dark-text); }
.ftr-links a { padding-block: 7px; font-size: 15px; color: var(--dark-cap); }
.ftr-links a:hover { color: #fff; }
.ftr-phone { font: 800 22px/1.3 var(--display); color: #fff; }
.ftr-contacts p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--dark-cap); }
.ftr-soc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.ftr-soc a { display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; padding-block: 6px; border: 0; border-radius: 0; color: var(--dark-cap); font-size: 14px; font-weight: 600; }
.ftr-soc a:hover { color: var(--amber); }
.ftr-soc svg { width: 18px; height: 18px; }
.ftr-bottom { align-items: center; padding-block: 18px 28px; }
.ftr-bottom a { color: var(--dark-text); }
.ftr-bottom a:hover { color: #fff; }
.ftr .logo-img { height: 28px; }

/* ------------------------------------------------------------ header and menu on phones */
.nav-extra { display: none; }
@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .nav { inset: var(--header-h) 0 0 0; padding: 4px 20px 28px; gap: 0; background: var(--ink); overflow-y: auto; border-bottom: 0; }
    .nav.is-open { display: flex; animation: menu-in .2s ease-out; }
    .nav > a { padding: 17px 0; font-size: 20px; font-weight: 700; color: #fff; border-bottom: 1px solid #1c2540; }
    .nav-extra { display: grid; gap: 6px; margin-top: auto; padding-top: 28px; }
    .nav-phone { font: 800 22px/1.3 var(--display); color: var(--amber); }
    .nav-extra p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dark-cap); }
    body.menu-open { overflow: hidden; }
    .hdr-in { gap: 12px; }
    .burger { border-color: rgba(255, 255, 255, .22); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
    .ftr-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 20px; }
    .ftr-contacts { order: 2; }
    .ftr-links { order: 3; grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .ftr-links h3 { grid-column: 1 / -1; }
    .ftr-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 20px; }
}
@media (max-width: 900px) {
    /* the header has a backdrop filter, so a fixed child would be measured against the header: use absolute */
    .nav { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; inset: auto; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
.nav .nav-phone { color: var(--amber); }
.nav .nav-phone:hover { color: #fff; }

/* scroll line = a wire: a dim track, a live part with electrons running along it, a flare at the head */
.progress { width: 100%; height: 3px; background: transparent; animation: none; }
.progress i { display: block; position: relative; height: 100%; width: 0; background: var(--amber); }
.progress::after { display: none; }
@media (max-width: 640px) {
    .progress { top: calc(var(--header-h) - 2px); height: 2px; background: rgba(150, 165, 215, .28); }
    .progress i { background: linear-gradient(90deg, rgba(255, 194, 61, .35), rgba(255, 194, 61, .9)); }
    .progress i::before { content: ""; position: absolute; inset: -1px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 3px, transparent 3px 26px); animation: electrons .6s linear infinite; }
    .progress i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: radial-gradient(circle, #fff 0 18%, rgba(255, 214, 120, .9) 30%, rgba(255, 194, 61, 0) 70%); animation: flare .5s steps(2) infinite; }
}
@keyframes electrons { to { background-position: 26px 0; } }
@keyframes flare { 50% { opacity: .55; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .progress i::before, .progress i::after { animation: none; } }

/* video stills are real lazy images now */
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* nothing can push the page wider than the screen: grid columns may shrink, the page never pans sideways */
html { overflow-x: clip; }
@media (max-width: 1040px) {
    .hero-in, .calc, .contacts-grid, .faq-wrap, .two, .award-in, .sched { grid-template-columns: minmax(0, 1fr); }
}
.calc > *, .calc-box > *, .readout > * { min-width: 0; }
.calc-box { max-width: 100%; }
.ro-stat dd { white-space: normal; }
@media (max-width: 640px) { .ro-stat dt { font-size: 9.5px; letter-spacing: .04em; } .ro-stat b { min-width: 0; } }

/* calculator chips: two equal columns that can never be wider than the card */
@media (max-width: 640px) {
    .appl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appl-chip { min-width: 0; }
    .appl-chip span { flex-wrap: wrap; min-width: 0; padding: 10px; font-size: 13px; overflow-wrap: anywhere; }
    .appl-chip small { font-size: 11px; }
}
