:root {
    --gold: #ffaa30;
    --gold-dark: #e89412;
    --ink: #1c1c1c;
    --heading: #242424;
    --text: #5c5c5c;
    --muted: #8d8d8d;
    --line: #e7e7e7;
    --bg: #f6f6f6;
    --white: #fff;
    --shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
    --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 12px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold-dark); }
.btn-sm { min-height: 42px; padding: 0 16px; }
.btn-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }

.topbar { background: var(--ink); color: #cfcfcf; font-size: 13px; }
.topbar-inner, .header-inner, .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar-inner { min-height: 42px; }
.topbar p { margin: 0; }
.topbar a { color: var(--gold); font-weight: 700; }
.topbar-links { display: flex; gap: 18px; }

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); }
.header-inner { min-height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--ink);
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 14px;
    font-weight: 700;
}
.logo-text {
    display: flex;
    flex-direction: column;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.logo-text small {
    color: var(--muted);
    font-family: Manrope, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}
.logo-light { color: #fff; }
.logo-light .logo-text small { color: #bdbdbd; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.nav a { font-weight: 700; font-size: 15px; color: var(--heading); }
.nav a.is-active, .nav a:hover { color: var(--gold-dark); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero { position: relative; min-height: 640px; color: #fff; overflow: hidden; }
.slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.35), rgba(16, 16, 16, 0.62));
}
.hero-inner { position: relative; z-index: 1; width: min(820px, calc(100% - 40px)); text-align: center; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero h1 {
    color: #fff;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    margin-bottom: 16px;
}
.hero p { margin: 0 auto 28px; max-width: 620px; font-size: 18px; color: #f3f3f3; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-nav {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hero-nav button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
.hero-nav button.is-active { width: 28px; background: var(--gold); }

.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head h2, .page-hero h1 {
    font-family: Unbounded, Manrope, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
}
.kicker {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subjects { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.subjects span {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ea;
    color: #8a5a10;
    font-weight: 700;
    font-size: 14px;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.course-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.course img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.course:hover img { transform: scale(1.06); }
.course-body { padding: 22px; }
.course-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.course h3 { font-size: 20px; }
.course h3 a:hover { color: var(--gold-dark); }
.price { color: var(--gold-dark); font-weight: 800; white-space: nowrap; }
.course p { margin: 8px 0 16px; }
.course-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}
.course-meta li { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.course-meta strong { color: var(--heading); font-size: 14px; }

.band {
    position: relative;
    color: #fff;
    background: url("../images/cta.jpg") center/cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 10, 0.72); }
.band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; font-family: Unbounded, Manrope, sans-serif; font-size: clamp(28px, 4vw, 42px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); text-align: center; }
.stat strong { display: block; color: var(--gold); font-size: 28px; font-family: Unbounded, Manrope, sans-serif; }
.stat span { font-size: 13px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature h3 { font-size: 18px; }
.bg-soft { background: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 22px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 22px;
}

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
    padding: 28px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}
.price-card.is-main { background: var(--ink); color: #ddd; border-color: var(--ink); transform: translateY(-8px); }
.price-card.is-main h3, .price-card.is-main .sum { color: #fff; }
.sum { display: block; margin: 8px 0; color: var(--heading); font-size: 36px; font-weight: 800; }
.price-card ul { margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.price-card li { padding: 8px 0; border-top: 1px solid var(--line); }
.price-card.is-main li { border-top-color: rgba(255, 255, 255, 0.12); }

.faq { display: grid; gap: 10px; }
.faq details { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--heading); }
.faq p { margin: 10px 0 0; }

.page-hero {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: end;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, 0.55); }
.page-hero .container { position: relative; padding: 48px 0; }
.page-hero h1 { color: #fff; }
.crumbs { margin: 0; color: #eee; }
.crumbs a { color: var(--gold); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.prose h2 { margin-top: 28px; font-size: 26px; }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { padding: 8px 12px; border-radius: 999px; background: #fff7ea; color: #8a5a10; font-weight: 700; }

.sidebar { display: grid; gap: 16px; }
.side-card { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.side-card-accent { background: var(--ink); color: #ddd; }
.side-card-accent h2 { color: #fff; font-family: Unbounded, Manrope, sans-serif; }
.side-kicker { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li, .form-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-phone { display: block; color: var(--heading); font-size: 22px; font-weight: 800; }
.side-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.side-card-accent .side-note { color: #bbb; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--heading); }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 10px; background: #eaf8ef; color: #146c36; font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.map-link {
    display: grid;
    min-height: 220px;
    place-items: center;
    border-radius: 16px;
    background: #fff7ea url("../images/hero-1.jpg") center/cover;
    color: #fff;
    font-weight: 800;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.map-link span { position: relative; z-index: 1; padding: 16px 20px; border-radius: 10px; background: rgba(20, 20, 20, 0.72); }

.footer { background: #161616; color: #c8c8c8; padding-top: 64px; }
.footer h3 { color: #fff; font-size: 16px; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 8px 0; }
.footer-bottom { margin-top: 28px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #9a9a9a; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 20px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }
    .nav.is-open { display: flex; }
    .nav ul { flex-direction: column; gap: 10px; }
    .cards, .features, .prices, .steps, .layout, .contact-grid, .footer-grid, .band .container { grid-template-columns: 1fr; }
    .price-card.is-main { transform: none; }
    .topbar-inner { flex-direction: column; align-items: flex-start; padding: 8px 0; }
    .hero { min-height: 560px; }
}

@media (max-width: 640px) {
    .course-meta, .stats { grid-template-columns: 1fr; }
    .header-inner { min-height: 72px; }
}
