/* ============================================
   MICRO-ZELEN — Главный CSS
   2 темы (тёмная/светлая) + 3 пары шрифтов
   ============================================ */

/* --- CSS RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ============================================
   ШРИФТЫ
   ============================================ */
.font-cormorant {
    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --fw-display: 400;
    --fw-display-bold: 600;
}

/* ============================================
   ТЕМА
   ============================================ */
.theme-dark {
    --color-bg: #0F1A0E;
    --color-surface: #1A2B18;
    --color-surface-hover: #223422;
    --color-accent: #7EC850;
    --color-accent2: #C8E84F;
    --color-accent-glow: rgba(126, 200, 80, 0.25);
    --color-text: #F0F5E8;
    --color-text-secondary: #C8D4BF;
    --color-muted: #8A9E82;
    --color-border: rgba(126, 200, 80, 0.15);
    --color-overlay: rgba(15, 26, 14, 0.7);
    --color-card-shadow: rgba(0, 0, 0, 0.4);
    --header-bg: rgba(15, 26, 14, 0.85);
    --header-bg-scrolled: rgba(15, 26, 14, 0.95);
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
body {
    font-family: var(--ff-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

@media (min-width: 768px) {
    .container { padding: 0 40px; }
}

.section {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section { padding: 120px 0; }
}

.section-title {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-family: var(--ff-display);
    font-weight: var(--fw-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--color-muted);
    margin-bottom: 24px;
}

.subsection-title {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 60px 0 32px;
    color: var(--color-text);
}

/* ============================================
   КНОПКА CTA
   ============================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--color-bg);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent2), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-cta:hover::before { opacity: 1; }

.btn-cta:active { transform: translateY(0); }

/* Пульсация */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
    50% { box-shadow: 0 0 0 15px transparent; }
}
.btn-pay { animation: pulse 2.5s ease-in-out infinite; }
.btn-pay:hover { animation: none; }

/* disabled кнопка — отключаем пульсацию, но click-обработчик должен срабатывать
   (он покажет подсказку про галочку и заблокирует переход) */
.btn-pay:disabled,
.btn-pay[disabled] {
    animation: none;
}

/* подсветка блока согласия, если пытаются нажать выключенную кнопку */
.payment-consent.consent-shake {
    animation: consent-shake 0.5s ease;
    border-color: var(--color-accent) !important;
    background: rgba(126, 200, 80, 0.15) !important;
}
@keyframes consent-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Ripple эффект */
.btn-cta .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 16px 0;
}

.site-header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 2px 30px var(--color-card-shadow);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--color-accent);
    white-space: nowrap;
}

.main-nav {
    display: none;
    gap: 32px;
}

@media (min-width: 768px) {
    .main-nav { display: flex; }
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
    .burger { display: none; }
}

/* Мобильное меню */
.main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 32px 20px;
    gap: 28px;
    z-index: 999;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 30px var(--color-card-shadow);
}

.main-nav.mobile-open .nav-link {
    font-size: 1.4rem;
    color: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.theme-dark .hero-overlay {
    background: linear-gradient(
        to right,
        rgba(15, 26, 14, 0.95) 0%,
        rgba(15, 26, 14, 0.85) 35%,
        rgba(15, 26, 14, 0.5) 65%,
        rgba(15, 26, 14, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--color-text);
}

.hero-subtitle {
    font-family: var(--ff-display);
    font-weight: var(--fw-display);
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-accent);
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px var(--color-card-shadow);
}

.about-image-award {
    margin-top: 20px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* Счётчики */
.stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-accent);
    line-height: 1;
}

.stat-plus, .stat-dash, .stat-number-second {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 4px;
}

/* ============================================
   DIVIDER IMAGES
   ============================================ */
.divider-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .divider-image { height: 300px; }
}

.divider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   COURSE
   ============================================ */
.course-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

.course-lang-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 24px;
    letter-spacing: 0.02em;
}

/* For whom cards */
.for-whom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .for-whom-grid { grid-template-columns: repeat(3, 1fr); }
}

.for-whom-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.for-whom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--color-accent-glow);
    border-color: var(--color-accent);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
    margin-bottom: 20px;
}

.card-icon svg { stroke: var(--color-bg); }

.for-whom-card h4 {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.for-whom-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Program grid */
.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .program-grid { grid-template-columns: repeat(3, 1fr); }
}

.program-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transition-delay: calc(var(--delay, 0) * 0.05s);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--color-accent-glow);
    border-color: var(--color-accent);
}

.program-num {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.program-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.program-detail-img {
    margin-top: 16px;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}

/* Gallery */
.gallery-scroll {
    margin-top: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
    padding-bottom: 12px;
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.gallery-item {
    flex: 0 0 auto;
    width: 250px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-item { width: 300px; height: 360px; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   SHELVES
   ============================================ */
.shelves-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .shelves-grid { grid-template-columns: 1fr 1fr; }
}

.shelves-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px var(--color-card-shadow);
}

/* ============================================
   PAYMENT
   ============================================ */
.payment {
    text-align: center;
}

.payment-card {
    max-width: 480px;
    margin: 40px auto 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 20px 60px var(--color-card-shadow);
}

.payment-lang-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.payment-price {
    margin-bottom: 24px;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.price-old {
    font-family: var(--ff-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--color-muted);
    text-decoration: line-through;
    opacity: 0.6;
    line-height: 1;
}

.price-current {
    display: flex;
    align-items: center;
}

.price-value {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-accent);
    line-height: 1;
}

.price-currency {
    font-family: var(--ff-display);
    font-weight: var(--fw-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-accent);
    margin-left: 4px;
}

.payment-slots {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.slots-remaining {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.payment-progress {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    margin-bottom: 32px;
    overflow: hidden;
}

.payment-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
    border-radius: 3px;
    transition: width 0.8s ease;
    width: 0%;
}

/* Две кнопки оплаты — картой и переводом через Kaspi */
.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

/* Вторая кнопка — переводом через Kaspi.
   Стилистически парная с .btn-pay (та же форма и размер), но с другой палитрой:
   светлый акцентный фон + тёмный текст, без пульсации. Так клиент сразу видит что
   это альтернативный путь, но кнопка не теряется визуально. */
.btn-pay-kaspi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(126, 200, 80, 0.12);
    color: var(--color-accent);
    border: 2px solid rgba(126, 200, 80, 0.45);
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    cursor: pointer;
    text-align: center;
}
.btn-pay-kaspi:hover {
    background: rgba(126, 200, 80, 0.2);
    border-color: var(--color-accent);
}
.btn-pay-kaspi:active {
    transform: translateY(1px);
}
/* Класс ставится из payment.js когда галочка не отмечена */
.btn-pay-kaspi.btn-disabled {
    pointer-events: none;
}

/* Подсказка под кнопками — что вторая кнопка это для случаев когда карта не проходит */
.payment-alt-hint {
    font-size: 0.78rem;
    opacity: 0.55;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

.btn-pay {
    width: 100%;
    font-size: 1.1rem;
    padding: 18px;
}

.payment-disclaimer {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    text-align: center;
}

.sold-out-msg {
    margin-top: 20px;
    padding: 16px;
    background: rgba(200, 50, 50, 0.1);
    border: 1px solid rgba(200, 50, 50, 0.3);
    border-radius: 12px;
}

.sold-out-msg p {
    color: #E8836B;
    font-size: 0.95rem;
}

/* Ссылки на документы под карточкой оплаты */
.payment-docs {
    max-width: 480px;
    margin: 20px auto 0;
    text-align: center;
}
.payment-doc-link {
    color: var(--color-accent);
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.payment-doc-link:hover { opacity: 0.7; }
.payment-doc-sep {
    color: var(--color-muted);
    margin: 0 10px;
    opacity: 0.5;
}

/* Баннер языка курса в блоке оплаты */
.payment-lang-notice {
    background: rgba(200, 232, 79, 0.1);
    border: 1px solid rgba(200, 232, 79, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: var(--color-accent2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Чекбокс согласия */
.payment-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    cursor: pointer;
    padding: 16px;
    background: rgba(126, 200, 80, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}
.payment-consent:hover {
    border-color: rgba(126, 200, 80, 0.35);
    background: rgba(126, 200, 80, 0.08);
}
.payment-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-muted);
    border-radius: 5px;
    margin-top: 1px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    background: transparent;
}
.payment-consent input[type="checkbox"]:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.payment-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 8px;
    height: 12px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.payment-consent-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.consent-link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.consent-link:hover { opacity: 0.8; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 750px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 40px 20px 0;
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: 1.15rem;
    color: var(--color-text);
    position: relative;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%);
}

.faq-question:hover { color: var(--color-accent); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 0 20px;
}

.faq-answer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--color-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--color-accent); }

.footer-legal {
    width: 100%;
    text-align: center;
    margin: 8px 0 4px;
}
.footer-legal p {
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 2px;
}
.footer-legal a {
    color: var(--color-muted);
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--color-accent); }

.footer-copyright {
    color: var(--color-muted);
    font-size: 0.8rem;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-main {
    padding: 40px 0;
    width: 100%;
}

.success-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 48px 32px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    margin: 0 auto;
    stroke: var(--color-accent);
}

.success-title {
    font-family: var(--ff-display);
    font-weight: var(--fw-display-bold);
    font-size: 2rem;
    margin-bottom: 8px;
}

.success-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.btn-telegram {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0088cc, #0099e5);
}

.btn-telegram svg {
    display: inline;
    width: 20px;
    height: 20px;
    fill: white;
}

.success-instruction {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.success-support {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.success-support a {
    color: var(--color-accent);
    font-weight: 600;
}

.btn-back {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-back:hover { opacity: 0.7; }

/* ============================================
   ANIMATIONS — Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for program cards */
.program-card.reveal { transition-delay: calc(var(--delay, 0) * 0.06s); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .hero-content { padding: 100px 0 60px; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-text { max-width: 100%; margin: 0 auto; }
    .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
    .theme-dark .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(15, 26, 14, 0.7) 0%,
            rgba(15, 26, 14, 0.85) 100%
        );
    }
    .about-grid { gap: 32px; }
    .about-content { text-align: center; }
    .stats { gap: 20px; justify-content: center; }
    .stat { min-width: 70px; }
    .payment-card { padding: 32px 20px; }
    .course { text-align: center; }
    .course-lang-badge { margin-left: auto; margin-right: auto; }
    .program-card { text-align: center; }
    .for-whom-card { padding: 24px 20px; }
    .footer-links { flex-direction: column; gap: 12px; }
}

@media (max-width: 374px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.8rem; }
    .btn-cta { padding: 14px 28px; font-size: 0.9rem; }
}
