:root {
  --ink: #102a43;
  --muted: #526b82;
  --primary: #157ec0;
  --primary-dark: #0f568f;
  --primary-soft: #eaf6ff;
  --secondary: #123f69;
  --telegram: #229ed9;
  --whatsapp: #20bf6b;
  --surface: #ffffff;
  --surface-soft: #f4f9fd;
  --line: #dce9f3;
  --accent: #157ec0;
  --accent-soft: #eaf6ff;
  --shadow-sm: 0 10px 28px rgba(14, 55, 88, .08);
  --shadow: 0 20px 60px rgba(14, 55, 88, .13);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
.gallery-item img, .portrait-card img, .credential-card img, .video-poster img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--secondary); line-height: 1.12; text-wrap: balance; }
h1 { margin-bottom: 22px; font-size: clamp(2.7rem, 5.6vw, 5.5rem); letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.8vw, 3.65rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: clamp(1.18rem, 2vw, 1.48rem); letter-spacing: -.018em; }
p { margin-bottom: 1em; }
:focus-visible { outline: 3px solid #f4b942; outline-offset: 3px; }

.container { width: min(calc(100% - 42px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%); padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--secondary); box-shadow: var(--shadow-sm); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(20, 79, 124, .1); background: rgba(248, 252, 255, .94); backdrop-filter: blur(14px); }
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; color: var(--primary-dark); font-size: 1.25rem; font-weight: 850; line-height: 1.1; letter-spacing: -.025em; text-align: center; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.site-nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid rgba(18, 63, 105, .28); border-radius: 10px; background: rgba(255,255,255,.46); color: #214d72; font-size: .86rem; font-weight: 720; line-height: 1.2; white-space: nowrap; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-selected { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.site-nav .nav-cta { background: var(--secondary); color: #fff; }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { border-color: var(--secondary); background: #fff; color: var(--secondary); }
.student-link { white-space: nowrap; }
.header-socials { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; padding-left: 4px; }
.header-socials a { display: grid; place-items: center; border-radius: 12px; transition: transform .2s ease, background .2s ease; }
.header-socials a:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-sm); }
.header-socials a { width: 40px; height: 40px; }
.header-socials a img, .header-socials .social-youtube { width: 32px; height: 32px; }
.header-socials a:nth-child(2) img { width: 28px; height: 28px; }
.header-socials img { object-fit: contain; }
.theme-toggle { width: 68px; height: 34px; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; flex: 0 0 auto; position: relative; overflow: hidden; padding: 3px; border: 1px solid #c8d1da; border-radius: 999px; background: #dfe4eb; color: #84909b; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 2px rgba(16, 42, 67, .08); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.theme-toggle::before { content: ""; width: calc(50% - 3px); height: calc(100% - 6px); position: absolute; left: 3px; top: 3px; z-index: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(16, 42, 67, .14); transition: transform .24s ease, background .24s ease; }
.theme-toggle:hover, .theme-toggle:focus-visible { transform: translateY(-1px); border-color: #aebbc6; }
.theme-toggle:focus-visible { outline: 3px solid rgba(21, 126, 192, .24); outline-offset: 2px; }
.theme-toggle__option { position: relative; z-index: 1; display: grid; place-items: center; font-size: .94rem; transition: color .2s ease, opacity .2s ease; }
.theme-toggle__option--light { color: #092535; }
.theme-toggle__option--dark { color: #87939e; }
.menu-toggle { width: 44px; height: 44px; display: none; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { width: 20px; height: 2px; display: block; position: relative; border-radius: 3px; background: var(--secondary); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.hero-wrap { background: radial-gradient(circle at 83% 18%, rgba(61, 160, 220, .15), transparent 28%), linear-gradient(180deg, #f5fbff 0, #fff 94%); }
.hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(410px, .98fr); gap: clamp(24px, 3vw, 42px); align-items: center; padding: 8px 0 18px; }
.hero-copy { min-width: 0; }
.hero #main-title { font-size: clamp(1.9rem, 3.2vw, 3.1rem); letter-spacing: -.04em; }
.hero-copy .lead { max-width: 720px; color: #385b78; font-size: clamp(1.08rem, 1.75vw, 1.32rem); line-height: 1.62; }
.hero-copy h1 em { color: var(--primary); font-family: Georgia, serif; font-weight: 600; }
.eyebrow, .section-kicker { margin-bottom: 13px; color: var(--primary); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-points { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; color: #284d6b; }
.hero-points li { position: relative; padding-left: 24px; font-size: .93rem; font-weight: 700; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 900; }
.cta-row { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-size: .93rem; font-weight: 820; line-height: 1.2; text-align: center; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button, .header-socials a, .theme-toggle { position: relative; z-index: 1; touch-action: manipulation; -webkit-tap-highlight-color: rgba(21,126,192,.16); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(12, 59, 94, .13); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { border-color: #a9c9de; background: var(--surface-soft); color: var(--primary-dark); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.button-whatsapp { background: var(--whatsapp); color: #fff; }
.button-telegram { background: var(--telegram); color: #fff; }
.button-quiet { min-height: auto; padding: 6px 0; color: var(--primary-dark); }
.button-quiet:hover { transform: none; box-shadow: none; color: var(--primary); }
.hero-note { margin: 15px 0 0; color: var(--muted); font-size: .86rem; }

.video-card { overflow: hidden; border: 1px solid rgba(19, 84, 132, .16); border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-poster { width: 100%; position: relative; aspect-ratio: 16 / 9; display: block; overflow: hidden; padding: 0; border: 0; background: #d8e7f2; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; background: #000; }
.play-button { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.84); border-radius: 50%; background: rgba(12, 74, 120, .92); color: #fff; font-size: 1.45rem; line-height: 1; box-shadow: 0 14px 36px rgba(7, 38, 66, .32); }
.video-poster:hover .play-button { background: var(--primary); }
.media-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px 15px; background: #fff; }
.media-label strong { color: var(--secondary); font-size: 1.02rem; }
.media-label span { flex: 0 0 auto; color: var(--muted); font-size: .82rem; }
.proof-line { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .87rem; }
.proof-line strong { color: var(--secondary); }

.section { padding: clamp(18px, 1.9vw, 24px) 0; }
.section-tight { padding: 12px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { max-width: 780px; margin-bottom: 15px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }

.gallery-section { padding: 20px 0 50px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.gallery-item { min-height: 0; aspect-ratio: 4 / 5; overflow: hidden; position: relative; border: 0; border-radius: 20px; background: #edf4f9; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-item button { width: 100%; height: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-item--contain img { object-fit: contain; padding: 18px; background: #f8fbfd; }
.gallery-item--credential img { padding: 10px; }
.gallery-item--wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item--contain:hover img { transform: scale(1.015); }

/* Five-card qualification galleries: the two-card top row is centered while
   keeping the same 17px inner gap and exactly the same height as the lower row. */
.gallery-grid--credential-five { display: flex; flex-direction: column; gap: 17px; }
.gallery-grid--credential-five .gallery-row { display: flex; align-items: stretch; justify-content: center; gap: 17px; }
.gallery-grid--credential-five .gallery-row--top .gallery-item--wide {
  flex: 0 0 calc(58.333333% - 19.833333px);
  aspect-ratio: auto;
}
.gallery-grid--credential-five .gallery-row--top .gallery-item:not(.gallery-item--wide),
.gallery-grid--credential-five .gallery-row--bottom .gallery-item {
  flex: 0 0 calc(33.333333% - 11.333333px);
}

.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.trust-item { min-height: 118px; padding: 18px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; margin-bottom: 6px; color: var(--primary-dark); font-size: 1.35rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }
.trust-item--expert strong { font-size: 1.08rem; line-height: 1.25; }
.trust-item--expert span { font-size: .8rem; line-height: 1.4; }
.trust-item--link { cursor: pointer; transition: background .18s ease, color .18s ease; }
.trust-item--link span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.trust-item--link:hover, .trust-item--link:focus-visible { background: var(--primary-soft); }
.trust-item--link:hover strong, .trust-item--link:focus-visible strong { color: var(--primary); }

.direction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.direction-card { min-height: 210px; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.direction-card:hover, .direction-card:focus-visible { transform: translateY(-3px); border-color: #9bc9e6; box-shadow: var(--shadow); }
.direction-card::after { content: attr(data-symbol); position: absolute; right: 18px; bottom: -30px; color: rgba(21, 126, 192, .08); font: 900 8rem/1 Georgia, serif; }
.direction-card p { position: relative; z-index: 1; color: var(--muted); }
.direction-card .button { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; }
.direction-card .button-quiet { min-height: 40px; padding: 9px 13px; border: 1px solid #b8d8ed; border-radius: 11px; background: #eaf6ff; color: #0f568f; }
.direction-card:hover .button-quiet, .direction-card:focus-visible .button-quiet { border-color: var(--primary); background: var(--primary); color: #fff; }
.direction-card--wide { grid-column: span 2; min-height: 190px; }
.card-number { margin-bottom: 12px; color: var(--primary); font-size: .76rem; font-weight: 900; letter-spacing: .14em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid--trajectory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.feature-icon { width: 44px; height: 44px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; font-weight: 900; }
.feature-card--wide { grid-column: span 2; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { min-height: 245px; display: flex; flex-direction: column; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.review-card::before { content: "“"; height: 34px; color: var(--primary); font: 3.2rem/1 Georgia, serif; }
.review-card p { color: #3f5c74; }
.review-card footer { margin-top: auto; color: var(--secondary); font-weight: 820; }
.review-card footer span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.result-highlight { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid #bedcf1; border-radius: var(--radius); background: linear-gradient(115deg, #e8f6ff, #fff); }
.result-score { display: flex; align-items: center; gap: 10px; }
.result-score > strong { color: var(--primary-dark); font-size: clamp(2.35rem, 5vw, 3.7rem); line-height: .9; white-space: nowrap; }
.result-score > span { display: grid; color: var(--primary-dark); font-size: 1rem; font-weight: 850; line-height: 1.05; }
.result-score small { width: 112px; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 750; line-height: 1.15; text-transform: uppercase; }
.result-highlight__eyebrow { margin-bottom: 4px !important; color: var(--primary-dark) !important; font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-highlight p { margin: 0; color: #365c79; }
#reviews { padding-bottom: clamp(20px, 2.2vw, 28px); }
#reviews + .section { padding-top: clamp(18px, 2vw, 26px); }

.section-test-cta { padding: 16px 0 8px; }
.test-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 30px; border: 1px solid #a9d4ee; border-radius: var(--radius); background: linear-gradient(115deg, #e6f5ff, #fff); box-shadow: var(--shadow-sm); }
.test-promo h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.test-promo p:last-child { margin: 0; color: var(--muted); }
.button-test { background: #f28c28; color: #fff; box-shadow: 0 12px 28px rgba(197, 96, 12, .22); }
.button-test:hover { background: #d97312; }

.contact-panel { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(125deg, #103f68, #176fa8); color: #fff; box-shadow: var(--shadow); }
.contact-panel h2 { color: #fff; }
.contact-panel p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.8); }
.contact-panel .section-kicker { color: #b9e5ff; }
.contact-panel .cta-row { margin-top: 0; justify-content: flex-end; }
.sr-only { width: 1px; height: 1px; overflow: hidden; position: absolute; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.contact-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.84); font-size: .88rem; }
.contact-meta a { text-decoration: underline; text-underline-offset: 3px; }
.schedule-note { margin-top: 18px !important; padding-left: 18px; border-left: 3px solid rgba(255,255,255,.5); font-size: .9rem; }

.breadcrumbs { padding-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.landing-hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(410px, .98fr); gap: clamp(24px, 3vw, 42px); align-items: center; padding: 8px 0 18px; }
.landing-hero h1 { font-size: clamp(2.25rem, 4vw, 3.65rem); }
.theme-ege .landing-hero h1 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.landing-hero .lead { color: #3b5e79; font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
.portrait-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.portrait-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; display: block; object-fit: cover; object-position: 50% 25%; }
.theme-dvi .portrait-card img, .theme-higher .portrait-card img, .theme-physmath .portrait-card img { object-position: 50% 25%; }
.theme-ege .portrait-card img, .theme-oge .portrait-card img { object-position: 50% 40%; transform: scale(1.07) translateX(3%); transform-origin: center; }
.portrait-card img.portrait-card__image--trophy { object-position: 50% 25%; transform: none; transform-origin: center; }
.theme-physmath .portrait-card img { object-position: 50% 40%; transform: none; transform-origin: center; }
.portrait-card__caption { position: relative; z-index: 1; padding: 13px 17px 15px; background: #fff; }
.portrait-card__caption strong { display: block; color: var(--secondary); }
.portrait-card__caption span { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.credential-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.credential-card__image { display: block; padding: 10px; background: #f8fbfd; }
.credential-card__image img { width: 100%; height: auto; aspect-ratio: 2048 / 1582; display: block; object-fit: contain; }
.credential-card__caption { padding: 14px 18px 16px; background: #fff; }
.credential-card__caption strong, .credential-card__caption span { display: block; }
.credential-card__caption strong { color: var(--secondary); font-size: 1.02rem; line-height: 1.3; }
.credential-card__caption span { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.credential-card__caption a { display: inline-block; margin-top: 10px; color: var(--primary-dark); font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 66px); align-items: start; }
.split--center { align-items: center; }
.content-card { padding: clamp(27px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.check-list { display: grid; gap: 15px; }
.check-list li { position: relative; padding-left: 31px; color: #3a5870; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.check-list strong { color: var(--secondary); }
.problem-list { display: grid; gap: 14px; }
.problem-list li { position: relative; padding-left: 29px; color: #3a5870; }
.problem-list li::before { content: "!"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff0df; color: #9a5d1b; font-size: .72rem; font-weight: 900; }
.higher-goals-question { color: var(--secondary); font-size: 1.08rem; font-weight: 760; }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.topic-list li { padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, #d8e7f2); border-radius: 999px; background: var(--accent-soft); color: var(--primary-dark); font-size: .85rem; font-weight: 740; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.step h3 { margin: 2px 0 5px; }
.step p { margin: 0; color: var(--muted); }
.audience-grid, .results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.audience-card, .result-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.audience-card p, .result-card p { margin: 0; color: var(--muted); }
.result-card strong { display: block; margin-bottom: 7px; color: var(--secondary); }
.video-inline { max-width: 720px; margin-inline: auto; }
.theme-ege .video-inline { max-width: 576px; }
.theme-dvi .video-inline { max-width: 660px; }
.centered-heading { max-width: none; margin-inline: auto; text-align: center; }
.feature-grid--trajectory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid--subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-higher #subjects-title,
.theme-higher #higher-goals-title,
.theme-higher #higher-method-title,
.theme-higher #universities-title { font-size: clamp(1.75rem, 3.15vw, 3rem); }
.theme-dvi #dvi-diff-title,
.theme-dvi #dvi-work-title,
.theme-dvi #dvi-result-title,
.theme-dvi #dvi-format-title { font-size: clamp(1.6rem, 3.04vw, 2.92rem); text-align: center; }
.theme-dvi #dvi-work-title,
.theme-dvi #dvi-result-title { margin-inline: auto; }
.theme-ege #starts-title, .theme-ege #format-title { white-space: nowrap; font-size: clamp(.92rem, 4.8vw, 3.2rem); }
.review-proof { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.review-proof img { width: 100%; height: auto; display: block; }

.faq-list { max-width: 900px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.faq-list summary { position: relative; padding: 20px 54px 20px 21px; color: var(--secondary); font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 15px; color: var(--accent); font-size: 1.55rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 21px 21px; color: var(--muted); }

.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-link { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--secondary); font-weight: 800; box-shadow: var(--shadow-sm); }
.related-link small { display: block; margin-top: 7px; color: var(--muted); font-weight: 550; }

.blog-hero { padding: 54px 0 34px; background: linear-gradient(180deg, #f3faff, #fff); }
.blog-hero h1 { font-size: clamp(2.15rem, 4.5vw, 4.4rem); }
.blog-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.blog-index .blog-hero { padding-bottom: 14px; }
.blog-index .blog-hero + .section { padding-top: 8px; }
.blog-index .blog-hero h1 { font-size: clamp(1.55rem, 3.15vw, 3.15rem); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; min-height: 214px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.article-card:hover, .article-card:focus-visible { transform: translateY(-3px); border-color: #9bc9e6; box-shadow: var(--shadow); }
.article-card h2 { margin-bottom: 10px; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.article-card p { margin-bottom: .65em; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.article-card .section-kicker { margin-bottom: 8px; font-size: .68rem; }
.article-card .button { min-height: auto; margin-top: auto; padding: 3px 0; align-self: flex-start; font-size: .82rem; }
.article-layout { width: min(calc(100% - 42px), 920px); margin-inline: auto; padding: 55px 0 90px; }
.article-header { margin-bottom: 42px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.article-lead { color: #3d5f79; font-size: 1.18rem; }
.article-body h2 { margin-top: 48px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.article-body h3 { margin-top: 32px; }
.article-body p, .article-body li { color: #38556d; }
.article-body a:not(.button) { color: var(--primary-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { margin: 20px 0; display: grid; gap: 10px; }
.article-body li { position: relative; padding-left: 25px; }
.article-body li::before { content: "•"; position: absolute; left: 4px; color: var(--primary); font-weight: 900; }
.article-note { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; background: var(--primary-soft); color: #2c526f; }
.article-image { width: 100%; height: auto; display: block; margin: 28px auto 36px; border: 1px solid var(--line); border-radius: 20px; background: #f4f9fd; box-shadow: var(--shadow-sm); }
.article-image--portrait { width: min(100%, 520px); }
.article-video { width: 100%; aspect-ratio: 16 / 9; display: block; margin-top: 26px; border: 0; border-radius: 20px; background: #000; box-shadow: var(--shadow); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.resource-card p { color: var(--muted); }
.resource-card .topic-list { margin: 8px 0 24px; }
.resource-card .button { margin-top: auto; align-self: flex-start; }
.materials-page { background: linear-gradient(180deg, #f4faff 0, #fff 320px); }
.materials-hero { padding: 36px 0 18px; }
.materials-hero h1 { max-width: 980px; font-size: clamp(1.6rem, 3.2vw, 3rem); }
.materials-hero p { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.materials-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.materials-index-card { min-height: 270px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.materials-index-card--link { cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.materials-index-card--link:hover, .materials-index-card--link:focus-visible { transform: translateY(-3px); border-color: #9bc9e6; box-shadow: var(--shadow); }
.materials-index-card h2 { font-size: clamp(1.6rem, 3.04vw, 2.92rem); }
.materials-index-card p { color: var(--muted); }
.materials-index-card .button { margin-top: auto; align-self: flex-start; }
.materials-index-card--link .button { pointer-events: none; }
.materials-index-card .topic-list { margin: 10px 0 18px; gap: 6px; }
.materials-index-card .topic-list li { padding: 5px 9px; font-size: .74rem; line-height: 1.2; }
.material-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.material-category { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.material-category--wide { grid-column: 1 / -1; }
.material-category h2 { margin-bottom: 16px; font-size: clamp(1.2rem, 1.92vw, 1.72rem); }
.material-link-list { display: grid; gap: 9px; }
.material-link-list a { display: block; padding: 10px 12px; border: 1px solid #d8e7f2; border-radius: 11px; background: #f8fcff; color: var(--primary-dark); font-weight: 720; line-height: 1.4; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.material-link-list a:hover, .material-link-list a:focus-visible { border-color: var(--primary); background: var(--primary); color: #fff; }
.letovo-link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.formula-sheet { width: min(calc(100% - 42px), 940px); margin: 0 auto; padding: 24px 0 74px; }
.formula-card { overflow-x: auto; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.formula-card h1 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
.formula-nav { margin-left: auto; }
.formula-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: formula -1; }
.formula-list li { position: relative; display: block; padding: 12px 14px 12px 48px; border-bottom: 1px solid var(--line); color: #294e6b; list-style: none; }
.formula-list li::marker { content: ""; }
.formula-list li::before { counter-increment: formula; content: counter(formula) "."; position: absolute; left: 14px; color: var(--primary); font-weight: 850; }
.formula-list--one-based { counter-reset: formula 0; }
.score-table { width: min(100%, 620px); border-collapse: collapse; }
.score-table th, .score-table td { padding: 9px 14px; border: 1px solid var(--line); text-align: center; }
.score-table th { background: var(--primary-soft); color: var(--secondary); }
.score-scale-page .formula-card { text-align: center; }
.score-scale-title { max-width: 800px; margin: 0 auto 28px; }
.score-scale-title small { display: block; margin-top: 10px; color: var(--muted); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .42em; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.score-scale-page .score-table { margin-inline: auto; }
.score-scale-page .score-table caption { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.materials-choice-card { min-height: 290px; }
.materials-choice-card .material-link-list { margin: 2px 0 20px; }
.material-note { margin-top: auto; padding: 14px 16px; border: 1px dashed #b9d4e7; border-radius: 12px; background: #f5fbff; color: var(--muted); font-size: .9rem; }
.theory-article { display: grid; gap: 26px; }
.theory-section { padding-top: 2px; }
.theory-section + .theory-section { padding-top: 26px; border-top: 1px solid var(--line); }
.theory-section h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); text-align: center; }
.theory-section h3 { margin-top: 22px; font-size: 1.12rem; }
.theory-section p:last-child { margin-bottom: 0; }
.definition-box, .condition-box, .formula-summary { padding: 18px 20px; border-radius: 15px; }
.definition-box { border-left: 4px solid var(--primary); background: var(--primary-soft); }
.condition-box { border: 1px solid #f0d1a7; background: #fff8ed; }
.formula-summary { border: 1px solid #bcdcf0; background: #f7fcff; }
.formula-summary h2 { margin-bottom: 12px; font-size: clamp(1.12rem, 2.13vw, 2.04rem); text-align: center; }
.formula-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.formula-item { overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #294e6b; }
.example-list { display: grid; gap: 10px; }
.example-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #38556d; }
.theory-bullets { display: grid; gap: 9px; }
.theory-bullets li { position: relative; padding-left: 24px; color: #38556d; }
.theory-bullets li::before { content: "•"; position: absolute; left: 6px; color: var(--primary); font-weight: 900; }

.legal-page { background: var(--surface-soft); }
.legal-card { width: min(calc(100% - 34px), 920px); margin: 38px auto 70px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.legal-card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-card h2 { margin-top: 34px; font-size: 1.45rem; }
.legal-card a { color: var(--primary-dark); text-decoration: underline; }

.site-footer { padding: 34px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 17px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.lightbox { position: fixed; inset: 0; z-index: 5000; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; place-items: center; padding: 24px; background: rgba(5, 20, 32, .93); }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(1200px, 88vw); max-height: 88vh; margin: 0; display: grid; gap: 10px; place-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 81vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.4); }
.lightbox__figure figcaption { color: rgba(255,255,255,.82); font-size: .87rem; text-align: center; }
.lightbox__close, .lightbox__nav { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.lightbox__close { position: absolute; right: 20px; top: 20px; font-size: 1.45rem; }
.lightbox__nav { font-size: 1.6rem; }

.privacy-banner { position: fixed; right: 16px; bottom: 16px; z-index: 4000; width: min(520px, calc(100% - 32px)); overflow: hidden; border: 1px solid rgba(16, 63, 105, .16); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 14px 36px rgba(7,31,52,.18); backdrop-filter: blur(16px); transition: opacity .28s ease, transform .28s ease; }
.privacy-banner[hidden] { display: none; }
.privacy-banner.is-hiding { opacity: 0; transform: translateY(calc(100% + 18px)); }
.privacy-banner__panel { padding: 19px 20px 20px; }
.privacy-banner__panel[hidden] { display: none; }
.privacy-banner h2 { margin-bottom: 9px; font-size: 1.05rem; letter-spacing: -.015em; }
.privacy-banner p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.privacy-banner a { color: var(--primary-dark); text-decoration: underline; }
.privacy-banner__actions, .privacy-choice-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 11px; margin-top: 16px; }
.privacy-button { min-height: 42px; width: 100%; padding: 8px 13px; border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 850; line-height: 1.25; text-align: center; white-space: normal; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.privacy-button--secondary { border-color: var(--line); background: var(--surface); color: var(--primary-dark); }
.privacy-button:hover, .privacy-button:focus-visible { background: #fff; color: var(--primary-dark); }
.privacy-button--secondary:hover, .privacy-button--secondary:focus-visible { border-color: var(--primary); background: var(--primary-soft); }
.privacy-banner__back { margin: -3px 0 8px; padding: 2px 0; border: 0; background: transparent; color: var(--primary-dark); font-size: .74rem; font-weight: 750; cursor: pointer; }
.privacy-category { margin-top: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.privacy-category__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.privacy-category__heading strong { color: var(--secondary); font-size: .82rem; }
.privacy-category__heading span { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .62rem; font-weight: 800; }
.privacy-category p { font-size: .72rem; line-height: 1.45; }
.privacy-banner .privacy-banner__status { margin-top: 10px; font-size: .69rem; font-weight: 720; }
.privacy-choice-card { margin: 24px 0 30px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.privacy-choice-card p { margin-bottom: 14px; color: var(--muted); }
.privacy-choice-card [data-inline-privacy-status] { margin: 12px 0 0; font-size: .88rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.theme-ege { --accent: #1876b3; --accent-soft: #e8f5fe; }
.theme-oge { --accent: #0f8b8d; --accent-soft: #e6f8f7; }
.theme-dvi { --accent: #7854a9; --accent-soft: #f2ecfb; }
.theme-physmath { --accent: #2e7d63; --accent-soft: #e9f6f0; }
.theme-higher { --accent: #9a5d1b; --accent-soft: #fff3e3; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eff6;
  --muted: #a9c0d0;
  --primary: #63bff5;
  --primary-dark: #9bd9ff;
  --primary-soft: #15364b;
  --secondary: #eef8ff;
  --surface: #102431;
  --surface-soft: #0a1b27;
  --line: #2b4657;
  --accent: #63bff5;
  --accent-soft: #17384b;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .22);
  --shadow: 0 20px 60px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] body { background: #081722; }
html[data-theme="dark"] .site-header { border-bottom-color: rgba(150, 205, 238, .16); background: rgba(8, 23, 34, .94); }
html[data-theme="dark"] .site-nav a { border-color: #36566a; background: rgba(16, 36, 49, .74); color: #d7ebf8; }
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .site-nav a.is-selected { border-color: #8acdf3; background: #d9effc; color: #0c3450; }
html[data-theme="dark"] .site-nav .nav-cta { border-color: #69bcea; background: #1b6b99; color: #fff; }
html[data-theme="dark"] .site-nav.is-open { border-color: #2b4657; background: rgba(8, 23, 34, .99); }
html[data-theme="dark"] .button-secondary { border-color: #3f7593; background: #12364b; color: #d8effc; }
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-secondary:focus-visible { border-color: #6abbea; background: #1a4b68; color: #fff; }
html[data-theme="dark"] .header-socials a:hover { background: #173448; }
html[data-theme="dark"] .theme-toggle { border-color: #506373; background: #314654; }
html[data-theme="dark"] .theme-toggle::before { transform: translateX(100%); background: #f5f8fa; }
html[data-theme="dark"] .theme-toggle__option--light { color: #93a1ac; }
html[data-theme="dark"] .theme-toggle__option--dark { color: #102a43; }
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible { border-color: #7f929f; }
html[data-theme="dark"] .menu-toggle { background: var(--surface); }
html[data-theme="dark"] .hero-wrap { background: radial-gradient(circle at 83% 18%, rgba(75, 166, 220, .14), transparent 28%), linear-gradient(180deg, #0b2130 0, #081722 94%); }
html[data-theme="dark"] .blog-hero,
html[data-theme="dark"] .materials-page { background: linear-gradient(180deg, #0b2130 0, #081722 320px); }
html[data-theme="dark"] .hero-copy .lead,
html[data-theme="dark"] .hero-points,
html[data-theme="dark"] .landing-hero .lead,
html[data-theme="dark"] .review-card p,
html[data-theme="dark"] .result-highlight p,
html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .problem-list li,
html[data-theme="dark"] .article-lead,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-body li,
html[data-theme="dark"] .formula-list li,
html[data-theme="dark"] .formula-item,
html[data-theme="dark"] .example-list li,
html[data-theme="dark"] .theory-bullets li { color: var(--muted); }
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .media-label,
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .direction-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .portrait-card,
html[data-theme="dark"] .portrait-card__caption,
html[data-theme="dark"] .credential-card,
html[data-theme="dark"] .credential-card__caption,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .audience-card,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .review-proof,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .related-link,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .materials-index-card,
html[data-theme="dark"] .material-category,
html[data-theme="dark"] .formula-card,
html[data-theme="dark"] .formula-item,
html[data-theme="dark"] .example-list li,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .privacy-banner { background: var(--surface); }
html[data-theme="dark"] .result-highlight,
html[data-theme="dark"] .test-promo { border-color: #2c5871; background: linear-gradient(115deg, #12364b, #102431); }
html[data-theme="dark"] .direction-card .button-quiet,
html[data-theme="dark"] .material-link-list a { border-color: #355a70; background: #15364b; color: #b8e3fb; }
html[data-theme="dark"] .trust-item--link:hover,
html[data-theme="dark"] .trust-item--link:focus-visible { background: #15364b; }
html[data-theme="dark"] .gallery-item { background: #122b3a; }
html[data-theme="dark"] .gallery-item--contain img,
html[data-theme="dark"] .credential-card__image,
html[data-theme="dark"] .article-image { background: #0d202c; }
html[data-theme="dark"] .article-note,
html[data-theme="dark"] .definition-box { background: #15364b; color: #c6ddea; }
html[data-theme="dark"] .condition-box { border-color: #765b35; background: #302719; }
html[data-theme="dark"] .formula-summary,
html[data-theme="dark"] .material-note { border-color: #315b72; background: #102b3a; }
html[data-theme="dark"] .privacy-button:hover,
html[data-theme="dark"] .privacy-button:focus-visible { background: #d9effc; color: #0c3450; }
html[data-theme="dark"] .privacy-button--secondary { border-color: #355a70; background: #15364b; color: #b8e3fb; }
html[data-theme="dark"] .privacy-choice-card { border-color: #2c5871; background: #102b3a; }
html[data-theme="dark"] .privacy-category { border-color: #2c5871; background: #102b3a; }
html[data-theme="dark"] .privacy-category__heading span { background: #153f56; color: #b8e3fb; }
html[data-theme="dark"] .theme-ege { --accent: #63bff5; --accent-soft: #17384b; }
html[data-theme="dark"] .theme-oge { --accent: #64d2cf; --accent-soft: #153d3d; }
html[data-theme="dark"] .theme-dvi { --accent: #c2a7ea; --accent-soft: #302849; }
html[data-theme="dark"] .theme-physmath { --accent: #72c7a6; --accent-soft: #173b31; }
html[data-theme="dark"] .theme-higher { --accent: #e4b779; --accent-soft: #3a2d1d; }

@media (min-width: 1081px) and (max-width: 1220px) {
  .menu-toggle { display: grid; order: 4; }
  .site-nav { position: fixed; inset: 79px 12px auto; max-height: calc(100vh - 95px); overflow: auto; display: none; align-items: stretch; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.99); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 13px; }
  .formula-nav { position: static; inset: auto; max-height: none; overflow: visible; display: flex; flex-direction: row; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .formula-nav a { padding: 8px 10px; }
  .header-socials { margin-left: auto; }
}

@media (max-width: 1080px) {
  html { font-size: 20px; }
  body { font-size: 20px; }
  .menu-toggle { display: grid; order: 4; }
  .site-nav { position: fixed; inset: 79px 12px auto; max-height: calc(100vh - 95px); overflow: auto; display: none; align-items: stretch; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.99); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 13px; }
  .formula-nav { position: static; inset: auto; max-height: none; overflow: visible; display: flex; flex-direction: row; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .formula-nav a { padding: 8px 10px; }
  .header-socials { margin-left: auto; }
  .hero, .landing-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { max-width: 760px; }
  .portrait-card { display: none; }
  .credential-card { width: min(100%, 760px); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card--tablet-hide { display: none; }
  .feature-grid--trajectory .feature-card--criteria { grid-column: 1 / -1; }
  .theme-ege #trajectory .feature-card { text-align: center; }
  .theme-ege #trajectory .feature-icon { margin-inline: auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: auto; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel .cta-row { justify-content: flex-start; }
  .test-promo { grid-template-columns: 1fr; }
  .test-promo .button { justify-self: start; }
}

@media (max-width: 760px) {
  html { font-size: 19px; }
  body { font-size: 19px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-shell { min-height: 70px; gap: 7px; }
  .brand { max-width: 126px; font-size: .92rem; }
  .brand small { display: none; }
  .header-socials { gap: 5px; }
  .header-socials a { width: 36px; height: 36px; }
  .header-socials a img, .header-socials .social-youtube { width: 28px; height: 28px; }
  .header-socials a:nth-child(2) img { width: 27px; height: 27px; }
  .theme-toggle { width: 60px; height: 36px; padding: 3px; }
  .theme-toggle__option { font-size: .82rem; }
  .menu-toggle { width: 36px; height: 36px; }
  .site-nav { inset: 71px 10px auto; }
  h1 { font-size: clamp(2.38rem, 12vw, 3.35rem); }
  .hero #main-title { font-size: clamp(1.85rem, 8vw, 2.45rem); }
  .hero { gap: 18px; padding: 10px 0 18px; }
  .landing-hero { gap: 16px; padding: 8px 0 18px; }
  .hero-points { grid-template-columns: 1fr; }
  .cta-row { align-items: stretch; }
  .cta-row .button { width: 100%; }
  .media-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .play-button { width: 62px; height: 62px; }
  .gallery-section { padding-top: 6px; }
  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px 2px 14px; scrollbar-width: thin; }
  .gallery-item { min-width: min(84vw, 430px); min-height: 0; scroll-snap-align: center; }
  .gallery-item--wide { min-width: min(92vw, 680px); }
  .gallery-grid--credential-five { flex-direction: row; gap: 12px; }
  .gallery-grid--credential-five .gallery-row { display: contents; }
  .gallery-grid--credential-five .gallery-row--top .gallery-item,
  .gallery-grid--credential-five .gallery-row--bottom .gallery-item { flex: 0 0 auto; }
  .gallery-grid--credential-five .gallery-row--top .gallery-item--wide { aspect-ratio: 8 / 5; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item + .trust-item, .trust-item:nth-child(3), .trust-item:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item { min-height: 104px; }
  .direction-grid, .feature-grid, .audience-grid, .results-grid, .article-grid, .related-links, .resource-grid, .split, .materials-index-grid, .material-category-grid { grid-template-columns: 1fr; }
  .direction-card--wide { grid-column: auto; }
  .feature-card--wide { grid-column: auto; }
  .feature-grid--trajectory .feature-card--criteria, .material-category--wide { grid-column: auto; }
  .direction-card { min-height: 210px; }
  .result-highlight { grid-template-columns: 1fr; }
  .result-score > strong { white-space: normal; }
  .portrait-card img { height: min(320px, 42vh); }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .lightbox { grid-template-columns: 46px minmax(0, 1fr) 46px; padding: 12px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__close { right: 10px; top: 10px; }
  .materials-hero { padding-top: 22px; }
  .materials-index-card { min-height: 0; }
  .materials-index-card h2 { font-size: clamp(1.48rem, 7.4vw, 2.05rem); }
  .materials-index-card .topic-list li { font-size: .68rem; }
  .formula-sheet { width: min(calc(100% - 28px), 940px); }
  .formula-card { padding: 20px 17px; }
  .formula-grid { grid-template-columns: 1fr; }
  .letovo-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula-nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
}

@media (min-width: 761px) {
  .blog-index .blog-hero h1 { white-space: nowrap; }
}

@media (max-width: 430px) {
  .brand { max-width: 114px; font-size: .82rem; }
  .header-socials { gap: 3px; }
  .header-socials a { width: 32px; height: 32px; }
  .header-socials a img, .header-socials .social-youtube { width: 25px; height: 25px; }
  .header-socials a:nth-child(2) img { width: 24px; height: 24px; }
  .theme-toggle { width: 56px; height: 32px; }
  .menu-toggle { width: 32px; height: 32px; }
  .gallery-item { min-width: 86vw; min-height: 0; }
  .privacy-banner { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .privacy-banner__panel { padding: 16px; }
  .privacy-banner p { font-size: .74rem; }
  .privacy-banner__actions, .privacy-choice-card__actions { grid-template-columns: 1fr; }
  .letovo-link-grid { grid-template-columns: 1fr; }
  .formula-nav a { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}


/* v20 compact headings and homepage-scale direction video */
.heading-compact .landing-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.heading-compact section h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
.heading-compact .mini-headings .result-card strong,
.heading-compact .mini-headings .result-card h3,
.heading-compact .mini-headings .feature-card h3,
.heading-compact .mini-headings .content-card h3 { font-size: .95em; }
.heading-compact .compact-h2 h2 { text-align:center; font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.direction-hero-media { width:100%; min-width:0; }
.direction-hero-media .video-card { width:100%; }
.oge-context-card .wheel-context-grid { display:grid; gap:18px; grid-template-columns: 1.3fr 1fr; align-items:start; }

/* v26 conversion-focused EGE/OGE experiments */
.sales-landing .sales-hero { grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: center; padding: 14px 0 30px; }
.sales-landing .sales-hero h1,
.sales-landing.theme-ege .sales-hero h1 { max-width: 790px; font-size: clamp(2.05rem, 3.35vw, 3.2rem); }
.sales-landing .sales-hero .lead { max-width: 760px; }
.sales-credentials { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.sales-credentials span { min-height: 48px; display: flex; align-items: center; position: relative; padding: 9px 12px 9px 36px; border: 1px solid #c9e1ef; border-radius: 12px; background: rgba(255, 255, 255, .72); color: #214d72; font-size: .79rem; font-weight: 760; line-height: 1.35; box-shadow: 0 7px 20px rgba(14, 55, 88, .05); }
.sales-credentials span::before { content: "✓"; width: 19px; height: 19px; display: grid; place-items: center; position: absolute; left: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .69rem; font-weight: 900; }
.sales-card-link { display: inline-block; margin-top: 10px; color: var(--primary-dark); font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.sales-trust { position: relative; z-index: 2; padding-top: 0; }
.sales-promise .section-heading { max-width: 880px; }
.sales-promise .feature-card { min-height: 215px; }
.sales-promise .feature-card h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.sales-plan .split { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.sales-plan__lead { color: var(--muted); font-size: 1.03rem; }
.sales-review .button { margin-top: 4px; }
.sales-review .review-proof { margin: 0; }
.sales-gallery { padding-top: 30px; }
.sales-gallery .section-heading { max-width: none; margin-bottom: 22px; text-align: center; }
.sales-gallery .section-heading h2 { margin-bottom: 0; }
.sales-landing .contact-panel { background: radial-gradient(circle at 86% 16%, rgba(126, 211, 255, .18), transparent 28%), linear-gradient(125deg, #0d355a, #176fa8); }
.sales-landing--5 .hero-wrap { background: radial-gradient(circle at 82% 16%, rgba(61, 160, 220, .18), transparent 30%), linear-gradient(180deg, #f4fbff 0, #fff 94%); }
.sales-landing--6 .hero-wrap { background: radial-gradient(circle at 85% 18%, rgba(35, 190, 146, .13), transparent 30%), linear-gradient(180deg, #f3fbf9 0, #fff 94%); }
.sales-landing--7 .hero-wrap { background: radial-gradient(circle at 82% 15%, rgba(242, 140, 40, .12), transparent 31%), linear-gradient(180deg, #fffaf4 0, #fff 94%); }
.sales-landing--5 .sales-hero h1,
.sales-landing--5.theme-ege .sales-hero h1 { font-size: clamp(1.9rem, 3vw, 2.85rem); }
.sales-landing--5 .sales-credentials span:first-child { border-color: #efc18b; background: #fff7ec; color: #964c0b; }

/* v27 EGE/OGE comparison hub */
.variant-hub__hero { max-width: 930px; padding: clamp(30px, 5vw, 66px) 0 clamp(34px, 5vw, 70px); }
.variant-hub__hero h1 { max-width: 880px; margin-bottom: 18px; font-size: clamp(2.35rem, 5vw, 4.6rem); }
.variant-hub__hero .lead { max-width: 850px; color: #385b78; font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.variant-hub__note { max-width: 810px; margin: 22px 0 0; padding: 14px 17px; border: 1px solid #bfdced; border-radius: 14px; background: rgba(255,255,255,.7); color: var(--muted); font-size: .88rem; }
.variant-hub__catalog { padding: clamp(30px, 4vw, 58px) 0; background: var(--surface-soft); }
.variant-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.variant-column { --variant-accent: #157ec0; --variant-soft: #eaf6ff; padding: 22px; border: 1px solid var(--line); border-top: 5px solid var(--variant-accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.variant-column--oge { --variant-accent: #178d8a; --variant-soft: #e8f8f7; }
.variant-column__heading { min-height: 172px; margin-bottom: 18px; padding: 4px 4px 20px; border-bottom: 1px solid var(--line); }
.variant-column__heading .section-kicker { color: var(--variant-accent); }
.variant-column__heading h2 { margin-bottom: 10px; color: var(--variant-accent); font-size: clamp(2.25rem, 4vw, 3.3rem); }
.variant-column__heading p:last-child { margin-bottom: 0; color: var(--muted); }
.variant-list { display: grid; gap: 14px; }
.variant-card { min-height: 326px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(14, 55, 88, .06); }
.variant-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.variant-card__number { color: var(--variant-accent); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.variant-badge { padding: 5px 9px; border-radius: 999px; background: var(--variant-soft); color: var(--variant-accent); font-size: .7rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.variant-badge--main { background: var(--variant-accent); color: #fff; }
.variant-card h3 { margin-bottom: 10px; font-size: clamp(1.16rem, 1.8vw, 1.38rem); }
.variant-card__advantage { margin-bottom: 14px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.variant-card__focus { margin: auto 0 16px; padding: 12px 13px; border-left: 3px solid var(--variant-accent); border-radius: 0 10px 10px 0; background: var(--variant-soft); color: #355871; font-size: .8rem; line-height: 1.5; }
.variant-card__focus strong { color: var(--secondary); }
.variant-card .button { width: 100%; border-color: color-mix(in srgb, var(--variant-accent) 45%, #fff); background: var(--variant-soft); color: var(--variant-accent); }
.variant-card .button:hover,
.variant-card .button:focus-visible { border-color: var(--variant-accent); background: var(--variant-accent); color: #fff; }

html[data-theme="dark"] .sales-credentials span { border-color: #31576d; background: rgba(16, 36, 49, .82); color: #d5eaf6; }
html[data-theme="dark"] .sales-landing--5 .sales-credentials span:first-child { border-color: #795b37; background: #302619; color: #f2c894; }
html[data-theme="dark"] .sales-landing--5 .hero-wrap,
html[data-theme="dark"] .sales-landing--6 .hero-wrap,
html[data-theme="dark"] .sales-landing--7 .hero-wrap { background: radial-gradient(circle at 83% 18%, rgba(75, 166, 220, .14), transparent 28%), linear-gradient(180deg, #0b2130 0, #081722 94%); }
html[data-theme="dark"] .variant-hub__note { border-color: #31576d; background: rgba(16, 36, 49, .82); }
html[data-theme="dark"] .variant-hub__catalog { background: var(--surface-soft); }
html[data-theme="dark"] .variant-column,
html[data-theme="dark"] .variant-card { background: var(--surface); }
html[data-theme="dark"] .variant-column { --variant-soft: #17384b; }
html[data-theme="dark"] .variant-column--oge { --variant-accent: #64d2cf; --variant-soft: #153d3d; }
html[data-theme="dark"] .variant-card__focus { color: var(--muted); }

@media (max-width: 1080px) {
  .sales-landing .sales-hero { grid-template-columns: 1fr; }
  .sales-landing .sales-hero h1,
  .sales-landing.theme-ege .sales-hero h1 { max-width: 900px; }
  .sales-plan .split { grid-template-columns: 1fr; }
  .variant-column__heading { min-height: 196px; }
}

@media (max-width: 940px) {
  .variant-columns { grid-template-columns: 1fr; }
  .variant-column__heading { min-height: 0; }
  .variant-card { min-height: 0; }
}

@media (max-width: 760px) {
  .sales-landing .sales-hero { padding: 8px 0 22px; }
  .sales-landing .sales-hero h1,
  .sales-landing.theme-ege .sales-hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .sales-landing--5 .sales-hero h1,
  .sales-landing--5.theme-ege .sales-hero h1 { font-size: clamp(1.75rem, 8.7vw, 2.4rem); }
  .sales-credentials { grid-template-columns: 1fr; gap: 8px; }
  .sales-credentials span { min-height: 44px; }
  .sales-promise .feature-card { min-height: 0; }
  .sales-gallery { padding-top: 22px; }
  .variant-hub__hero { padding: 24px 0 36px; }
  .variant-hub__hero h1 { font-size: clamp(2.2rem, 11vw, 3.15rem); }
  .variant-column { padding: 14px; }
  .variant-card { padding: 17px; }
}

@media (max-width: 900px) { .oge-context-card .wheel-context-grid { grid-template-columns: 1fr; } }

/* v34: price cards for EGE/OGE price experiments */
.pricing-section .section-heading{max-width:820px;margin-inline:auto;text-align:center}
.pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px;align-items:stretch}
.pricing-card{display:flex;flex-direction:column;min-height:100%;padding:24px 22px;text-align:center}
.pricing-card__title{font-size:1.03rem;font-weight:800;color:var(--secondary);margin-bottom:10px}
.pricing-card__price{font-size:clamp(1.55rem,2.4vw,2.05rem);font-weight:900;line-height:1.08;letter-spacing:-.035em;color:var(--text)}
.pricing-card__unit{min-height:2.4em;margin-top:6px;color:var(--muted);font-size:.9rem;line-height:1.35}
.pricing-card__note{margin:16px 0 0;color:var(--text);line-height:1.55;font-size:.95rem}
.pricing-duration{margin:22px 0 0;text-align:center;color:var(--text)}
@media(max-width:980px){.pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.pricing-grid{grid-template-columns:1fr;gap:14px}.pricing-card{padding:21px 18px}.pricing-card__unit{min-height:0}}

/* v34: explicit home button in learning headers */
.site-nav .learning-home-button,.formula-nav .learning-home-button{border:1px solid rgba(59,130,246,.26);border-radius:999px;padding:.5rem .78rem;background:rgba(59,130,246,.08);font-weight:800;white-space:nowrap}
.site-nav .learning-home-button:hover,.formula-nav .learning-home-button:hover{background:rgba(59,130,246,.14)}


/* v35: legacy educational pages + explicit home navigation */
body.materials-page{display:block!important;align-items:initial!important;justify-content:initial!important;min-height:100vh;padding:0!important;}
.materials-page .formula-card>header{background:transparent!important;color:inherit!important;text-align:left!important;padding:0!important;}
.materials-page .formula-card>.container{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;}
.materials-page [data-copy-protected] img{-webkit-user-drag:none;}
@media(max-width:760px){.formula-nav{flex-wrap:wrap;justify-content:flex-end;gap:4px}.formula-nav .learning-home-button{display:inline-flex!important}}


/* v36 — public EGE materials hub + worked theory examples */
.ege-foundation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.material-path-card{display:flex;flex-direction:column;padding:clamp(21px,3vw,28px);border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .18s ease,border-color .18s ease}.material-path-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 42%,var(--line))}.material-path-card>span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--primary-soft);color:var(--primary-dark);font-weight:900}.material-path-card h3{margin:17px 0 9px;font-size:1.35rem}.material-path-card p{margin:0;color:var(--muted);font-size:1rem;line-height:1.6}.ege-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ege-topic-card{display:flex;flex-direction:column;padding:clamp(21px,3vw,28px);border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow-sm)}.ege-topic-card__meta{display:flex;justify-content:space-between;gap:12px;align-items:center;color:var(--muted);font-size:.8rem}.ege-topic-card__meta span{padding:5px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);font-weight:850}.ege-topic-card__meta b{font-weight:800}.ege-topic-card h3{margin:17px 0 9px;font-size:1.35rem}.ege-topic-card p{color:var(--muted)}.ege-topic-card__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto;padding-top:18px}.ege-topic-card__actions .button{flex:1 1 150px;text-align:center}.ege-route-note{max-width:none;margin:0}.theory-steps{display:grid;gap:10px;padding-left:1.25rem}.theory-steps li{padding-left:.2rem}.worked-example{padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm)}.worked-example+.worked-example{margin-top:12px}.worked-example h3{margin:0 0 9px;font-size:1.05rem}.worked-example p{margin:.55rem 0}.worked-answer{color:var(--primary-dark)}html[data-theme="dark"] .material-path-card,html[data-theme="dark"] .ege-topic-card,html[data-theme="dark"] .worked-example{background:var(--surface);border-color:var(--line)}
@media(max-width:980px){.ege-foundation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ege-topic-grid{grid-template-columns:1fr}}@media(max-width:620px){.ege-foundation-grid{grid-template-columns:1fr}.ege-topic-card__meta{align-items:flex-start;flex-direction:column}.ege-topic-card__actions{flex-direction:column}.ege-topic-card__actions .button{flex:auto;width:100%}}


/* v37 — expanded EGE learning modules */
.prerequisite-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.prerequisite-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}.prerequisite-card h3{margin:0 0 8px}.prerequisite-card p{margin:.45rem 0;color:var(--muted)}.prerequisite-card .cta-row{margin-top:14px}.formula-emphasis{margin:18px 0;padding:16px;border-radius:15px;background:var(--primary-soft);text-align:center;overflow-x:auto}.formula-item span{color:var(--muted);font-size:.9rem}.compact-example{margin-top:16px}.derivative-key{border-left:5px solid var(--primary)}.derivative-key u{text-decoration-thickness:2px;text-underline-offset:4px}.material-path-card--with-actions{display:flex;flex-direction:column}.material-path-card__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:20px}.material-path-card__actions .button{flex:1 1 150px;text-align:center}.material-path-card__actions a{display:inline-flex;justify-content:center;align-items:center;min-height:58px;padding:12px 16px;border-radius:16px;font-weight:800;text-decoration:none}
@media(max-width:760px){.prerequisite-grid{grid-template-columns:1fr}}


/* v39: понятная схема основания/показателя и лёгкие видео в теории */
.power-anatomy-diagram{display:flex;align-items:center;justify-content:center;gap:18px;min-height:150px;margin:18px 0 6px;padding:22px;border:1px solid rgba(18,105,166,.18);border-radius:18px;background:rgba(235,247,255,.72)}
.power-anatomy-diagram__expr{display:inline-flex;align-items:flex-start;color:var(--secondary);font-family:Georgia,"Times New Roman",serif;font-size:4.2rem;line-height:1;font-weight:700}
.power-anatomy-diagram__base{display:inline-block;padding:.02em .08em;border-radius:10px;background:rgba(33,150,243,.10)}
.power-anatomy-diagram__exp{position:relative;top:-.12em;margin-left:.02em;padding:.04em .11em;border-radius:8px;background:rgba(255,183,77,.16);font-size:.46em;line-height:1}
.power-anatomy-diagram__label{max-width:230px;color:var(--text);font-weight:700;line-height:1.35}
.power-anatomy-diagram__label span{display:block;margin-top:4px;color:var(--muted);font-size:.88rem;font-weight:500}
.power-anatomy-diagram__label--base{text-align:right}.power-anatomy-diagram__label--base:after{content:" →";color:var(--primary);font-size:1.35em}.power-anatomy-diagram__label--exp:before{content:"← ";color:var(--primary);font-size:1.35em}
.theory-video-wrap,.theory-video-box{max-width:960px;margin:22px auto}.theory-video-wrap .video-card,.theory-video-box .video-card{width:100%;box-shadow:0 10px 30px rgba(7,38,66,.12)}
.video-poster--text{display:grid;place-items:center;padding:28px;background:linear-gradient(135deg,#0d3552,#15679d);color:#fff;text-align:center}
.video-poster--text .video-poster-copy{max-width:680px;padding:0 20px;font-size:clamp(1.1rem,2.1vw,1.65rem);font-weight:800;line-height:1.3}
.video-poster--text .play-button{top:auto;left:auto;position:relative;transform:none;margin-top:20px}
@media(max-width:680px){.power-anatomy-diagram{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;padding:16px 10px}.power-anatomy-diagram__expr{font-size:3.4rem}.power-anatomy-diagram__label{font-size:.86rem}.power-anatomy-diagram__label span{display:none}}


/* v39: сообщения об ошибках и персональные ссылки преподавателя */
.assignment-notice{margin:14px 0 18px;padding:13px 16px;border:1px solid rgba(20,126,190,.24);border-radius:14px;background:#eef8ff;color:var(--text);line-height:1.5}.assignment-notice b{color:var(--secondary)}
.report-error-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:26px 0 6px;padding:18px;border:1px dashed rgba(19,104,164,.34);border-radius:16px;background:var(--surface-soft)}.report-error-panel>div{display:grid;gap:4px}.report-error-panel span{color:var(--muted);font-size:.93rem}
.error-report-modal{position:fixed;inset:0;z-index:10000}.error-report-modal__backdrop{position:absolute;inset:0;background:rgba(3,23,37,.62);backdrop-filter:blur(2px)}.error-report-dialog{position:relative;z-index:1;width:min(620px,calc(100% - 28px));margin:min(12vh,110px) auto 0;padding:26px;border-radius:22px;background:var(--surface);box-shadow:0 28px 80px rgba(0,0,0,.28)}.error-report-dialog h2{margin:0 0 10px}.error-report-dialog p{line-height:1.5}.error-report-dialog label{display:grid;gap:8px;font-weight:700}.error-report-dialog textarea{width:100%;resize:vertical;padding:12px 14px;border:1px solid rgba(19,104,164,.28);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;line-height:1.5}.error-report-dialog__close{position:absolute;right:13px;top:10px;border:0;background:transparent;color:var(--muted);font-size:2rem;cursor:pointer}.error-report-status{min-height:1.4em;color:var(--muted);font-size:.92rem}.report-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}.modal-open{overflow:hidden}
@media(max-width:620px){.report-error-panel{align-items:stretch;flex-direction:column}.error-report-dialog{margin-top:5vh;padding:22px 18px}.error-report-dialog .cta-row{display:grid}.error-report-dialog .button{width:100%}}


/* v40 geometry modules, improved power anatomy, credential links */
.power-anatomy-callout{position:relative;max-width:760px;margin:18px auto 10px;padding:26px 20px 30px;border:1px solid rgba(18,105,166,.18);border-radius:22px;background:rgba(235,247,255,.72);min-height:230px;overflow:hidden}
.power-anatomy-callout__expr{position:absolute;left:50%;top:50%;transform:translate(-50%,-44%);font-family:Georgia,"Times New Roman",serif;font-size:5.2rem;line-height:1;color:var(--secondary);font-weight:700}
.power-anatomy-callout__expr sup{font-size:.48em;position:relative;top:-.34em;left:.05em;color:var(--primary)}
.power-anatomy-callout__note{position:absolute;max-width:220px;font-weight:800;color:var(--secondary);line-height:1.25}
.power-anatomy-callout__note small{display:block;margin-top:6px;font-size:.92rem;font-weight:500;color:var(--muted)}
.power-anatomy-callout__note--exp{right:34px;top:26px;text-align:left}
.power-anatomy-callout__note--base{left:34px;bottom:26px;text-align:left}
.power-anatomy-callout__svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.trust-item--link[href^="#credentials-gallery"] strong,.trust-item--link[href^="#credentials-gallery"] span{text-decoration:none}
.theorem-figure{margin:22px auto;max-width:880px;padding:18px;border:1px solid rgba(18,105,166,.16);border-radius:22px;background:rgba(235,247,255,.55)}
.theorem-figure > svg{display:block;width:100%;height:auto}
.theorem-figure figcaption{margin-top:12px;color:var(--muted);font-size:.98rem;line-height:1.5}
.theorem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.theorem-grid .formula-item{height:100%}
.theory-video-box{margin:24px auto;max-width:960px;width:100%}
.theory-video-box .material-note{margin-bottom:16px}
.ege-topic-grid .ege-topic-card--geometry{background:linear-gradient(180deg,rgba(235,247,255,.78),#fff)}
@media(max-width:780px){.power-anatomy-callout{min-height:280px;padding:18px 14px 26px}.power-anatomy-callout__expr{font-size:4.3rem;top:49%}.power-anatomy-callout__note{max-width:160px;font-size:.94rem}.power-anatomy-callout__note small{font-size:.82rem}.power-anatomy-callout__note--exp{right:12px;top:18px}.power-anatomy-callout__note--base{left:14px;bottom:18px}.theorem-grid{grid-template-columns:1fr}}
@media(max-width:560px){.power-anatomy-callout{min-height:315px}.power-anatomy-callout__expr{font-size:3.7rem;top:50%}.power-anatomy-callout__note{font-size:.9rem;max-width:136px}.power-anatomy-callout__svg path{stroke-width:4}}


/* v43: stable theorem formulas and TikZ-generated geometry diagrams */
.theorem-figure{display:grid;gap:12px;justify-items:center;margin:24px auto;max-width:900px;padding:18px;border:1px solid rgba(18,105,166,.16);border-radius:22px;background:rgba(235,247,255,.55);overflow:hidden}
.theorem-figure__image{display:block;width:100%;max-width:720px;max-height:470px;object-fit:contain;margin:0 auto}
.theorem-figure figcaption{width:100%;margin:0;color:var(--muted);font-size:.98rem;line-height:1.55;text-align:left}
.theorem-formula{display:flex;justify-content:center;align-items:center;width:100%;margin:18px 0;padding:18px 14px;border:1px solid rgba(18,105,166,.16);border-radius:17px;background:var(--primary-soft);overflow-x:auto;overflow-y:hidden;text-align:center}
.theorem-formula--main{font-size:clamp(1.05rem,1.8vw,1.28rem);font-weight:700}
.theorem-formula--compact{font-size:clamp(.98rem,1.5vw,1.12rem);background:var(--surface)}
.theorem-formula mjx-container[display="true"]{margin:0!important;padding:.1em .25em;min-width:max-content}
.theory-article .theory-section>p mjx-container[display="true"],.theory-article .worked-example>p mjx-container[display="true"]{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.15em 0}
.angle-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.angle-type-grid .formula-item{display:flex;flex-direction:column;justify-content:center;min-height:112px;text-align:center}
@media(max-width:720px){.theorem-figure{padding:12px}.theorem-figure__image{max-height:340px}.theorem-formula{justify-content:flex-start;padding:15px 10px}.angle-type-grid{grid-template-columns:1fr}.angle-type-grid .formula-item{min-height:auto}.theorem-formula--main{font-size:1rem}.theorem-formula--compact{font-size:.96rem}}

.theorem-figure__link{display:block;width:100%;text-decoration:none;cursor:zoom-in}
.theorem-figure__link:focus-visible{outline:2px solid rgba(18,105,166,.45);outline-offset:4px;border-radius:18px}


/* v47 mobile polishing + related materials cards */
.related-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.related-links>a,.related-link{display:flex;align-items:center;min-height:84px;padding:18px 18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,rgba(235,247,255,.78));color:var(--secondary);font-weight:800;line-height:1.35;box-shadow:var(--shadow-sm);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;text-decoration:none}
.related-links>a:hover,.related-links>a:focus-visible,.related-link:hover,.related-link:focus-visible{transform:translateY(-2px);border-color:#9bc9e6;box-shadow:var(--shadow);background:linear-gradient(180deg,#fff,#eef8ff)}
.related-links>a small,.related-link small{display:block;margin-top:6px;color:var(--muted);font-weight:550}

@media (max-width: 760px) {
  .formula-card{padding:18px 14px;overflow-x:clip}
  .theory-section h2{font-size:clamp(1.2rem,6.5vw,1.65rem);overflow-wrap:anywhere}
  .formula-nav{flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:min(62vw,290px)}
  .formula-nav a,.formula-nav .learning-home-button{min-height:34px;padding:7px 9px;font-size:.78rem}
  .theorem-figure{padding:12px 10px}
  .theorem-figure__image{width:100%;max-width:100%;max-height:320px;height:auto}
  .theorem-figure figcaption{font-size:.92rem}
  .power-anatomy-callout{min-height:286px;padding:18px 14px 24px}
  .power-anatomy-callout__note{max-width:150px}
}

@media (max-width: 560px) {
  .container{width:min(calc(100% - 18px),var(--container))}
  .formula-sheet{width:min(calc(100% - 18px),940px)}
  .nav-shell{align-items:flex-start}
  .brand{max-width:108px;font-size:.8rem;line-height:1.05}
  .formula-nav{gap:5px;max-width:198px}
  .formula-nav a,.formula-nav .learning-home-button{padding:6px 8px;font-size:.74rem;border-radius:10px}
  .theory-section h2{font-size:clamp(1.08rem,6.2vw,1.45rem)}
  .video-poster--text{padding:16px}
  .video-poster--text .video-poster-copy{padding:0 8px;font-size:clamp(1rem,4.5vw,1.22rem)}
  .theorem-figure__image{max-height:260px}
  .related-links{grid-template-columns:1fr}
  .related-links>a,.related-link{min-height:0;padding:15px 14px}
  .power-anatomy-callout{min-height:270px}
  .power-anatomy-callout__expr{font-size:3.2rem;top:53%}
  .power-anatomy-callout__note{max-width:124px;font-size:.84rem}
  .power-anatomy-callout__note small{font-size:.76rem;line-height:1.3}
  .power-anatomy-callout__note--exp{right:10px;top:14px}
  .power-anatomy-callout__note--base{left:12px;bottom:16px}
}


/* v48: unified tablet/phone layout for theory pages */
.theory-page .formula-sheet{margin-inline:auto}
.theory-page .formula-card{width:100%;max-width:900px;margin-inline:auto;min-width:0}
.theory-page .formula-card>*{min-width:0;max-width:100%}
.theory-page .theory-article p,
.theory-page .theory-article li,
.theory-page .theory-article h1,
.theory-page .theory-article h2,
.theory-page .theory-article h3{max-width:100%;overflow-wrap:break-word}
.theory-page .theory-article mjx-container{max-width:100%}

@media (min-width:761px) and (max-width:1100px){
  .theory-page .formula-sheet{width:min(calc(100% - 48px),940px);margin-inline:auto}
  .theory-page .formula-card{width:min(100%,860px);margin-inline:auto}
  .theory-page .breadcrumbs{width:min(100%,860px);margin:0 auto 10px}
  .theory-page .theory-video-box{width:min(100%,820px);margin-inline:auto}
  .theory-page .theorem-figure{width:min(100%,820px);margin-inline:auto}
}

@media (max-width:760px){
  body.theory-page{font-size:16px}
  .theory-page .site-header .container{width:min(calc(100% - 16px),var(--container))}
  .theory-page .nav-shell{display:grid;grid-template-columns:minmax(86px,108px) minmax(0,1fr);align-items:start;gap:8px;min-height:0;padding:8px 0}
  .theory-page .brand{max-width:108px;font-size:.72rem;line-height:1.08;padding-top:4px}
  .theory-page .brand small{display:none}
  .theory-page .formula-nav{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:min(100%,206px);max-width:206px;margin:0 0 0 auto;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
  .theory-page .formula-nav a,
  .theory-page .formula-nav .learning-home-button{justify-content:center;min-height:31px;padding:5px 6px;border-radius:9px;font-size:.67rem;line-height:1.15;white-space:nowrap}
  .theory-page .theme-toggle{grid-column:2;justify-self:end;margin-top:0;transform:scale(.86);transform-origin:right top}
  .theory-page .formula-sheet{width:min(calc(100% - 12px),940px);padding:12px 0 54px;margin-inline:auto}
  .theory-page .breadcrumbs{margin:0 auto 7px;padding:0 4px;font-size:.7rem;line-height:1.35;display:flex;flex-wrap:wrap;gap:3px 5px}
  .theory-page .formula-card{width:100%;max-width:none;padding:16px 12px;border-radius:18px;overflow:hidden;font-size:16px}
  .theory-page .formula-card>header h1{font-size:clamp(1.5rem,7.5vw,2rem);line-height:1.08;margin-bottom:14px}
  .theory-page .formula-card>header p{font-size:1rem;line-height:1.55}
  .theory-page .section-kicker{font-size:.68rem}
  .theory-page .theory-section{width:100%;min-width:0}
  .theory-page .theory-section + .theory-section{padding-top:20px}
  .theory-page .theory-section h2{max-width:100%;margin-inline:auto;font-size:clamp(1.22rem,6.2vw,1.55rem);line-height:1.18;text-align:center;overflow-wrap:normal;word-break:normal}
  .theory-page .theory-section h3{font-size:1.05rem;line-height:1.3}
  .theory-page .theory-section p,
  .theory-page .theory-section li{font-size:1rem;line-height:1.55}
  .theory-page .definition-box,
  .theory-page .condition-box,
  .theory-page .worked-example,
  .theory-page .material-note,
  .theory-page .formula-summary{max-width:100%;padding:15px 13px;border-radius:15px}
  .theory-page .theory-video-box{width:100%;max-width:100%;margin:16px auto}
  .theory-page .theory-video-box .video-card{width:100%;border-radius:18px}
  .theory-page .theory-video-box .video-poster--text{width:100%;height:clamp(190px,52vw,225px);min-height:0;aspect-ratio:auto;padding:14px;grid-template-rows:1fr auto}
  .theory-page .theory-video-box .video-poster-copy{max-width:100%;padding:0 6px;font-size:clamp(.96rem,4.3vw,1.15rem);line-height:1.25}
  .theory-page .theory-video-box .play-button{width:54px;height:54px;margin-top:8px}
  .theory-page .theorem-figure{width:100%;max-width:100%;margin:18px auto;padding:10px 8px;border-radius:16px}
  .theory-page .theorem-figure__link{width:100%;overflow:hidden}
  .theory-page .theorem-figure__image{display:block;width:100%;max-width:100%;height:auto;max-height:245px;object-fit:contain;margin-inline:auto}
  .theory-page .theorem-figure figcaption{font-size:.88rem;line-height:1.45}
  .theory-page .theorem-formula,
  .theory-page .formula-emphasis{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:13px 8px}
  .theory-page .related-links{grid-template-columns:1fr;gap:10px}
  .theory-page .related-links>a,.theory-page .related-link{min-height:0;padding:13px 13px;border-radius:14px;font-size:.94rem}
  .theory-page .power-anatomy-callout{min-height:254px;padding:14px 10px 18px}
  .theory-page .power-anatomy-callout__expr{font-size:3.15rem;top:54%}
  .theory-page .power-anatomy-callout__note{max-width:132px;font-size:.84rem}
  .theory-page .power-anatomy-callout__note small{font-size:.75rem;line-height:1.25}
  .theory-page .power-anatomy-callout__note--exp{right:8px;top:10px}
  .theory-page .power-anatomy-callout__note--base{left:9px;bottom:13px}
}

@media (max-width:480px){
  .theory-page .site-header .container{width:min(calc(100% - 10px),var(--container))}
  .theory-page .nav-shell{grid-template-columns:92px minmax(0,1fr);gap:6px}
  .theory-page .brand{font-size:.66rem;max-width:92px}
  .theory-page .formula-nav{width:196px;max-width:196px;gap:4px}
  .theory-page .formula-nav a,
  .theory-page .formula-nav .learning-home-button{min-height:29px;padding:4px 5px;font-size:.63rem}
  .theory-page .formula-sheet{width:calc(100% - 8px)}
  .theory-page .formula-card{padding:14px 10px}
  .theory-page .formula-card>header h1{font-size:clamp(1.42rem,7.2vw,1.82rem)}
  .theory-page .theory-section h2{font-size:clamp(1.14rem,5.8vw,1.38rem)}
  .theory-page .theory-video-box .video-poster--text{height:clamp(178px,50vw,210px)}
  .theory-page .theory-video-box .play-button{width:50px;height:50px}
  .theory-page .theorem-figure__image{max-height:225px}
}

.video-frame--vk{width:100%;aspect-ratio:16/9;border:0;display:block;background:#0d3552}

/* v53: stable local media for blog articles */
.article-video-card{width:100%;margin-top:26px;border-radius:20px}
.article-video-card .video-poster{border-radius:inherit}
.article-video-card .video-frame{width:100%;aspect-ratio:16/9;display:block;border:0;background:#000}
@media(max-width:560px){.article-video-card{margin-top:20px;border-radius:16px}.article-image{margin:22px auto 28px;border-radius:16px}}


/* === v56: единый ценовой эксперимент на рекламных страницах ЕГЭ/ОГЭ === */
.pricing-section{position:relative}
.pricing-heading{max-width:780px;margin-left:auto;margin-right:auto}
.pricing-grid{align-items:stretch}
.pricing-card{display:flex;flex-direction:column;gap:12px}
.pricing-card__title{font-size:1.12rem;font-weight:850;color:var(--text)}
.pricing-card__rates{display:grid;gap:8px;margin-top:2px}
.pricing-rate{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--primary-soft) 34%,var(--surface))}
.pricing-rate span{color:var(--muted);font-size:.94rem;font-weight:700;white-space:nowrap}
.pricing-rate strong{font-size:clamp(1.05rem,2.2vw,1.28rem);color:var(--primary-dark);white-space:nowrap}
.pricing-card__unit{font-size:.9rem;color:var(--muted);font-weight:700}
.pricing-card__note{margin:auto 0 0}
.pricing-duration{text-align:center;margin:22px auto 0;color:var(--muted)}
.pricing-disclosure{border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-sm);overflow:hidden}
.pricing-disclosure>summary{list-style:none;cursor:pointer;padding:clamp(22px,3.4vw,34px);display:flex;align-items:center;justify-content:space-between;gap:24px;transition:background .18s ease}
.pricing-disclosure>summary::marker{content:""}
.pricing-disclosure>summary::-webkit-details-marker{display:none}
.pricing-disclosure>summary:hover{background:color-mix(in srgb,var(--primary-soft) 52%,var(--surface))}
.pricing-disclosure>summary:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 35%,transparent);outline-offset:-3px}
.pricing-disclosure__copy{min-width:0}
.pricing-disclosure__copy .section-kicker{margin-bottom:8px}
.pricing-disclosure__copy h2{margin:0 0 8px;font-size:clamp(1.55rem,3vw,2.15rem)}
.pricing-disclosure__copy p:last-child{margin:0;color:var(--muted)}
.pricing-disclosure__action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:12px 17px;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);font-weight:850;white-space:nowrap}
.pricing-disclosure__action-open{display:none}
.pricing-disclosure[open] .pricing-disclosure__action-closed{display:none}
.pricing-disclosure[open] .pricing-disclosure__action-open{display:inline}
.pricing-disclosure__content{padding:0 clamp(22px,3.4vw,34px) clamp(26px,4vw,40px);border-top:1px solid var(--line)}
.pricing-disclosure__content .pricing-grid{margin-top:26px}
@media(max-width:700px){.pricing-disclosure>summary{align-items:flex-start;flex-direction:column;gap:16px}.pricing-disclosure__action{width:100%}.pricing-disclosure__content{padding-left:16px;padding-right:16px}.pricing-rate{align-items:center}.pricing-rate strong{font-size:1.05rem}}
