/* ============================================================
   ПАРТНЕРЫ — Hero Banner "Скоро запуск"
   Премиальный corporate / cinematic стиль
   Палитра: олива, темно-коричневый, персиковый + серебро/мягкий зелёный
   ============================================================ */

:root {
    /* Базовые тёмные тона (organic dark) */
    --c-bg-deep:      #1a1712;   /* глубокий тёмно-коричневый */
    --c-bg-olive:     #2a2a1c;   /* тёмная олива */
    --c-bg-brown:     #221c14;   /* тёмно-коричневый */

    /* Акценты */
    --c-peach:        #e8c4a0;   /* мягкий персиковый */
    --c-peach-soft:   #d9b896;
    --c-green:        #7e9b6e;   /* мягкий тёмно-зелёный */
    --c-green-light:  #a7c194;
    --c-silver:       #d6d2c8;   /* серебристый */
    --c-white:        #f6f3ec;   /* тёплый белый */

    /* Текст */
    --c-text:         #f1ede4;
    --c-text-dim:     rgba(241, 237, 228, 0.62);

    /* Шрифты */
    --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg-deep);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ============================================================
   HERO CONTAINER
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    overflow: hidden;
    isolation: isolate;
}

/* ---------- Media (видео + резервный фон + overlay) ---------- */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Лёгкая коррекция под палитру: чуть теплее, мягче */
    filter: saturate(0.85) brightness(0.82) contrast(1.02) sepia(0.12);
}

/* Резервный анимированный фон — премиальные плавные градиентные пятна */
.hero__fallback {
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(40% 50% at 20% 25%, rgba(126,155,110,0.42), transparent 60%),
        radial-gradient(45% 55% at 82% 30%, rgba(232,196,160,0.30), transparent 62%),
        radial-gradient(55% 60% at 60% 88%, rgba(167,193,148,0.25), transparent 65%),
        linear-gradient(135deg, var(--c-bg-brown), var(--c-bg-olive) 55%, var(--c-bg-deep));
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: floatGradient 24s ease-in-out infinite alternate;
    opacity: 0;                 /* по умолчанию скрыт; JS показывает при сбое видео */
    transition: opacity 1.2s ease;
}
.hero__fallback.is-active { opacity: 1; }

@keyframes floatGradient {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    50%  { background-position: 50% 60%, 50% 40%, 30% 50%, 0 0; }
    100% { background-position: 100% 100%, 0% 100%, 80% 0%, 0 0; }
}

/* Декоративные движущиеся световые линии поверх резервного фона */
.hero__fallback::before,
.hero__fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0%, rgba(214,210,200,0.06) 48%, rgba(214,210,200,0.12) 50%, transparent 53%),
        linear-gradient(60deg, transparent 0%, rgba(167,193,148,0.05) 49%, transparent 52%);
    background-size: 300% 300%;
    animation: sweep 18s linear infinite;
    mix-blend-mode: screen;
}
.hero__fallback::after { animation-duration: 26s; animation-direction: reverse; opacity: .7; }

@keyframes sweep {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Затемняющий overlay — обеспечивает читаемость текста */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 100% at 50% 40%, rgba(26,23,18,0.30) 0%, rgba(26,23,18,0.72) 70%, rgba(20,17,12,0.92) 100%),
        linear-gradient(180deg, rgba(20,17,12,0.55) 0%, rgba(20,17,12,0.20) 35%, rgba(20,17,12,0.78) 100%);
}

/* Тонкий grain для премиального cinematic ощущения */
.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

/* ============================================================
   ТОП-БАР: логотип + бейдж
   ============================================================ */
.hero__topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(232,196,160,0.18), rgba(126,155,110,0.12));
    border: 1px solid rgba(232,196,160,0.30);
    color: var(--c-peach);
    font-size: 1.05rem;
    backdrop-filter: blur(6px);
}
.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.28em;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--c-white);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-silver);
    background: rgba(246,243,236,0.05);
    border: 1px solid rgba(246,243,236,0.16);
    backdrop-filter: blur(8px);
}
.hero__badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-green-light);
    box-shadow: 0 0 0 0 rgba(167,193,148,0.6);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(167,193,148,0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(167,193,148,0); }
    100% { box-shadow: 0 0 0 0 rgba(167,193,148,0); }
}

/* ============================================================
   ЦЕНТРАЛЬНЫЙ КОНТЕНТ
   ============================================================ */
.hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__eyebrow {
    font-size: clamp(0.72rem, 1.4vw, 0.85rem);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--c-peach);
    margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 500;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(3.2rem, 12vw, 9.5rem);
    display: flex;
    flex-direction: column;
    text-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.hero__title span { display: block; }
.hero__title-accent {
    background: linear-gradient(100deg, var(--c-peach) 0%, var(--c-silver) 45%, var(--c-green-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero__subtitle {
    margin-top: clamp(1.4rem, 3vw, 2.2rem);
    font-size: clamp(1.05rem, 2.4vw, 1.5rem);
    font-weight: 300;
    color: var(--c-text);
    line-height: 1.5;
    max-width: 640px;
}
.hero__subtitle strong {
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--c-white);
}

/* Две строки подзаголовка как единый смысловой блок */
.hero__subtitle--lead { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.hero__subtitle--tail { margin-top: 0.25rem; }

.hero__hint {
    margin-top: 1.1rem;
    font-size: clamp(0.85rem, 1.6vw, 0.98rem);
    color: var(--c-text-dim);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero__hint i { color: var(--c-green-light); }

.hero__divider {
    width: 90px;
    height: 1px;
    margin: clamp(1.8rem, 4vw, 2.6rem) 0 clamp(1.6rem, 3vw, 2rem);
    background: linear-gradient(90deg, transparent, rgba(232,196,160,0.7), transparent);
}

/* ---------- Форма подписки ---------- */
.hero__subscribe {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 520px;
    background: rgba(246,243,236,0.04);
    border: 1px solid rgba(246,243,236,0.14);
    border-radius: 999px;
    padding: 0.45rem 0.45rem 0.45rem 1.4rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero__subscribe:focus-within {
    border-color: rgba(232,196,160,0.5);
    box-shadow: 0 0 0 4px rgba(232,196,160,0.08);
}

.hero__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-width: 0;
}
.hero__input::placeholder { color: rgba(241,237,228,0.42); }

.hero__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    cursor: pointer;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--c-bg-deep);
    background: linear-gradient(120deg, var(--c-peach), var(--c-peach-soft) 60%, var(--c-green-light));
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
    box-shadow: 0 6px 24px rgba(232,196,160,0.18);
}
.hero__btn i { transition: transform 0.35s var(--ease); }
.hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(232,196,160,0.3);
    filter: brightness(1.05);
}
.hero__btn:hover i { transform: translateX(4px); }
.hero__btn:active { transform: translateY(0); }

.hero__form-msg {
    margin-top: 1rem;
    font-size: 0.88rem;
    min-height: 1.2em;
    color: var(--c-green-light);
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero__form-msg.is-visible { opacity: 1; }

/* ============================================================
   НИЖНИЙ БАР
   ============================================================ */
.hero__bottombar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.5rem, 4vw, 4rem);
}
.hero__socials { display: flex; gap: 0.7rem; }
.social {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--c-silver);
    font-size: 1rem;
    text-decoration: none;
    background: rgba(246,243,236,0.04);
    border: 1px solid rgba(246,243,236,0.14);
    transition: all 0.35s var(--ease);
}
.social:hover {
    color: var(--c-bg-deep);
    background: var(--c-peach);
    border-color: var(--c-peach);
    transform: translateY(-3px);
}
.hero__copyright {
    font-size: 0.78rem;
    color: var(--c-text-dim);
    letter-spacing: 0.04em;
}

/* ============================================================
   КНОПКА УПРАВЛЕНИЯ ВИДЕО
   ============================================================ */
.hero__videoctrl {
    position: absolute;
    z-index: 6;
    right: clamp(1.5rem, 4vw, 4rem);
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--c-silver);
    background: rgba(20,17,12,0.4);
    border: 1px solid rgba(246,243,236,0.16);
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease);
    display: none;        /* показываем только на десктопе через media query */
}
.hero__videoctrl:hover { color: var(--c-white); border-color: rgba(232,196,160,0.5); }

@media (min-width: 1024px) {
    .hero__videoctrl { display: grid; place-items: center; }
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    animation: revealUp 1s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    .hero__fallback, .hero__fallback::before, .hero__fallback::after,
    .hero__badge-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 720px) {
    .hero__subscribe {
        flex-direction: column;
        border-radius: 22px;
        padding: 0.6rem;
        gap: 0.6rem;
    }
    .hero__input {
        padding: 0.7rem 1rem;
        text-align: center;
    }
    .hero__btn { width: 100%; justify-content: center; padding: 0.9rem; }

    .hero__bottombar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .brand__name { letter-spacing: 0.2em; }
}

@media (max-width: 420px) {
    .hero__badge { display: none; }
    .hero__title { font-size: clamp(3rem, 18vw, 5rem); }
}
