/* =========================================================
   INTALIM — Modern Landing (2026)
   Palette: Deep Teal + Amber
   ========================================================= */

:root {
    --primary: #0f766e;
    --primary-hover: #0d9488;
    --primary-dark: #115e59;
    --primary-soft: #f0fdfa;
    --accent: #f59e0b;
    --accent-bright: #fbbf24;
    --accent-soft: #fef3c7;

    /* legacy aliases */
    --blue: var(--primary);
    --blue-hover: var(--primary-hover);
    --blue-600: #0d9488;
    --blue-700: #115e59;
    --blue-900: #134e4a;
    --blue-soft: var(--primary-soft);
    --teal: var(--accent);
    --teal-600: #d97706;
    --cyan: #2dd4bf;

    --ink: #134e4a;
    --body: #57534e;
    --muted: #78716c;
    --line: #e7e5e4;
    --bg: #ffffff;
    --bg-soft: #fafaf9;
    --bg-soft2: #f5f5f4;
    --white: #fff;

    --ok: #16a34a;
    --ok-bg: #dcfce7;
    --no: #ef4444;
    --no-bg: #fee2e2;

    --grad-brand: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --grad-text: linear-gradient(100deg, #0f766e, #f59e0b);
    --grad-dark: linear-gradient(140deg, #134e4a 0%, #0f766e 50%, #0d9488 100%);

    --shadow-sm: 0 4px 14px rgba(15, 118, 110, .07);
    --shadow: 0 12px 32px rgba(15, 118, 110, .11);
    --shadow-lg: 0 24px 56px rgba(15, 118, 110, .15);
    --shadow-blue: 0 10px 28px rgba(15, 118, 110, .30);

    --r-sm: 12px;
    --r: 18px;
    --r-lg: 26px;
    --r-xl: 34px;

    --container: 1360px;
    --header-h: 78px;
    --topbar-h: 0px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-head: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 12px);
}

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 22px;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    flex-shrink: 0;
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grad-text--cyan {
    background: linear-gradient(100deg, #fbbf24, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Section basics ---------- */
.section {
    padding: 96px 0;
    position: relative;
}

.section__head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(15, 118, 110, .08);
    padding: 7px 15px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.sub-title .icon {
    font-size: 15px;
    color: var(--teal-600);
}

.section__title {
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -.5px;
}

.section__lead {
    margin-top: 16px;
    font-size: 17px;
    color: var(--body);
}

.section__lead--center {
    max-width: 560px;
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
    white-space: nowrap;
}

.btn .icon {
    font-size: 17px;
    transition: transform .3s var(--ease);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn--lg {
    padding: 16px 30px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 16px 36px rgba(15, 118, 110, .35);
}

.btn--ghost {
    background: #fff;
    color: var(--primary);
    border-color: rgba(15, 118, 110, .22);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn--outline {
    background: #fff;
    color: var(--primary);
    border-color: rgba(15, 118, 110, .35);
}

.btn--outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.btn--featured {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
    box-shadow: none;
}

.btn--featured:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn--featured .icon { transform: none; }
.btn--featured:hover .icon { transform: translateX(3px); }

.btn--white {
    background: #fff;
    color: var(--primary);
}

.btn--white:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.btn--glass {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-3px);
}

/* ---------- Pills ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--blue-700);
    background: rgba(15, 118, 110, .08);
    border: 1px solid rgba(15, 118, 110, .14);
    padding: 8px 16px;
    border-radius: 999px;
}

.pill__text {
    line-height: 1.35;
}

.pill--hero {
    max-width: min(100%, 520px);
    align-items: flex-start;
    border-radius: 16px;
    padding: 10px 16px;
}

.pill--hero .pill__dot {
    margin-top: 5px;
    flex-shrink: 0;
}

.pill--light {
    color: #cfe0ff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(21, 235, 171, .6);
    animation: pulse 1.9s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 235, 171, .6); }
    70% { box-shadow: 0 0 0 11px rgba(21, 235, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 235, 171, 0); }
}

/* ---------- Blobs / grid decor ---------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: none;
    opacity: .5;
    z-index: 0;
    animation: floatBlob 16s ease-in-out infinite;
    pointer-events: none;
}

.blob--1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle at center, rgba(45, 212, 191, .42) 0%, rgba(45, 212, 191, .12) 42%, transparent 68%);
}

.blob--2 {
    width: 520px;
    height: 520px;
    top: 24%;
    left: -220px;
    background: radial-gradient(circle at center, rgba(109, 139, 255, .34) 0%, rgba(109, 139, 255, .14) 38%, rgba(109, 139, 255, .04) 56%, transparent 72%);
    opacity: .48;
    animation-delay: -6s;
}

.blob--3 {
    width: 300px;
    height: 300px;
    top: 28%;
    left: 48%;
    background: radial-gradient(circle at center, rgba(245, 158, 11, .28) 0%, rgba(245, 158, 11, .08) 42%, transparent 68%);
    opacity: .26;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(34px, -26px) scale(1.14); }
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 118, 110, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
    z-index: 0;
}
/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #fff;
    transition: opacity .6s ease, visibility .6s;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.preloader__logo {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-blue);
    animation: bob 1.4s ease-in-out infinite;
}

.preloader__car {
    width: 40px;
    height: 40px;
    stroke: #fff;
}

.preloader__text {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 15px;
    animation: fadePulse 1.4s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadePulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-text);
    z-index: 1000;
    transition: width .1s linear;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 900;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    transition: background .35s, box-shadow .35s, height .35s;
}

.header.is-stuck {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 118, 110, .08);
    height: 66px;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.brand {
    flex-shrink: 0;
}

.brand__logo {
    height: 30px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

.nav__link {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    padding: 8px 9px;
    border-radius: 10px;
    position: relative;
    transition: color .25s, background .25s;
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 4px;
    height: 2px;
    background: var(--grad-text);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__cta,
.nav__close {
    display: none;
}

.header__actions {
    --ctl-h: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.header__actions .lang-switch {
    height: var(--ctl-h);
    padding: 3px;
    box-sizing: border-box;
    align-items: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.header__actions .lang-btn {
    height: calc(var(--ctl-h) - 6px);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 9px;
}

.header__actions .theme-toggle,
.header__actions #themeToggle,
.header__actions .icon-btn,
.header__actions .nav-toggle {
    width: var(--ctl-h);
    height: var(--ctl-h);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.header__actions .header__cta {
    height: var(--ctl-h);
    min-height: var(--ctl-h);
    padding: 0 18px;
    font-size: 14px;
    gap: 7px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.header__actions .header__cta .icon {
    font-size: 15px;
}

.header__actions .theme-toggle:hover,
.header__actions #themeToggle:hover,
.header__actions .icon-btn:hover,
.header__actions .header__cta:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    color: var(--primary);
    font-size: 22px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    color: var(--primary);
    font-size: 22px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    flex-shrink: 0;
}

.icon-btn:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    transform: translateY(-2px);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 40, 100, .55);
    z-index: 960;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1481px) {
    .nav {
        position: static;
        transform: none;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
        width: auto;
        max-width: none;
        flex-wrap: nowrap;
    }

    .nav.is-open {
        transform: none;
    }
}

@media (min-width: 1680px) {
    .nav {
        gap: 4px;
    }

    .nav__link {
        font-size: 14.5px;
        padding: 9px 12px;
    }

    .nav__link::after {
        left: 12px;
        right: 12px;
    }
}

/* =========================================================
   SIDE MENU
   ========================================================= */
.sidemenu {
    position: fixed;
    inset: 0;
    z-index: 990;
    pointer-events: none;
}

.sidemenu.is-open { pointer-events: auto; }

.sidemenu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 100, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}

.sidemenu.is-open .sidemenu__overlay {
    opacity: 1;
    visibility: visible;
}

.sidemenu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #ffffff;
    padding: 28px 30px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -24px 0 60px rgba(0, 40, 100, .18);
    border-left: 1px solid var(--line);
}

.sidemenu.is-open .sidemenu__panel {
    transform: translateX(0);
}

.sidemenu__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--body);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: all .25s;
}

.sidemenu__close:hover {
    border-color: var(--blue);
    color: var(--primary);
}

.sidemenu__logo {
    display: inline-block;
    margin-bottom: 22px;
}

.sidemenu__logo img {
    height: 32px;
    width: auto;
}

.sidemenu__text {
    color: var(--body);
    font-size: 15px;
    margin-bottom: 8px;
    max-width: 320px;
}

.sidemenu__sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.sidemenu__social {
    display: flex;
    gap: 10px;
    margin-bottom: 34px;
}

.sidemenu__social a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    stroke: var(--muted);
    font-size: 20px;
    background: #fff;
    transition: all .25s;
}

.sidemenu__social a:hover {
    border-color: var(--blue);
    color: var(--primary);
    stroke: var(--blue);
    background: var(--blue-soft);
}

.sidemenu__title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
    padding-bottom: 12px;
    position: relative;
}

.sidemenu__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

.sidemenu__title::before {
    content: "";
    position: absolute;
    left: 56px;
    bottom: 0;
    right: 0;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
}

.sidemenu__news {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.news-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.news-item__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    border: 1px solid rgba(15, 118, 110, .16);
    box-shadow: var(--shadow-sm);
}

.news-item__icon .icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    stroke: var(--primary);
}

.news-item__icon--route {
    background: rgba(15, 118, 110, .1);
    border-color: rgba(15, 118, 110, .18);
}

.news-item__icon--video {
    background: rgba(37, 99, 235, .1);
    border-color: rgba(37, 99, 235, .18);
}

.news-item__icon--video .icon {
    color: #2563eb;
    stroke: #2563eb;
}

.news-item__icon--tests {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .22);
}

.news-item__icon--tests .icon {
    color: #d97706;
    stroke: #d97706;
}

.news-item__body h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
}

.news-item__body h4 a {
    color: var(--ink);
    transition: color .2s;
}

.news-item__body h4 a:hover { color: var(--blue); }

.news-item__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.news-item__date .icon {
    font-size: 15px;
    color: var(--primary);
    stroke: var(--blue);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    padding: calc(var(--header-h) + var(--topbar-h) + 60px) 0 90px;
    background:
        radial-gradient(ellipse 620px 560px at 7% 54%, rgba(109, 139, 255, .14), transparent 72%),
        radial-gradient(1100px 620px at 88% -8%, rgba(21, 235, 171, .10), transparent 60%),
        radial-gradient(900px 560px at 4% 4%, rgba(15, 118, 110, .08), transparent 55%),
        linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center;
}

.hero__title {
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -1.2px;
    margin: 20px 0 18px;
}

.hero__text {
    font-size: 18px;
    max-width: 540px;
    margin-bottom: 30px;
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 420px;
    align-items: start;
}

.hero__stat {
    min-width: 0;
    padding-right: 14px;
}

.hero__stat b {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -.3px;
}

.hero__stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.3;
}

.hero__stat + .hero__stat {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

/* Hero dashboard mockup */
.hero__visual {
    position: relative;
}

.dash {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--r-xl);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.dash__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dash__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--ink);
}

.dash__brand .icon { font-size: 22px; }

.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash__dots i:first-child { background: #ff6b6b; }
.dash__dots i:nth-child(2) { background: #ffcf5c; }
.dash__dots i:nth-child(3) { background: var(--teal); }

.dash__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.dash__card {
    background: var(--bg-soft);
    border-radius: var(--r);
    padding: 16px;
    border: 1px solid var(--line);
}

.dash__card .icon {
    font-size: 22px;
    color: var(--primary);
    stroke: var(--blue);
    margin-bottom: 8px;
}

.dash__card b {
    display: block;
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--ink);
    line-height: 1;
}

.dash__card span { font-size: 12.5px; color: var(--muted); }

.dash__card--accent {
    background: var(--grad-brand);
    border: none;
}

.dash__card--accent .icon { color: #fff; stroke: #fff; }
.dash__card--accent b { color: #fff; }
.dash__card--accent span { color: rgba(255, 255, 255, .85); }

.dash__bars {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px;
}

.dash__bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.dash__bar-head b { color: var(--teal-600); }

.bar {
    display: block;
    height: 9px;
    background: #e5ebf5;
    border-radius: 99px;
    overflow: hidden;
}

.bar + .bar { margin-top: 9px; }

.bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--grad-text);
    animation: growBar 1.6s var(--ease) forwards;
    animation-play-state: paused;
}

.is-visible .bar i { animation-play-state: running; }

@keyframes growBar {
    to { width: var(--w); }
}

.float-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border-radius: 16px;
    padding: 11px 15px;
    box-shadow: var(--shadow);
    animation: floatY 5s ease-in-out infinite;
}

.float-chip .icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 11px;
    background: rgba(21, 235, 171, .16);
    color: var(--teal-600);
    stroke: var(--teal-600);
    font-size: 34px;
}

.float-chip b { display: block; font-size: 13.5px; color: var(--ink); font-family: var(--font-head); }
.float-chip small { font-size: 11.5px; color: var(--muted); }

.float-chip--1 { top: 8%; left: -34px; animation-delay: -1s; }
.float-chip--2 { bottom: 10%; right: -26px; animation-delay: -3s; }
.float-chip--2 .icon { background: rgba(15, 118, 110, .12); color: var(--blue); stroke: var(--blue); }

.float-chip--dark { background: rgba(255, 255, 255, .95); }

/* Hero phone mockup */
.hero-phone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.hero-phone__ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, .12);
    animation: spinRing 18s linear infinite;
}

.hero-phone__ring::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px dashed rgba(21, 235, 171, .35);
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.hero-phone__device {
    position: relative;
    z-index: 2;
    width: 280px;
    animation: floatY 6s ease-in-out infinite;
}

.hero-phone__device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
}

.hero-app-shot--dark { display: none; }

html[data-theme="dark"] .hero-app-shot--light { display: none; }
html[data-theme="dark"] .hero-app-shot--dark { display: block; }

/* =========================================================
   QUICK FEATURES
   ========================================================= */
.quick {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}

.quick__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.qcard {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s;
}

.qcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.qcard__icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--blue-soft);
    color: var(--primary);
    stroke: var(--blue);
    font-size: 27px;
}

.qcard h3 { font-size: 19px; margin-bottom: 5px; }
.qcard p { font-size: 14.5px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__inner {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 56px;
    align-items: center;
}

.about__visual { position: relative; }

.about__img {
    width: 100%;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.about__badge {
    position: absolute;
    right: -18px;
    bottom: -22px;
    background: #fff;
    border-radius: 18px;
    padding: 16px 22px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: floatY 5s ease-in-out infinite;
}

.about__badge b {
    display: block;
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--primary);
    line-height: 1;
}

.about__badge span { font-size: 12px; color: var(--muted); }

.about__content .section__lead { margin-bottom: 26px; }

.checklist {
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
}

.checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
}

.checklist .icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 8px;
    background: rgba(21, 235, 171, .16);
    color: var(--teal-600);
    stroke: var(--teal-600);
    font-size: 26px;
    margin-top: 1px;
}

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features { background: var(--bg-soft); }

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.fcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.fcard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.fcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.fcard:hover::before { transform: scaleX(1); }

.fcard__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(15, 118, 110, .09);
    color: var(--primary);
    stroke: var(--blue);
    font-size: 29px;
    margin-bottom: 20px;
    transition: transform .4s var(--ease), background .3s, color .3s;
}

.fcard:hover .fcard__icon {
    background: var(--blue);
    color: #fff;
    stroke: #fff;
    transform: rotate(-8deg) scale(1.06);
}

.fcard h3 { font-size: 18px; margin-bottom: 8px; }
.fcard p { font-size: 14px; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
    padding: 70px 0;
    background: var(--grad-dark);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    background: linear-gradient(120deg, #fff, #b9e8ff, #15ebab);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    color: #b7c6e8;
    font-size: 14.5px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
}

/* =========================================================
   TESTS
   ========================================================= */
.tests {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.tests__photo {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, .55) 0%, rgba(19, 78, 74, .7) 100%),
        url("public/img/section-bg.jpg") center / cover no-repeat;
    z-index: 0;
}

.tests > .container { position: relative; z-index: 1; }

.section__head--light .section__title { color: #fff; }
.section__head--light .sub-title {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}
.section__head--light .sub-title .icon { color: var(--accent-bright); }

.tests__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tcard {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .16);
    transition: transform .35s var(--ease), box-shadow .35s;
}

.tcard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .2);
}

.tcard__top {
    height: 140px;
    border-radius: 14px;
    background: var(--bg-soft);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.tcard__top img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcard__badge {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.tcard h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--primary-dark);
    padding: 0 4px;
}

.tcard p {
    font-size: 13px;
    margin-bottom: 12px;
    padding: 0 4px;
    color: #64748b;
    line-height: 1.55;
}

.tcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 4px 4px;
    border-top: 1px solid #eef2f7;
}

.tcard__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.tcard__meta .icon { font-size: 14px; color: var(--primary); stroke: var(--primary); }

/* =========================================================
   PREPDRIVE — reklama bloki (sayt palitrasi)
   ========================================================= */
.prep-ad {
    position: relative;
    z-index: 4;
    padding: 8px 0 36px;
}

.prep-ad__panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 28px 32px 26px;
    background:
        radial-gradient(700px 320px at 92% 0%, rgba(15, 118, 110, .08), transparent 55%),
        radial-gradient(520px 280px at 0% 100%, rgba(245, 158, 11, .07), transparent 50%),
        #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--body);
}

.prep-ad__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 118, 110, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at 25% 15%, #000 15%, transparent 70%);
    mask-image: radial-gradient(ellipse at 25% 15%, #000 15%, transparent 70%);
    pointer-events: none;
}

.prep-ad__body {
    position: relative;
    z-index: 1;
}

.prep-ad__brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.prep-ad__logo-wrap {
    flex-shrink: 0;
    line-height: 0;
}

.prep-ad__logo {
    display: block;
    width: auto;
    max-width: min(100%, 220px);
    object-fit: contain;
}

.prep-ad__logo--light {
    height: 52px;
    max-width: min(100%, 240px);
}

.prep-ad__logo--dark {
    display: none;
    height: 52px;
    max-width: min(100%, 240px);
}

.prep-ad__label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .08);
    border: 1px solid rgba(15, 118, 110, .14);
}

html[data-theme="dark"] .prep-ad__logo--light {
    display: none;
}

html[data-theme="dark"] .prep-ad__logo--dark {
    display: block;
}

html[data-theme="dark"] .prep-ad__label {
    color: #5eead4;
    background: rgba(15, 118, 110, .22);
    border-color: rgba(45, 212, 191, .28);
}

.prep-ad__title {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.4px;
    color: var(--ink);
    max-width: 740px;
    margin: 0 0 12px;
}

.prep-ad__title span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prep-ad__lead {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--body);
    max-width: 760px;
}

.prep-ad__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.prep-ad__cats span {
    min-width: 40px;
    text-align: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid rgba(15, 118, 110, .14);
}

.prep-ad__feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin: 0 0 22px;
    list-style: none;
}

.prep-ad__feats li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.prep-ad__feats .icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 7px;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
    background: var(--primary-soft);
    color: var(--primary);
    stroke: var(--primary);
    font-size: 34px;
    box-sizing: border-box;
}

.prep-ad__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.prep-ad__note {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
    max-width: 420px;
}

.prep-ad__note b {
    color: var(--ink);
    font-weight: 700;
}

.prep-ad__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.prep-ad__actions .store {
    background: var(--bg-soft);
    border-color: var(--line);
    color: var(--ink);
}

.prep-ad__actions .store:hover {
    background: #fff;
    border-color: rgba(15, 118, 110, .28);
    box-shadow: var(--shadow-sm);
}

.prep-ad__actions .store small,
.prep-ad__actions .store b {
    color: inherit;
    opacity: 1;
}

.prep-ad__btn {
    padding: 11px 18px;
    font-size: 14px;
}

.prep-ad--bottom {
    padding: 0;
    background: var(--bg-soft2);
    border-top: 1px solid var(--line);
}

.prep-ad--bottom .prep-ad__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 22px;
}

.prep-ad__mini {
    margin: 0;
    font-size: 13.5px;
    color: var(--body);
    text-align: center;
}

.prep-ad__mini b { color: var(--ink); }

.prep-ad__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.prep-ad__link .icon {
    font-size: 15px;
    stroke: currentColor;
    transition: transform .25s var(--ease);
}

.prep-ad__link:hover .icon { transform: translateX(3px); }

.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    transition: transform .3s, background .3s;
}

.store:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .12);
}

.store .icon { font-size: 26px; color: #fff; stroke: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store small { font-size: 10px; letter-spacing: .5px; opacity: .8; }
.store b { font-size: 15px; font-family: var(--font-head); }

.phone {
    position: relative;
    z-index: 2;
    width: 270px;
    aspect-ratio: 270 / 560;
    background: #0b1220;
    border-radius: 42px;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, .16);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .04);
    animation: floatY 6s ease-in-out infinite;
}

.phone__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #0b1220;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
}

/* =========================================================
   SCHOOLS TABLE
   ========================================================= */
.schools__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.schools__search {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
}

.schools__search .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--primary);
    stroke: var(--blue);
}

.schools__search input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}

.schools__search input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.schools__total {
    font-size: 14.5px;
    color: var(--muted);
}

.schools__total b { color: var(--blue); }

.schools__wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.schools__table {
    width: 100%;
    border-collapse: collapse;
}

.schools__table thead th {
    text-align: left;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    padding: 18px 20px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.schools__table thead .icon {
    font-size: 15px;
    color: var(--primary);
    stroke: var(--blue);
    vertical-align: -2px;
    margin-right: 4px;
}

.schools__table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}

.schools__table tbody tr {
    transition: background .2s;
}

.schools__table tbody tr:hover { background: rgba(15, 118, 110, .035); }
.schools__table tbody tr:last-child td { border-bottom: none; }

.col-num { width: 56px; text-align: center; }

.ro-num {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--bg-soft2);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.ro-name-cell { display: flex; align-items: center; gap: 12px; }

.ro-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
}

.ro-name {
    font-weight: 600;
    color: var(--ink);
    max-width: 280px;
}

.ro-inn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--body);
}

.ro-inn .icon { font-size: 14px; color: var(--muted); stroke: var(--muted); }

.ro-addr b { color: var(--ink); font-weight: 600; }
.ro-addr span { font-size: 12.5px; color: var(--muted); }

.ro-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ro-tag {
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(15, 118, 110, .09);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.ro-tag.muted { background: var(--bg-soft2); color: var(--muted); font-weight: 500; }

.schools__state {
    padding: 46px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    display: none;
}

.ro-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.schools__pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.ro-page {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: all .25s;
}

.ro-page:hover:not(.disabled):not(.active) {
    border-color: var(--blue);
    color: var(--primary);
    transform: translateY(-2px);
}

.ro-page.active {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.ro-page.disabled { opacity: .4; cursor: not-allowed; }
.ro-page.dots { border: none; background: none; cursor: default; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
    background: var(--bg-soft);
    padding-inline: 22px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

.price {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 28px 20px 22px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s;
    min-width: 0;
}

.price:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .10);
}

.price--featured {
    background: var(--primary);
    border: none;
    box-shadow: 0 20px 50px rgba(15, 118, 110, .35);
    z-index: 2;
}

.price--featured:hover {
    transform: translateY(-6px);
}

.price__tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-bright);
    color: #78350f;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.price__name {
    font-size: 22px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.price__sub {
    font-size: 13.5px;
    color: var(--muted);
    margin: 6px 0 18px;
}

.price__amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

.price__amount b {
    font-family: var(--font-head);
    font-size: 42px;
    color: var(--ink);
    line-height: 1;
}

.price__amount span { font-size: 13.5px; color: var(--muted); }

.price--featured .price__name,
.price--featured .price__amount b { color: #fff; }

.price--featured .price__sub,
.price--featured .price__amount span { color: rgba(255, 255, 255, .75); }

.price--featured .price__amount { border-color: rgba(255, 255, 255, .18); }

.price__list {
    display: grid;
    gap: 11px;
    margin-bottom: 24px;
    flex: 1;
}

.price__list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--body);
}

.price__item--nested > div {
    min-width: 0;
    flex: 1;
}

.price__sublist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 12px;
    display: grid;
    gap: 6px;
    border-left: 2px solid rgba(15, 118, 110, .18);
}

.price--featured .price__sublist {
    border-left-color: rgba(255, 255, 255, .28);
}

.price__sublist li {
    display: block;
    position: relative;
    padding-left: 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
}

.price--featured .price__sublist li {
    color: rgba(255, 255, 255, .72);
}

.price__sublist li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.price--featured .price__sublist li::before {
    color: rgba(255, 255, 255, .7);
}

.price--detailed {
    transform: none;
    z-index: 1;
}

.price--featured.price--detailed {
    z-index: 2;
}

.price--detailed:hover {
    transform: translateY(-6px);
}

.price--featured.price--detailed:hover {
    transform: translateY(-6px);
}

.price .btn--block {
    margin-top: auto;
}

.price--detailed .price__list {
    gap: 9px;
}

.price__list--cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 8px;
}

.price__list--cols .price__item--nested {
    grid-column: 1 / -1;
}

.price--detailed .price__list > li {
    font-size: 12px;
}

.price--detailed .price__amount b {
    font-size: 32px;
}

.price--detailed .price__sublist {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}

.price--featured .price__list li { color: rgba(255, 255, 255, .88); }

.price__list .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 50%;
    font-size: 14px;
    margin-top: 1px;
}

.price__list .icon.ok {
    background: var(--ok-bg);
    color: var(--ok);
    stroke: var(--ok);
}

.price__list .icon.no {
    background: var(--no-bg);
    color: var(--no);
    stroke: var(--no);
}

.price--featured .price__list .icon.ok {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    stroke: #fff;
}

.price--featured .price__list .icon.no {
    background: rgba(254, 202, 202, .25);
    color: #fecaca;
    stroke: #fecaca;
}

.price > .btn { margin-top: auto; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__inner {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: start;
}

.faq__intro { position: sticky; top: 100px; }
.faq__intro .section__title { text-align: left; }
.faq__intro .section__lead { margin: 16px 0 26px; }

.faq__list { display: grid; gap: 14px; }

.acc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}

.acc--open {
    border-color: rgba(15, 118, 110, .3);
    box-shadow: var(--shadow);
}

.acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--ink);
    text-align: left;
}

.acc__ic {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(15, 118, 110, .09);
    color: var(--primary);
    stroke: var(--blue);
    font-size: 20px;
    transition: transform .35s var(--ease), background .3s, color .3s;
}

.acc--open .acc__ic {
    background: var(--blue);
    color: #fff;
    stroke: #fff;
    transform: rotate(135deg);
}

.acc__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}

.acc__body p {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--body);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.ctaband {
    position: relative;
    padding: 40px 0 70px;
    overflow: hidden;
}

.ctaband__photo {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 40%, rgba(15, 23, 42, .15) 100%),
        url("public/img/section-bg.jpg") center / cover no-repeat;
    z-index: 0;
}

.ctaband > .container { position: relative; z-index: 1; }

.ctaband__inner {
    background: #0f766e;
    border-radius: 28px;
    padding: 42px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    box-shadow: 0 24px 50px rgba(15, 118, 110, .35);
    position: relative;
    overflow: hidden;
}

.ctaband__inner::before,
.ctaband__inner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .18);
    pointer-events: none;
}

.ctaband__inner::before {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -70px;
}

.ctaband__inner::after {
    width: 160px;
    height: 160px;
    right: -30px;
    top: -40px;
    border-color: rgba(255, 255, 255, .12);
}

.ctaband__copy { position: relative; z-index: 1; max-width: 640px; }
.ctaband__inner h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; }
.ctaband__inner p { color: rgba(255, 255, 255, .9); margin-top: 10px; font-size: 15.5px; }

.ctaband__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ctaband .btn--white {
    background: #fff;
    color: #0f766e;
    font-weight: 700;
}

.ctaband .btn--glass {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .65);
}

.ctaband .btn--glass:hover {
    background: rgba(255, 255, 255, .12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: #0b1220;
    color: #94a3b8;
    padding-top: 48px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 36px;
}

.footer__logo { height: 32px; margin-bottom: 14px; }

.footer__col--brand {
    width: 100%;
}

.footer__col--brand p {
    font-size: 14px;
    max-width: 560px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.footer__social { display: flex; gap: 10px; margin-bottom: 16px; }

.footer__social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    stroke: #fff;
    font-size: 17px;
    transition: transform .3s, background .3s;
}

.footer__social a:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.footer__stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 400px;
}

.footer .store--sm {
    background: #000;
    border-color: rgba(255, 255, 255, .18);
    width: 100%;
}

.footer .store--sm img[alt="App Store"] {
    filter: brightness(0) invert(1);
}

.footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}

.footer__col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer__col > a {
    display: block;
    font-size: 13.5px;
    padding: 5px 0;
    color: #94a3b8;
    transition: color .25s, padding-left .25s;
}

.footer__col > a:hover { color: var(--accent-bright); padding-left: 4px; }

.footer__contact {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 11px 12px !important;
    margin-bottom: 12px;
}

.footer__contact:hover { padding-left: 12px !important; }
.footer__contact .icon {
    font-size: 20px;
    color: var(--accent-bright);
    stroke: var(--accent-bright);
    flex-shrink: 0;
}
.footer__contact span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.footer__contact small { font-size: 10px; opacity: .7; }
.footer__contact b { font-size: 14px; color: #fff; }

.footer__addr {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.footer__addr .icon {
    font-size: 18px;
    color: var(--accent-bright);
    stroke: var(--accent-bright);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    width: 100%;
    margin-top: 4px;
}

.footer__map iframe {
    display: block;
    width: 100%;
    height: 180px;
    filter: grayscale(.15) contrast(1.05);
}

@media (min-width: 901px) {
    .footer__inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 36px 48px;
        align-items: start;
    }

    .footer__col--brand {
        grid-row: 1 / 3;
    }

    .footer__cols {
        grid-column: 2;
        grid-row: 1;
    }

    .footer__map {
        grid-column: 2;
        grid-row: 2;
    }

    .footer__map iframe { height: 160px; }
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0;
}

.footer__bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer__bottom p { font-size: 12.5px; }

.store--sm { padding: 8px 14px; }
.store--sm .icon { font-size: 22px; }
.store--sm b { font-size: 14px; }

.store__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.store--sm .store__img { width: 24px; height: 24px; }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    stroke: #fff;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .35s, visibility .35s, transform .35s;
    z-index: 800;
}

.to-top .icon { transform: rotate(-90deg); }

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover { transform: translateY(-4px); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .hero__inner,
    .about__inner,
    .faq__inner,
    .deal__inner { grid-template-columns: 1fr; }

    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .tests__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; }

    .faq__intro { position: static; }
    .hero__visual { max-width: 460px; margin: 10px auto 0; }
    .about__visual { max-width: 480px; }
    .prep-ad__panel { padding: 24px 22px; }
}

@media (max-width: 1480px) {
    /* Header stacking context must sit ABOVE overlay, otherwise drawer looks transparent & cannot be clicked */
    .header.nav-open,
    .header:has(.nav.is-open) {
        z-index: 1000;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 86vw);
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        justify-content: flex-start;
        background: #ffffff;
        background-color: #ffffff;
        opacity: 1;
        padding: 72px 16px 28px;
        box-shadow: -16px 0 48px rgba(15, 23, 42, .22);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .38s var(--ease), visibility .38s;
        z-index: 1001;
        overflow-y: auto;
        border-left: none;
        border-radius: 18px 0 0 18px;
        pointer-events: none;
    }

    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
        background: #ffffff;
        background-color: #ffffff;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-overlay {
        z-index: 999;
    }

    .nav__link {
        font-size: 16px;
        font-weight: 600;
        padding: 12px 14px;
        border-radius: 12px;
        color: #1e293b;
        background: transparent;
        white-space: normal;
        flex-shrink: 0;
    }

    .nav__link::after { display: none; }

    .nav__link:hover {
        background: #ecfdf5;
        color: #0f766e;
    }

    .nav__link.is-active {
        background: #d1fae5;
        color: #0f766e;
    }

    .nav__cta {
        display: inline-flex;
        margin-top: 12px;
        background: #0f766e !important;
        box-shadow: none;
    }

    .nav__close {
        display: grid;
        place-items: center;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        border: 1px solid #e2e8f0;
        background: #fff;
        border-radius: 50%;
        font-size: 20px;
        color: #334155;
        cursor: pointer;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
    }

    .nav-toggle { display: flex; }
    .header__cta { display: none; }
}

@media (max-width: 720px) {
    .topbar__inner { justify-content: space-between; padding-inline: 4px; }
    .topbar__text { font-size: 12px; }
    .section { padding: 68px 0; }
    .quick__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 34px 16px; }
    .pricing__grid { grid-template-columns: 1fr; }
    .price--featured,
    .price--detailed { transform: none; }
    .price--featured:hover,
    .price--detailed:hover { transform: translateY(-6px); }
    .price__list--cols { grid-template-columns: 1fr; }
    .price--detailed .price__sublist { grid-template-columns: 1fr; }
    .hero__stats {
        max-width: 100%;
        gap: 0;
    }
    .hero__stat {
        padding-right: 10px;
    }
    .hero__stat + .hero__stat {
        padding-left: 10px;
    }
    .hero__stat b { font-size: 18px; }
    .hero__stat span { font-size: 11px; }
    .pill--hero {
        display: flex;
        width: 100%;
        max-width: 100%;
        font-size: 12px;
        padding: 10px 12px;
        border-radius: 14px;
        gap: 8px;
        box-sizing: border-box;
    }
    .pill--hero .pill__dot {
        margin-top: 4px;
    }
    .prep-ad__panel { padding: 22px 18px 20px; }
    .prep-ad__feats { grid-template-columns: 1fr; gap: 10px; }
    .prep-ad__footer { flex-direction: column; align-items: stretch; }
    .prep-ad__actions { width: 100%; }
    .prep-ad__actions .store { flex: 1 1 calc(50% - 5px); min-width: 0; }
    .prep-ad__btn { flex: 1 1 100%; justify-content: center; }
    .prep-ad--bottom .prep-ad__inner { flex-direction: column; text-align: center; gap: 8px; }
    .topbar__prep { display: none; }

    .ctaband__inner { padding: 28px 22px; }
    .ctaband__btns { width: 100%; }
    .ctaband__btns .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

    .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer__bottom .container { flex-direction: column; text-align: center; }

    .schools__wrap {
        overflow: hidden;
        border-radius: 16px;
    }
    .schools__table {
        min-width: 0;
        width: 100%;
    }
    .schools__table thead {
        display: none;
    }
    .schools__table tbody tr {
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        grid-template-areas:
            "num name inn"
            ". addr addr"
            ". tags tags";
        align-items: center;
        column-gap: 8px;
        row-gap: 6px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
    }
    .schools__table tbody tr:last-child {
        border-bottom: none;
    }
    .schools__table tbody td {
        padding: 0;
        border: none;
        font-size: 12px;
    }
    .schools__table tbody td.col-num {
        grid-area: num;
        width: auto;
    }
    .schools__table tbody td:nth-child(2) { grid-area: name; min-width: 0; }
    .schools__table tbody td:nth-child(3) { grid-area: inn; }
    .schools__table tbody td:nth-child(4) { grid-area: addr; }
    .schools__table tbody td:nth-child(5) { grid-area: tags; }

    .ro-num {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 11px;
    }
    .ro-name-cell { gap: 8px; min-width: 0; }
    .ro-avatar {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 13px;
    }
    .ro-name {
        font-size: 12.5px;
        line-height: 1.3;
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ro-inn {
        font-size: 11px;
        white-space: nowrap;
        padding: 4px 7px;
        border-radius: 8px;
        background: var(--bg-soft2);
    }
    .ro-inn .icon { font-size: 12px; }
    .ro-addr b { font-size: 11.5px; }
    .ro-addr span { font-size: 11px; }
    .ro-tag {
        font-size: 10.5px;
        padding: 3px 7px;
    }
    .schools__search input {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }
    .schools__pagination { gap: 4px; margin-top: 16px; }
    .ro-page {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .features__grid { grid-template-columns: 1fr; }
    .tests__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tcard { padding: 10px; }
    .tcard__top { height: 100px; }
    .tcard h3 { font-size: 14px; }
    .tcard p { font-size: 11.5px; }
    .tcard__meta span { font-size: 11px; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr 1fr; }

    .hero__title { font-size: 32px; }
    .float-chip { transform: scale(.86); }
    .float-chip--1 { left: -12px; }
    .float-chip--2 { right: -8px; }
    .btn--lg { padding: 14px 22px; font-size: 15px; }
    .hero__btns .btn { flex: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   SUBPAGE HEADER (deal / legal pages)
   ========================================================= */
.subhead {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}

.subhead__inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.subhead .brand__logo { height: 28px; }

.subhead__right {
    --ctl-h: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.subhead__right .lang-switch {
    height: var(--ctl-h);
    padding: 3px;
    box-sizing: border-box;
    align-items: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.subhead__right .lang-btn {
    height: calc(var(--ctl-h) - 6px);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 9px;
}

.subhead__right .theme-toggle,
.subhead__right #themeToggle {
    width: var(--ctl-h);
    height: var(--ctl-h);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: var(--ctl-h, 42px);
    min-height: var(--ctl-h, 42px);
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    box-sizing: border-box;
}

.back-link:hover {
    border-color: var(--blue);
    color: var(--primary);
    transform: translateY(-1px);
}

.back-link .icon { font-size: 15px; transform: rotate(180deg); }

.subhead__right > .btn {
    height: var(--ctl-h);
    min-height: var(--ctl-h);
    padding: 0 18px;
    font-size: 14px;
    gap: 7px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.subhead__right .theme-toggle:hover,
.subhead__right #themeToggle:hover,
.subhead__right > .btn:hover {
    transform: translateY(-1px);
}

/* =========================================================
   DEAL PAGE
   ========================================================= */
.deal {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background:
        radial-gradient(1000px 560px at 88% -10%, rgba(21, 235, 171, .14), transparent 60%),
        radial-gradient(820px 520px at 6% 6%, rgba(15, 118, 110, .12), transparent 55%),
        linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

.deal__bg { position: absolute; inset: 0; z-index: 0; }

.deal__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}

.deal__title {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1px;
    margin: 18px 0 14px;
}

.deal__lead {
    font-size: 17px;
    max-width: 480px;
    margin-bottom: 34px;
}

.steps { display: grid; gap: 16px; margin-bottom: 36px; }

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s;
}

.step:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 118, 110, .25);
}

.step__num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    box-shadow: var(--shadow-blue);
}

.step h3 { font-size: 16.5px; margin-bottom: 3px; }
.step p { font-size: 14px; margin: 0; }
.step a { color: var(--blue); font-weight: 600; }

.deal__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* deal contact card */
.deal__card {
    position: relative;
    background: var(--grad-dark);
    border-radius: var(--r-xl);
    padding: 38px 34px;
    color: #eaf1ff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.deal__card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -90px;
    right: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 235, 171, .4), transparent 70%);
    filter: blur(20px);
}

.deal__card-ic {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--teal);
    stroke: var(--teal);
    font-size: 32px;
    margin-bottom: 22px;
    animation: bob 2.6s ease-in-out infinite;
}

.deal__card h2 { color: #fff; font-size: 24px; margin-bottom: 8px; position: relative; }
.deal__card p { color: #c3d2f4; font-size: 15px; margin-bottom: 26px; position: relative; }

.deal__contact {
    position: relative;
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}

.deal__contact a {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    transition: transform .3s, background .3s;
}

.deal__contact a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.deal__contact .icon { font-size: 24px; color: var(--teal); stroke: var(--teal); }
.deal__contact span { display: flex; flex-direction: column; line-height: 1.3; }
.deal__contact small { font-size: 11.5px; color: #aebfe6; }
.deal__contact b { font-size: 16px; font-family: var(--font-head); }

.deal__card .btn--block { position: relative; }

/* =========================================================
   LEGAL / PRIVACY PAGE
   ========================================================= */
.legal { padding: 50px 0 90px; background: var(--bg-soft); }

.legal__hero { max-width: 820px; margin: 0 auto 34px; }

.lang-switcher {
    display: inline-flex;
    gap: 4px;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    transition: all .25s;
}

.lang-btn.active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.lang-btn:hover:not(.active) { color: var(--blue); }

.legal__title {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.8px;
    margin: 20px 0 12px;
}

.legal__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--muted);
}

.badge-app {
    background: rgba(15, 118, 110, .09);
    color: var(--primary);
    padding: 4px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.info-box {
    max-width: 820px;
    margin: 0 auto 22px;
    background: rgba(21, 235, 171, .1);
    border-left: 4px solid var(--teal-600);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 16px 22px;
}

.info-box p { margin: 0; font-size: 14.5px; color: #0a5c44; }

.legal__body { max-width: 820px; margin: 0 auto; }

.lang-content { display: none; }
.lang-content.active { display: block; }

.legal-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px 30px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    margin-bottom: 14px;
}

.num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    background: var(--grad-brand);
    color: #fff;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
}

.legal-section p { color: var(--body); font-size: 15px; margin-bottom: 10px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--blue); font-weight: 600; }

.legal-section ul { display: grid; gap: 8px; }

.legal-section ul li {
    font-size: 14.5px;
    color: var(--body);
    padding-left: 22px;
    position: relative;
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-600);
}

.legal-section .sub {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    margin: 14px 0;
}

.legal-section .sub h3 {
    font-size: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(15, 118, 110, .1);
    color: var(--primary);
}

.tag-orange { background: #fff0e0; color: #a85800; }

hr.div { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

@media (max-width: 1080px) {
    .deal__inner { grid-template-columns: 1fr; }
    .deal__card { max-width: 480px; }
}

@media (max-width: 600px) {
    .legal-section { padding: 20px; }
    .subhead__right {
        --ctl-h: 40px;
        gap: 6px;
    }
    .subhead__right .back-link span { display: none; }
    .subhead__right .back-link {
        width: var(--ctl-h);
        padding: 0;
    }

    .deal__btns {
        flex-direction: column;
        width: 100%;
    }

    .deal__btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   I18N UI CONTROLS + DARK THEME
   ========================================================= */

.nav__tools {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0 52px 14px 0;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

@media (max-width: 1480px) {
    .nav__tools {
        display: flex;
    }

    .nav__tools .lang-switch {
        height: 42px;
        padding: 3px;
        box-sizing: border-box;
        align-items: center;
        border-radius: 12px;
    }

    .nav__tools .lang-btn {
        height: 36px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        border-radius: 9px;
    }

    .nav__tools .theme-toggle,
    .nav__tools #themeToggleNav {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        flex-shrink: 0;
    }
}

.header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch {
    display: inline-flex;
    background: var(--bg-soft2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}

.lang-btn {
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    font-family: inherit;
    transition: background .2s, color .2s;
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.is-active {
    background: var(--primary);
    color: #fff;
}

.theme-toggle,
#themeToggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 12px;
    color: var(--primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .25s, border-color .25s, transform .25s;
    flex-shrink: 0;
    font-family: inherit;
}

.theme-toggle:hover,
#themeToggle:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
}

#themeToggle .theme-icon {
    width: 20px;
    height: 20px;
    grid-area: 1 / 1;
}

html[data-theme="light"] .theme-icon--moon { display: none; }
html[data-theme="dark"] .theme-icon--sun { display: none; }

html[data-theme="dark"] .brand__logo,
html[data-theme="dark"] .sidemenu__logo img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .sidemenu__logo img[src*="logo.svg"] {
    filter: brightness(0) invert(1);
}

@media (max-width: 1480px) {
    .header__tools {
        display: none;
    }
}

@media (max-width: 480px) {
    .lang-btn {
        font-size: 11px;
        padding: 5px 7px;
    }

    .header__actions {
        --ctl-h: 40px;
        gap: 6px;
    }

    .theme-toggle,
    #themeToggle,
    #themeToggleNav {
        width: 40px;
        height: 40px;
    }

    .nav-toggle,
    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .brand__logo {
        height: 26px;
    }
}

/* ---------- Dark theme variables ---------- */
html[data-theme="dark"] {
    --primary-soft: rgba(45, 212, 191, .12);
    --ink: #ecfdf5;
    --body: #cbd5e1;
    --muted: #94a3b8;
    --line: #334155;
    --bg: #0f172a;
    --bg-soft: #111827;
    --bg-soft2: #1e293b;
    --white: #f8fafc;
    --ok-bg: rgba(22, 163, 74, .18);
    --no-bg: rgba(239, 68, 68, .18);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .28);
    --shadow: 0 12px 32px rgba(0, 0, 0, .34);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, .42);
    --shadow-blue: 0 10px 28px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: var(--bg);
    color: var(--body);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: var(--ink);
}

/* ---------- Topbar (keep brand teal) ---------- */
html[data-theme="dark"] .topbar {
    background: linear-gradient(140deg, #0a3d38 0%, #0f766e 55%, #115e59 100%);
    border-bottom-color: rgba(255, 255, 255, .1);
}

/* ---------- Header ---------- */
html[data-theme="dark"] .header,
html[data-theme="dark"] .header.is-stuck {
    background: #111827;
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .nav__link {
    color: var(--ink);
}

html[data-theme="dark"] .nav__link:hover {
    background: rgba(45, 212, 191, .08);
}

html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .icon-btn {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: #5eead4;
}

html[data-theme="dark"] .icon-btn:hover {
    background: var(--primary-soft);
    border-color: rgba(45, 212, 191, .35);
}

html[data-theme="dark"] .nav-overlay {
    background: rgba(2, 6, 23, .62);
}

/* ---------- Mobile / notebook nav drawer ---------- */
@media (max-width: 1480px) {
    html[data-theme="dark"] .nav,
    html[data-theme="dark"] .nav.is-open {
        background: #1e293b;
        box-shadow: -16px 0 48px rgba(0, 0, 0, .55);
        border-left: 1px solid rgba(148, 163, 184, .2);
        opacity: 1;
    }

    html[data-theme="dark"] .nav__tools {
        border-bottom-color: rgba(148, 163, 184, .22);
    }

    html[data-theme="dark"] .nav__link {
        color: #f1f5f9;
        background: transparent;
    }

    html[data-theme="dark"] .nav__link:hover {
        background: rgba(45, 212, 191, .14);
        color: #5eead4;
    }

    html[data-theme="dark"] .nav__link.is-active {
        background: rgba(45, 212, 191, .22);
        color: #5eead4;
    }

    html[data-theme="dark"] .nav__close {
        background: #334155;
        border-color: rgba(148, 163, 184, .3);
        color: #f1f5f9;
        box-shadow: none;
    }

    html[data-theme="dark"] .nav__cta {
        background: #0f766e !important;
        color: #fff;
    }

    html[data-theme="dark"] .nav__tools .lang-switch {
        background: #0f172a;
        border-color: rgba(148, 163, 184, .28);
    }

    html[data-theme="dark"] .nav__tools .lang-btn {
        color: #94a3b8;
    }

    html[data-theme="dark"] .nav__tools .lang-btn.is-active {
        background: #0f766e;
        color: #fff;
    }

    html[data-theme="dark"] .nav__tools .theme-toggle,
    html[data-theme="dark"] #themeToggleNav {
        background: #0f172a;
        border-color: rgba(148, 163, 184, .28);
        color: #fbbf24;
        box-shadow: none;
    }
}

/* ---------- Hero ---------- */
html[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 620px 560px at 7% 54%, rgba(45, 212, 191, .1), transparent 72%),
        radial-gradient(1100px 620px at 88% -8%, rgba(45, 212, 191, .08), transparent 60%),
        radial-gradient(900px 560px at 4% 4%, rgba(15, 118, 110, .12), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

html[data-theme="dark"] .blob--2 {
    background: radial-gradient(circle at center, rgba(45, 212, 191, .2) 0%, rgba(45, 212, 191, .08) 40%, rgba(45, 212, 191, .02) 58%, transparent 72%);
    opacity: .34;
}

html[data-theme="dark"] .blob--1 {
    background: radial-gradient(circle at center, rgba(45, 212, 191, .28) 0%, rgba(45, 212, 191, .08) 42%, transparent 68%);
    opacity: .36;
}

html[data-theme="dark"] .blob--3 {
    opacity: .18;
}

html[data-theme="dark"] .pill--hero {
    background: rgba(45, 212, 191, .1);
    border-color: rgba(45, 212, 191, .22);
    color: #99f6e4;
}

html[data-theme="dark"] .float-chip {
    background: rgba(17, 24, 39, .92);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .float-chip b { color: var(--ink); }
html[data-theme="dark"] .float-chip small { color: var(--muted); }

html[data-theme="dark"] .hero__stat + .hero__stat {
    border-left-color: var(--line);
}

/* ---------- Cards & panels ---------- */
html[data-theme="dark"] .pill:not(.pill--hero):not(.pill--light) {
    background: rgba(45, 212, 191, .1);
    border-color: rgba(45, 212, 191, .2);
    color: #99f6e4;
}

html[data-theme="dark"] .qcard {
    background: var(--bg-soft2);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .qcard:hover {
    border-color: rgba(45, 212, 191, .35);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .qcard__icon {
    background: var(--primary-soft);
    color: #5eead4;
}

html[data-theme="dark"] .sub-title {
    background: rgba(45, 212, 191, .12);
    color: #5eead4;
}

html[data-theme="dark"] .fcard {
    background: var(--bg-soft2);
    border-color: var(--line);
}

html[data-theme="dark"] .fcard:hover {
    border-color: rgba(45, 212, 191, .3);
}

html[data-theme="dark"] .features {
    background: var(--bg-soft);
}

html[data-theme="dark"] .about__badge {
    background: #1e293b;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    z-index: 2;
}

html[data-theme="dark"] .about__badge b {
    color: #5eead4;
}

html[data-theme="dark"] .about__badge span {
    color: #94a3b8;
}

html[data-theme="dark"] .about__img {
    border-color: var(--line);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .about__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, .22), transparent 48%);
    z-index: 1;
}

html[data-theme="dark"] .checklist li {
    color: var(--body);
}

/* ---------- Tests cards ---------- */
html[data-theme="dark"] .tcard {
    background: #1e293b;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .tcard:hover {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .tcard__top {
    background: #0f172a;
}

html[data-theme="dark"] .tcard h3 {
    color: #ecfdf5;
}

html[data-theme="dark"] .tcard p {
    color: #94a3b8;
}

html[data-theme="dark"] .tcard__meta {
    border-top-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .tcard__meta span {
    color: #94a3b8;
}

html[data-theme="dark"] .tcard__meta .icon {
    color: #5eead4;
    stroke: #5eead4;
}

/* ---------- Schools table ---------- */
html[data-theme="dark"] .schools__wrap {
    background: var(--bg-soft2);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .schools__table thead th {
    background: #0f172a;
    color: var(--ink);
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .schools__table tbody td {
    border-bottom-color: var(--line);
    color: var(--body);
}

html[data-theme="dark"] .schools__table tbody tr:hover {
    background: rgba(45, 212, 191, .06);
}

html[data-theme="dark"] .schools__search input {
    background: var(--bg-soft);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .schools__search input:focus {
    border-color: rgba(45, 212, 191, .45);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, .12);
}

html[data-theme="dark"] .ro-inn {
    background: var(--bg-soft);
}

html[data-theme="dark"] .ro-tag.muted {
    background: var(--bg-soft);
    color: var(--muted);
}

html[data-theme="dark"] .ro-page {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .ro-page:hover:not(.disabled):not(.active) {
    border-color: #5eead4;
    color: #5eead4;
}

/* ---------- Pricing ---------- */
html[data-theme="dark"] .pricing {
    background: var(--bg-soft);
}

html[data-theme="dark"] .price:not(.price--featured) {
    background: #1e293b;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .price:not(.price--featured):hover {
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .price:not(.price--featured) .price__amount {
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .price:not(.price--featured) .price__sublist {
    border-left-color: rgba(45, 212, 191, .25);
}

html[data-theme="dark"] .price:not(.price--featured) .btn--outline {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

html[data-theme="dark"] .price:not(.price--featured) .btn--outline:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

html[data-theme="dark"] .price--featured {
    background: linear-gradient(160deg, #134e4a 0%, #0f766e 55%, #0d9488 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    border: 1px solid rgba(45, 212, 191, .35);
}

html[data-theme="dark"] .price--featured .btn--featured {
    background: #f59e0b;
    color: #1c1917;
    border-color: #f59e0b;
}

html[data-theme="dark"] .price--featured .btn--featured:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1c1917;
}

/* ---------- FAQ accordion ---------- */
html[data-theme="dark"] .acc {
    background: var(--bg-soft2);
    border-color: var(--line);
}

html[data-theme="dark"] .acc--open {
    border-color: rgba(45, 212, 191, .35);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .acc__head {
    color: var(--ink);
}

html[data-theme="dark"] .acc__ic {
    background: var(--bg-soft);
    border-color: var(--line);
    color: var(--muted);
}

html[data-theme="dark"] .acc__body {
    border-top-color: var(--line);
    color: var(--body);
}

/* ---------- Side menu ---------- */
html[data-theme="dark"] .sidemenu__overlay {
    background: rgba(2, 6, 23, .72);
}

html[data-theme="dark"] .sidemenu__panel {
    background: #111827;
    border-left-color: var(--line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .sidemenu__close {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: #5eead4;
}

html[data-theme="dark"] .sidemenu__social a {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: #94a3b8;
}

html[data-theme="dark"] .news-item__body h4 a {
    color: #ecfdf5;
}

html[data-theme="dark"] .news-item__body h4 a:hover {
    color: #5eead4;
}

html[data-theme="dark"] .news-item__date {
    color: #94a3b8;
}

html[data-theme="dark"] .news-item__icon--route {
    background: rgba(45, 212, 191, .12);
    border-color: rgba(45, 212, 191, .24);
}

html[data-theme="dark"] .news-item__icon--route .icon {
    color: #5eead4;
    stroke: #5eead4;
}

html[data-theme="dark"] .news-item__icon--video {
    background: rgba(96, 165, 250, .12);
    border-color: rgba(96, 165, 250, .24);
}

html[data-theme="dark"] .news-item__icon--video .icon {
    color: #93c5fd;
    stroke: #93c5fd;
}

html[data-theme="dark"] .news-item__icon--tests {
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .24);
}

html[data-theme="dark"] .news-item__icon--tests .icon {
    color: #fbbf24;
    stroke: #fbbf24;
}

/* ---------- Prep ad (full dark surface) ---------- */
html[data-theme="dark"] .prep-ad__panel {
    background:
        radial-gradient(700px 320px at 92% 0%, rgba(45, 212, 191, .1), transparent 55%),
        radial-gradient(520px 280px at 0% 100%, rgba(245, 158, 11, .08), transparent 50%),
        #1e293b;
    border-color: rgba(148, 163, 184, .22);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
    color: #cbd5e1;
}

html[data-theme="dark"] .prep-ad__grid {
    background-image:
        linear-gradient(rgba(94, 234, 212, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, .06) 1px, transparent 1px);
}

html[data-theme="dark"] .prep-ad__title {
    color: #ecfdf5;
}

html[data-theme="dark"] .prep-ad__lead {
    color: #94a3b8;
}

html[data-theme="dark"] .prep-ad__cats span {
    color: #99f6e4;
    background: rgba(15, 118, 110, .28);
    border-color: rgba(45, 212, 191, .28);
}

html[data-theme="dark"] .prep-ad__feats li {
    color: #e2e8f0;
}

html[data-theme="dark"] .prep-ad__feats .icon {
    background: rgba(15, 118, 110, .35);
    color: #5eead4;
    stroke: #5eead4;
}

html[data-theme="dark"] .prep-ad__footer {
    border-top-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .prep-ad__note {
    color: #94a3b8;
}

html[data-theme="dark"] .prep-ad__note b {
    color: #ecfdf5;
}

html[data-theme="dark"] .prep-ad__actions .store {
    background: #0f172a;
    border-color: rgba(148, 163, 184, .25);
    color: #ecfdf5;
}

html[data-theme="dark"] .prep-ad__actions .store:hover {
    background: #111827;
    border-color: rgba(45, 212, 191, .4);
}

html[data-theme="dark"] .prep-ad__actions .store small,
html[data-theme="dark"] .prep-ad__actions .store b {
    color: #ecfdf5;
}

html[data-theme="dark"] .prep-ad__actions img[alt="App Store"] {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .prep-ad--bottom {
    background: var(--bg-soft2);
    border-top-color: var(--line);
}

/* ---------- CTA banner ---------- */
html[data-theme="dark"] .ctaband {
    background: transparent;
}

html[data-theme="dark"] .ctaband__photo {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .96) 0%, rgba(15, 23, 42, .88) 45%, rgba(15, 118, 110, .35) 100%),
        url("public/img/section-bg.jpg") center / cover no-repeat;
}

html[data-theme="dark"] .ctaband__inner {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #115e59 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .55);
    border: 1px solid rgba(45, 212, 191, .28);
}

html[data-theme="dark"] .ctaband .btn--white {
    background: #f59e0b;
    color: #1c1917;
    border-color: #f59e0b;
}

html[data-theme="dark"] .ctaband .btn--white:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1c1917;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .ctaband .btn--glass {
    background: rgba(15, 23, 42, .35);
    border-color: rgba(148, 163, 184, .45);
    color: #ecfdf5;
}

html[data-theme="dark"] .ctaband .btn--glass:hover {
    background: rgba(15, 23, 42, .55);
    border-color: rgba(94, 234, 212, .5);
}

html[data-theme="dark"] .stats {
    background: linear-gradient(135deg, #0a3d38 0%, #0f766e 100%);
}

html[data-theme="dark"] .preloader {
    background: var(--bg);
}

html[data-theme="dark"] .btn--ghost {
    background: rgba(255, 255, 255, .04);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .btn--outline {
    border-color: rgba(45, 212, 191, .45);
    color: #5eead4;
}

html[data-theme="dark"] .btn--outline:hover {
    background: rgba(45, 212, 191, .1);
}

/* ---------- Footer contrast ---------- */
html[data-theme="dark"] .footer {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

html[data-theme="dark"] .footer__col > p,
html[data-theme="dark"] .footer__bottom p {
    color: #cbd5e1;
}

html[data-theme="dark"] .footer__col > a {
    color: #94a3b8;
}

html[data-theme="dark"] .footer__col > a:hover {
    color: var(--accent-bright);
}

html[data-theme="dark"] .footer__addr {
    color: #94a3b8;
}

html[data-theme="dark"] .footer__bottom {
    border-top-color: rgba(255, 255, 255, .1);
}

/* ---------- Lang switch & theme toggle in dark ---------- */
html[data-theme="dark"] .lang-switch {
    background: var(--bg-soft2);
    border-color: var(--line);
}

html[data-theme="dark"] .lang-btn {
    color: var(--muted);
}

html[data-theme="dark"] .lang-btn:hover {
    color: var(--ink);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] #themeToggle {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: #fbbf24;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] #themeToggle:hover {
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .35);
}

/* ---------- Deal / subpage header ---------- */
html[data-theme="dark"] .subhead {
    background: rgba(17, 24, 39, .88);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .back-link {
    background: var(--bg-soft2);
    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"] .back-link:hover {
    border-color: rgba(45, 212, 191, .45);
    color: #5eead4;
}

html[data-theme="dark"] .deal {
    background:
        radial-gradient(1000px 560px at 88% -10%, rgba(45, 212, 191, .1), transparent 60%),
        radial-gradient(820px 520px at 6% 6%, rgba(15, 118, 110, .16), transparent 55%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

html[data-theme="dark"] .deal .grid-lines {
    background-image:
        linear-gradient(rgba(94, 234, 212, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, .06) 1px, transparent 1px);
}

html[data-theme="dark"] .deal__lead {
    color: var(--muted);
}

html[data-theme="dark"] .step {
    background: var(--bg-soft2);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .step:hover {
    border-color: rgba(45, 212, 191, .35);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .step h3 {
    color: var(--ink);
}

html[data-theme="dark"] .step p {
    color: var(--muted);
}

html[data-theme="dark"] .deal__card {
    box-shadow: 0 24px 56px rgba(0, 0, 0, .5);
    border: 1px solid rgba(45, 212, 191, .22);
}
