/* ==========================================================================
   Apollo Academy — стили сайта
   1. Переменные и база      5. Форматы и траектории
   2. Шапка и переключатель  6. Преподаватель, FAQ
   3. Hero                   7. Контакты и форма
   4. Курсы                  8. Футер и мобильная версия
   ========================================================================== */

/* ---------- 1. Переменные и база ---------- */
:root {
    --ink:          #0c1428;
    --ink-2:        #131f3d;
    --ink-soft:     #2b3652;
    --body:         #3d465c;
    --muted:        #6b7488;
    --line:         #e2e0da;
    --line-dark:    rgba(255, 255, 255, .12);
    --paper:        #fbfaf7;
    --paper-2:      #f4f2ec;
    --white:        #ffffff;
    --gold:         #b4893b;
    --gold-bright:  #d9ab55;
    --gold-soft:    #f3e8d0;
    --wa:           #25d366;
    --radius:       14px;
    --radius-lg:    22px;
    --shadow:       0 1px 2px rgba(12, 20, 40, .04), 0 8px 24px rgba(12, 20, 40, .06);
    --shadow-lg:    0 24px 60px rgba(12, 20, 40, .14);
    --wrap:         1180px;
    --ff-head:      'Manrope', 'Segoe UI', system-ui, sans-serif;
    --ff-body:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 17px;
    line-height: 1.62;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--ff-head);
    color: var(--ink);
    line-height: 1.16;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.kicker {
    display: inline-block;
    font-family: var(--ff-head);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section--dark .kicker { color: var(--gold-bright); }

.lead { font-size: 1.1rem; max-width: 62ch; color: var(--body); }
.section--dark .lead { color: rgba(255, 255, 255, .72); }
.head { max-width: 760px; margin-bottom: 52px; }

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--ff-head);
    font-size: .97rem;
    font-weight: 700;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(180, 137, 59, .3); }
.btn--gold:hover { background: #c2953f; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .34); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--wa { background: var(--wa); color: #06351a; box-shadow: 0 8px 22px rgba(37, 211, 102, .32); }
.btn--wa:hover { background: #1fbe5b; color: #06351a; }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { flex: 0 0 auto; }

/* ---------- 2. Шапка и переключатель языков ---------- */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    border-bottom: 1px solid var(--line-dark);
}
.topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 46px;
    padding: 7px 24px;
    max-width: var(--wrap);
    margin: 0 auto;
}
.topbar__facts { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.topbar__fact { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__fact svg { color: var(--gold-bright); flex: 0 0 auto; }
.topbar__fact--companies { color: var(--gold-bright); font-weight: 600; letter-spacing: .02em; }

.langs { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.langs a {
    display: block;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--ff-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
    transition: background .15s ease, color .15s ease;
}
.langs a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.langs a.is-active { background: var(--gold); color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(251, 250, 247, .92);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__in {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo__mark {
    width: 42px; height: 42px;
    flex: 0 0 auto;
    display: grid; place-items: center;
}
.logo__svg { display: block; width: 100%; height: 100%; }
.logo__name {
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--ink);
    letter-spacing: -.025em;
    display: block;
    line-height: 1.2;
}
.logo__sub { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(12, 20, 40, .055); color: var(--ink); text-decoration: none; }

.burger {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}
.burger span {
    position: absolute; left: 50%; top: 50%;
    width: 19px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .22s ease, opacity .18s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, -7px); }
.burger span:nth-child(3) { transform: translate(-50%, 5px); }
.burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 3. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
    padding: 96px 0 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 78% -8%, rgba(180, 137, 59, .26), transparent 62%),
        radial-gradient(700px 420px at 4% 102%, rgba(43, 70, 140, .34), transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(1000px 600px at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(1000px 600px at 50% 0%, #000 20%, transparent 78%);
    pointer-events: none;
}
.hero__in { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: rgba(255, 255, 255, .76); max-width: 64ch; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    border: 1px solid rgba(217, 171, 85, .4);
    background: rgba(217, 171, 85, .1);
    border-radius: 999px;
    font-family: var(--ff-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 26px;
}
.badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(217, 171, 85, .22);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 18px; }
.hero__note {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .93rem; color: rgba(255, 255, 255, .58);
    max-width: 52ch;
}
.hero__note svg { color: var(--gold-bright); flex: 0 0 auto; margin-top: 3px; }

.stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    margin-top: 74px;
    background: var(--line-dark);
    border-top: 1px solid var(--line-dark);
}
.stat { background: var(--ink); padding: 26px 22px 30px; }
.stat__value {
    font-family: var(--ff-head);
    font-size: clamp(1.7rem, 3.1vw, 2.3rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.035em;
    line-height: 1;
    margin-bottom: 8px;
}
.stat__label { font-size: .85rem; color: rgba(255, 255, 255, .55); line-height: 1.4; }

/* Логотипы компаний */
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.logos span {
    padding: 11px 20px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 10px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink-soft);
    letter-spacing: -.01em;
}

/* ---------- 4. Курсы ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 36px; }
.filter {
    padding: 11px 20px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    font-family: var(--ff-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .16s ease;
    white-space: nowrap;
}
.filter:hover { border-color: var(--gold); color: var(--gold); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.course {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.course:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d9d5ca; }
.course.is-hidden { display: none; }

.course__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.course__code {
    display: grid; place-items: center;
    min-width: 46px; height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    background: var(--ink);
    color: var(--gold-bright);
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.02em;
}
.tag {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .77rem;
    font-weight: 700;
    font-family: var(--ff-head);
    letter-spacing: .02em;
    white-space: nowrap;
}
.tag--hours { background: var(--gold-soft); color: #7d5c1c; }
.tag--level { background: var(--paper-2); color: var(--muted); }

.course h3 { margin-bottom: 4px; font-size: 1.3rem; letter-spacing: -.025em; }
.course__sub { font-size: .92rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.course__about { font-size: .96rem; margin-bottom: 20px; }

.course__facts { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 20px; }
.fact { display: flex; gap: 14px; font-size: .9rem; margin-bottom: 11px; }
.fact:last-child { margin-bottom: 0; }
.fact__key {
    flex: 0 0 92px;
    font-family: var(--ff-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}
.fact__val { flex: 1; color: var(--ink-soft); }

.course__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Раскрывающаяся программа */
.prog { margin-bottom: 20px; }
.prog > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    list-style: none;
    font-family: var(--ff-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    padding: 11px 16px;
    background: var(--paper-2);
    border-radius: 10px;
    transition: background .15s ease;
}
.prog > summary::-webkit-details-marker { display: none; }
.prog > summary:hover { background: #ebe8e0; }
.prog > summary::after {
    content: '';
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}
.prog[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.prog__body { padding: 20px 4px 4px; }

.modules { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: m; }
.modules li {
    position: relative;
    padding: 0 0 16px 40px;
    counter-increment: m;
    border-left: 1px solid var(--line);
    margin-left: 12px;
}
.modules li:last-child { border-left-color: transparent; padding-bottom: 0; }
.modules li::before {
    content: counter(m);
    position: absolute;
    left: -13px; top: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--ff-head);
    font-size: .76rem;
    font-weight: 800;
    color: var(--gold);
}
.modules b { display: block; color: var(--ink); font-size: .96rem; font-weight: 700; margin-bottom: 3px; }
.modules span { font-size: .89rem; color: var(--body); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills__title {
    font-family: var(--ff-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.pill {
    padding: 7px 14px;
    border: 1px dashed var(--line);
    border-radius: 999px;
    font-size: .83rem;
    color: var(--ink-soft);
    background: var(--paper);
}

/* ---------- 5. Форматы и траектории ---------- */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.format {
    padding: 28px 24px 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-top: 3px solid var(--gold);
}
.format__num {
    font-family: var(--ff-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.04em;
    line-height: 1;
}
.format__when { font-family: var(--ff-head); font-weight: 700; font-size: .95rem; color: var(--gold); margin: 6px 0 12px; }
.format__text { font-size: .92rem; margin: 0; }

.included {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    color: rgba(255, 255, 255, .8);
}
.included h3 { color: #fff; margin-bottom: 22px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; }
.included li { display: flex; gap: 12px; font-size: .97rem; align-items: flex-start; }
.included li svg { color: var(--gold-bright); flex: 0 0 auto; margin-top: 4px; }

.tracks { display: grid; gap: 12px; }
.track {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.track:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.track__role { font-family: var(--ff-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; flex: 1 1 240px; }
.track__path { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.track__code {
    display: grid; place-items: center;
    min-width: 42px; height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--paper-2);
    color: var(--ink);
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: .88rem;
}
.track__arrow { color: var(--gold); font-size: .9rem; }
.track__hours {
    flex: 0 0 auto;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold);
    min-width: 58px;
    text-align: right;
}

/* ---------- 6. Преподаватель, FAQ ---------- */
.teacher { display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: start; }
.card-person {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.card-person__avatar {
    width: 76px; height: 76px;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--ink-2), var(--ink));
    color: var(--gold-bright);
    display: grid; place-items: center;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.04em;
    margin-bottom: 20px;
}
.card-person h3 { font-size: 1.35rem; margin-bottom: 6px; }
.card-person__role { font-size: .92rem; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.card-person__bio { font-size: .94rem; }
.card-person__edu {
    font-size: .87rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 4px;
}
.certs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.certs span {
    padding: 6px 13px;
    border-radius: 7px;
    background: var(--gold-soft);
    color: #7d5c1c;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: .79rem;
    letter-spacing: .02em;
}

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--line);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: '';
    position: absolute;
    left: -30px; top: 7px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
}
.tl-item__year {
    font-family: var(--ff-head);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--muted);
    text-transform: uppercase;
}
.tl-item__org { font-family: var(--ff-head); font-weight: 800; color: var(--ink); font-size: 1.1rem; margin: 2px 0 5px; letter-spacing: -.02em; }
.tl-item__text { font-size: .94rem; margin: 0; }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1.03rem;
    color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    margin-left: auto;
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__a { padding: 0 24px 22px; font-size: .97rem; margin: 0; }

/* ---------- 7. Контакты и форма ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }

.wa-card {
    background: linear-gradient(160deg, #122a1c, #0b1c13);
    border: 1px solid rgba(37, 211, 102, .26);
    border-radius: var(--radius-lg);
    padding: 34px;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 20px;
}
.wa-card h3 { color: #fff; display: flex; align-items: center; gap: 12px; }
.wa-card h3 svg { color: var(--wa); flex: 0 0 auto; }
.wa-card p { font-size: .96rem; }
.wa-card__num {
    display: block;
    font-family: var(--ff-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    margin: 4px 0 20px;
}
.wa-card__num:hover { color: var(--wa); text-decoration: none; }

.contact-meta { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-meta div { background: var(--white); padding: 17px 22px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.contact-meta dt {
    font-family: var(--ff-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 0 0 80px;
}
.contact-meta dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .96rem; }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-family: var(--ff-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -.005em;
}
.field label span { color: var(--gold); }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(180, 137, 59, .13);
}
.field textarea { min-height: 142px; resize: vertical; line-height: 1.55; }
.field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form-msg {
    display: none;
    padding: 15px 18px;
    border-radius: 11px;
    font-size: .95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.form-msg.is-ok { display: block; background: #eaf7ee; border: 1px solid #b7e2c4; color: #1c5c33; }
.form-msg.is-err { display: block; background: #fdeeee; border: 1px solid #f3c6c6; color: #8c2b2b; }
.form-chosen {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    background: var(--gold-soft);
    color: #7d5c1c;
    padding: 11px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.form-chosen.is-on { display: flex; }
.form-chosen button {
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #7d5c1c;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 4px;
}

/* Плавающая кнопка WhatsApp */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 70;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
    transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }

/* ---------- 8. Футер ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 56px 0 30px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 800;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .logo__name { color: #fff; }
.site-footer .logo__sub { color: rgba(255, 255, 255, .5); }
.footer-bottom {
    border-top: 1px solid var(--line-dark);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .86rem;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .teacher { grid-template-columns: 1fr; gap: 36px; }
    .card-person { position: static; }
    .formats { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
    .courses { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .topbar__facts { font-size: .78rem; gap: 8px 16px; }
    .section { padding: 68px 0; }
}

@media (max-width: 820px) {
    /* Меню выпадает из-под шапки. Шапка задаёт систему координат
       (sticky + backdrop-filter), поэтому используем absolute, а не fixed. */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--white);
        padding: 10px 20px 22px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav a { padding: 15px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav a:last-child { border-bottom: 0; }
    .nav .btn { margin-top: 16px; justify-content: center; }
    .burger { display: block; z-index: 80; }
    .site-header__in { min-height: 66px; }

    .hero { padding-top: 64px; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
    .stat { padding: 22px 18px 24px; }

    .included { padding: 30px 24px; }
    .included ul { grid-template-columns: 1fr; }
    .course { padding: 24px 22px; }
    .form-card { padding: 26px 22px; }
    .wa-card { padding: 28px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .track { padding: 18px 20px; gap: 12px; }
    .track__hours { text-align: left; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .topbar__in { padding: 9px 18px; align-items: flex-start; gap: 14px; min-height: 0; }
    .topbar__facts { flex-direction: column; align-items: flex-start; gap: 4px; font-size: .74rem; line-height: 1.35; }
    .langs { margin-top: 1px; }
    .section { padding: 56px 0; }
    .head { margin-bottom: 34px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .formats { grid-template-columns: 1fr; }
    .fact { flex-direction: column; gap: 3px; }
    .fact__key { flex: none; }
    .modules li { padding-left: 32px; }
    .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .btn { padding: 14px 22px; }
    .course__foot .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .stats { grid-template-columns: 1fr; }
    .logo__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .topbar, .site-header, .wa-float, .filters, .hero::before, .hero::after { display: none !important; }
    body { background: #fff; color: #000; }
    .prog__body { display: block !important; }
}


/* Официальный белый глиф WhatsApp — используется как есть,
   все кнопки WhatsApp стоят на зелёном или тёмном фоне. */
.wa-ico { display: block; flex: 0 0 auto; object-fit: contain; }
.wa-float .wa-ico { width: 28px; height: 28px; }
.wa-card h3 .wa-ico { width: 24px; height: 24px; }
