/* ============ UBER PARTNERS — redesign (dark, three.js hero) ============ */

:root {
    --bg: #0a0a0a;
    --bg-soft: #101012;
    --surface: rgba(255, 255, 255, 0.03);
    --hairline: rgba(255, 255, 255, 0.08);
    --text: #f4f4f4;
    --text-dim: #9a9a9e;
    --accent: #ebff01;
    --accent-dark: #d4e500;
    --radius: 12px;
    --section-gap: clamp(72px, 10vw, 140px);
    --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg, canvas {
    display: block;
    max-width: 100%;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============ Кнопки ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.btn--primary {
    background: var(--accent);
    color: #000;
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

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

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

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

/* ============ Навигация ============ */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.nav__logo {
    color: var(--text);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

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

.nav__links {
    display: none;
    gap: 28px;
}

.nav__link {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link--cta {
    color: var(--accent);
    font-weight: 700;
}

.nav__phone {
    display: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    cursor: pointer;
}

.nav__burger span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 20px 24px 28px;
    gap: 18px;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--hairline);
}

@media (min-width: 900px) {
    .nav__links {
        display: flex;
    }
    .nav__phone {
        display: block;
    }
    .nav__burger {
        display: none;
    }
}

/* ============ Hero ============ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: 48px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    will-change: transform;
}

.hero__bg-img {
    position: absolute;
    inset: -5%;
    background: url("../img/hero-bg.jpg") center 58% / cover no-repeat;
    filter: brightness(0.62) saturate(0.85) contrast(1.05);
    animation: hero-kb 22s ease-in-out infinite alternate;
}

@keyframes hero-kb {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(-1.5%, 1.2%, 0); }
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.28) 38%, rgba(10, 10, 10, 0.6) 78%, rgba(10, 10, 10, 0.94) 100%),
        radial-gradient(90% 70% at 50% 45%, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.45) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(34px, 6.4vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero__title br {
    display: none;
}

@media (min-width: 700px) {
    .hero__title br {
        display: block;
    }
}

.hero__lead {
    max-width: 560px;
    margin-inline: auto;
    color: #c2c2c8;
    font-size: clamp(15px, 1.6vw, 17px);
    margin-bottom: 28px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 720px;
    margin-inline: auto;
}

.hero__stat {
    background: var(--bg-soft);
    padding: 16px 12px;
}

.hero__stat dt {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero__stat dd {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

@media (min-width: 700px) {
    .hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hero__scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 8px 18px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hero__scroll-hint:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(235, 255, 1, 0.06);
}

/* ============ Общие заголовки секций ============ */

.benefits,
.programs,
.start,
.apply {
    padding-block: var(--section-gap);
}

.section__kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

/* ============ Преимущества ============ */

.benefits {
    background: var(--bg);
}

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

@media (min-width: 640px) {
    .benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.benefits__card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.benefits__card:hover {
    transform: translateY(-4px);
    border-color: rgba(235, 255, 1, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.benefits__num {
    display: block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.benefits__name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.benefits__text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

/* ============ Схемы работы (таблица) ============ */

.programs {
    background: var(--bg-soft);
}

.programs__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--bg);
}

.programs__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}

.programs__table th,
.programs__table td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hairline);
}

.programs__table thead th {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-soft);
}

.programs__table thead th:nth-child(3) {
    color: var(--accent);
}

.programs__table tbody th {
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
}

.programs__table td {
    color: var(--text);
}

.programs__table tbody tr {
    transition: background 0.2s;
}

.programs__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.programs__table tbody tr:last-child th,
.programs__table tbody tr:last-child td {
    border-bottom: none;
}

/* ============ Как начать ============ */

.start__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
}

@media (min-width: 640px) {
    .start__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .start__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.start__step {
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--surface);
}

.start__num {
    display: block;
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.start__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.start__text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

/* ============ Заявка ============ */

.apply {
    background: var(--bg-soft);
}

.apply__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .apply__inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 64px;
        align-items: start;
    }
}

.apply__text {
    color: var(--text-dim);
    font-size: 15px;
}

.apply__text a {
    color: var(--text);
    font-weight: 700;
}

.apply__form {
    display: grid;
    gap: 16px;
    padding: 28px 24px;
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
}

.field {
    display: grid;
    gap: 6px;
}

.field__label {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field__input {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg-soft);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.field__input::placeholder {
    color: #6b6b70;
}

.field__input:focus {
    outline: none;
    border-color: var(--accent);
}

select.field__input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
        linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.apply__status {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    min-height: 21px;
}

.apply__status--error {
    color: #ff6b6b;
}

.apply__note {
    color: #6b6b70;
    font-size: 12px;
    line-height: 1.4;
}

/* ============ Футер ============ */

.footer {
    border-top: 1px solid var(--hairline);
    padding-block: 36px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

@media (min-width: 900px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__logo {
    font-weight: 800;
    letter-spacing: 0.06em;
}

.footer__logo span {
    color: var(--accent);
    font-weight: 500;
}

.footer__phone {
    color: var(--text);
    font-weight: 600;
}

.footer__note {
    color: #6b6b70;
    font-size: 13px;
}

.footer__note a {
    color: var(--text-dim);
    text-decoration: underline;
}

/* ============ Reveal-анимации ============ */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero__bg-img {
        animation: none;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn:hover,
    .benefits__card:hover {
        transform: none;
    }
}
