/* ═══════════════════════════════════════════════════════
   ТВОЙ СТАРТ — Landing Page Styles
   Color Palette from Цвета.jpg
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    /* Brand Colors */
    --pink: #F8D5D3;
    --red: #ED6328;
    --blue-gray: #E0E5E9;
    --beige: #FCE2C3;
    --olive: #BFA732;
    --dark-olive: #5B5121;
    --amber: #FAAE41;
    --mint: #9AC3BB;

    /* Semantic */
    --primary: #ED6328;
    --primary-hover: #d8561f;
    --primary-light: rgba(237, 99, 40, 0.1);
    --secondary: #FAAE41;
    --accent: #9AC3BB;
    --surface: #FFFAF6;
    --surface-2: #FFF5ED;
    --surface-card: #FFFFFF;
    --text: #3D3520;
    --text-secondary: #7A7060;
    --text-muted: #A8A090;
    --border: rgba(91, 81, 33, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ED6328 0%, #FAAE41 100%);
    --gradient-hero: linear-gradient(135deg, #FFFAF6 0%, #FCE2C3 50%, #F8D5D3 100%);
    --gradient-dark: linear-gradient(135deg, #3D3520 0%, #5B5121 100%);

    /* Typography */
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-py: clamp(80px, 10vw, 140px);
    --container-px: clamp(24px, 6vw, 80px);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 53, 32, 0.06);
    --shadow-md: 0 4px 24px rgba(61, 53, 32, 0.08);
    --shadow-lg: 0 8px 48px rgba(61, 53, 32, 0.1);
    --shadow-xl: 0 16px 64px rgba(61, 53, 32, 0.12);
    --shadow-glow: 0 0 40px rgba(237, 99, 40, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ─── Container ─── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    width: 100%;
}

/* ─── Gradient Text ─── */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Section Header ─── */
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(237, 99, 40, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(237, 99, 40, 0.4);
}

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

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    pointer-events: none;
    box-shadow: none !important;
}

.btn--outline {
    border: 2px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn--ghost {
    color: var(--text);
    border: 2px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 10;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--primary);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.navbar__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.navbar__link:hover {
    color: var(--primary);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    gap: 8px;
}

/* Mobile User Icon */
.navbar__mobile-user {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    margin-right: -8px;
}

.navbar__mobile-user:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
}

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

.navbar__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__burger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    overflow-x: clip;
    padding-top: 80px;
    padding-bottom: 160px;
}

.hero__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape--circle {
    border-radius: 50%;
}

.shape--square {
    border-radius: var(--radius-lg);
}

.shape--ring {
    background: transparent !important;
    border: 3px solid;
}

.shape--1 {
    width: 300px;
    height: 300px;
    background: rgba(237, 99, 40, 0.06);
    top: 10%;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape--2 {
    width: 80px;
    height: 80px;
    background: rgba(250, 174, 65, 0.1);
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape--3 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(154, 195, 187, 0.1);
    border-radius: 0;
    top: 60%;
    left: 5%;
    animation: float 7s ease-in-out infinite;
}

.shape--4 {
    width: 16px;
    height: 16px;
    background: var(--amber);
    opacity: 0.3;
    bottom: 30%;
    right: 30%;
    animation: float 5s ease-in-out infinite reverse;
}

.shape--5 {
    width: 120px;
    height: 120px;
    border-color: rgba(191, 167, 50, 0.12);
    bottom: 15%;
    left: 15%;
    animation: float 9s ease-in-out infinite;
}

.shape--6 {
    width: 50px;
    height: 50px;
    background: rgba(248, 213, 211, 0.4);
    top: 40%;
    right: 15%;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(-5px, -10px) rotate(-3deg);
    }

    75% {
        transform: translate(15px, 5px) rotate(3deg);
    }
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-left: clamp(8px, 3vw, 40px);
    margin-bottom: 80px;
    /* Visually lift the content */
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero__subtitle em {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

.hero__cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero__trust {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 992px) {
    .hero__trust {
        position: relative;
        justify-content: flex-start;
        margin-bottom: 24px;
    }
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: -8px;
    border: 2px solid var(--surface);
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Hero Visual / Illustration */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    width: 100%;
    margin-top: -140px;
    /* Lift the illustration even higher */
}

.hero__illustration {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__illustration img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* Floating mini cards */
.hero__card {
    position: absolute;
    z-index: 5;
}

.hero__card--float {
    top: 8%;
    right: 0%;
    animation: float-card 4s ease-in-out infinite;
}

.hero__card--float-2 {
    bottom: 15%;
    left: 0%;
    animation: float-card 5s ease-in-out infinite reverse;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
}

.mini-icon {
    font-size: 1.5rem;
}

.mini-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.mini-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.hero-mini-card--xp .mini-value {
    color: var(--primary);
}

.hero-mini-card--badge .mini-value {
    color: var(--olive);
}

/* ═══════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════ */
.stats {
    position: relative;
    z-index: 2;
    margin-top: -200px;
    padding: 0 var(--container-px);
}

.stats__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    padding: 30px 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

/* ═══════════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════════ */
.courses {
    padding: var(--section-py) 0 24px;
    scroll-margin-top: -60px;
}

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

.course-card {
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: inherit;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 0.4s var(--ease-out);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.course-card:hover::before {
    height: 6px;
}

/* Card color variants */
.course-card--red::before {
    background: var(--gradient-primary);
}

.course-card--red .course-card__icon {
    background: rgba(237, 99, 40, 0.1);
    color: var(--red);
}

.course-card--red .course-card__number {
    color: rgba(237, 99, 40, 0.15);
}

.course-card--red .course-card__xp {
    color: var(--red);
}

.course-card--amber::before {
    background: linear-gradient(135deg, #FAAE41, #ED6328);
}

.course-card--amber .course-card__icon {
    background: rgba(250, 174, 65, 0.12);
    color: var(--amber);
}

.course-card--amber .course-card__number {
    color: rgba(250, 174, 65, 0.15);
}

.course-card--amber .course-card__xp {
    color: #E09920;
}

.course-card--mint::before {
    background: linear-gradient(135deg, #9AC3BB, #5B9A8E);
}

.course-card--mint .course-card__icon {
    background: rgba(154, 195, 187, 0.15);
    color: #5B9A8E;
}

.course-card--mint .course-card__number {
    color: rgba(154, 195, 187, 0.2);
}

.course-card--mint .course-card__xp {
    color: #5B9A8E;
}

.course-card--olive::before {
    background: linear-gradient(135deg, #BFA732, #8A7A20);
}

.course-card--olive .course-card__icon {
    background: rgba(191, 167, 50, 0.1);
    color: var(--olive);
}

.course-card--olive .course-card__number {
    color: rgba(191, 167, 50, 0.15);
}

.course-card--olive .course-card__xp {
    color: var(--olive);
}

.course-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.course-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.course-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-card__topics {
    margin-bottom: 24px;
    margin-top: auto;
}

.course-card__topics li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card__topics li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.course-card--red .course-card__topics li::before {
    background: rgba(237, 99, 40, 0.3);
}

.course-card--amber .course-card__topics li::before {
    background: rgba(250, 174, 65, 0.4);
}

.course-card--mint .course-card__topics li::before {
    background: rgba(154, 195, 187, 0.5);
}

.course-card--olive .course-card__topics li::before {
    background: rgba(191, 167, 50, 0.3);
}

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-card__lessons {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.course-card__xp {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.how-it-works {
    padding: 50px 0 24px;
    background: var(--surface-2);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
}

.step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(237, 99, 40, 0.3);
}

.step__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.step__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.step__connector {
    display: flex;
    align-items: center;
    padding-top: 24px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   GAMIFICATION
   ═══════════════════════════════════════════════════════ */
.gamification {
    padding: 50px 0 24px;
}

.gamification__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.game-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease-out);
}

.game-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.game-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.game-card__header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Level Card */
.level-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
}

.level-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.level-info {
    flex: 1;
    min-width: 0;
}

.level-name {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.xp-bar {
    height: 20px;
    background: var(--blue-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.xp-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.xp-bar__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.xp-bar__text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.level-ladder {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.level-step {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    background: var(--blue-gray);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s;
}

.level-step--done {
    background: rgba(237, 99, 40, 0.08);
    color: var(--primary);
}

.level-step--active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(237, 99, 40, 0.3);
}

/* Badges Card */
.badge-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    background: var(--blue-gray);
    opacity: 0.4;
    transition: all 0.3s;
}

.badge-item--earned {
    opacity: 1;
    background: var(--surface-2);
}

.badge-item--earned:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Streak Card */
.streak-fire {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.streak-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--blue-gray);
    transition: all 0.3s;
}

.streak-day--done {
    background: var(--gradient-primary);
    color: #fff;
}

.streak-day--active {
    background: var(--amber);
    color: #fff;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(250, 174, 65, 0.4);
}

.streak-bonus {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

/* Leaderboard Card */
.lb-tab {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    transition: all 0.3s;
}

.lb-row:hover {
    background: var(--blue-gray);
}

.lb-rank {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    font-weight: 700;
}

.lb-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.lb-xp {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.lb-row--you {
    background: var(--primary-light);
    border: 1px solid rgba(237, 99, 40, 0.2);
}

.lb-row--you .lb-name {
    color: var(--primary);
    font-weight: 700;
}

/* Tooltip System */
[data-hint] {
    position: relative;
    cursor: help;
}

[data-hint]::after {
    content: attr(data-hint);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    width: max-content;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

[data-hint]::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

[data-hint]:hover::after,
[data-hint]:hover::before {
    opacity: 0.95;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════
   CHATBOT SECTION
   ═══════════════════════════════════════════════════════ */
.chatbot-section {
    padding: 50px 0 24px;
    background: var(--surface-2);
}

.chatbot-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chatbot-info .section-title {
    text-align: left;
}

.chatbot-info .section-subtitle {
    text-align: left;
    margin-bottom: 32px;
}

.chatbot-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cf-icon {
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Chat Window */
.chat-window {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-width: 420px;
    margin-left: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: #fff;
}

.chat-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-header__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-header__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    opacity: 0.8;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-dot 2s ease-in-out infinite;
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 360px;
    overflow-y: auto;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-msg--user {
    flex-direction: row-reverse;
}

.chat-msg__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-msg__bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 85%;
}

.chat-msg--bot .chat-msg__bubble {
    background: var(--surface-2);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-msg--user .chat-msg__bubble {
    background: var(--gradient-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
    padding: 50px 0 24px;
    position: relative;
    overflow: hidden;
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape--cta-1 {
    width: 200px;
    height: 200px;
    background: rgba(237, 99, 40, 0.05);
    top: -50px;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

.shape--cta-2 {
    width: 100px;
    height: 100px;
    background: rgba(250, 174, 65, 0.06);
    bottom: -30px;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape--cta-3 {
    width: 150px;
    height: 150px;
    border-color: rgba(154, 195, 187, 0.1);
    top: 20%;
    left: -30px;
    animation: float 9s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    background: var(--surface-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s;
}

.cta-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

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

.cta-alt span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cta-socials {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn--vk {
    background: #4C75A3;
}

.social-btn--tg {
    background: #2AABEE;
}

.social-btn--ya {
    background: #FC3F1D;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--surface-2);
    color: var(--text);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer__brand {
    max-width: 300px;
}

.footer__brand .navbar__logo {
    margin-bottom: 16px;
    color: var(--text);
}

.footer__brand .logo-accent {
    color: var(--primary);
}

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

.footer__links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer__col a {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer__col a:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__socials {
    display: flex;
    gap: 16px;
}

.footer__socials a {
    color: var(--text-secondary);
    transition: color 0.3s;
    font-weight: 600;
}

.footer__socials a:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   FLOATING CHATBOT FAB
   ═══════════════════════════════════════════════════════ */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(237, 99, 40, 0.4);
    transition: all 0.3s var(--ease-spring);
    border: none;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(237, 99, 40, 0.5);
}

.chat-fab__icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.chat-fab__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(237, 99, 40, 0.4);
    animation: fab-pulse 2s ease-in-out infinite;
}

@keyframes fab-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal--delay-1 {
    transition-delay: 0.15s;
}

.reveal--delay-2 {
    transition-delay: 0.3s;
}

.reveal--delay-3 {
    transition-delay: 0.45s;
}

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.faq {
    padding: var(--section-py) 0;
    position: relative;
    z-index: 1;
}

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

.faq-item {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .hero__visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__card--float {
        right: -5%;
    }

    .hero__card--float-2 {
        left: -5%;
    }

    .courses__grid {
        grid-template-columns: 1fr 1fr;
    }

    .chatbot-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chatbot-info .section-title,
    .chatbot-info .section-subtitle {
        text-align: center;
    }

    .chatbot-features {
        align-items: flex-start;
    }

    .chat-window {
        margin: 0 auto;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Mobile viewport fix */
        background: rgba(255, 250, 246, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        z-index: 5;
        padding-top: 80px;
        /* Avoid overlap with top bar */
    }

    .navbar__menu.active {
        transform: translateX(0);
    }

    .navbar__menu .navbar__link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .navbar__actions {
        display: none;
    }

    .navbar__burger {
        display: flex;
    }

    .navbar__mobile-user {
        display: flex;
        margin-left: auto;
        /* Push to right */
        margin-right: -16px;
        /* Adjust gap to look closer to burger */
    }

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

    .hero__content {
        margin-bottom: 0;
        padding-left: 0;
    }

    .hero__cta {
        margin-bottom: 16px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero__card--float,
    .hero__card--float-2 {
        display: none;
    }

    .stats__inner {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .courses__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .step__connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .gamification__grid {
        grid-template-columns: 1fr;
    }

    .cta-form__row {
        flex-direction: column;
    }

    .cta-input {
        min-width: 100%;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════════════════ */
::selection {
    background: rgba(237, 99, 40, 0.15);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   AUTH STYLES
   ═══════════════════════════════════════════════════════ */
.navbar__user {
    font-weight: 600;
    color: var(--text);
    margin-right: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .navbar__user {
        display: none;
        /* Hide name on mobile to save space */
    }
}

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 16px 12px 24px;
    border-radius: 99px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 520px;
    pointer-events: none;
    border: 1px solid rgba(237, 99, 40, 0.15);
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    gap: 16px;
}

.cookie-content p {
    margin: 0;
    line-height: 1.4;
}

.cookie-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(237, 99, 40, 0.4);
    transition: border-color 0.2s;
}

.cookie-content a:hover {
    border-color: var(--primary);
}

.cookie-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(237, 99, 40, 0.3);
    flex-shrink: 0;
}

.cookie-btn:hover {
    box-shadow: 0 6px 16px rgba(237, 99, 40, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .cookie-banner {
        border-radius: 20px;
        flex-direction: column;
        bottom: 20px;
        padding: 20px;
        align-items: stretch;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM MODALS
   ═══════════════════════════════════════════════════════ */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 53, 32, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: var(--surface-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-spring);
    position: relative;
    border: 1px solid var(--border);
}

.custom-modal-overlay.active .custom-modal {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.custom-modal h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.3;
}

.custom-modal p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.custom-modal-actions .btn {
    min-width: 100px;
}

/* ═══════════════════════════════════════════════════════
/* Modal button styles moved to modal.css */