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

:root {
    --black: #0a0a0a;
    --black-soft: #111111;
    --white: #f5f5f5;
    --grey: #8a8a8a;
    --grey-dark: #1c1c1c;
    --red: #e10600;
    --red-soft: #ff1a14;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loaded { overflow: hidden auto; }
body.no-scroll { overflow: hidden; }

::selection { background: var(--red); color: var(--white); }

.accent {
    color: var(--red);
    font-style: italic;
    font-weight: 500;
}

/* ======= ПРЕЛОАДЕР ======= */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.preloader.hide { opacity: 0; visibility: hidden; }

.preloader__inner { text-align: center; }

.preloader__logo {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}
.preloader__logo span { color: var(--red); }

.preloader__bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 0 auto;
}
.preloader__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--red);
    animation: load 1.6s var(--ease) forwards;
}

@keyframes load { to { width: 100%; } }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ======= КУРСОР (ПК) ======= */
.cursor,
.cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transition: transform 0.15s var(--ease), opacity 0.3s;
    mix-blend-mode: difference;
}
.cursor {
    width: 34px; height: 34px;
    border: 1px solid var(--red);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), transform 0.1s;
}
.cursor-dot {
    width: 5px; height: 5px;
    background: var(--white);
    transform: translate(-50%, -50%);
}
.cursor.hover { width: 60px; height: 60px; background: rgba(225,6,0,0.15); }
.cursor-dot.hover { opacity: 0; }

@media (hover: none) {
    .cursor, .cursor-dot { display: none; }
}

/* ======= ПРОГРЕСС СКРОЛЛА ======= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--red-soft));
    z-index: 1000;
    box-shadow: 0 0 12px rgba(225,6,0,0.6);
    transition: width 0.1s linear;
}

/* ======= ШАПКА ======= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 22px 60px 0;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: padding 0.4s var(--ease);
}

.header.shrink { padding-top: 12px; }

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    gap: 30px;
    transition: padding 0.4s var(--ease);
}
.header.shrink .header__inner { padding-bottom: 12px; }

.logo {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.4s var(--ease);
}
.logo span { color: var(--red); }
.logo:hover { transform: scale(1.05); }

.header__nav {
    display: flex;
    gap: 34px;
    margin-left: auto;
    margin-right: 40px;
}
.header__nav a {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    position: relative;
    transition: color 0.3s var(--ease);
    padding: 4px 0;
    font-weight: 500;
}
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--red);
    transition: width 0.4s var(--ease);
}
.header__nav a:hover { color: var(--white); }
.header__nav a:hover::after { width: 100%; }

.header__tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--grey);
    font-weight: 300;
}

.header__line {
    height: 1px;
    background: linear-gradient(90deg,
        var(--red) 0%, var(--red) 6%,
        rgba(255,255,255,0.08) 6%, rgba(255,255,255,0.08) 100%);
}

/* Бургер */
.burger {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--red); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--red); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    background: var(--black-soft);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 99;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
    transition: color 0.3s, padding-left 0.3s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a:active {
    color: var(--red);
    padding-left: 10px;
}

/* ======= HERO ======= */
.hero {
    position: relative;
    min-height: calc(100vh - 100px);
    min-height: calc(100svh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 25%, rgba(225,6,0,0.14) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(225,6,0,0.07) 0%, transparent 40%);
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

.hero__glow {
    position: absolute;
    top: 30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(225,6,0,0.18) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

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

.hero__label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--red);
    margin-bottom: 30px;
    font-weight: 500;
}
.hero__label-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--red);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8.5vw, 120px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 2px;
    margin-bottom: 36px;
    color: var(--white);
}
.hero__title .line {
    display: block;
    overflow: hidden;
}
.hero__title .line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: revealUp 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.15s; }

@keyframes revealUp {
    to { transform: translateY(0); }
}

.hero__title .accent {
    position: relative;
}
.hero__title .accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--red);
    opacity: 0.7;
    animation: lineGrow 1s var(--ease-out) 0.9s forwards;
}
@keyframes lineGrow {
    to { width: 100%; }
}

.hero__text {
    font-size: 16px;
    line-height: 1.9;
    color: #cfcfcf;
    max-width: 640px;
    font-weight: 300;
    margin-bottom: 44px;
    border-left: 2px solid var(--red);
    padding-left: 24px;
}

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

/* Статистика */
.hero__stats {
    position: relative;
    display: flex;
    gap: 60px;
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 700px;
    z-index: 2;
}
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat__label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--grey);
    font-weight: 500;
}

/* ======= КНОПКИ ======= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 38px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    background: none;
    color: inherit;
}

.btn span, .btn svg { position: relative; z-index: 2; }

.btn svg { transition: transform 0.4s var(--ease); }

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
    z-index: 1;
}
.btn--primary:hover {
    color: var(--black);
    box-shadow: 0 15px 40px rgba(225,6,0,0.35);
}
.btn--primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--primary:hover svg { transform: translateX(6px); }

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
}
.btn--ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
    z-index: 1;
}
.btn--ghost:hover {
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}
.btn--ghost:hover::before { transform: scaleX(1); transform-origin: left; }

.btn--lg {
    padding: 22px 60px;
    font-size: 13px;
    letter-spacing: 5px;
}
.btn--lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(225,6,0,0.4);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--grey);
    z-index: 2;
}
.scroll-hint__line {
    width: 70px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    overflow: hidden;
    position: relative;
}
.scroll-hint__line span {
    position: absolute;
    top: 0; left: -30%;
    width: 30%; height: 100%;
    background: var(--red);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* ======= БЕГУЩАЯ СТРОКА ======= */
.marquee {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 26px 0;
    overflow: hidden;
    background: var(--black-soft);
    position: relative;
}
.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--black-soft), transparent); }

.marquee__track {
    display: flex;
    gap: 40px;
    align-items: center;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--white);
}
.marquee__track .dot {
    color: var(--red);
    font-size: 22px;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ======= СЕКЦИИ ======= */
.section {
    padding: 130px 60px;
    position: relative;
    overflow: hidden;
}

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

.section__label {
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--red);
    margin-bottom: 26px;
    font-weight: 500;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--white);
}

.section__subtitle {
    color: var(--grey);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 46px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======= TELEGRAM ======= */
.telegram {
    background: var(--black-soft);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section__glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(225,6,0,0.15) 0%, transparent 65%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

/* ======= ТЕРМИНЫ ======= */
.terms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    margin-top: 60px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.term {
    background: var(--black);
    padding: 50px 40px;
    text-align: left;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.term::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225,6,0,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.term:hover { transform: translateY(-6px); background: var(--black-soft); }
.term:hover::before { opacity: 1; }

.term__num {
    font-family: var(--font-display);
    font-size: 46px;
    color: var(--red);
    opacity: 0.55;
    margin-bottom: 18px;
    font-weight: 700;
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.term:hover .term__num { opacity: 1; transform: translateX(6px); }

.term h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 1px;
    color: var(--white);
}
.term p {
    color: #b5b5b5;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
}

.term__line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.6s var(--ease);
}
.term:hover .term__line { width: 100%; }

/* ======= ФУТЕР ======= */
.footer {
    padding: 90px 60px 46px;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer__inner { max-width: 800px; margin: 0 auto; }

.footer__label {
    font-size: 14px;
    letter-spacing: 10px;
    color: var(--red);
    margin-bottom: 32px;
    font-weight: 600;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    padding: 14px 36px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.45s var(--ease);
    position: relative;
    overflow: hidden;
}
.footer__link svg { transition: transform 0.45s var(--ease); }
.footer__link span, .footer__link svg { position: relative; z-index: 2; }
.footer__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
    z-index: 1;
}
.footer__link:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(225,6,0,0.35);
}
.footer__link:hover::before { transform: scaleX(1); }
.footer__link:hover svg { transform: rotate(-14deg) scale(1.15); }

.footer__copy {
    margin-top: 50px;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--grey);
    font-weight: 300;
}

/* ======= REVEAL ======= */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ======= ПЛАНШЕТ ======= */
@media (max-width: 1024px) {
    .header { padding: 20px 34px 0; }
    .header__nav { gap: 24px; margin-right: 24px; }
    .hero { padding: 60px 34px 50px; }
    .section { padding: 100px 34px; }
    .footer { padding: 70px 34px 40px; }
    .scroll-hint { left: 34px; }
    .hero__stats { gap: 40px; }
}

/* ======= ТЕЛЕФОН ======= */
@media (max-width: 768px) {
    .header { padding: 16px 20px 0; }
    .header__nav,
    .header__tag { display: none; }
    .burger { display: flex; }

    .hero {
        padding: 50px 20px 40px;
        min-height: auto;
    }
    .hero__title { letter-spacing: 1px; }
    .hero__text {
        font-size: 14.5px;
        padding-left: 16px;
        border-left-width: 1px;
        margin-bottom: 32px;
    }
    .hero__label {
        font-size: 10px;
        letter-spacing: 4px;
        margin-bottom: 22px;
    }
    .hero__buttons { width: 100%; gap: 12px; }
    .hero__buttons .btn { flex: 1; padding: 15px 18px; font-size: 11px; letter-spacing: 2px; }

    .hero__stats {
        gap: 0;
        justify-content: space-between;
        margin-top: 50px;
        padding-top: 30px;
    }
    .stat__label { font-size: 9px; letter-spacing: 2px; }

    .scroll-hint { display: none; }

    .hero__glow { width: 320px; height: 320px; }
    .hero__grid { background-size: 40px 40px; }

    .marquee__track { font-size: 22px; letter-spacing: 3px; gap: 26px; }
    .marquee { padding: 18px 0; }

    .section { padding: 80px 20px; }
    .section__title { margin-bottom: 18px; }
    .section__subtitle { font-size: 14px; margin-bottom: 34px; }

    .btn--lg { padding: 18px 34px; font-size: 12px; letter-spacing: 3px; width: 100%; }

    .terms__grid { margin-top: 40px; }
    .term { padding: 36px 24px; }
    .term h3 { font-size: 26px; }
    .term p { font-size: 14px; }
    .term__num { font-size: 38px; }

    .footer { padding: 60px 20px 36px; }
    .footer__link { padding: 12px 24px; gap: 12px; }
    .footer__label { margin-bottom: 24px; letter-spacing: 2px; margin-top: 36px; }

    .mobile-menu { padding: 90px 30px; }
    .mobile-menu a { font-size: 26px; }
}

/* Маленькие телефоны */
@media (max-width: 380px) {
    .hero__title { font-size: 42px; }
    .hero__buttons { flex-direction: column; }
    .hero__buttons .btn { width: 100%; }
    .stat__num { font-size: 32px; }
    .marquee__track { font-size: 18px; }
}

/* ======= REDUCED MOTION ======= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}