@font-face {
    font-family: "RobotoRegular";
    src: url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Vetrino";
    src: url("../fonts/vetrino.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}


* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
    display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}

ul, ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img, svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

/* Form */

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

textarea {
    resize: vertical;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

input[type='file'] {
    max-width: 100%;
}



body {
    margin: 0;
    font-family: sans-serif;
    background-color: #000;
    color: white;
}

.main--corporate {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;

    padding: 23px 120px;

    align-items: center;

    background-image: linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.5)), url('../img/corporate/first_screen_background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.main--corporate__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.main-menu {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.main-menu a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-family: "RobotoRegular";
}

.main-menu a:last-child {
    color: #BE0000;
}

.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

/* Рисуем полоски бургера */
.burger-btn span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: #fff; /* Белые полоски */
    margin: 8px 0;
    transition: 0.3s;
}

.burger-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Отключаем клики по невидимой кнопке */
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0; /* Прижимаем к правому краю */
    left: auto; /* Отменяем привязку к левому краю */

    width: 300px; /* Фиксированная ширина (или 80%, если хотите) */
    max-width: 85vw; /* Чтобы на очень узких экранах не вылезало */
    height: 100vh; /* Полная высота */

    background-color: #000;
    z-index: 2000;

    /* Тень, чтобы меню отделялось от сайта */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);

    /* Логика анимации (прячем вправо) */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;

    display: flex;
    flex-direction: column;
    padding: 30px 40px 30px 30px;
    box-sizing: border-box;
}

/* Когда меню активно - возвращаем его на место */
.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Кнопка закрытия (крестик) */
.mobile-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 30px;
    left: 30px; /* Крестик слева, как на макете */
    padding: 0;
}

.mobile-close img {
    width: 100%;
    height: 100%;
}

/* Ссылки внутри мобильного меню */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Прижимаем текст вправо */
    gap: 30px; /* Расстояние между пунктами */
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px; /* Размер шрифта как на макете */
    text-transform: lowercase; /* Маленькие буквы */
    font-family: "RobotoRegular"; /* Ваш шрифт */
    transition: color 0.3s;
}

/* Особый стиль для кнопки "СВЯЗЬ" */
.mobile-nav a.mobile-contact {
    color: #BE0000; /* Красный цвет */
    margin-top: 50px; /* Отступ от остальных ссылок */
    font-size: 18px;
    font-family: "RobotoRegular";
}

.mobile-close img {
    width: 25px;
}


.main--title {
    text-align: center;
    align-self: center;
    justify-self: center;


    font-size: 60px;
    font-weight: normal;
    font-family: "Vetrino"


}

.test--str {
    grid-row: 3;
    align-self: center;
    justify-self: center;
    grid-column: 1 / -1;
}



.intro-section {
    background-color: #000; /* Черный фон */
    color: #fff; /* Белый текст */


    display: flex;

    padding: 45px 120px;
    column-gap: 20px;

    align-items: flex-start;
    justify-content: space-between;
}

.intro-text {
    font-family: "Vetrino";
    font-size: 36px;
    line-height: 1.4;
    text-transform: lowercase;

    max-width: 1048px;
}

.intro-star {
    grid-column: 12;

    text-align: right;
    font-size: 60px;
    font-family: serif;
}

.about--corporate {
    background-color: #fff;
    color: #000;

    padding: 75px 120px 144px 120px;
    column-gap: 20px;

    align-items: flex-start;
}

.about--corporate h3 {
    font-family: "Vetrino";
}

.additional-text-1 {
    max-width: 550px;
    font-size: 22px;
    color: black;
    margin-bottom: 95px;
    margin-top: 166px;
}

.additional-text-2 {
    text-align: right;
    max-width: 500px;
    font-size: 22px;
    justify-self: flex-end;
    margin-bottom: 94px;
}

.additional-text-3 {
    text-align: center;
    max-width: 414px;
    font-size: 20px;
    margin-bottom: 54px;
}

.additional-text-4 {
    text-align: right;
    max-width: 250px;
    justify-self: flex-end;
    font-size: 16px;
    color: #6D6D6D;
}

h2 {
    font-family: "Vetrino";
    font-size: 50px;
    text-align: center;
    padding-bottom: 75px;
}

.about--point {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    padding-bottom: 25px;
}

.about--description {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about--description p {
    font-family: "Vetrino";
    font-size: 26px;
    max-width: 445px;
    text-align: center;
    padding-right: 50px;
}

.about--point img {
    grid-column: 2 / -1;
    width: 100%;
}



/* 1. РОДИТЕЛЬ */
.intro-section-2 {
    position: relative; /* Это делает блок "якорем" для текста */
    width: 100%;
    /* Высоту не задаем! Она растянется по картинке */
}

/* 2. КАРТИНКА (Нижний слой) */
.banner-img {
    width: 100%;        /* Ширина всегда во весь экран */
    height: auto;       /* Высота подстраивается (ничего не обрежется) */
    display: block;     /* Убирает лишнюю белую полоску снизу в 4px */
}

/* 3. ОБЕРТКА ТЕКСТА (Верхний слой) */
.banner-content {
    position: absolute; /* Накладываем поверх */

    /* Магия центрирования: */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Сдвиг назад на 50% своего размера */

    width: 90%; /* Ширина блока с текстом (чтобы не прилипал к краям на мобильном) */
    text-align: center; /* Центруем сам текст внутри блока */
    z-index: 2; /* Поднимаем слой выше картинки */
}

/* 4. СТИЛИ ЗАГОЛОВКА */
.banner-content h2 {
    justify-self: center;
    align-self: center;
    color: #fff; /* Белый цвет. Если картинка светлая — поменяй на #000 */
    font-family: "Vetrino"; /* Твой шрифт с засечками */
    font-weight: normal; /* Убираем жирность, если нужно утонченно */
    margin: 0;

    font-size: 50px;
    max-width: 627px;
    padding: 0;
}

.intro-section-3 {
    background-color: #000; /* Черный фон */
    color: #fff; /* Белый текст */

    display: flex;

    padding: 77px 320px;

    align-items: center;
    justify-content: center;
}

.intro-text-3 {
    font-family: "Vetrino";
    font-size: 35px;
    line-height: 1.4;
    text-transform: lowercase;
    text-align: center;

    max-width: 1048px;
}

/* Сохраняем ваши базовые стили */
.videos {
    background-color: #fff;
    color: #000;
    /* Немного уменьшил padding для мобильных, но оставил вашу логику */
    padding: 100px 5% 0 5%;
}

@media (min-width: 768px) {
    .videos { padding: 108px 120px 0 120px; }
}

.videos--wrapper {
    width: 100%;
    max-width: 1200px; /* Ограничим ширину, чтобы на 4K не разрывало */
    margin: 0 auto;
}

.videos--wrapper h2 {
    padding-bottom: 60px; /* Чуть меньше отступ, 109px многовато */
    font-size: clamp(30px, 5vw, 60px); /* Адаптивный шрифт */
    text-transform: lowercase; /* Если нужен стиль как в заголовке */
}

/* --- СТИЛИ ПЛЕЕРА --- */

.video-container {
    position: relative;
    width: 100%;
    /* Высота будет зависеть от пропорций видео (обычно 16:9) */
    /* 56.25% = 16:9. Если видео 50vw высотой, оставьте ваш height: 50vw */
    height: 0;
    padding-bottom: 56.25%; /* Делает блок соотношением 16:9 */

    background-color: #000;
    margin-bottom: 87px;
    overflow: hidden;
    cursor: pointer;
}

.video-container:last-child {
    margin-bottom: 0;
}

/* Если хотите сохранить вашу высоту 50vw, раскомментируйте это: */
/* .video-container {
    height: 50vw;
    padding-bottom: 0;
}
*/

/* Само видео */
.video-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Обложка (Overlay) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Поверх видео */
    background: #000;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Картинка-превью */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Немного затемняем, чтобы кнопка выделялась */
    transition: transform 0.8s ease;
}

/* Эффект при наведении на блок */
.video-container:hover .video-poster {
    transform: scale(1.05); /* Легкий зум картинки */
}

/* Кнопка Play */
.play-button {
    position: relative;
    z-index: 3;
    width: 80px;
    height: 80px;
    background: white; /* Полупрозрачный круг */
    backdrop-filter: blur(10px); /* Эффект стекла */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s;
    color: #fff;
    padding: 0;
}

.play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 4px; /* Визуальная компенсация центра треугольника */
}

/* Анимация кнопки при наведении */
.video-container:hover .play-button {
    transform: scale(1.1);
    background: white;
}

/* --- КЛАСС "PLAYING" (добавляет JS) --- */
/* Когда видео играет, скрываем обложку */
.video-container.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video.vertical {
    /* Пропорция 9:16 (TikTok/Reels стандарт) */
    aspect-ratio: 9 / 16;

    /* ВАЖНО: Ограничиваем ширину, иначе на ПК оно будет высотой в 2 этажа.
       Делаем ширину как у мобильника. */
    width: 100%;
    max-width: 400px;

    /* Центрируем сам блок по горизонтали */
    margin-left: auto;
    margin-right: auto;
}

.photos {
    background-color: #fff;
    color: #000;
    padding: 108px 120px;
}

.photos h2 {
    font-size: 70px;
}

.photos--wrapper {
    height: 200vw;
}

.footer--main {
    background-color: #fff;
    width: 100%;
}

.footer--main img {
    width: 100%;
}

.footer-hover {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.footer__contacts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 45%;

    z-index: 10;
    display: flex;
    justify-content: space-between;

    align-items: flex-end;

    padding: 0 30px 20px 30px;

    box-sizing: border-box;

    transform: translateY(200%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease;
    pointer-events: none;
}

.footer__cover-wrapper {
    width: 100%;
    line-height: 0;
}

.footer__svg {
    display: block;
    width: 100%;
    height: auto;

    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease;
    transform-origin: top center;
    fill: #000;
}

.footer-hover:hover .footer__contacts {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.footer-hover:hover .footer__svg {
    transform: translateY(50%);
    opacity: 0.1;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__phone {
    margin-bottom: 23px;
    font-family: "Vetrino";
    font-size: 30px;
    color: #000;
}

.footer__socials {
    display: flex;
    gap: 20px;
}

.footer__socials a {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-family: "Vetrino";
    font-size: 30px;
}

.footer__col--right span {
    text-transform: uppercase;
    font-family: "Vetrino";
    font-size: 30px;
    color: #BE0000;
    cursor: pointer;
}


@media (max-width: 1024px) {
    .main--corporate {

        padding: 23px 60px;
    }
    .main--title {
        font-size: 48px;
    }

    .intro-section {
        padding: 45px 60px;
    }

    .intro-text {
        font-size: 22px;
    }

    .about--corporate {
        padding: 75px 60px;
    }

    h2 {
        font-size: 38px;
    }

    .about--description p {
        font-size: 22px;
    }

    .banner-content h2 {
        font-size: 22px;

    }

    .photos h2 {
        font-size: 55px;
    }

    .footer__phone {
        font-size: 22px;
    }

    .footer__socials a {
        font-size: 22px;
    }

    .footer__col span {
        font-size: 22px;
    }

    .intro-section-3 {
        padding: 45px 60px;
    }

    .intro-text-3 {
        font-size: 22px;
    }

}

@media (max-width: 768px) {

    .test--str {
        opacity: 0;

    }
    .logo {
        width: 33px;
    }
    .logo img {
        width: 100%;
    }

    .main-menu a {
        font-size: 18px;
    }

    .main-menu a:not(:last-child) {
        display: none; /* Скрываем их */
    }

    .main--title {
        font-size: 48px;
    }

    .about--corporate h2 {
        max-width: 250px;
        align-self: center;
        justify-self: center;
    }

    .main--corporate {
        grid-template-columns: 1fr;

        padding: 20px 35px;
    }

    .main-menu {
        display: none;
    }

    /* Показываем кнопку бургер */
    .burger-btn {
        display: block;
    }

    .intro-section {
        padding: 25px 45px;
    }

    .intro-text {
        font-size: 21px;
    }
    .intro-star {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
        padding-bottom: 31px;
    }

    .about--corporate {
        padding: 31px 5vw 0 5vw;
    }

    .about--corporate {
        padding-bottom: 31px;
    }

    .about--description p {
        font-size: 20px;
        max-width: 409px;
        padding: 16px 0 0 0;
    }

    .about--point {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        padding-bottom: 60px;
    }

    .banner-content {
        max-width: 300px;
    }

    .banner-content h2 {
        font-size: 20px;

    }

    .videos {
        background-color: #fff;
        color: #000;
        padding: 36px 44px 0 44px;
    }

    .videos--wrapper h2 {
        padding-bottom: 50px;
    }

    .video {
        margin-bottom: 30px;
    }

    .photos {
        padding: 84px 44px;
    }

    .photos h2 {
        font-size: 28px;
    }

    .intro-section-3 {
        padding: 25px 45px;
    }

    .intro-text-3 {
        font-size: 21px;
    }

    .additional-text-1 {
        margin-top: 20px;
        margin-bottom: 25px;
        font-size: 18px;
        max-width: 308px;
    }

    .additional-text-2 {
        margin-bottom: 25px;
        font-size: 17px;
        max-width: 308px;
    }

    .additional-text-3 {
        margin-bottom: 25px;
        font-size: 16px;
        max-width: 170px
    }

    .additional-text-4 {
        font-size: 15px;
        max-width: 200px;
    }

    .photos h2 {
        font-size: 28px;
    }

    .footer__phone {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .footer__socials a {
        font-size: 16px;
    }

    .footer__col span {
        font-size: 16px;
    }

    .footer-hover {
        padding-top: 55px;
    }
    .footer__contacts {
        height: 60%;
    }
}

@media (max-width: 375px) {
    .main--corporate {
        grid-template-columns: 1fr;

        padding: 13px 20px;
    }

    .main--title {
        font-size: 48px;
    }

    .intro-section {
        padding: 20px;
    }

    .intro-text {
        font-size: 20px;
        text-align: left;
    }

    h2 {
        font-size: 25px;
        padding-bottom: 33px;
    }

    .about--corporate {
        padding: 29px 0 0 0;
    }

    .about--corporate {
        padding-bottom: 31px;
    }

    .about--description p {
        font-size: 20px;
        max-width: 260px;
        padding: 16px 0 0 0;
    }

    .about--point {
        padding-bottom: 35px;
    }

    .banner-content {
        max-width: 250px;
    }

    .banner-content h2 {
        font-size: 28px;

    }

    .intro-section-3 {
        padding: 20px;
    }

    .intro-text-3 {
        font-size: 20px;
        text-align: left;
    }

    .videos {
        background-color: #fff;
        color: #000;
        padding: 31px 20px 0 20px;
    }

    .videos--wrapper h2 {
        padding-bottom: 31px;
        font-size: 30px;
    }

    .video {
        margin-bottom: 23px;
    }

    .photos {
        padding: 32px 20px;
    }

    .photos h2 {
        font-size: 36px;
    }

    .about--corporate h3 {
        padding: 0 20px 0 20px;
    }

    .additional-text-1 {
        margin-top: 60px;
        margin-bottom: 43px;
        font-size: 20px;
    }

    .additional-text-2 {
        margin-bottom: 43px;
        font-size: 20px;
    }

    .additional-text-3 {
        margin-bottom: 43px;
        font-size: 20px;
    }

    .additional-text-4 {
        font-size: 18px;
    }

    .footer-hover {
        padding-top: 30px;
    }
    .footer__phone {
        font-size: 14px;
        margin-bottom: 13px;
    }

    .footer__socials a {
        font-size: 14px;
    }

    .footer__col span {
        font-size: 14px;
        margin-top: 13px;
    }

    .footer__contacts {
        height: 50%;
        flex-direction: column;
        padding: 0 20px 90px 20px;
        align-items: flex-start;
    }
}


/* 1. Фон-подложка (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный */
    backdrop-filter: blur(8px);      /* Тот самый блюр фона */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

/* Класс для открытия окна */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. Само окно */
.modal-window {
    background: #000; /* Черный фон как на макете */
    width: 100%;
    max-width: 400px; /* Ширина карточки */
    color: #fff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* Анимация появления */
    transform: translateY(20px);
    transition: transform 0.3s ease;

    padding: 30px;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

/* Картинка сверху */
.modal-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;

}

/* Контент внутри */
.modal-content {
    text-align: center;
}

/* Заголовок */
.modal-title {
    font-family: "Vetrino"; /* Шрифт с засечками */
    text-transform: uppercase;
    font-size: 20px;
    margin-top: 32px;
    padding: 0;
    text-align: center;
}

/* Поля ввода (Инпуты) */
.input-group {
    position: relative;
    margin-top: 20px;
    text-align: left;
}

.modal-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444; /* Тусклая линия */
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.modal-form input:focus {
    border-bottom-color: #fff;
}

/* Лейблы (подписи полей) */
.modal-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

/* Анимация лейбла при вводе или фокусе */
.modal-form input:focus ~ label,
.modal-form input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 12px;
    color: #aaa;
}

/* Кнопка */
.modal-submit {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 15px 30px;
    margin-top: 40px;
    font-family: "Vetrino";
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%; /* Можно сделать на всю ширину или inline-block */
}

.modal-submit:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1001;

    /* Сбрасываем стили кнопки */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0; /* Убираем отступы, чтобы картинка встала ровно */

    /* Задаем размеры вашей иконки */
    width: 30px;  /* Можете поменять на свой размер */
    height: 30px;

    /* Сохраняем анимацию вращения */
    transition: transform 0.3s;
}

/* Растягиваем картинку на всю кнопку */
.modal-close img {
    width: 100%;
    height: 100%;
    display: block; /* Убираем лишние отступы снизу */
}

/* Эффект при наведении (вращение) */
.modal-close:hover {
    transform: rotate(90deg);
}


/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ --- */

/* Начальное состояние: скрыто и спущено вниз */
.wow {
    opacity: 0;
    transform: translateY(100px); /* Сдвиг вниз на 50px */
    transition: all 0.6s ease-out; /* Плавность 0.8 секунды */
    will-change: opacity, transform; /* Оптимизация для браузера */
}

/* Конечное состояние: видимо и на месте */
.wow.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ЗАДЕРЖКИ (чтобы элементы выезжали лесенкой) --- */
/* Если у тебя заголовок, а под ним текст - добавь тексту delay-1 */

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


.swipe-section {
    display: flex;
    flex-direction: column;
    background-color: white;
}

.title--space {
    background-color: white;
    padding: 100px 40px 0 40px;
}

.photos--title {
    font-family: "Vetrino";
    color: black;
    font-size: 70px;
    background-color: white;
}

.photos--wrapper {
    height: 200vw;
}

.space {
    background-color: white;
    height: 300px;
    width: 100%;
}

/* --- СВАЙП СЕКЦИЯ (ИСПРАВЛЕННАЯ) --- */
.swipe-section {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-color: white;
    padding: 0 100px 0 100px;
}

/* КОНТЕЙНЕР: Делаем его на весь экран, но прозрачным для кликов */
.card-stack {
    width: 100%;
    height: 80%;
    display: grid;
    place-items: center; /* Это идеально центрирует фото любого размера */
    position: relative;
    pointer-events: none; /* Чтобы клики проходили сквозь пустые места */
}

/* КАРТОЧКА: Просто обертка вокруг фото */
.card {
    /* 1. РАЗМЕР: Авто, подстраивается под содержимое */
    width: auto;
    height: auto;
    position: absolute; /* Чтобы лежать стопкой */

    /* Убираем жесткие ограничения отсюда */
    display: block;


    will-change: transform;
    cursor: grab;
    pointer-events: auto; /* Включаем клики для самой карточки */

    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);

    /* Важно для мобильных */
    touch-action: none;
}

.card:active {
    cursor: grabbing;
}

/* ФОТО: Оно диктует размеры */
.card img {
    display: block; /* Убираем нижний отступ */

    /* 2. РАЗМЕРЫ: Натуральные размеры фото */
    width: auto;
    height: auto;

    /* 3. ОГРАНИЧЕНИЯ: Вот здесь мы говорим "не будь больше экрана" */
    /* Фото уменьшится, если оно слишком большое, но сохранит пропорции */
    max-width: 80vw;  /* Максимум 80% от ширины экрана */
    max-height: 70vh; /* Максимум 70% от высоты экрана */

    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* --- СОСТОЯНИЯ --- */
.card.is-active {
    z-index: 1000; /* Гарантированно сверху */
}

.card.is-dragging {
    transition: none;
    z-index: 1001 !important;
}

.card.fly-out {
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

@media (max-width: 768px) {
    .photos--title {
        font-size: 40px;
        padding: 0;
    }

    .swipe-section {
        height: 80vh;
    }


}


@media (max-width: 375px) {
    .photos--title {
        font-size: 30px;

    }
    .swipe-section {
        height: 60vh;
    }

    .space {
        height: 100px;
    }
}