/* ==========================================
   1. ШРИФТЫ
   ========================================== */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600&display=swap");

/* ==========================================
   2. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ========================================== */
:root {
    --color-primary: #c82d73;
    --color-secondary: #1056a5;
    --color-text: #231f20;
    --color-bg: #fefefe;
    --color-bg-alt: rgba(200, 45, 115, 0.04);
    --color-white: #ffffff;
    --color-black: #000000;

    --font-heading: "Manrope", sans-serif;
    --font-text: "Montserrat", sans-serif;

    --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================
   3. БАЗОВЫЕ СТИЛИ
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Скрываем элементы для анимации GSAP */
.js-header-item,
.js-hero-title,
.js-hero-btn {
    opacity: 0;
}

/* ==========================================
   4. КНОПКИ (Premium Wow-Effect)
   ========================================== */
.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 18px 42px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition:
        color 0.4s ease,
        border-color 0.4s ease,
        background-color 0.4s ease;
}

/* Эффект заливки фоном */
.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition:
        width 0.6s ease,
        height 0.6s ease;
}

.btn:hover::before {
    width: 350px;
    height: 350px;
}

/* Специфические стили кнопок */
.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn--primary::before {
    background-color: var(--color-white);
}

.btn--primary:hover {
    color: var(--color-primary);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    /* Чуть меньше в хедере */
}

.btn--outline::before {
    background-color: var(--color-white);
}

.btn--outline:hover {
    border-color: var(--color-white);
    color: var(--color-text);
}

/* Стили кнопки в светлом хедере при скролле */
.header--scrolled .btn--outline {
    border-color: var(--color-text);
    color: var(--color-text);
}

.header--scrolled .btn--outline::before {
    background-color: var(--color-text);
}

.header--scrolled .btn--outline:hover {
    color: var(--color-white);
}

/* ==========================================
   5. HEADER (Sticky & Glassmorphism)
   ========================================== */
.header {
    position: fixed;
    /* Теперь он всегда сверху */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
    /* Плавный переход для всех меняющихся свойств */
    transition:
        background-color 0.4s ease,
        padding 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    /* Белый с прозрачностью */
    backdrop-filter: blur(15px);
    /* Эффект блюра */
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    /* Уменьшаем паддинги, чтобы хедер аккуратно «сжался» */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    /* Легкая тень для отделения от контента */
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Левая часть: Лого + Меню */
.header__left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header__logo {
    display: block;
}

.header__logo img {
    max-height: 35px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.header--scrolled .logo-text {
    color: var(--color-text);
}

.header__nav--desktop {
    display: block;
}

.header__menu {
    display: flex;
    gap: 35px;
}

.header__menu li a {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition:
        color 0.4s ease,
        opacity 0.3s ease;
}

.header--scrolled .header__menu li a {
    color: var(--color-text);
}

.header__menu li a:hover {
    opacity: 0.7;
}

/* Правая часть: Контакты + Языки + Кнопка */
.header__right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__phones {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header__phones a {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        color 0.4s ease,
        transform 0.3s ease;
    display: inline-block;
}

.header--scrolled .header__phones a {
    color: var(--color-text);
}

.header__phones a:hover {
    color: var(--color-primary);
}

.header__socials {
    display: flex;
    gap: 15px;
}

.header__socials a {
    color: var(--color-white);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.4s ease,
        transform 0.3s ease;
}

.header--scrolled .header__socials a {
    color: var(--color-text);
}

.header__socials a:hover {
    color: var(--color-primary);
    transform: scale(1.2);
}

.header__socials svg {
    width: 100%;
    height: auto;
    fill: currentColor;
}

/* Кастомный переключатель языков */
.header__lang {
    position: relative;
    cursor: pointer;
}

.header__lang-current {
    background: none;
    border: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.4s ease;
}

.header--scrolled .header__lang-current {
    color: var(--color-text);
}

.header__lang-current::after {
    content: "▾";
    font-size: 10px;
}

.header__lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    min-width: 80px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.header__lang:hover .header__lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__lang-list li a {
    display: block;
    padding: 8px 20px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.header__lang-list li.active a,
.header__lang-list li a:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.02);
}

/* ==========================================
   6. БУРГЕР И МОБИЛЬНОЕ МЕНЮ
   ========================================== */
.header__burger {
    display: none;
    width: 28px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.header--scrolled .header__burger span {
    background-color: var(--color-text);
}

/* Анимация бургера (крестик делаем ТЕМНЫМ, так как фон меню теперь светлый) */
.header__burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-text);
}

.header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-text);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    /* Светлый фон */
    backdrop-filter: blur(15px);
    /* Блюр в стиле хедера */
    -webkit-backdrop-filter: blur(15px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Позволяем скроллить, если экран маленький */
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu__container {
    width: 100%;
    min-height: 100%;
    padding: 100px 30px 60px;
    /* Отступ сверху для хедера и крестика */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.mobile-menu__list {
    text-align: center;
}

.mobile-menu__list li {
    margin: 20px 0;
    overflow: hidden;
}

.mobile-menu__list a {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 56px);
    color: var(--color-text);
    /* ТЕМНЫЙ ТЕКСТ */
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu__list a:hover {
    color: var(--color-primary);
}

/* Стили контактов в мобильном меню */
.mobile-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.mobile-menu__phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mobile-menu__phones a {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.mobile-menu__phones a:hover {
    color: var(--color-primary);
}

.mobile-menu__socials {
    display: flex;
    gap: 20px;
}

.mobile-menu__socials a {
    width: 28px;
    height: 28px;
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    background-color: var(--color-text);
    padding: 2px;
    border-radius: 50%;
}

.mobile-menu__socials a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.mobile-menu__socials svg {
    width: 100%;
    height: auto;
    fill: currentColor;
}

.mobile-menu__btn {
    width: 100%;
    max-width: 300px;
}

/* ==========================================
   7. HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    overflow: hidden;
    background-color: var(--color-black);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero__content {
    text-align: left;
    max-width: 750px;
}

.hero__content--bottom-right {
    align-self: flex-end;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 7vw, 92px);
    color: var(--color-white);
    line-height: 1.05;
    margin: 0 0 50px 0;
    font-weight: 500;
}

/* Стили для SplitType */
.char {
    display: inline-block;
}

/* ==========================================
   8. АДАПТИВНОСТЬ
   ========================================== */
@media (max-width: 1200px) {
    .header__left {
        gap: 30px;
    }

    .header__right {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .header__nav--desktop,
    .header__phones,
    .header__socials {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .header__container {
        padding: 0 30px;
    }

    .hero__container {
        padding: 0 30px 60px;
    }

    .hero__content--bottom-right {
        align-self: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 0;
    }

    .header__container {
        padding: 0 20px;
    }

    .header__btn {
        display: none;
    }

    /* Скрываем кнопку в хедере на самых маленьких экранах */

    .hero__container {
        padding: 0 20px 50px;
    }

    .hero__title {
        margin-bottom: 30px;
    }
}

/* ==========================================
   7.5 ABOUT SECTION
   ========================================== */
.about {
    padding: 140px 0;
    background-color: var(--color-bg);
}

.about__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.about__content {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 80px;
}

.about__header {
    flex: 1;
}

.about__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 64px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.about__subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.about__text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
}

.about__text p {
    margin: 0 0 15px 0;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__visual {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.about__img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -20%;
    left: 0;
}

@media (max-width: 1024px) {
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .about__visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about__container {
        padding: 0 20px;
    }

    .about__subtitle {
        font-size: 18px;
    }

    .about__visual {
        height: 300px;
        border-radius: 12px;
    }
}

/* ==========================================
   8. STATS SECTION
   ========================================== */
.stats {
    padding: 120px 0 0;
    background-color: var(--color-bg-alt);
}

.stats__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 100px;
}

.stats__header {
    margin: 0 0 80px;
    max-width: 900px;
}

.stats__title {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Делаем заголовок мощным */
    font-size: clamp(32px, 5vw, 64px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 30px;
}

.stats__desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
}

.stats__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    /* Увеличили отступ между колонками */
}

.stats__item {
    flex: 1 1 200px;
    max-width: 260px;
    /* Сузили, чтобы элементы были компактнее */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Стили для загружающейся полоски */
.stats__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    /* По умолчанию primary */
    margin-bottom: 25px;
    transform-origin: left;
    /* Точка отсчета для анимации роста слева направо */
}

/* Чередуем цвет полоски (каждый второй элемент) */
.stats__item:nth-child(even) .stats__line {
    background-color: var(--color-secondary);
}

.stats__number-wrap {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 56px;
    /* Меньше и аккуратнее */
    color: var(--color-text);
    /* Черный/темный цвет */
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stats__label {
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    opacity: 0.55;
    /* Приглушаем прозрачностью */
    margin: 0;
}

.stats__visual {
    width: 100%;
    height: 500px;
    /* Занимает 80% высоты экрана */
    overflow: hidden;
    position: relative;
}

.stats__img {
    width: 100%;
    height: 120%;
    /* Чуть больше для эффекта параллакса */
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
}

@media (max-width: 768px) {
    .stats {
        padding: 80px 0 0;
        /* Делаем отступ сверху меньше */
    }

    .stats__grid {
        gap: 40px 15px;
        /* 40px между рядами, 15px между колонками */
    }

    .stats__item {
        flex: 1 1 100%;
        /* Позволяем блокам сжиматься сильнее */
        max-width: 100%;
        /* Гарантируем, что они встанут по 2 в ряд */
    }

    .stats__line {
        margin-bottom: 15px;
        /* Уменьшаем отступ от полоски до цифр */
    }

    .stats__number-wrap {
        font-size: 40px;
        /* Уменьшаем сами цифры, чтобы они не ломали сетку */
    }

    .stats__label {
        font-size: 13px;
        /* Подпись тоже чуть-чуть мельче */
    }

    .stats__visual {
        height: 300px;
        /* Картинка масштаба на мобайле пусть занимает пол-экрана, а не 80% */
    }
}

/* ==========================================
   9. PRODUCTS SECTION (Clean Grid)
   ========================================== */
.products {
    padding: 140px 0;
    background-color: var(--color-white);
}

.products__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.products__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 80px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.products__grid {
    display: grid;
    /* 3 в ряд на десктопе */
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
}

.products__card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    /* Для анимации */
}

.products__img-wrap {
    width: 100%;
    aspect-ratio: 1;
    /* Премиальный вертикальный формат */
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    border: 1px solid #0002;
}

.products__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.products__card:hover .products__img {
    transform: scale(1.05);
}

.products__name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--color-text);
}

.products__desc {
    font-size: 15px;
    opacity: 0.5;
    line-height: 1.6;
}

/* Карточка каталога */
.products__card--catalog {
    background-color: var(--color-primary);
    padding: 40px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.products__catalog-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 30px;
    line-height: 1.1;
}

.products__card--catalog .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-white);
}

/* При наведении кнопка становится «пустой» (outline) на белом фоне
   или можно сделать заливку черным, как мы делали раньше */
.products__card--catalog .btn::before {
    background-color: var(--color-text);
    /* Заливка черным при ховере */
}

.products__card--catalog .btn:hover {
    color: var(--color-white) !important;
    border-color: var(--color-text);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 в ряд на планшетах */
        gap: 60px 30px;
    }
}

@media (max-width: 600px) {
    .products {
        padding: 80px 0;
    }

    .products__grid {
        grid-template-columns: 1fr;
        /* 1 в ряд на мобильных */
        gap: 50px;
    }

    .products__container {
        padding: 0 20px;
    }

    .products__img-wrap {
        aspect-ratio: 3 / 2;
    }
}

/* ==========================================
   10. PARTNERS SECTION
   ========================================== */
.partners {
    padding: 140px 0;
    /* Увеличил отступ для стиля */
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.partners__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.partners__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    /* Тот же размер, что в Stats и Products */
    font-weight: 800;
    margin-bottom: 80px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
    /* Влево, как в остальных блоках */
}

.partners__marquee {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}

.partners__track {
    display: flex;
    align-items: center;
    width: max-content;
}

.partners__item {
    width: clamp(180px, 18vw, 320px);
    padding: 0 50px;
}

.partners__item a {
    display: block;
    width: 100%;
}

.partners__item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(40%);
    transition:
        filter 0.4s ease,
        transform 0.4s ease;
}

.partners__item:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* ==========================================
   Адаптив под мобильные (Partners)
   ========================================== */
@media (max-width: 1024px) {
    .partners {
        padding: 100px 0;
    }

    .partners__title {
        margin-bottom: 60px;
    }

    .partners__item {
        width: clamp(140px, 25vw, 200px);
        padding: 0 30px;
    }

    .partners__item img {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 80px 0;
    }

    .partners__container {
        padding: 0 20px;
    }

    .partners__title {
        margin-bottom: 40px;
    }

    .partners__item {
        width: clamp(120px, 35vw, 160px);
        padding: 0 15px;
    }

    .partners__item img {
        max-height: 50px;
    }

    /* Делаем края маски более узкими для мобилок */
    .partners__marquee {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        mask-image: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }
}

/* ==========================================
   11. MEDIA & GALLERY SECTION
   ========================================== */
.media {
    padding: 140px 0;
    background-color: var(--color-bg);
}

.media__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.media__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: var(--color-text);
}

/* --- Табы с анимированной линией --- */
.media__tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.media__tabs {
    position: relative;
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.media__tab {
    background: none;
    border: none;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    padding: 0;
}

.media__tab.is-active {
    opacity: 1;
}

.media__tab-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
    width: 0;
    /* Ширина управляется через JS */
    transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* --- Контент табов --- */
.media__pane {
    display: none;
}

.media__pane.is-active {
    display: block;
}

.media__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Элемент галереи --- */
.media__item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background-color: #f0f0f0;
    /* Начальное состояние для анимации появления (GSAP) */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.media__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.media__item:hover .media__img {
    transform: scale(1.1);
}

/* Оверлей при наведении (на фото) */
.media__item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(200, 45, 115, 0.85);
    /* Цвет primary с прозрачностью */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.media__item-overlay svg {
    width: 50px;
    height: 50px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.media__item:hover .media__item-overlay {
    opacity: 1;
}

.media__item:hover .media__item-overlay svg {
    transform: translateY(0);
}

/* --- Кнопка плей для видео --- */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.video-play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--color-primary);
    margin-left: 5px;
}

.media__item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-primary);
}

.media__item:hover .video-play-btn::after {
    border-color: transparent transparent transparent var(--color-white);
}

/* --- Кнопка Load More --- */
.media__footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.media__load-more {
    min-width: 220px;
}

/* ==========================================
   11.5 TEAM SECTION
   ========================================== */
.team {
    padding: 120px 0 40px;
    background-color: var(--color-bg-alt);
}

.team__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.team__header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 20px 0;
}

.team__subtitle {
    font-size: 18px;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.team__card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.team__photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.05);
}

.team__photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.6s ease;
    filter: grayscale(100%);
}

.team__card:hover .team__photo {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team__card:hover .team__photo-wrap::after {
    opacity: 1;
}

.team__info {
    text-align: left;
    border-left: 2px solid var(--color-primary);
    padding-left: 15px;
    transition: transform 0.4s ease;
}

.team__card:hover .team__info {
    transform: translateX(10px);
}

.team__name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 5px 0;
}

.team__position {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

@media (max-width: 1200px) {
    .team__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .team {
        padding: 80px 0 20px;
    }

    .team__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team__card {
        max-width: 320px;
        margin: 0 auto;
    }

    .team__header {
        margin-bottom: 50px;
    }
}

/* ==========================================
   12. CERTIFICATES SECTION (Clean Images)
   ========================================== */
.certs {
    margin-top: 160px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 100px;
}

.certs__header {
    text-align: center;
    margin-bottom: 70px;
}

.certs__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-text);
    text-transform: uppercase;
}

.certs__subtitle {
    font-size: 16px;
    opacity: 0.5;
    max-width: 500px;
    margin: 0 auto;
}

.certs__grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Немного уменьшили зазор для плотности */
    flex-wrap: wrap;
    padding: 20px 0;
}

.certs__item {
    width: calc(25% - 30px);
    min-width: 220px;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Строку opacity: 0; отсюда убрали! */
}

/* Контейнер теперь прозрачный, без теней и отступов */
.certs__paper {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    /* Пропорция А4 или близкая к ней */
    aspect-ratio: 1.414 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Чтобы картинка не вылезала при ховере */
}

.certs__paper img {
    width: 100%;
    height: 100%;
    /* Картинка заполняет блок, может немного обрезаться, если пропорции разные */
    object-fit: cover;
    /* Добавляем легкую тень самой картинке для объема */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.certs__item:hover {
    transform: rotate(0deg) translateY(-15px);
    z-index: 10;
}

.certs__item:hover .certs__paper img {
    transform: scale(1.03);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

/* ==========================================
   ADAPTIVE
   ========================================== */
@media (max-width: 1024px) {
    .media__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .certs__item {
        width: calc(33.33% - 30px);
        /* 3 в ряд */
    }
}

@media (max-width: 768px) {
    .media {
        padding: 80px 0;
    }

    .media__tabs {
        gap: 20px;
    }

    .media__tab {
        font-size: 12px;
    }

    .certs {
        margin-top: 100px;
        padding-top: 60px;
    }

    .certs__header {
        margin-bottom: 40px;
    }

    .certs__grid {
        gap: 20px;
    }

    .certs__item {
        width: calc(50% - 20px);
        /* 2 в ряд */
        min-width: 150px;
    }

    /* На мобильных наклон можно убрать или уменьшить */
    .certs__item:nth-child(n) {
        transform: rotate(0deg);
    }
}

@media (max-width: 480px) {
    .media__grid {
        grid-template-columns: 1fr;
    }

    .media__item {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================
   13. CONTACTS SECTION
   ========================================== */
.contacts {
    padding: 120px 0;
    background-color: var(--color-white);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(200, 45, 115, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.contacts__container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contacts__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 20px;
    color: var(--color-text);
}

.contacts__subtitle {
    font-size: 18px;
    opacity: 0.7;
    margin: 0 0 50px;
    line-height: 1.6;
    max-width: 500px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacts__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 600;
}

.contacts__phone {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition-base);
    text-decoration: none;
}

.contacts__phone:hover {
    color: var(--color-primary);
}

.contacts__address {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.contacts__socials {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.contacts__social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all 0.4s ease;
}

.contacts__social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contacts__social-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* --- CF7 Form Styles --- */
.contacts__form-wrap {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 10px;
}

.contacts__form-wrap .wpcf7 {
    margin: 0;
}

.contacts__form-wrap .wpcf7 p {
    margin: 0 0 25px 0;
}

.contacts__form-wrap .wpcf7 label {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.9;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 5px;
}

.contacts__form-group {
    margin-bottom: 25px;
    width: 100%;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 16px;
    padding: 10px 0;
    transition: border-color var(--transition-base);
    border-radius: 0;
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 120px;
    resize: none;
}

.wpcf7-form-control:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.wpcf7-form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.wpcf7-submit {
    width: 100%;
    margin-top: 10px;
}

.wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #ff4b4b;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    margin-top: 20px !important;
    border-radius: 5px;
    font-size: 14px;
    padding: 15px !important;
}

.contacts__form-wrap .btn:hover::before {
    width: 800px;
    height: 800px;
}

@media (max-width: 1024px) {
    .contacts__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacts__form-wrap {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contacts {
        padding: 80px 0;
    }

    .contacts__form-wrap {
        padding: 30px 20px;
    }
}

/* ==========================================
   14. FOOTER
   ========================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__logo {
    display: block;
    max-width: 180px;
}

.footer__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer__desc {
    font-size: 14px;
    opacity: 0.6;
    max-width: 300px;
    line-height: 1.5;
    margin: 0;
}

.footer__menu {
    display: flex;
    gap: 30px;
}

.footer__menu li a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    opacity: 0.8;
    transition:
        opacity var(--transition-base),
        color var(--transition-base);
}

.footer__menu li a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.5;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copy {
    margin: 0;
}

.footer__legal {
    display: flex;
    gap: 20px;
}

.footer__legal-menu,
.footer__legal-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__legal a {
    transition: color var(--transition-base);
}

.footer__legal a:hover {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer__container {
        padding: 0 20px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
