@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;
}

/* 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%;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}



body {
    margin: 0;
    font-family: sans-serif;
    background-color: #000;
    color: white;
}


.main-menu {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.main-menu a {
    font-size: 16px;
    font-family: "RobotoRegular";
}

.main-menu a:last-child {
    color: #BE0000;
}

.main--title {
    text-align: center;
    align-self: center;
    justify-self: center;


    font-size: 60px;
    font-weight: normal;
    font-family: "Vetrino"


}

body {
    margin: 0;
    padding: 0;
    background-color: #000; /* Черный фон */
    color: #fff; /* Белый текст */
    font-family: sans-serif;
}

.main-screen {
    position: relative;
    width: 100%;
    height: 100vh; /* На весь экран */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Хедер вверху, футер внизу */
    padding: 23px 120px;
    box-sizing: border-box;
}

/* --- ШАПКА --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-family: "RobotoRegular";
}
.main-menu a:hover { opacity: 1; }

/* --- ЦЕНТРАЛЬНАЯ ЧАСТЬ --- */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Идеальное центрирование */
    width: 100%;

    display: grid;
    place-items: center;
}

/* Контейнер для фото */
.photo-wrapper {
    grid-area: 1 / 1; /* Кладем в ту же ячейку сетки */
    z-index: 2;
    position: relative;
}

/* Сама картинка */
#changing-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем фото, чтобы заполнить блок */
    opacity: 0;
    z-index: 5;
    transition: opacity 1s ease-in-out; /* Плавное исчезновение */

}

/* Текст заголовка */
.hero-title {
    grid-area: 1 / 1; /* Кладем в ту же ячейку, что и фото */
    width: 100%;
    text-align: center;
    margin: 0;

    display: flex;
    flex-direction: row; /* В одну строку (или column для двух) */
    justify-content: center;
    gap: 20px;

    /* Смешивание цветов (опционально, чтобы текст красиво ложился на фото) */
    mix-blend-mode: normal;
    color: rgba(255, 255, 255, 0.9);

    font-family: "Vetrino";
    font-size: 80px;
}

.title-back {
    z-index: 1; /* Самый нижний слой */
    color: #fff; /* Полностью белый */
    opacity: 1;
}

/* --- СЛОЙ 3: ПЕРЕДНИЙ ТЕКСТ --- */
.title-front {
    z-index: 3; /* Самый верхний слой */

    /* Ваш запрос: прозрачность 0.8 */
    color: rgba(255, 255, 255, 0.7);

    /* ОПЦИОНАЛЬНО: Эффект "Outline" (контур), который часто делают в таких случаях.
       Если захотите только контур поверх фото - раскомментируйте строчки ниже: */
    /*
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    */
}

/* Текст заголовка */
.hero-title {
    position: absolute; /* Поверх фото */
    width: 100%;
    text-align: center;
    margin: 0;

    display: flex;
    flex-direction: row; /* В одну строку (или column для двух) */
    justify-content: center;
    gap: 20px;

    /* Смешивание цветов (опционально, чтобы текст красиво ложился на фото) */
    mix-blend-mode: normal;

    font-family: "Vetrino";
    font-size: 80px;
}

/* --- ФУТЕР (Красные ссылки) --- */
.hero-footer {
    display: flex;
    justify-content: flex-end; /* Прижать вправо */
    gap: 20px;
    z-index: 10;
}

.hero-footer a {
    color: #b30000; /* Темно-красный цвет как на макете */
    text-decoration: none;
    font-family: "Vetrino";
    font-size: 30px;
}

.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;
}

.small--about {
    padding: 142px 120px 0 120px;
}

.small--about--wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;

    font-family: "Vetrino";
    font-size: 35px;
    text-align: center;

    margin-bottom: 100px;

.small--about--description {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small--about--description h2 {
    font-family: "Vetrino";
    font-size: 26px;
    max-width: 445px;
    text-align: center;
    padding-right: 50px;
}

.small--about--wrapper img {
    grid-column: 2 / -1;
    width: 100%;}
}

.small--about h3 {
    font-family: "Vetrino";
    font-size: 23px;
    text-align: center;
    align-self: center;
    margin-top: 15px;
}


.about--cards {
    display: flex;
    justify-content: space-between;
    margin-top: 151px;
}

.about--cards p {
    font-family: "Vetrino";
    font-size: 25px;
    margin-top: 25px;
    text-align: center;
}

.card--about--1 {
    margin-right: 10px;
}

.card--about--2 {
    margin-right: 10px;
}



/* 1. РОДИТЕЛЬ */
.intro-section-2 {
    position: relative; /* Это делает блок "якорем" для текста */
    width: 100%;
    margin: 132px 0 97px 0;
    /* Высоту не задаем! Она растянется по картинке */
}

/* 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-top: 20px;

    font-size: 35px;
}

.review-name {
    font-family: "RobotoRegular";
    font-size: 21px;
    margin-top: 13px;
}


.merits {
    background-color: white;
    color: black;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 40px 40px 128px 40px;
}

.merits h2 {
    font-family: "Vetrino";
    font-size: 32px;
    width: 100%;
    text-align: center;
}

.merits p {
    font-family: "Vetrino";
    font-size: 20px;
    border-left: 1px solid black;
    margin-top: 64px;
    padding-left: 8px;
    margin-right: 50px;
    margin-left: 50px;
}

.merit-col {
    width: 50%;
    display: flex;
    justify-content: center;
}

.last--section {
    background-color: black;
    color: white;
    padding: 142px 120px 0 120px;
}


.footer-hover {
    position: relative;
    width: 100%;
    background-color: black;
    overflow: hidden;
    padding-top: 221px;
}

.footer__contacts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 60%;

    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: white;
}

.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: 32px;
    color: white;
}

.footer__socials {
    display: flex;
    gap: 20px;
}

.footer__socials a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-family: "Vetrino";
    font-size: 32px;
}

.footer__col--right span {
    text-transform: uppercase;
    font-family: "Vetrino";
    font-size: 32px;
    color: #BE0000;
    cursor: pointer;
}

.last--about--wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}

.last--about--wrapper h2 {
    font-family: "Vetrino";
    font-size: 26px;
    max-width: 445px;
    text-align: center;
    padding-right: 50px;
}

.last--about--description {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.last--about--description img {
    grid-column: 2 / -1;
    width: 100%;
}

/* 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);
}


/* --- PRELOADER STYLES --- */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Поверх всего, даже модалок */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Чтобы после скрытия через него можно было кликать */
}

/* Шторки (черный фон) */
.loader-curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 51%; /* Чуть больше 50%, чтобы не было щели в центре */
    background: #000;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); /* Красивая инерция */
}

.loader-curtain.top {
    top: 0;
    transform-origin: top;
}

.loader-curtain.bottom {
    bottom: 0;
    transform-origin: bottom;
}

/* Белая линия */
.loader-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0; /* Изначально ширины нет */
    height: 1px; /* Очень тонкая */
    background: #fff;
    z-index: 10001;
    transform: translateY(-50%);
    transition: width 0.5s ease-in-out, opacity 0.2s;
}

/* --- КОНТЕЙНЕР --- */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: grid;
    place-items: center;
    grid-template-areas: "stack";
}

/* --- ФОТО --- */
.photo-wrapper {
    grid-area: stack;
    z-index: 2;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-center.anim-finished .photo-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* --- ТЕКСТ (ГЛАВНЫЕ ИЗМЕНЕНИЯ) --- */
.hero-title {
    grid-area: stack;
    margin: 0;
    font-family: "Vetrino", sans-serif;
    font-size: 80px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    will-change: transform, background-position;

    /* == МАГИЯ ЗАЛИВКИ == */
    color: transparent;
    -webkit-text-fill-color: transparent; /* Обязательно */
    -webkit-background-clip: text;
    background-clip: text;

    /* Размер фона: 200% ширины (чтобы вместить и тусклую, и яркую часть) */
    background-size: 200% 100%;

    /* Начальная позиция: 100% (Мы видим правую, ТУСКЛУЮ половину) */
    background-position: 100% 0;

    /* Начальный размер текста */
    transform: scale(1.2);
}

/* Специфика для ЗАДНЕГО текста (Чистый белый)
   Левая половина (50%): #FFFFFF (Яркий)
   Правая половина (50%): rgba(255,255,255, 0.1) (Тусклый, 10%)
*/
.title-back {
    z-index: 1;
    background-image: linear-gradient(90deg, #FFFFFF 50%, rgba(255,255,255,0.1) 50%);
}

/* Специфика для ПЕРЕДНЕГО текста
   Левая половина: 0.7 (Ваш дизайн)
   Правая половина: 0.1 (Тусклый старт)
*/
.title-front {
    z-index: 3;
    background-image: linear-gradient(90deg, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.1) 50%);
}

/* --- ЗАПУСК АНИМАЦИИ --- */
.hero-center.anim-start .hero-title {
    /* 1. fillLight: Заливка светом (2.5 сек)
       2. textShrink: Уменьшение (1.5 сек) - стартует через 2.5 сек
    */
    animation:
            fillLight 10s cubic-bezier(0.19, 1, 0.22, 1) forwards,
            textShrink 2s cubic-bezier(0.19, 1, 0.22, 1) forwards 1.8s; /* Чуть раньше конца заливки, для плавности */
}

.header,
.hero-footer {
    opacity: 0;             /* Полностью прозрачные */
    pointer-events: none;   /* Чтобы нельзя было нажать на невидимые кнопки */
    transition: opacity 1.5s ease; /* Плавное появление за 1.5 сек */
}

/* --- КЛАСС ДЛЯ ПОЯВЛЕНИЯ --- */
/* Этот класс мы добавим через JS, когда анимация текста закончится */
body.interface-visible .header,
body.interface-visible .hero-footer {
    opacity: 1;
    pointer-events: all;
}

/* КЛЮЧЕВЫЕ КАДРЫ */

/* Двигаем фон справа налево */
@keyframes fillLight {
    from {
        background-position: 100% 0; /* Видим тусклую часть */
    }
    to {
        background-position: 0 0;    /* Видим яркую часть */
    }
}

/* Уменьшаем масштаб */
@keyframes textShrink {
    from {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
    }
}


@media (max-width: 1024px) {
    .main-screen {
        padding: 23px 60px;
    }
    .hero-title {
        font-size: 60px;
    }

    .banner-content img {
        width: 75px;
    }

    .banner-content h2 {
        margin-top: 10px;
        font-size: 25px;
    }

    .review-name {
        font-size: 18px;
        margin-top: 6px;
    }


    .footer__phone {
        font-size: 22px;
    }

    .footer__socials a {
        font-size: 22px;
    }

    .footer__col span {
        font-size: 22px;
    }

    .small--about {
        padding: 75px 60px;
    }

    .last--section {
        padding: 75px 60px;
    }

}

@media (max-width: 768px) {
    .main-screen {
        padding: 20px 35px;
    }
    .logo {
        width: 33px;
    }
    .logo img {
        width: 100%;
    }

    .main-menu a {
        font-size: 18px;
    }

    .main-menu a:not(:last-child) {
        display: none; /* Скрываем их */
    }

    .hero-title {
        font-size: 48px;
    }

    #changing-photo {
        width: 200px;
    }

    .hero-footer {
        justify-content: center;
    }
    .hero-footer a {
        font-size: 21px;
    }

    .main-menu {
        display: none;
    }

    /* Показываем кнопку бургер */
    .burger-btn {
        display: block;
    }

    .small--about {
        padding: 31px 20vw 31px 20vw;
    }

    .small--about--description h2 {
        padding-right: 0;
    }

    .small--about--wrapper .small--about--description h2 {
        font-size: 20px;
        max-width: 409px;
        padding: 16px 0 0 0;
    }

    .small--about--wrapper {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        padding-bottom: 60px;
    }

    .about--cards {
        flex-direction: column;
        align-items: center;
    }

    .about--cards p {
        margin-top: 18px;
    }

    .card--about--1 {
        margin: 36px 0 0 0;
    }
    .card--about--2 {
        margin: 36px 0 0 0;
    }
    .card--about--3 {
        margin: 36px 0 0 0;
    }


    .merits {
        flex-direction: column;
        padding: 20px;
        padding-bottom: 40px;
    }

    .merit-col {
        width: 100%;
        justify-content: flex-start;
    }

    .merits--block p {
        font-size: 18px;
    }

    .last--section {
        padding: 31px 20vw 31px 20vw;
    }

    .last--about--description h2 {
        padding-right: 0;
    }

    .last--about--wrapper .last--about--description h2 {
        font-size: 20px;
        max-width: 409px;
        padding: 16px 0 0 0;
    }

    .last--about--wrapper {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        padding-bottom: 60px;
    }

    .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%;
    }

    .small--about h3 {
        text-align:left;
        border-left: 1px solid white;
        padding-left: 8px;
    }
}

@media (max-width: 375px) {
    .main-screen {
        padding: 13px 20px;
    }

    .small--about h3 {
        font-size: 18px;
        margin: 80px 20px 0 20px;
    }



    .small--about {
        padding: 29px 0 0 0;
    }

    .small--about {
        padding-bottom: 31px;
    }

    .small--about--wrapper .small--about--description h2 {
        font-size: 20px;
        max-width: 260px;
        padding: 16px 0 0 0;
    }

    .small--about--wrapper {
        padding-bottom: 35px;
        margin-bottom: 30px;
    }

    .last--section {
        padding: 29px 0 0 0;
    }

    .last--about {
        padding-bottom: 31px;
    }

    .last--about--wrapper .last--about--description h2 {
        font-size: 20px;
        max-width: 260px;
        padding: 16px 0 0 0;
    }

    .last--about--wrapper {
        padding-bottom: 35px;
    }

    .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;
    }

    .banner-content img {
        width: 60px;
    }

    .review-name {
        font-size: 16px;
    }

    .banner-content h2 {
        margin-top: 20px;
    }

    .intro-section-2 {
        margin-top: 80px;
        margin-bottom: 115px;
    }

    .last--section {
        padding: 0 0 40px 0;
    }

    .about--cards {
        margin-top: 30px;
    }

    .about--cards img {
        width: 100%;
    }

    .card--about--1 {
        width: 100%;
    }

    .card--about--2 {
        width: 100%;
    }

    .card--about--3 {
    width: 100%;
}

    .small--about h3 {
        margin-top: 31px;
    }

    .merits--block p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-title {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {

    .hero-title {
        /* 1. Разрешаем перенос строк */
        white-space: normal;

        /* 2. Уменьшаем размер шрифта (80px для телефона это слишком много) */
        font-size: 40px;

        /* 3. Делаем межстрочный интервал поменьше, чтобы строки были ближе */
        line-height: 1.1;

        transform: scale(1.15);
        margin: 0 20px 0 20px;
    }
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ --- */

/* Начальное состояние: скрыто и спущено вниз */
.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; }


