/* ============================================================
   АПИ.Обучение — лендинг
   Фирменная палитра: тёмно-синий #003277 + оранжевый #EB883B.
   Мягкие тени, glassmorphism, mobile-first.
   ============================================================ */

:root {
    /* Палитра (фирменная) */
    --ink-950: #04122e;
    --ink-900: #062046;
    --ink-800: #003277;
    --ink-700: #0b4db1;
    --blue: #0b4db1;
    --blue-soft: #3d74d6;
    --amber: #f5a524;
    --amber-strong: #eb883b;
    --amber-ink: #3a2405;
    --gold: #ffd66b;

    --text: #1c2434;
    --text-light: #5a6478;
    --bg: #ffffff;
    --bg-alt: #f4f6fb;
    --border: #e3e8f2;

    --success: #1f9d61;
    --danger: #d92d20;

    /* Скругления и тени */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(4, 18, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(4, 18, 46, 0.10);
    --shadow-lg: 0 24px 60px rgba(4, 18, 46, 0.22);

    --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 860px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--ink-800) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 50, 119, 0.32);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(0, 50, 119, 0.42); }

.btn--accent {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-strong) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(235, 136, 59, 0.38);
}
.btn--accent:hover { box-shadow: 0 12px 30px rgba(235, 136, 59, 0.5); }

.btn--ghost {
    background: rgba(11, 77, 177, 0.08);
    color: var(--ink-800);
    border-color: transparent;
}
.btn--ghost:hover { background: rgba(11, 77, 177, 0.14); }

.btn--outline {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.55); }

.btn--sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 11px; }
.btn--sm .btn__icon { width: 16px; height: 16px; }
.btn__icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Кнопка-иконка без текста: крупный понятный знак, квадратная подложка */
.btn--icon { padding: 10px 13px; gap: 0; }
.btn--icon .btn__icon { width: 24px; height: 24px; }
.mobile-menu__actions { display: flex; gap: 12px; }
.mobile-menu__actions .btn--icon { flex: 1; justify-content: center; padding: 14px 0; }
.mobile-menu__actions .btn--icon .btn__icon { width: 28px; height: 28px; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(227, 232, 242, 0.8);
    transition: box-shadow 0.25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo__img { display: block; height: 36px; width: auto; }
.logo__mark { display: block; border-radius: 8px; }
.logo__text em { font-style: normal; color: var(--amber-strong); }

.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink-800); background: rgba(11, 77, 177, 0.07); }

.header__actions { display: none; gap: 10px; margin-left: 8px; }

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.burger:hover { background: rgba(11, 77, 177, 0.07); }
.burger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--ink-800);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    inset: 68px 0 0 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mobile-menu__actions .btn--ghost { background: rgba(11, 77, 177, 0.08); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(61, 116, 214, 0.4), transparent 60%),
        radial-gradient(800px 500px at -10% 110%, rgba(235, 136, 59, 0.22), transparent 55%),
        linear-gradient(160deg, var(--ink-950) 0%, var(--ink-900) 45%, var(--ink-800) 100%);
    color: #fff;
    padding: 72px 0 88px;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero__glow--1 { width: 480px; height: 480px; top: -180px; right: -120px; background: rgba(11, 77, 177, 0.55); }
.hero__glow--2 { width: 380px; height: 380px; bottom: -160px; left: -100px; background: rgba(245, 165, 36, 0.24); }
.hero__glow--3 { width: 460px; height: 460px; top: -160px; left: 30%; background: rgba(11, 77, 177, 0.4); }

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}
.eyebrow img { flex-shrink: 0; }

.hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    margin-bottom: 18px;
    color: #fff;
}
.text-gradient {
    background: linear-gradient(92deg, var(--amber) 10%, var(--gold) 60%, #fff3d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    font-size: clamp(1rem, 2.4vw, 1.16rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.hero__badges li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* Мокап браузера */
.hero__visual { position: relative; }
.browser-mock {
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotate(0.6deg);
}
.browser-mock__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #e8edf5;
}
.browser-mock__bar > span { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.browser-mock__bar > span:nth-child(1) { background: #f2695c; }
.browser-mock__bar > span:nth-child(2) { background: #f5b944; }
.browser-mock__bar > span:nth-child(3) { background: #43c465; }
.browser-mock__url {
    margin-left: 10px;
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 7px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.browser-mock__body { position: relative; aspect-ratio: 16 / 10; }

/* Заглушка-градиент при отсутствии скриншота */
.shot {
    position: relative;
    background:
        radial-gradient(420px 200px at 75% 15%, rgba(61, 116, 214, 0.4), transparent 70%),
        linear-gradient(150deg, var(--ink-900) 0%, var(--ink-800) 60%, var(--ink-700) 100%);
    overflow: hidden;
}
.shot::after {
    content: "Скриншот скоро появится";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: none;
}
.shot img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero__chip {
    position: absolute;
    bottom: -18px;
    left: -8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-radius: var(--r-md);
    padding: 13px 18px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
}
.hero__chip svg { color: var(--success); flex-shrink: 0; }
.hero__chip strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.hero__chip span { display: block; font-size: 0.75rem; color: var(--text-light); }

/* ---------- Секции ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
    position: relative;
    background:
        radial-gradient(900px 420px at 90% 0%, rgba(61, 116, 214, 0.28), transparent 60%),
        linear-gradient(165deg, var(--ink-950) 0%, var(--ink-900) 60%, var(--ink-800) 100%);
    color: #fff;
    overflow: hidden;
}
.section--contacts { padding-bottom: 96px; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--text); }
.section--dark .section__head h2 { color: #fff; }
.section__head p { color: var(--text-light); font-size: 1.05rem; margin: 0; }
.section--dark .section__head p { color: rgba(255, 255, 255, 0.72); }

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(11, 77, 177, 0.35); }
.card h3 { font-size: 1.12rem; color: var(--text); }
.card p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

.card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--blue);
    background: linear-gradient(135deg, rgba(11, 77, 177, 0.1) 0%, rgba(61, 116, 214, 0.06) 100%);
    border: 1px solid rgba(11, 77, 177, 0.15);
}
.card__icon svg { width: 24px; height: 24px; }

/* ---------- Табы скриншотов ---------- */
.tabs {
    display: flex;
    gap: 6px;
    margin: 0 auto 18px;
    padding: 5px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s, background 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active {
    background: linear-gradient(135deg, var(--blue) 0%, var(--ink-800) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 50, 119, 0.35);
}
.tabs__note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 auto 26px;
    max-width: 640px;
}

.tabs__panel[hidden] { display: none; }

.shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.shot-card { margin: 0; }
.shot-card .shot {
    border-radius: var(--r-md);
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot-card:hover .shot { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-card figcaption {
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
}

/* ---------- Таймлайн «Как это работает» ---------- */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 760px;
    margin: 0 auto;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 22px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--blue) 0%, var(--amber-strong) 100%);
}
.timeline__item {
    position: relative;
    padding-left: 66px;
}
.timeline__node {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--ink-800) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 5px var(--bg-alt), 0 8px 18px rgba(0, 50, 119, 0.3);
    z-index: 1;
}
.timeline__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.timeline__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.timeline__card h3 { font-size: 1.12rem; }
.timeline__card p { font-size: 0.92rem; color: var(--text-light); margin: 0; }
/* ---------- Тарифы ---------- */
.price-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 40px;
}
.price-toggle__label { font-weight: 700; font-size: 0.95rem; color: var(--text-light); transition: color 0.2s; }
.price-toggle__label.is-active { color: var(--text); }
.price-toggle__label em { font-style: normal; color: var(--success); font-size: 0.8rem; margin-left: 2px; }

.switch { position: relative; width: 54px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__slider {
    position: absolute;
    inset: 0;
    background: #d3dbea;
    border-radius: 34px;
    transition: background 0.25s;
    pointer-events: none;
}
.switch__slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s;
}
.switch input:checked + .switch__slider { background: linear-gradient(135deg, var(--blue), var(--ink-800)); }
.switch input:checked + .switch__slider::before { transform: translateX(24px); }
.switch input:focus-visible + .switch__slider { outline: 2px solid var(--blue); outline-offset: 2px; }

.tariffs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}
.tariff {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tariff:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tariff--popular {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(150deg, var(--amber) 0%, var(--amber-strong) 45%, var(--blue) 100%) border-box;
    box-shadow: 0 18px 44px rgba(235, 136, 59, 0.18);
}
.tariff__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-strong) 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(235, 136, 59, 0.4);
    white-space: nowrap;
}
.tariff__head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tariff__head p { font-size: 0.85rem; color: var(--text-light); margin: 0 0 18px; }

.tariff__price { display: flex; align-items: baseline; gap: 6px; }
.tariff__amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-800); }
.tariff__period { font-size: 0.95rem; color: var(--text-light); font-weight: 600; }
.tariff__note { font-size: 0.8rem; color: var(--success); font-weight: 700; margin: 2px 0 20px; min-height: 1.2em; }

.tariff__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex-grow: 1; }
.tariff__list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.94rem;
    color: var(--text-light);
}
.tariff__list li strong { color: var(--text); }
.tariff__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(31, 157, 97, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d61' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.tariff__modules {
    margin-top: 8px;
    padding: 12px 14px !important;
    background: var(--bg-alt);
    border-radius: var(--r-sm);
    font-size: 0.8rem !important;
    line-height: 1.5;
}
.tariff__modules::before { display: none; }

.demo-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 24px 26px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(400px 160px at 90% 0%, rgba(245, 165, 36, 0.22), transparent 70%),
        linear-gradient(150deg, var(--ink-900) 0%, var(--ink-800) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.demo-banner strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.demo-banner span { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.demo-banner .btn { flex-shrink: 0; }

.tariffs__meta { text-align: center; margin-top: 30px; }
.tariffs__meta p { font-size: 0.9rem; color: var(--text-light); margin: 0 0 6px; }
.tariffs__meta p:last-child { font-size: 0.82rem; color: #8b93a6; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.faq__item:hover { border-color: rgba(11, 77, 177, 0.35); }
.faq__item.is-open { border-color: rgba(11, 77, 177, 0.45); box-shadow: var(--shadow-sm); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}
.faq__q:hover { color: var(--blue); }
.faq__icon { flex-shrink: 0; color: var(--blue); transition: transform 0.3s ease; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq__a p {
    padding: 0 22px 20px;
    margin: 0;
    font-size: 0.94rem;
    color: var(--text-light);
}

/* ---------- Контакты и форма ---------- */
.contacts__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.contacts__info { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.contact-row:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.contact-row__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.3; }
.contact-row em { display: block; font-style: normal; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.contacts__info > .btn { margin-top: 6px; }

.lead-form {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.lead-form__row { display: grid; grid-template-columns: 1fr; gap: 0; }
.lead-form__field { margin-bottom: 16px; }
.lead-form__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fbfcff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form__field textarea { resize: vertical; min-height: 80px; }
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 77, 177, 0.13);
}
.lead-form__field input.is-invalid { border-color: var(--danger); }

.lead-form__note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin: 14px 0 0; }
.lead-form__note a { color: var(--blue); }

.lead-form__status { margin: 12px 0 0; text-align: center; font-weight: 700; font-size: 0.92rem; }
.lead-form__status.is-ok { color: var(--success); }
.lead-form__status.is-error { color: var(--danger); }

.lead-form__fallback {
    margin-top: 16px;
    padding: 18px;
    border-radius: var(--r-md);
    background: #fdf2e7;
    border: 1px solid #f5cf9e;
    font-size: 0.9rem;
}
.lead-form__fallback strong { display: block; color: var(--amber-ink); margin-bottom: 4px; }
.lead-form__fallback span { display: block; color: #7a5a2e; margin-bottom: 10px; }
.lead-form__fallback a {
    display: inline-block;
    margin: 0 12px 4px 0;
    font-weight: 700;
    color: var(--amber-strong);
}

/* ---------- Подвал ---------- */
.footer {
    background: var(--ink-950);
    color: rgba(255, 255, 255, 0.65);
    padding: 56px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.logo--footer { color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.65; margin: 0; }
.footer__col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__hours { font-size: 0.82rem; color: rgba(255, 255, 255, 0.4); }
.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
}
/* Реквизиты в подвале: мелко и приглушённо, но читаемо. Без отдельной строки
   они слились бы с копирайтом в один блок, а для продажи по договору их
   должно быть видно без наведения. */
.footer__legal { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.4); max-width: 720px; text-align: center; }
.footer__bottom > div { display: flex; flex-direction: column; align-items: center; }
.footer__domain { color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.footer__domain:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card, .tariff, .shot-card .shot, .faq__icon, .faq__a, .timeline__card { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
    .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: repeat(2, 1fr); }
    .lead-form__row { grid-template-columns: 1fr 1fr; gap: 0 16px; }
    .demo-banner { flex-direction: row; align-items: center; justify-content: space-between; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
    .burger { display: none; }
    .nav { display: flex; }
    .header__actions { display: flex; }
    .tariffs { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .tariff--popular { transform: scale(1.03); }
    .tariff--popular:hover { transform: scale(1.03) translateY(-6px); }
    .contacts__grid { grid-template-columns: 0.85fr 1.15fr; gap: 36px; }
    .lead-form { padding: 34px 32px; }
}

/* Таймлайн: горизонтальный — три шага в ряд, линия через узлы */
@media (min-width: 768px) {
    .timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        max-width: 1080px;
    }
    .timeline::before {
        top: 23px;
        bottom: auto;
        left: calc(16.666% + 10px);
        right: calc(16.666% + 10px);
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, var(--blue) 0%, var(--amber-strong) 100%);
    }
    .timeline__item {
        width: auto;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .timeline__node {
        position: relative;
        left: auto;
        margin-bottom: 20px;
        box-shadow: 0 0 0 6px var(--bg-alt), 0 8px 18px rgba(0, 50, 119, 0.3);
    }
    .timeline__card { width: 100%; flex: 1; text-align: left; }
}

@media (min-width: 1024px) {
    .section { padding: 96px 0; }
    .hero { padding: 96px 0 110px; }
    .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
    .cards--3 { grid-template-columns: repeat(3, 1fr); }
    .cards--4 { grid-template-columns: repeat(4, 1fr); }
    .shots { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
}

/* ---------- Сравнение (таблица) ----------
   Живёт в блоке #compare на главной и на странице /lms-bez-limita-uchenikov/.
   Без скролл-обёртки таблица на телефоне разъезжается и ломает вёрстку,
   поэтому горизонтальная прокрутка разрешена, а не сжатие колонок. */
.cmp { }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.cmp table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 0.94rem;
}
.cmp th, .cmp td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.cmp thead th {
    background: var(--bg-alt);
    color: var(--text);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cmp tbody th { font-weight: 600; color: var(--text); }
.cmp tbody td { color: var(--text-light); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp__us { background: rgba(11, 77, 177, 0.06); color: var(--ink-800) !important; font-weight: 600; }
.cmp__note { margin: 16px 0 0; font-size: 0.82rem; color: var(--text-light); }
.cmp__note a { color: var(--ink-700); font-weight: 600; }

/* Текст для скринридеров: виден поисковику, скрыт от глаза. */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}