:root {
    --dark-blue: #32318a;
    --yellow: #fdf21c;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-dark: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--white);
    background-color: #16162c;
}

/* Отдельный шрифт для всех заголовков на сайте (h1, h2, h3, h4, h5, h6) */
h1, h2 {
    font-family: 'Arial', sans-serif;
    font-weight: 900; /* Обычно заголовкам задают жирное начертание */
}

section {
    /* Высота шапки (~70px) + отступ от верха (15px) + запас */
    scroll-margin-top: 65px;
}

/*заголовок секции*/
.section-title {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 900;
    text-align: center;
}

/*класс, определяющий ширину для всех секций страницы*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/*цвета фона*/
.bg-light {
    background-color: #1a1a32;
}

.bg-dark {
    background-color: #16162c;
}

.bg-footer {
    background-color: #111527
}




/*шапка*/
/*----------------*/
header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background: rgba(50, 49, 138, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 6px 3.6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

/*общий класс для шапки и надписи*/
.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex-shrink: 1;
}
    /*логотип на шапке*/
    .logo-area img {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /*надпись ТЕЛЕАТЕЛЬЕ*/
    .logo-area h2 {
        font-size: 1.32em;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/*располажение адреса на шапке*/
.title-address-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*адрес*/
.header-address {
    font-size: 1em;
    font-weight: bold;
    color: #ffed29;
    white-space: nowrap;
    margin-top: -2px;
}

@media (max-width: 360px) {
    .logo-area h2 {
        display: none;
    }
}

/* стили самого номера */
.copy-phone {
    cursor: pointer;
    color: #ffed29;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.2s;
    user-select: all;
    -webkit-user-select: all;
    white-space: normal; /**/
}

    .copy-phone:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* стили всплывающей подсказки */
.copy-tooltip {
    visibility: hidden;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    border-radius: 14px;
    padding: 5px 10px;
    min-width: 150px;   
    position: absolute;
    z-index: 1;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 750;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

    /* класс, который JS будет добавлять для показа подсказки */
    .copy-tooltip.show {
        visibility: visible;
        opacity: 1;
    }

/*правая часть шапки (номер + кнопка вместе)*/
.header-right {
    display: flex;
    align-items: center;
    gap: 15px; 
}


/*кнопка меню */
.menu-btn {
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1001;
}

    /*3 полоски кнопки*/
    .menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ffffff; 
        border-radius: 3px;
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

        /*позиционирование полосок*/
        .menu-btn span:nth-child(1) {
            top: 0;
        }

        .menu-btn span:nth-child(2) {
            top: 9.5px;
        }

        .menu-btn span:nth-child(3) {
            bottom: 0;
        }

    /*превращение в крестик при открытом меню */
    .menu-btn.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

/*контейнер выпадающего меню */
.dropdown-menu {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(50, 49, 138, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 999;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease-in-out;
    pointer-events: none;
}

    /*класс при открытии*/
    .dropdown-menu.open {
        clip-path: inset(0 0 0 0); 
        pointer-events: auto;
    }

/*внутреннее содержимое меню*/
.dropdown-menu-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-height: 80svh;
    max-height: 80dvh;
    overflow-y: auto;
}

/*навигация*/
.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

    .menu-nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        .menu-nav a:hover {
            color: #ffed29;
        }

/*тонкая белая линия */
.menu-divider {
    width: 60%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 20px 0;
}

/*информация (адрес, время) */
.menu-info {
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .menu-info p {
        margin: 0;
        font-size: 1.15rem; 
        font-weight: 600; 
        line-height: 1.4;
    }

/*большой желтый номер */
.menu-phone {
    color: #ffed29;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.2s;
}

    .menu-phone:hover {
        color: #ffffff;
    }

/*----------------*/




/*начальная секция*/
/*главная секция с заголовком и преимуществами*/
/*----------------*/
.main-hero-section {
    margin-top: 95px;
    color: #ffffff; 
}

    .main-hero-section .container {
        padding-top: 15px;
        padding-bottom: 40px;
    }

/*контент: текст слева, фото справа*/
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px; 
}

/*текстовая часть*/
.hero-text {
    flex: 1;
    text-align: left;
}

/*заголовок*/
.main-title {
    color: yellow; 

    font-weight: 900; 
    text-align: left;
    font-size: clamp(2.8em, 6vw, 4.7em); 

    margin: 0 0 20px 0;
    line-height: 1.1; 
    letter-spacing: -0.02em; 
}

/*текст под заголовком*/
.hero-description {
    text-align: left;
    font-size: 1.2em;
    margin: 0;
    line-height: 1.5;
}

/*фото*/
.hero-image {
    flex: 1;
    max-width: 45%;
}

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/*преимущества*/ 
/*---*/
.hero-advantages {
    display: flex;
    justify-content: center;
}

/*список преимуществ*/
.advantages-list {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
    /*настройки элемента списка (закругленный прямоугольник)*/

    .advantages-list li {
        display: flex;
        align-items: center;
        gap: 15px;
        min-width: 240px; 
        max-width: 280px; 
        min-height: 76px; 
        box-sizing: border-box; 
        padding: 15px 25px;
        border: 2px solid yellow; 
        border-radius: 50px; 
        background-color: transparent; 
        color: #ffffff;
        font-size: 1.2em;
        font-weight: bold;
        line-height: 1.2;
    }

/*иконки преимуществ*/

.adv-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-block;
    background-color: yellow; 
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.icon-tag {
    -webkit-mask-image: url('../media/tag.svg');
    mask-image: url('../media/tag.svg');
}

.icon-shield {
    -webkit-mask-image: url('../media/shield-check.svg');
    mask-image: url('../media/shield-check.svg');
}

.icon-search {
    -webkit-mask-image: url('../media/search.svg');
    mask-image: url('../media/search.svg');
}

.icon-truck {
    -webkit-mask-image: url('../media/truck.svg');
    mask-image: url('../media/truck.svg');
}
/*---*/ 

/*адаптивность для мобильных устройств*/
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column; 
    }

    .hero-image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    

    .advantages-list li {
        flex: 1 1 100%; 
        min-width: auto; 
        max-width: none; 
    }
}
/*----------------*/




/*секция фотографий*/
/* ---------------- */
.photo-gallery-section {
    padding-top: 40px;
    padding-bottom: 80px; /* Увеличено место снизу под кнопки */
}

/* обертка для позиционирования кнопок поверх/под каруселью */
.gallery-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ограничитель видимости: позволяет видеть 3 фото в контейнере, а остальные скрывает/выводит вправо */
.gallery-viewport {
    width: 100%;
    overflow: visible; /* Поменяйте на visible, если нужно, чтобы 4-я и 5-я фотки частично «вылезали» за край экрана */
}

/* контейнер фотографий */
.gallery-track {
    display: flex;
    gap: 20px;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

/* блок отдельной фотографии (ПК: ровно 3 штуки в ширине контейнера с учетом отступов) */
.gallery-item {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 фото на ПК (40px = 2 межэлементных отступа по 20px) */
    border: 3px solid var(--yellow);
    box-sizing: border-box;
}

    /* настройки самой картинки */
    .gallery-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        display: block;
    }

/* Кнопки управления для ПК (расположены снизу по бокам) */
.gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -60px; /* Вынос кнопок под карусель */
    top: auto;
    background-color: #2929db;
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

    /* Левая кнопка снизу слева */
    .gallery-btn.prev-btn {
        left: 0;
    }

    /* Правая кнопка снизу справа */
    .gallery-btn.next-btn {
        right: 0;
    }

    /* Состояние заблокированной кнопки */
    .gallery-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Скрываем точки на ПК */
.gallery-dots {
    display: none;
}

/* ---------------- */
/* мобильная версия */
/* ---------------- */
@media (max-width: 900px) {
    .photo-gallery-section {
        padding-bottom: 40px;
    }

    .gallery-viewport {
        overflow: hidden
    }

    .gallery-track {
        gap: 15px;
    }

    /* Мобилка: 1 фото на весь экран */
    .gallery-item {
        flex: 0 0 100%;
    }

    /* Возвращаем кнопки со стрелками по бокам поверх фото */
    .gallery-btn {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

        .gallery-btn.prev-btn {
            left: -10px;
        }

        .gallery-btn.next-btn {
            right: -10px;
        }

    /* Контейнер круглешочков на мобилке */
    .gallery-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 25px;
    }

    /* Пустой круглешок */
    .gallery-dot {
        width: 12px;
        height: 12px;
        border: 2px solid var(--yellow);
        border-radius: 50%;
        background-color: transparent;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        /* Заполненный круглешок */
        .gallery-dot.active {
            background-color: var(--yellow);
        }
}




/*секция брендов*/
/*----------------*/
.brands-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/*сетка логотипов*/
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/*вытянутый прямоугольник бренда*/
.brand-item {
    background-color: #f0f0f0;
    border-radius: 15px;
    aspect-ratio: 4 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0; /* Убрано внутреннее поле, чтобы картинка заходила на края */
    width: 100%;
}

    /* фотография бренда внутри прямоугольника */
    .brand-item img {
        width: 80%;
        height: 100%;
        object-fit: contain; /* Заполняет весь прямоугольник без искажения пропорций */
        display: block;
        user-select: none;
    }

/*кнопка скрыта на ПК*/
.brands-toggle-btn {
    display: none;
}

/*---*/
/*мобильная версия*/
@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 0;
    }

    /* вертикальный отступ задаем элементам */
    .brand-item {
        margin-bottom: 15px;
    }

        /*прячем элементы начиная с 5-го*/
        .brand-item.mobile-hide {
            max-height: 0;
            opacity: 0;
            padding-top: 0;
            padding-bottom: 0;
            margin-bottom: 0;
            pointer-events: none;
            /*синхронная плавная анимация*/
            transition: max-height 0.4s ease-in-out, padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out, margin-bottom 0.4s ease-in-out, opacity 0.3s ease-in-out;
        }

    /*состояние, когда сетка раскрыта*/
    .brands-grid.show-all .brand-item.mobile-hide {
        max-height: 300px;
        opacity: 1;
        margin-bottom: 15px;
        pointer-events: auto;
    }

    /*настройки кнопки раскрытия*/
    .brands-toggle-btn {
        display: block;
        margin: 10px auto 0;
        background-color: transparent;
        color: #16162c;
        background-color: var(--yellow);
        border: 2px solid var(--yellow);
        padding: 12px 30px;
        font-size: 1.1em;
        font-weight: bold;
        border-radius: 50px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }
}
/*----------------*/




/*секция неисправностей и услуг*/
/*----------------*/
/*общая обертка блоков */
.info-blocks-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    margin-top: 20px;
}

/*настройки закругленных синих прямоугольников */
.info-block {
    background: var(--dark-blue); 
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 0 8px 25px rgba(50, 49, 138, 0.4);
    flex: 1; 
}

/*заголовок внутри прямоугольника */
.block-title {
    color: #ffffff; 
    text-align: center;
    font-size: 20px;
    margin: 0;
    padding-bottom: 15px; 
    border-bottom: 2px solid #ffffff;
}

/* настройка списка */
.info-block ul {
    padding-left: 0;
    margin: 0;
    list-style: none; 
}

    /*настройки каждого пункта */
    .info-block ul li {
        position: relative;
        padding: 12px 0 12px 25px; 
        color: #ffffff;
        font-size: 16px;
        line-height: 1.4;
        display: flex;
        justify-content: space-between;
        align-items: flex-start; 
        text-align: left; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

       
        .info-block ul li:last-child {
            border-bottom: none;
        }

        .info-block ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 20px; 
            width: 8px;
            height: 8px;
            background-color: #ffffff;
            border-radius: 50%;
        }

@media (min-width: 768px) {
    .info-blocks-wrapper {
        flex-direction: row; 
    }
}
/*----------------*/



/*секция "Как мы работаем"*/
/*----------------*/
/* обертка для всех этапов */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}
/* карточка этапа */
.step-card {
    flex: 1;
    
    padding: 20px 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    
}
/* цифра в кружке */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--dark-blue);
    border: 2px solid var(--yellow); 
    border-radius: 50%;
    color: #ffffff; 
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    flex-shrink: 0;
}
/* контейнер для заголовка и текста */
.step-content {
    display: flex;
    flex-direction: column; 
    width: 100%;
}
/* название шага */
.step-title {
    font-size: 1.3em; 
    font-weight: 750;
    color: #ffffff; 
    margin-bottom: 8px;
    text-align: left;
}
/* описание шага */
.step-desc {
    font-size: 0.95em;
    font-weight: normal;
    color: #ffffff; 
    line-height: 1.4;
    text-align: left;
    margin-top: auto; 
}
/* переход в вертикальный вид на мобильных устройствах */
@media (max-width: 768px) {
    .steps-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    /* перестроение карточки в горизонтальный вид */
    .step-card {
        flex-direction: row; 
        gap: 15px;
        align-items: flex-start;
    }
    /* убираем нижний отступ у цифры, так как контент теперь сбоку */
    .step-number {
        margin-bottom: 0;
    }
    /* меняем порядок: текст над заголовком */
    .step-content {
        flex-direction: column;
        justify-content: flex-start;
    }
    /* отступ теперь сверху, чтобы отделить текст от заголовка под ним */
    .step-title {
        margin-bottom: 0;
        margin-top: 8px;
    }
}
/*----------------*/




/*секция контактов*/
/*----------------*/
/*обертка для кнопок*/
.contacts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
/*базовая очень закругленная кнопка*/
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 300px;
    padding: 16px 32px;
    border-radius: 50px; 
    text-decoration: none;
    font-size: 1.6em;
    font-weight: 700;
    color: #ffffff; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
/*кнопка 2ГИС*/
.btn-2gis {
    background-color: #2e8b57; 
}
/*кнопка Авито*/
.btn-avito {
    background-color: #000000; 
}

/*иконка внутри кнопки*/
.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
/*адаптация под узкие экраны телефонов*/
@media (max-width: 500px) {
    .contact-btn {
        width: 100%;
        max-width: 100%;
    }
}
/*----------------*/




/*секция отзывов из 2ГИС*/
/*----------------*/
.reviews-iframe {
    width: 100%;
    max-width: 528px;
    height: 800px;
    display: block;
    margin: 0 auto;
    border: none;
}


@media (max-width: 576px) {
    .reviews-iframe {
        height: 600px;
    }
}
/*----------------*/




/*секция номера телефона*/
/*----------------*/

/* контейнер для выравнивания по центру */
.phone-copy-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0; 
    text-align: center;
}

/* кнопка с номером телефона */
.phone-copy-btn {
    background-color: #39396f;
    color: #ffffff;
    font-size: 36px;
    font-weight: 900;
    padding: 25px 50px;
    border-radius: 50px;
    border: 3px solid var(--yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
}

    .phone-copy-btn:hover {
        transform: translateY(-2px);
        /*box-shadow: 0 6px 20px rgba(41, 98, 255, 0.2);*/
    }

    .phone-copy-btn.clicked {
        background-color: #ffffff;
        color: #1a1a32;
    }

.phone-copy-hint {
    color: #ffffff;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 0px;
    font-weight: 500;
    transition: color 0.3s ease;
}


/* закругленный блок с информацией о курьере */
.courier-block {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #5c1414; 
    border: 2px solid #330a0a; 
    border-radius: 15px; 
    padding: 12px 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* большой восклицательный знак */
.courier-icon {
    font-size: 36px;
    font-weight: 900;
    color: #d94a4a; 
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

/* текст про курьера */
.courier-text {
    color: #ffffff; 
    font-size: 16px;
    font-weight: 600;
    text-align: left; 
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .phone-copy-btn {
        font-size: 28px;
        padding: 20px 30px;
    }
}
/*----------------*/




/*секция подвала*/
/*----------------*/
footer {
    padding: 30px 20px;
    text-align: center;
    font-weight: bold;
}

/*контейнер для двух колонок*/
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* первый столбец */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    flex: 1;
}
    /*настройка для тега <p>*/
    .footer-info p {
        margin: 0;
        color: #c3c3ee;
        font-size: 0.95em;
    }

    .footer-info .footer-copyright {
        color: #ffffff;
        font-size: 1.1em;
    }


/* ссылка на номер телефона в подвале */
.footer-phone-link {
    color: #7575fa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .footer-phone-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* второй столбец  */
.footer-legal {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
    flex: 1;
}

    .footer-legal p {
        margin: 0;
        color: #ffffff;
        font-size: 0.85em;
        line-height: 1.5;
    }


/* адаптивность для мобильных устройств  */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-info,
    .footer-legal {
        align-items: center;
        text-align: center;
    }
}
/*----------------*/




/*media-запросы*/
@media (max-width: 500px) {
    header {
        padding: 5px 8px;
    }

    .logo-area {
        gap: 4px;
    }

        .logo-area img {
            width: 36px;
            height: 36px;
        }

        .logo-area h2 {
            font-size: 0.73em;
        }

    .header-address {
        font-size: 0.75em;
    }

    .copy-phone {
        font-size: 0.70em;
        margin-left: 6px;
    }

    .wide-card {
        font-size: 1em;
        padding: 15px 10px;
    }

    .srv-left {
        padding-right: 5px;
    }

    .srv-right {
        padding-left: 5px;
        flex: 0 0 120px;
    }

    .carousel-wrapper {
        max-width: 100%;
        height: 200px;
    }

    .carousel-item {
        width: 150px;
        height: 150px;
    }
}



/* скрытый элемент */
.visually-hidden {
    position: absolute;
    left: -9999px;
}

