/* ============================================================
   DigitalFi Academy — микро-лендинг «Бесплатный разбор» (ТЗ: Воронка. Новички)
   Палитра вебинаров DigitalFi: чёрный #1a1a1a / белый,
   акцент #a4df4e (лайм), доп-акцент #ff4444.
   Бренд-шрифт: Conthrax (латиница), Atyp Display (заголовки RU),
   Manrope (текст). Без декоративных пилюль — типографика + рамки.
   ============================================================ */

@font-face {
    font-family: 'Atyp Display';
    src: url('../fonts/AtypDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Atyp Display';
    src: url('../fonts/AtypDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Atyp Display';
    src: url('../fonts/AtypDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Atyp Display';
    src: url('../fonts/AtypDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Conthrax';
    src: url('../fonts/Conthrax-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #121212;
    --bg-soft: #161616;
    --surface: #1c1c1c;
    --ink: #f5f6f7;
    --muted: #a6adb8;
    --faint: #8a919c;
    --line: rgba(255, 255, 255, 0.09);
    --line-soft: rgba(255, 255, 255, 0.06);
    --accent: #a4df4e;          /* акцент вебинаров — лайм */
    --accent-hover: #b9ec66;
    --accent-ink: #1a1a1a;
    --red: #ff4444;             /* доп-цвет вебинаров */
    --radius: 16px;
    --font-display: 'Atyp Display', 'Manrope', system-ui, -apple-system, sans-serif;
    --font-brand: 'Conthrax', 'Atyp Display', system-ui, sans-serif;
    --font-body: 'Manrope', 'Atyp Display', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
}

/* Conthrax — только латиница (бренд-слова), как на основном сайте */
.fx {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:focus-visible {
    outline: 3px solid rgba(164, 223, 78, 0.4);
    outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }
.btn .tg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn .arr { width: 15px; height: 15px; fill: currentColor; flex: none; transform: translateY(2px); }

.btn.primary,
.btn.cta-btn {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 20px rgba(164, 223, 78, 0.28);
}
.btn.primary:hover,
.btn.cta-btn:hover { background: var(--accent-hover); }

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    min-height: 44px;
    padding: 10px 22px;
}
.btn.ghost .tg { display: none; }
.btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Шапка ---------- */

.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}
.head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 0;
    margin: -8px 0;
    border-radius: 10px;
    transition: opacity 0.15s ease;
}
.brand:hover { opacity: 0.85; }
.brand:active { opacity: 0.7; }
.brand:focus-visible {
    outline: 3px solid rgba(164, 223, 78, 0.4);
    outline-offset: 3px;
}
.brand-icon { width: 40px; height: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .n1 {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.05em;
    color: #ffffff;
}
.brand-name .n2 {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 4px;
}

/* ---------- Экран 1: hero ---------- */

.hero { padding: 56px 0 84px; }

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
    max-width: 560px;
    text-wrap: pretty;
}
.hl { color: var(--accent); }

.lead {
    color: #b6bcc4;
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 32px;
}

.cta-row { margin-bottom: 18px; }
.hero-media {
    margin: 0;
}
.hero-media .ph {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: brightness(0.9) saturate(0.92);
}
.hero-media .ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0) 35%, rgba(18, 18, 18, 0.45) 100%);
    pointer-events: none;
}
/* ---------- Экран 2: что получишь ---------- */

.benefits {
    padding: 88px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.sec-head { margin-bottom: 42px; }
.sec-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    text-wrap: balance;
}
.sec-head p {
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
}

.ways {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

.way-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 32px;
}
.way-card h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    text-wrap: balance;
}
.way-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
}
.way-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 16.5px;
    line-height: 1.5;
}
.way-card li .tx {
    min-width: 0;
    text-wrap: pretty;
}
.way-card li svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 5px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.red { color: var(--red); font-weight: 500; }

/* ---------- Экран 3: CTA ---------- */

.cta { padding: 88px 0; }

.cta-panel {
    display: grid;
    gap: 52px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(36px, 6vw, 72px);
}

.cta-copy h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(29px, 3.4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    max-width: 520px;
    text-wrap: balance;
}
.cta-copy h2 .fx { font-size: 0.92em; }

.tg-visual {
    position: relative;
}
.cta-photo {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.chat {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    margin: -58px auto 0;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.6);
    color: #101418;
}
.chat-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef1f4;
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    flex: none;
}
.chat-avatar svg { width: 22px; height: 22px; fill: var(--accent-ink); color: var(--accent-ink); }
.chat-meta { display: flex; flex-direction: column; line-height: 1.25; }
.chat-meta strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #111; }
.chat-meta span { font-size: 12px; color: #66727f; }

.chat-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-top: 11px;
}
.bubble {
    background: #f1f3f6;
    border-radius: 4px 14px 14px 14px;
    padding: 9px 13px;
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 92%;
}
.reply {
    align-self: stretch;
    text-align: center;
    border: 1px solid #c9d2da;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1c2733;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.reply:hover {
    border-color: #a4df4e;
    background: #eef9d9;
}
.reply:active { transform: translateY(1px); }
.reply:focus-visible {
    outline: 2px solid #1c2733;
    outline-offset: 2px;
}

/* ---------- Футер ---------- */

.foot {
    padding: 60px 0 46px;
    text-align: center;
    border-top: 1px solid var(--line-soft);
}
.foot-note {
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 500;
    line-height: 1.45;
    max-width: 700px;
    margin: 0 auto 36px;
}
.foot-legal {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
}
.foot-legal p {
    font-size: 13px;
    color: var(--faint);
    line-height: 1.7;
}
.foot-legal .fx {
    font-size: 12px;
    letter-spacing: 0.06em;
}

/* ---------- Плавное появление (iOS/Telegram-эффект) ---------- */

html.js .rv {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transform-origin: 50% 100%;
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.6, 0.3, 1),
        transform 0.75s cubic-bezier(0.25, 0.6, 0.3, 1);
    transition-delay: var(--rd, 0s);
    will-change: opacity, transform;
}
html.js .rv.in {
    opacity: 1;
    transform: none;
}

/* ---------- Экран 5: о школе ---------- */

.about {
    padding: 64px 0 96px;
}
.about-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.sec-kicker {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.about-copy h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}
.about-side h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #f5f6f7;
    margin-bottom: 18px;
}
.about-copy .about-txt {
    color: #eef0f2;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 560px;
}
.about-hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 28px 0;
}
.about-cert {
    color: #888;
    font-size: 14px;
    line-height: 1.65;
    max-width: 520px;
}
.about-side {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}
.benefit-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 24px;
}
.b-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.b-ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #2a2a2a;
    box-shadow: inset 0 0 0 1px rgba(164, 223, 78, 0.16);
    display: grid;
    place-items: center;
    flex: none;
}
.b-ico svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.b-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: #f5f6f7;
    text-wrap: balance;
}
.benefit-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Экран 6: отзывы ---------- */

.reviews {
    padding: 88px 0 96px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
/* Горизонтальная карусель отзывов (стиль Яндекс Карт) */
.rc-viewport {
    overflow: hidden;
    cursor: grab;
}
.rc-track {
    display: flex;
    gap: 16px;
    will-change: transform;
}
.rc-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 0;
    box-sizing: border-box;
    background: #1c1c1c;
    border: 1px solid #303030;
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
}
.rc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.rc-av {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a2a2a;
    display: grid;
    place-items: center;
    flex: none;
    overflow: hidden;
}
.rc-ini {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: #9aa1ab;
}
.rc-av img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rc-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rc-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.rc-name {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #f2f3f5;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
a.rc-name:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.45);
}
.rc-name:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}
.rc-verified {
    width: 15px;
    height: 15px;
    flex: none;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.rc-sub {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.rc-stars {
    color: #ffcc00;
    font-size: 12px;
    letter-spacing: 2.2px;
    line-height: 1;
    white-space: nowrap;
}
.rc-stars .off {
    color: rgba(255, 255, 255, 0.18);
}
.rc-date {
    font-size: 12px;
    color: #8a919c;
}
.rc-text {
    color: #c3c8cf;
    font-size: 14.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}
.rc-src {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    align-self: flex-start;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a919c;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.rc-src svg {
    width: 15px;
    height: 15px;
    flex: none;
}
.rc-src:hover {
    color: #ffcc00;
    text-decoration-color: #ffcc00;
}
.rc-src:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}
.rc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}
.rc-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.rc-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #4a4a4a;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.3s ease;
}
.rc-dot:hover {
    background: #7a7a7a;
}
.rc-dot.active {
    width: 22px;
    background: #ffcc00;
}
.rc-dot:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
}
.rc-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: #1c1c1c;
    color: #e8eaed;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.rc-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.rc-arrow:hover {
    border-color: #ffcc00;
    color: #ffcc00;
}
.rc-arrow:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
}
.rc-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    border-color: #3a3a3a;
    color: #e8eaed;
}

@media (max-width: 719px) {
    .rc-card {
        flex-basis: 100%;
    }
}
/* Рейтинг слева от ленты (компактный, ~1/3) */
.rev-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
    gap: 44px;
    align-items: start;
}
.rr-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px; /* уровень никнеймов в карточках */
    box-sizing: border-box;
}
.rs-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.rs-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.rs-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    color: #f5f6f7;
}
.rs-stars {
    color: #ffcc00;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 1;
}
.rs-sub {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}
.rs-link {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.rs-link:hover {
    color: #ffcc00;
    text-decoration-color: #ffcc00;
}
.rs-link:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}
.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #f2f3f5;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.rs-btn:hover {
    border-color: rgba(164, 223, 78, 0.55);
    color: var(--accent);
}
.rs-btn:focus-visible {
    outline: 3px solid rgba(255, 204, 0, 0.45);
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .rev-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
        gap: 32px;
    }
    .rs-num {
        font-size: 38px;
    }
}

@media (max-width: 719px) {
    .rev-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .rr-side {
        padding-top: 0;
    }
    .rs-sub {
        max-width: 280px;
    }
    .reviews .sec-head {
        text-align: center;
    }
}

.review-cta {
    margin-top: 44px;
    text-align: center;
}

/* ---------- Responsive: планшеты ---------- */

@media (min-width: 600px) and (max-width: 1023px) {
    .hero-media {
        max-width: 640px;
        margin-inline: auto;
        width: 100%;
    }
    .cta-panel {
        gap: 44px;
    }
    .cta-copy {
        text-align: center;
    }
    .cta-copy h2 {
        margin-inline: auto;
    }
    .tg-visual {
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
    }
}

@media (min-width: 600px) {
    .nowrap-lg { white-space: nowrap; }
}

/* ---------- Responsive: мобильные ---------- */

@media (max-width: 559px) {
    .brand-icon { width: 34px; }
    .brand-name .n1 { font-size: 17px; }
    .brand-name .n2 { font-size: 8.5px; letter-spacing: 0.24em; }
    .btn.ghost {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 50%;
    }
    .btn.ghost .tg { display: block; }
    .btn.ghost .ghost-label { display: none; }

    .hero { padding: 44px 0 64px; }
    .hero-grid { gap: 36px; }
    h1 { font-size: clamp(30px, 8.6vw, 36px); }
    .lead { margin-bottom: 26px; }

    .benefits { padding: 64px 0; }
    .sec-head { margin-bottom: 30px; }
    .way-card { padding: 28px 24px; }
    .way-card h3 { font-size: 21px; }
    .way-card li { font-size: 15.5px; }

    .cta { padding: 64px 0; }
    .cta-panel {
        border-radius: 20px;
        padding: 30px 22px;
        gap: 40px;
    }
    .cta-copy h2 { font-size: 27px; }
    .btn.primary, .btn.cta-btn { min-height: 52px; padding: 13px 26px; font-size: 17px; }
    .chat { width: calc(100% - 18px); }

    .foot { padding: 48px 0 38px; }
    .foot-note { margin-bottom: 28px; }
    .about { padding: 48px 0 64px; }
    .reviews { padding: 64px 0 72px; }
}

@media (max-width: 359px) {
    .way-card li { font-size: 14.5px; }
    .way-card li svg { width: 17px; height: 17px; }
    .cta-panel { padding: 26px 18px; }
}

/* ---------- Responsive: десктоп ---------- */

@media (min-width: 720px) {
    .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hero { padding: 76px 0 104px; }
    .hero-grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
        gap: 64px;
    }
    .benefits { padding: 108px 0; }
    .cta { padding: 108px 0; }
    .cta-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 64px; }
    .about { padding: 76px 0 108px; }
    .reviews { padding: 108px 0 116px; }
}

/* «Мы не просто школа» + карточки рядом уже с 900px, заголовки вровень */
@media (min-width: 900px) {
    .about-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; }
    /* низ правого заголовка = низ «Мы не просто школа», верх карточек = верх текста слева */
    .about-side h2 { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.js .rv { opacity: 1; transform: none; }
}

/* ---------- Экран 7: видеоотзывы учеников (Bunny.net) ---------- */

.videos {
    padding: 88px 0 96px;
}
.vc-shell { min-width: 0; }

/* Карусель: нативный скролл + снап по карточке, листается по одной */
.vc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity; /* mandatory конфликтует с программным скроллом */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    outline: none;
}
.vc-track::-webkit-scrollbar { display: none; }
.vc-track.no-snap { scroll-snap-type: none; } /* на время JS-анимации, иначе браузер гасит скролл */
.vc-track:focus-visible {
    outline: 3px solid rgba(164, 223, 78, 0.4);
    outline-offset: 4px;
    border-radius: var(--radius);
}

.vc-card {
    flex: 0 0 100%;
    min-width: 0;
    background: var(--surface);
    border: 1px solid #303030;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: border-color 0.2s ease;
}
.vc-card:hover { border-color: rgba(255, 255, 255, 0.18); }

.vc-player {
    position: relative;
    padding-top: 56.25%; /* 16:9 — горизонтальные отзывы */
    background: #0d0d0d;
}
.vc-card.o-v .vc-player { padding-top: 126.4%; } /* вертикальные отзывы: карточка «2/3» высоты */
/* «Ambient» как у YouTube: видео целиком по центру, а по бокам — размытое
   продолжение кадра. Слой 1: статичный кадр-превью (пока видео не играло,
   ноль лишней нагрузки). Слой 2 (.vc-amb): «живой» фон — лёгкий размытый
   ролик низкого разрешения из папки amb/ (экспорт, десятки КБ), играет
   синхронно с основным плеером. Картинка для слоя 1 задаётся из JS. */
.vc-card.o-v .vc-player::before {
    content: '';
    position: absolute;
    inset: -6%;
    background-image: var(--vc-amb, none);
    background-size: 100% 100%; /* растягиваем на всю область: блюр = продолжение краёв кадра */
    background-position: center;
    filter: blur(34px) saturate(1.4) brightness(0.9);
    -webkit-filter: blur(34px) saturate(1.4) brightness(0.9);
    transform: scale(1.06);
    pointer-events: none;
    z-index: 0;
}
/* Обёртки/маски нет: переход между видео и размытием — резкий, как было */
.vc-amb {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    object-fit: fill; /* растягиваем: по всей высоте фон совпадает с кадром плеера */
    filter: blur(34px) saturate(1.4) brightness(0.9);
    -webkit-filter: blur(34px) saturate(1.4) brightness(0.9);
    transform: scale(1.06);
    pointer-events: none;
    z-index: 1;
}
/* Плеер — это ровно 9:16-бокс по центру: видео видно целиком, без обрезки,
   по бокам открывается размытое продолжение (::before / .vc-amb) */
.vc-card.o-v .vc-player iframe {
    z-index: 2;
    width: 71.1%;
    left: 14.45%;
    right: auto;
}
.vc-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Заставка вместо плеера, пока видео не загружено (заглушка) */
.vc-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(164, 223, 78, 0.07) 0%, rgba(164, 223, 78, 0) 55%),
        linear-gradient(180deg, #151515 0%, #101010 100%);
}
.vc-ph svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}
.vc-ph span {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    max-width: 180px;
    line-height: 1.4;
}

.vc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 16px;
}
.vc-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    box-shadow: inset 0 0 0 1px rgba(164, 223, 78, 0.12);
    display: grid;
    place-items: center;
    flex: none;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: #9aa1ab;
}
.vc-wh {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vc-name {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #f2f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-course {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-course::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

/* Навигация: прогресс + счётчик «N–M из 36» + стрелки */
.vc-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}
.vc-progress {
    flex: 1 1 auto;
    min-width: 60px;
    height: 3px;
    border-radius: 999px;
    background: #262626;
    overflow: hidden;
}
.vc-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.25s ease;
}
.vc-counter {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.vc-counter b { color: #f2f3f5; font-weight: 600; }
.vc-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: var(--surface);
    color: #e8eaed;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.vc-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vc-arrow:hover {
    border-color: rgba(164, 223, 78, 0.6);
    color: var(--accent);
}
.vc-arrow:focus-visible {
    outline: 3px solid rgba(164, 223, 78, 0.4);
    outline-offset: 3px;
}
.vc-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    border-color: #3a3a3a;
    color: #e8eaed;
}

@media (min-width: 720px) {
    .vc-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (min-width: 1024px) {
    .vc-card { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 719px) {
    .vc-nav { gap: 12px; }
}
@media (max-width: 559px) {
    .videos { padding: 64px 0 72px; }
    .vc-counter { font-size: 13px; }
    .vc-arrow { width: 38px; height: 38px; }
}
@media (min-width: 1024px) {
    .videos { padding: 108px 0 116px; }
}
