/* =============================================
   СКИЛЛТРЕК — HOMEPAGE v2
   Modern, clean design with Inter font
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c-bg: #fafbff;
    --c-dark: #0b0f1a;
    --c-text: #334155;
    --c-muted: #64748b;
    --c-primary: #6366f1;
    --c-primary-dark: #4f46e5;
    --c-accent: #8b5cf6;
    --c-surface: #ffffff;
    --c-border: #e2e8f0;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
    --shadow-xl: 0 24px 64px rgba(0,0,0,.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =============================================
   1. NAVIGATION
   ============================================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.nav--scrolled {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
    padding: 10px 0;
}

.nav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 36px; width: auto; }
.nav__logo-dark { display: flex; }
.nav__logo-light { display: none; }
.nav--scrolled .nav__logo-dark { display: none; }
.nav--scrolled .nav__logo-light { display: flex; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-muted);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all .2s;
}
.nav__links a:hover {
    color: var(--c-primary);
    background: rgba(99,102,241,.06);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background .2s;
}
.nav__burger:hover { background: rgba(0,0,0,.04); }
.nav__burger span {
    display: block;
    height: 2px;
    background: var(--c-dark);
    border-radius: 2px;
    transition: all .3s;
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   2. MOBILE MENU
   ============================================= */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mobile-menu__links a {
    font-size: 20px;
    font-weight: 600;
    color: var(--c-dark);
    padding: 12px 32px;
    border-radius: var(--radius);
    transition: all .2s;
}
.mobile-menu__links a:hover {
    color: var(--c-primary);
    background: rgba(99,102,241,.06);
}

.mobile-menu__divider {
    width: 48px;
    height: 2px;
    background: var(--c-border);
    margin: 12px 0;
    border-radius: 2px;
}


/* =============================================
   3. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    line-height: 1.4;
}

.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }

.btn--primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 2px 12px rgba(99,102,241,.3);
}
.btn--primary:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99,102,241,.4);
}

.btn--ghost {
    background: transparent;
    color: var(--c-muted);
    border-color: var(--c-border);
}
.btn--ghost:hover {
    color: var(--c-dark);
    border-color: var(--c-dark);
    transform: translateY(-2px);
}

.btn--glass {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
}
.btn--glass:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
    font-weight: 700;
}
.btn--white:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}


/* =============================================
   4. HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1147 40%, #24243e 100%);
}

/* Background effects */
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .5;
}
.hero__orb--1 {
    width: 600px; height: 600px;
    background: rgba(99,102,241,.4);
    top: -200px; right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--2 {
    width: 500px; height: 500px;
    background: rgba(139,92,246,.35);
    bottom: -150px; left: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero__orb--3 {
    width: 350px; height: 350px;
    background: rgba(236,72,153,.25);
    top: 40%; left: 30%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -20px) scale(1.05); }
    66%      { transform: translate(-20px, 15px) scale(.95); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* Hero layout */
.hero__container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero__content {
    flex: 1;
    min-width: 0;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}
.hero__badge-dot {
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.8); }
}

/* Title */
.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero__title-accent {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.hero__desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    max-width: 480px;
    margin-bottom: 32px;
}

/* Buttons */
.hero__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero__stat { text-align: center; }
.hero__stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.hero__stat-label {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    font-weight: 500;
}
.hero__stat-sep {
    width: 1px; height: 32px;
    background: rgba(255,255,255,.12);
}

/* Visual / right side */
.hero__visual {
    flex-shrink: 0;
    width: 380px;
    height: 420px;
    position: relative;
}

/* Floating feature cards */
.hero__card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    animation: cardFloat 6s ease-in-out infinite;
}
.hero__card-float--1 { top: 20px;  right: 0;     animation-delay: 0s; }
.hero__card-float--2 { top: 140px; left: -20px;   animation-delay: 1s; }
.hero__card-float--3 { bottom: 60px; right: 20px; animation-delay: 2s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hcf__icon {
    font-size: 28px;
    flex-shrink: 0;
}
.hcf__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.hcf__text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.55);
    margin-top: 2px;
}

/* Mascot */
.hero__mascot-wrap {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    pointer-events: none;
    z-index: 5;
}
.hero__mascot {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
    animation: mascotFloat 5s ease-in-out infinite;
}
@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}


/* =============================================
   5. SECTION HEADS
   ============================================= */
.section-head {
    text-align: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(24px);
    transition: all .6s cubic-bezier(.4,0,.2,1);
}
.section-head.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99,102,241,.08);
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: .02em;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--c-dark);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--c-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Light variants (for dark bg) */
.section-tag--light {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
}
.section-title--light { color: #fff; }
.section-desc--light { color: rgba(255,255,255,.5); }


/* =============================================
   6. FEATURES
   ============================================= */
.features {
    padding: 100px 0;
    background: var(--c-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(24px);
}
.feat-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feat-card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--c) 8%, transparent);
}

.feat-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 8px;
}

.feat-card__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-muted);
}


/* =============================================
   7. CLASSES (dark background)
   ============================================= */
.classes {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0c29, #1a1147, #24243e);
}

.classes__grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.class-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 140px;
    border-radius: var(--radius-lg);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(24px);
}
.class-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.class-card--active {
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    cursor: pointer;
    color: #fff;
}
.class-card--active:hover {
    background: rgba(99,102,241,.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(99,102,241,.25);
}

.class-card--soon {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    cursor: default;
    color: rgba(255,255,255,.3);
}

.class-card__num {
    font-size: 36px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.class-card__label {
    font-size: 13px;
    font-weight: 500;
    opacity: .6;
    margin-top: 4px;
}

.class-card__arrow {
    position: absolute;
    bottom: 12px;
    opacity: 0;
    transition: all .25s;
    color: rgba(255,255,255,.6);
}
.class-card--active:hover .class-card__arrow {
    opacity: 1;
    transform: translateY(0);
}

.class-card__badge {
    position: absolute;
    bottom: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .5;
}

.subjects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.subject-card {
    min-height: 150px;
    padding: 24px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
    text-decoration: none;
    transition: transform .25s, background .25s, border-color .25s;
}
.subject-card--active {
    color: #fff;
    background: rgba(99,102,241,.16);
    border: 1px solid rgba(129,140,248,.38);
}
.subject-card--active:hover {
    transform: translateY(-4px);
    background: rgba(99,102,241,.25);
    border-color: rgba(165,180,252,.7);
}
.subject-card--soon {
    color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
}
.subject-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 24px;
    background: rgba(255,255,255,.1);
}
.subject-card__body { display: flex; flex-direction: column; gap: 8px; }
.subject-card__body strong { font-size: 18px; }
.subject-card__body small { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.6); }
.subject-card__status {
    position: absolute;
    left: 88px;
    bottom: 22px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
}
.subject-card--active .subject-card__status { color: #A5B4FC; }
.library__actions { display:flex; justify-content:center; gap:12px; margin-top:28px; flex-wrap:wrap; }


/* =============================================
   8. CTA SECTION
   ============================================= */
.cta-section {
    padding: 80px 0;
    background: var(--c-bg);
}

.cta-card {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: all .6s cubic-bezier(.4,0,.2,1);
}
.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.15), transparent 60%);
    pointer-events: none;
}

.cta-card__content { position: relative; z-index: 2; }

.cta-card__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.cta-card__text {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.65;
}


/* =============================================
   9. APPS
   ============================================= */
.apps {
    padding: 100px 0 80px;
    background: var(--c-bg);
}

.apps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.app-card {
    display: flex;
    gap: 22px;
    padding: 28px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(24px);
}
.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.app-card__icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,.06);
    border-radius: 18px;
}

.app-card__body { flex: 1; min-width: 0; }

.app-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 8px;
}

.app-card__desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-muted);
    margin-bottom: 14px;
}

.app-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s;
}
.app-card:hover .app-card__link {
    gap: 8px;
    color: var(--c-primary-dark);
}


/* =============================================
   10. FOOTER
   ============================================= */
.footer {
    background: var(--c-dark);
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo { display: flex; align-items: center; }
.footer__logo img { height: 28px; width: auto; opacity: .8; }

.footer__links {
    display: flex;
    gap: 24px;
}
.footer__links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    transition: color .2s;
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,.25);
}


/* =============================================
   11. SCROLL ANIMATIONS
   ============================================= */
.feat-card,
.class-card,
.app-card,
.cta-card,
.section-head {
    transition-delay: calc(var(--i, 0) * 80ms);
}
.feat-card:nth-child(1) { --i: 0; }
.feat-card:nth-child(2) { --i: 1; }
.feat-card:nth-child(3) { --i: 2; }
.feat-card:nth-child(4) { --i: 3; }
.feat-card:nth-child(5) { --i: 4; }
.feat-card:nth-child(6) { --i: 5; }

.class-card:nth-child(1) { --i: 0; }
.class-card:nth-child(2) { --i: 1; }
.class-card:nth-child(3) { --i: 2; }
.class-card:nth-child(4) { --i: 3; }
.class-card:nth-child(5) { --i: 4; }
.class-card:nth-child(6) { --i: 5; }
.class-card:nth-child(7) { --i: 6; }


/* =============================================
   12. RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }
    .hero__content { display: flex; flex-direction: column; align-items: center; }
    .hero__desc { max-width: 100%; }
    .hero__buttons { justify-content: center; }
    .hero__stats { justify-content: center; }

    .hero__visual {
        width: 320px;
        height: 340px;
    }

    .features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__actions { display: none; }
    .nav__burger { display: flex; }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero__title { font-size: 32px; }

    .hero__visual {
        width: 280px;
        height: 300px;
    }
    .hero__card-float { padding: 10px 14px; }
    .hero__card-float--2 { left: 0; }
    .hcf__icon { font-size: 22px; }
    .hcf__text { font-size: 12px; }

    .hero__mascot-wrap { width: 200px; }

    .features { padding: 64px 0; }
    .features__grid { grid-template-columns: 1fr; }

    .classes { padding: 64px 0; }
    .classes__grid { gap: 10px; }
    .class-card { width: 100px; height: 110px; }
    .class-card__num { font-size: 28px; }
    .subjects__grid { grid-template-columns: 1fr; }

    .cta-section { padding: 48px 0; }
    .cta-card { padding: 40px 24px; }

    .apps { padding: 64px 0; }
    .apps__grid { grid-template-columns: 1fr; }
    .app-card { flex-direction: column; gap: 16px; }

    .footer__top { flex-direction: column; gap: 20px; text-align: center; }
    .footer__links { flex-wrap: wrap; justify-content: center; }
    .footer__bottom { text-align: center; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 28px; }
    .hero__desc { font-size: 15px; }
    .hero__stats { flex-wrap: wrap; gap: 16px; }
    .hero__stat-num { font-size: 20px; }

    .hero__visual { width: 240px; height: 260px; }
    .hero__mascot-wrap { width: 160px; }

    .class-card { width: 85px; height: 95px; }
    .class-card__num { font-size: 24px; }

    .section-title { font-size: 24px; }
}


/* =============================================
   ЦИФРОВОЙ СТАРТ В 5 КЛАСС
   ============================================= */

.dstart { padding: 80px 0 100px; }
.dstart__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #0ea5e9 100%);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.dstart__card::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.dstart__content { position: relative; z-index: 1; }
.dstart__tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.dstart__title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin: 14px 0 10px; }
.dstart__text { max-width: 620px; line-height: 1.6; opacity: .92; }
.dstart__facts { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 26px; }
.dstart__fact {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 10px 20px;
    min-width: 104px;
}
.dstart__fact b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.dstart__fact span { font-size: .8rem; opacity: .85; }
.dstart__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dstart__note { font-size: .88rem; opacity: .85; }
.dstart__play {
    background: linear-gradient(180deg, #c6ff4d, #8fd61a); color: #1b1f4b; font-weight: 900;
    box-shadow: 0 6px 0 #5f9a0c, 0 10px 30px rgba(182, 242, 58, .45);
    animation: dstartPulse 1.8s ease-in-out infinite;
}
.dstart__play:hover { transform: translateY(-2px); }
@keyframes dstartPulse { 50% { box-shadow: 0 6px 0 #5f9a0c, 0 10px 46px rgba(182, 242, 58, .8); } }
@media (prefers-reduced-motion: reduce) { .dstart__play { animation: none; } }
.dstart__art { position: relative; z-index: 1; opacity: .95; }

/* ── Программа по разделам ── */
.dstart__program { margin-top: 40px; }
.dstart__program-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-muted);
    text-align: center;
    margin-bottom: 20px;
}
.dstart__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 12px;
}
.dstart__block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: border-color .14s ease, transform .14s ease;
}
.dstart__block:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.dstart__block-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}
.dstart__block-body { flex: 1; min-width: 0; }
.dstart__block-body b { display: block; color: var(--c-dark); font-size: 1rem; margin-bottom: 3px; }
.dstart__block-body span { font-size: .86rem; line-height: 1.45; color: var(--c-muted); }
.dstart__block-hours {
    flex: none;
    font-size: .82rem;
    font-weight: 800;
    color: var(--c-primary);
    background: rgba(99, 102, 241, .1);
    border-radius: var(--radius-full);
    padding: 4px 11px;
}
.dstart__result {
    margin-top: 20px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px 22px;
    line-height: 1.6;
    font-size: .96rem;
}
.dstart__result b { color: var(--c-dark); }

@media (max-width: 900px) {
    .dstart { padding: 56px 0 72px; }
    .dstart__card { grid-template-columns: 1fr; padding: 32px 26px; }
    .dstart__art { display: none; }
    .dstart__grid { grid-template-columns: 1fr; }
}

/* Тренажёр «После точки» (01.11.2026): метка «Новинка» на карточке приложения */
.app-card--new { border-color: rgba(236,72,153,.35); }
.app-card__new {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}
