/* Подключение шрифтов */
@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Thin.woff2') format('woff2'),
         url('../fonts/TT Interphases Pro Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Regular.woff2') format('woff2'),
         url('../fonts/TT Interphases Pro Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Bold.woff2') format('woff2'),
         url('../fonts/TT Interphases Pro Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TT Interphases Pro';
    src: url('../fonts/TT Interphases Pro Black.woff2') format('woff2'),
         url('../fonts/TT Interphases Pro Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}


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

:root {
    --red:      #DB0B28;
    --red-lite: #DB0B28;
    --dark:     #444444;
    --dark-2:   #444444;
    --white:    #FFFFFF;
    --w80:      #444444;
    --w50:      #777777;
}

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
            linear-gradient(to right, rgba(255,255,255,0.93) 55%, rgba(255,255,255,0.5) 100%),
            url('../../img/oae.webp') center/cover no-repeat;
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(219,11,40,0.15);
}

.logo svg { height: 30px; width: auto; display: block; }

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--w80);
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.header-phone:hover { color: var(--red); }
.header-phone svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; }

/* ─── BODY ───────────────────────────────────────── */
.hero-body {
    flex: 1;
    display: grid;
    grid-template-columns: 60fr 40fr;
    align-items: center;
    padding: 40px 48px 60px;
    gap: 40px;
}

/* LEFT */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eyebrow {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--red);
}

h1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--dark);
}
h1 em { font-style: italic; color: var(--red-lite); }

.utp {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--w80);
    max-width: 520px;
}
.utp strong { color: var(--dark); font-weight: 600; }

.stats { display: flex; gap: 32px; }
.stat-item {
    border-left: 2px solid var(--red);
    padding-left: 16px;
}
.stat-value {
    font-size: 28px;
    color: var(--red-lite);
    letter-spacing: -0.02em;
}
.stat-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: var(--w50);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ─── FORMS ──────────────────────────────────────── */
.forms-block { display: flex; flex-direction: column; gap: 20px; }

a.btn-primary { text-decoration: none; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: var(--red);
    color: var(--white);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #b00921; transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; fill: var(--white); flex-shrink: 0; }

.inline-form {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--red);
    padding: 24px;
    backdrop-filter: blur(8px);
    animation: fadeSlideIn 0.25s ease;
}
.inline-form.open { display: flex; }

.form-title {
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--red-lite);
    margin-bottom: 4px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--w50);
}
.field input {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--dark);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
}
.field input::placeholder { color: var(--w50); }
.field input:focus { border-color: var(--red); }

.fos2 {
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--red);
    padding: 24px;
    backdrop-filter: blur(8px);
}
.fos2-title {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 4px;
}
.fos2-sub {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: var(--w50);
    margin-bottom: 16px;
}
.fos2-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.fos2-fields .field { flex: 1; min-width: 140px; }
.fos2-fields .btn-primary { white-space: nowrap; flex-shrink: 0; }

/* ─── VIDEO ──────────────────────────────────────── */
.right-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    background: #0a0a0a;
    border: 1px solid var(--red);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 0 40px rgba(219,11,40,0.08);
    cursor: pointer;
}
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Оверлей с кнопкой play поверх зацикленного видео */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
    z-index: 2;
}
.video-wrapper:hover .video-play-overlay { background: rgba(0,0,0,0.4); }
.video-play-overlay svg {
    width: 64px;
    height: 64px;
    fill: white;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
    transition: transform 0.15s;
}
.video-wrapper:hover .video-play-overlay svg { transform: scale(1.1); }

.video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(219,11,40,0.85);
    color: var(--white);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    z-index: 3;
}

/* ─── SUCCESS ────────────────────────────────────── */
.success-msg {
    display: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--red-lite);
    padding: 12px 0;
    letter-spacing: 0.05em;
}
.success-msg.show { display: block; }

/* ─── FOOTER STRIP ───────────────────────────────── */
.hero-footer {
    padding: 16px 48px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 32px;
    align-items: center;
}
.trust-item {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: var(--w50);
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    flex-shrink: 0;
}

/* ─── LIGHTBOX ───────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    align-items: center;
    justify-content: center;
    animation: lbFadeIn 0.2s ease;
}
.lightbox.open { display: flex; }

.lightbox-inner {
    position: relative;
    width: min(90vw, calc(90vh * 9/16));
    aspect-ratio: 9/16;
}

.lightbox-inner video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(0,0,0,0.3);
    color: #444;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover { border-color: var(--red); color: var(--red); }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── ANIMATION ──────────────────────────────────── */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────── */

/* Mac / экраны с небольшой высотой */
@media (max-height: 820px) and (min-width: 901px) {
    .hero-body { padding: 20px 48px 24px; gap: 20px; }
    .left-col { gap: 16px; }
    h1 { font-size: clamp(26px, 3vw, 40px); }
    .utp { font-size: 14px; line-height: 1.55; }
    .stat-value { font-size: 22px; }
    .btn-primary { padding: 12px 24px; }
    .fos2 { padding: 16px; }
    .fos2-sub { margin-bottom: 10px; }
    .video-wrapper { max-width: 240px; }
    .hero-footer { padding: 12px 48px; }
}

/* Планшет / мобайл */
@media (max-width: 900px) {
    .header { padding: 18px 20px; }
    .hero { overflow-x: hidden; }
    .hero-body { grid-template-columns: 1fr; padding: 24px 20px 40px; gap: 28px; }
    /* видео — в конец */
    .right-col { order: 1; justify-content: center; }
    .left-col  { order: 0; }
    .video-wrapper { max-width: 200px; margin: 0 auto; }
    .stats { flex-wrap: wrap; gap: 20px; }
    /* eyebrow — не вылезает за экран */
    .eyebrow { letter-spacing: 0.1em; font-size: 10px; flex-wrap: wrap; }
    .fos2 { max-width: 100%; }
    .fos2-fields { flex-direction: column; }
    .fos2-fields .field { width: 100%; min-width: unset; }
    .fos2-fields .btn-primary { width: 100%; justify-content: center; }
    .hero-footer { padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
    .btn-primary {width: 100%;}
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .header { padding: 12px 16px; }
    .logo svg { height: 22px; }
    .header-phone { font-size: 12px; gap: 6px; white-space: nowrap; }
    .header-phone svg { width: 14px; height: 14px; }
    .hero-body { padding: 16px 16px 28px; gap: 20px; }
    .video-wrapper { max-width: 100%; }
    h1 { font-size: clamp(24px, 7vw, 32px); }
    .utp { font-size: 14px; }
    .stats { gap: 16px; }
    .stat-value { font-size: 22px; }
    .fos2 { padding: 16px; }
    .hero-footer { display: none; }
}