:root {
    --bg: #07070a;
    --accent: #e8ff3a;
    --accent2: #6a5cff;
    --text: #f4f4f5;
    --muted: #9a9aa3;
    --radius: 18px;
    --glass-bg: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .12);

    --site-width: 1440px;
    --site-pad: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Shared layout container ── */
.container {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 var(--site-pad);
}

h1,
h2,
h3 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    line-height: 1.05;
}

/* 3D canvas + ambient glow + grain */
#bg3d {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40vw 40vw at 80% 10%, rgba(106, 92, 255, .18), transparent 70%),
        radial-gradient(35vw 35vw at 10% 80%, rgba(232, 255, 58, .12), transparent 70%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #111;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 255, 58, .3);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
}

.btn--ghost:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, .08);
}

.btn--sm {
    padding: 9px 18px;
    font-size: .85rem;
}

/* NAV */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - var(--site-pad) * 2), var(--site-width));
    z-index: 100;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--site-pad);
    transition: padding .3s ease, top .3s ease;
}

.nav.scrolled {
    top: 8px;
    padding: 8px var(--site-pad);
}

.nav__logo {
    font-family: 'Anton';
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
}

.nav__logo span {
    color: var(--accent);
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.nav__links a:hover {
    color: var(--accent);
}

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

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

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

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

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

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    background: rgba(10, 10, 14, .97);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-left: 1px solid var(--glass-border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.sidebar__close {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.sidebar__close:hover {
    background: rgba(255, 255, 255, .12);
}

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

.sidebar__links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background .2s, color .2s;
}

.sidebar__links a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.sidebar__links a:active {
    color: var(--accent);
}

.sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.sidebar__footer .lang-switch {
    justify-content: center;
}

/* BACKDROP */
.sidebar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.sidebar__backdrop.open {
    opacity: 1;
    pointer-events: all;
}

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

.hero .container {
    width: 100%;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero__kicker {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: .85rem;
}

.hero__title {
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    margin: 14px 0 18px;
    text-shadow: 0 0 40px rgba(0, 0, 0, .5);
}

.hero__sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 460px;
    margin-bottom: 32px;
}

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

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: max(var(--site-pad), calc((100% - var(--site-width)) / 2 + var(--site-pad)));
    color: var(--muted);
    font-size: .85rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(8px)
    }
}

/* STATS */
.stats-section {
    padding: 70px 0;
}

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

.stat {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius);
}

.stat__num {
    font-family: 'Anton';
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--accent);
    display: block;
}

.stat__label {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 1px;
}

/* SECTION SHARED */
.section__head {
    text-align: center;
    margin-bottom: 50px;
}

.section__kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .8rem;
    font-weight: 700;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-top: 8px;
}

/* ABOUT */
.about-section {
    padding: 100px 0;
}

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

.about__img {
    height: 420px;
    border-radius: var(--radius);
    background: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1000&q=80') center/cover;
}

.about__text p {
    color: var(--muted);
    margin: 18px 0;
}

.about__list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.about__list li {
    padding-left: 26px;
    position: relative;
}

.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* CLASSES */
.classes-section {
    padding: 100px 0;
}

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

.card {
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
}

.card__img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    transition: transform .4s ease;
}

.card:hover .card__img {
    transform: scale(1.05);
}

.card__body {
    padding: 28px 24px;
    flex: 1;
}

.card__icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: .95rem;
}

/* PRICING */
.pricing-section {
    padding: 100px 0;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan {
    position: relative;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: transform .3s ease;
}

.plan:hover {
    transform: translateY(-6px);
}

.plan--featured {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(232, 255, 58, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #111;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
}

.plan h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.plan__price {
    font-family: 'Anton';
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.plan__price span {
    font-size: 1rem;
    color: var(--muted);
    font-family: 'Inter';
}

.plan ul {
    list-style: none;
    margin-bottom: 26px;
    display: grid;
    gap: 10px;
}

.plan ul li {
    color: var(--muted);
}

/* CONTACT */
.contact-section {
    padding: 100px 0;
}

.contact__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.contact__inner,
.map {
    border-radius: var(--radius);
    min-height: 540px;
}

.contact__inner {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__lead {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__group label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: border-color .2s, background .2s;
    appearance: none;
    -webkit-appearance: none;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(232, 255, 58, .04);
}

.form__group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form__select-wrap {
    position: relative;
}

.form__select-wrap select {
    padding-right: 36px;
    cursor: pointer;
}

.form__select-wrap select option {
    background: #141418;
    color: var(--text);
}

.form__select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .8rem;
    pointer-events: none;
}

.btn--full {
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

.contact__links {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: .85rem;
    flex-wrap: wrap;
    align-items: center;
}

.contact__links a {
    color: var(--accent);
    text-decoration: none;
}

.contact__links a:hover {
    text-decoration: underline;
}

.map {
    overflow: hidden;
    min-height: 540px;
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--muted);
    border-top: 1px solid var(--glass-border);
    font-size: .9rem;
}

/* SCROLL ANIMATIONS */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    filter: blur(8px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease;
}

.reveal {
    transform: translateY(50px) scale(.96);
}

.reveal-left {
    transform: translateX(-70px);
}

.reveal-right {
    transform: translateX(70px);
}

.reveal.in,
.reveal-left.in,
.reveal-right.in {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.cards .reveal.in {
    transition-delay: var(--d, 0s);
}

.plans .reveal.in {
    transition-delay: var(--d, 0s);
}

/* LANG SWITCH */
.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

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

.lang-btn:hover:not(.active) {
    color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .plans .plan:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 820px) {
    .nav__links {
        display: none;
    }

    .nav .btn--sm {
        display: none;
    }

    .nav .lang-switch {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .about__img {
        height: 300px;
    }

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

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

    .plans .plan:last-child {
        grid-column: auto;
        max-width: unset;
    }

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

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

    .contact__inner,
    .map {
        min-height: unset;
    }

    .map {
        height: 320px;
    }

    .container {
        padding: 0 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right {
        transition: none;
        opacity: 1;
        filter: none;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}