

/* Шрифт Raleway */

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway-Variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}


/* ==========================================
   1. ОБЩИЕ СТИЛИ
========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Raleway', Arial, sans-serif;
    color: #111827;
    background: #ffffff;
}


a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================
   2. ХЕДЕР
========================================== */

.header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 28px clamp(20px, 4vw, 72px);

    color: #ffffff;
}



/* Логотип и название */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    display: block;
    width: auto;
    height: 60px;
    max-width: 220px;
    object-fit: contain;
    filter: none;
}

/* Надпись возле логотипа */

.logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1.2px;
}


.logo small {
    grid-column: 2;
    grid-row: 2;

    display: block;
    margin-top: 4px;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
}



/* Кнопка WhatsApp в хедере */

.header-link {
    flex-shrink: 0;

    padding: 12px 22px;

    border: 1px solid #0abf65;
    border-radius: 30px;

    background: #0abf65;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.header-link:hover {
    background: #079d53;
    border-color: #079d53;
}




/* ==========================================
   3. ГЛАВНЫЙ ЭКРАН
========================================== */

.hero {
    position: relative;

    display: flex;
    align-items: center;
    padding-top: 100px;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    margin: 0;

    color: #ffffff;

    background-color: #18232b;
    background-image: url("assets/hero.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Затемнение фоновой фотографии */

.hero-shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(3, 11, 17, 0.87) 0%,
        rgba(3, 11, 17, 0.50) 52%,
        rgba(3, 11, 17, 0.08) 100%
    );
}

/* Контейнер текста */

.hero-inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: none;

    margin: 0;
    padding:
        140px clamp(20px, 4vw, 72px)
        100px;
}

/* Маленький заголовок */

.eyebrow {
    margin: 0 0 22px;

    color: #e0e5e9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.5;
}

.eyebrow.dark {
    color: #6b7280;
}

/* Главный заголовок */

h1 {
    max-width: 850px;
    margin: 0 0 22px;

    font-size: clamp(40px, 5.6vw, 78px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -2px;
}

/* Подзаголовок */

.lead {
    max-width: 680px;
    margin: 0 0 34px;

    color: #f1f3f4;
    font-size: clamp(17px, 1.6vw, 23px);
    line-height: 1.5;
}


/* ==========================================
   4. КНОПКИ WHATSAPP
========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 18px 25px;

    border-radius: 15px;

    background: #0abf65;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    background: #079d53;
    transform: translateY(-2px);
}


/* SVG-иконка WhatsApp */

.btn-icon {
    display: block;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    padding-bottom: 5px;
    object-fit: contain;
    filter: none;

    transform: translateX(10px);
}


/* SVG-стрелка */

.btn-arrow {
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;

    margin-left: 12px;

    object-fit: contain;
    filter: brightness(0) invert(1);
}


/* ==========================================
   5. ПРЕИМУЩЕСТВА НА ГЛАВНОМ ЭКРАНЕ
========================================== */

.benefits {
    display: flex;
    align-items: center;
    gap: 25px;

    max-width: 850px;
    margin-top: 70px;
}

.benefits span {
    display: flex;
    align-items: center;
    gap: 12px;

    flex: 1;

    min-width: 0;
    padding-right: 20px;

    border-right: 1px solid rgba(255, 255, 255, 0.4);

    font-size: 13px;
    line-height: 1.5;
}

.benefits span:last-child {
    border-right: none;
}

/* SVG-иконки преимуществ */

.benefits img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;

    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Стрелка прокрутки */

.scroll {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateX(-50%);
}

.scroll img {
    display: block;

    width: 32px;
    height: 32px;

    filter: brightness(0) invert(1);
}


/* ==========================================
   6. ОБЩИЕ СТИЛИ СЕКЦИЙ
========================================== */

.section {
    padding:
        85px max(6%, calc((100% - 1200px) / 2));
}

h2 {
    margin: 0 0 18px;

    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.13;
    letter-spacing: -1px;
}

.muted {
    max-width: 530px;
    margin: 0;

    color: #606775;
    font-size: 16px;
    line-height: 1.65;
}


/* ==========================================
   7. КОНТАКТЫ И СОЦИАЛЬНЫЕ СЕТИ
========================================== */

/* Основной блок контактов */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 50px;

    background: #f6f4f1;
}

/* Сетка социальных сетей */

.socials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;

    width: 100%;
}

/* Ссылка на социальную сеть */

.social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;

    color: #111827;
    text-align: center;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    transition: transform 0.2s ease;
}

.social:hover {
    transform: translateY(-4px);
}

/* SVG-иконки */

.social-icon {
    display: block;

    width: 65px;
    height: 65px;
    flex-shrink: 0;

    margin: 0 auto 12px;

    object-fit: contain;
    border-radius: 17px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Эффект при наведении */

.social:hover .social-icon {
    transform: scale(1.05);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Подписи под иконками */

.social small {
    display: block;

    margin-top: 5px;

    color: #747983;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

/* Клавиатурная навигация */

.social:focus-visible {
    outline: 2px solid #0bbf67;
    outline-offset: 6px;
    border-radius: 8px;
}

/* Планшеты */

@media (max-width: 850px) {

    .contacts {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .socials {
        max-width: 500px;
        margin: 0 auto;
    }

}

/* Мобильные устройства */

@media (max-width: 520px) {

    .socials {
        gap: 10px;
    }

    .social {
        font-size: 12px;
    }

    .social-icon {
        width: 52px;
        height: 52px;

        margin-bottom: 10px;
        border-radius: 12px;
    }

    .social small {
        font-size: 10px;
    }

}

/* Очень узкие экраны */

@media (max-width: 360px) {

    .socials {
        gap: 6px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .social {
        font-size: 11px;
    }

    .social small {
        font-size: 9px;
    }

}




/* ==========================================
   8. ГАЛЕРЕЯ ВИДЕО
========================================== */

.portfolio {
    background: #ffffff;
}

/* Заголовок галереи */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.section-heading .muted {
    max-width: 390px;
}

/* Сетка вертикальных видео */

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Карточка видео */

.video-card {
    width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

/* Встроенный YouTube-плеер */

.video-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}






/* ==========================================
   9. ЗАКЛЮЧИТЕЛЬНЫЙ БЛОК
========================================== */

.closing {
    padding: 95px 20px;

    background-color: #0a1723;
    background-image:
        linear-gradient(
            rgba(10, 23, 35, 0.80),
            rgba(10, 23, 35, 0.90)
        ),
        url("assets/hero.jpg");

    background-repeat: no-repeat;
    background-position: center 48%;
    background-size: cover;

    color: #ffffff;
    text-align: center;
}

.closing p {
    max-width: 560px;
    margin: 0 auto 28px;

    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================
   10. ПОДВАЛ
========================================== */

footer {
    padding: 24px 20px;

    color: #777777;
    font-size: 12px;
    text-align: center;
}


/* ==========================================
   11. ПЛАВАЮЩАЯ КНОПКА WHATSAPP
========================================== */

.floating-wa {
    position: fixed;
    z-index: 20;
    right: 22px;
    bottom: 22px;

    display: grid;
    place-items: center;

    width: 57px;
    height: 57px;

    border-radius: 50%;

    background: #0bbf67;
    color: #ffffff;

    font-size: 32px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.floating-wa:hover {
    transform: scale(1.08);
    background: #079d53;
}


/* Иконка внутри круглой кнопки WhatsApp */

.floating-wa img {
    display: block;
    width: 45px;
    height: 45px;
    object-fit: contain;
}



/* ==========================================
   12. ПЛАНШЕТЫ
   Экраны до 850px
========================================== */

@media (max-width: 850px) {

    /* Главный экран */

    .hero {
        background-position: 62% center;
    }

    .hero-inner {
        padding:
            130px 6%
            85px;
    }

    .btn {
        gap: 12px;

        padding: 14px 19px;

        font-size: 15px;
    }

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

    .benefits {
        gap: 10px;
    }

    /* Контакты */

    .contacts {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Галерея */

    .section-heading {
        display: block;
    }

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

}


/* ==========================================
   13. МОБИЛЬНЫЕ УСТРОЙСТВА
   Экраны до 520px
========================================== */

@media (max-width: 520px) {

    /* Хедер */

    .header {
        padding: 20px;
        gap: 10px;
    }

    .logo {
        grid-template-columns: 26px auto;
        column-gap: 7px;

        font-size: 15px;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo small {
        margin-top: 3px;

        font-size: 9px;
        letter-spacing: 2px;
    }

    .logo-text {
        font-size: 15px;
    }

    .header-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Главный экран */

    .hero {
        min-height: 100svh;
        background-position: 62% center;
    }

    .hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(6, 16, 25, 0.85),
                rgba(6, 16, 25, 0.46)
            ),
            linear-gradient(
                0deg,
                rgba(6, 16, 25, 0.60),
                transparent
            );
    }

    .hero-inner {
        padding:
            120px 6%
            70px;
    }

    h1 {
        font-size: 40px;
        line-height: 1.12;
        letter-spacing: -1px;
    }

    .lead {
        font-size: 17px;
        line-height: 1.5;
    }

    /* Кнопки */

    .btn {
        gap: 12px;

        padding: 14px 19px;

        font-size: 15px;
    }


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

    .benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;

        margin-top: 38px;
    }

    .benefits span {
        flex: none;

        width: 100%;
        padding: 0;

        border: none;

        font-size: 13px;
    }

    .benefits img {
        width: 24px;
        height: 24px;
    }

    /* Общие секции */

    .section {
        padding: 65px 6%;
    }

    h2 {
        font-size: 30px;
    }

    .muted {
        font-size: 15px;
    }

    /* Контакты */

    .socials {
        gap: 12px;
    }

    .social {
        font-size: 12px;
    }

    .social-icon {
        width: 52px;
        height: 52px;

        margin-bottom: 10px;

        border-radius: 12px;
        font-size: 27px;
    }

    .social small {
        font-size: 10px;
    }

    /* Галерея */

    .section-heading {
        margin-bottom: 25px;
    }

    
/* Галерея видео на мобильных устройствах */

.video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.video-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
}


    /* Заключительный блок */

    .closing {
        padding: 75px 6%;
    }

    .closing p {
        font-size: 15px;
    }

    /* Плавающая кнопка */

    .floating-wa {
        right: 15px;
        bottom: 15px;

        width: 52px;
        height: 52px;

        font-size: 29px;
    }

}


/* ==========================================
   14. УВАЖЕНИЕ К НАСТРОЙКАМ АНИМАЦИИ
========================================== */

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

    html {
        scroll-behavior: auto;
    }

    .btn,
    .social,
    .header-link,
    .floating-wa {
        transition: none;
    }

}


/* ==========================================
   ПОЛНОЭКРАННЫЙ РЕЖИМ ВИДЕО
========================================== */

/* Обычный режим */
.video-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Полноэкранный режим */
.video-card video:fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Safari */
.video-card video:-webkit-full-screen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Само изображение внутри плеера */
.video-card video::-webkit-media-controls {
    z-index: 2;
}
