body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, serif;
}

.open {
    display: flex !important;
}

header {
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff; /* Set the background color as needed */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for a subtle effect */
}

header .logo {
    height: auto;
    width: 65px;
    float: left;
    margin-left: 5%;
}

#firm_name {
    display: inline-block;
    text-decoration: none;
    font-weight: bolder;
    float: left;
    color: black;
    vertical-align: middle;
    margin: 12px 0;
    font-size: 32px;
}

.burger {
    display: none;
    float: right;
    margin-right: 5%;
    margin-top: 20px;
    position: relative;
    z-index: 50;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    height: 18px;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: black;
    transition: all 0.3s ease 0s;
}

.burger span {
    height: 2px;
    width: 100%;
    transform: scale(1);
    background-color: black;
}

.burger::before {
    top: 0;
}

.burger::after {
    bottom: 0;
}

/* Добавляем класс active для анимации иконки бургера */
.burger.active span {
    transform: scale(0);
}

.burger.active::before {
    top: 50%;
    transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after {
    bottom: 50%;
    transform: rotate(45deg) translate(0, 50%);
}


.navbar {
    float: right;
    font-family: Montserrat, serif;
    font-weight: 500;
    font-size: larger;
    color: black;
    text-decoration: none;
    margin-right: 5%;
    margin-top: 20px;
}

.navbar a {
    text-decoration: none;
    color: inherit;
    vertical-align: middle; /* Выравнивание элементов по вертикали */
}

.navbar a:not(:last-child)::after {
    display: flex;
    content: "|"; /* Add the separator content */
    margin-left: 10px; /* Adjust the space between link and separator */
    color: black; /* Color of the separator */
    display: inline-block; /* Make sure the separator is inline with the text */
    vertical-align: middle; /* Выравнивание элементов по вертикали */
}

.navbar a:hover {
    font-weight: bold;
}

.navbar a:hover::after {
    font-weight: 500; /* To ensure the separator doesn't get bold on hover */
}

.num-icon {
    max-width: 20px; /* Максимальная ширина логотипа */
    height: auto; /* Сохраняем пропорции */
    vertical-align: middle; /* Выравнивание элементов по вертикали */
}

@media (max-width: 1200px) {
    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        display: none; /* Скрываем первый, второй и третий элементы в мобильной версии */
    }
}

@media (max-width: 1100px) {
    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        display: none; /* Скрываем первый, второй и третий элементы в мобильной версии */
    }

    .logo {
        width: 55px; /* Максимальная ширина логотипа */
        height: auto; /* Сохраняем пропорции */
        margin-left: 5%; /* Отступ слева от логотипа */
    }

    #firm_name {
        font-size: 26px;
        margin: 16px 0;
    }
}

@media (max-width: 950px) {

    .navbar a:nth-child(3) {
        display: none; /* Скрываем первый, второй и третий элементы в мобильной версии */
    }

}

@media (max-width: 768px) {
    .navbar {
        width: 100%; /* Занимаем всю доступную ширину */
        float: left;
        margin-left: 5%;

        display: none;
        flex-direction: column;

        margin-bottom: 20px; /* Увеличиваем отступы между элементами */
        font-size: 24px;
    }

    .navbar a:not(:last-child)::after {
        content: none; /* Убираем разделитель для мобильной версии */
        margin-left: 0; /* Убираем отступ разделителя для мобильной версии */
    }

    .navbar a:nth-child(1),
    .navbar a:nth-child(2),
    .navbar a:nth-child(3) {
        display: none; /* Скрываем первый, второй и третий элементы в мобильной версии */
    }

    .logo {
        width: 60px; /* Максимальная ширина логотипа */
        height: auto; /* Сохраняем пропорции */
        margin-left: 5%; /* Отступ слева от логотипа */
    }

    #firm_name {
        font-size: 24px;
        margin: 16px 0;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 360px) {
    #firm_name {
        font-size: 20px;
        margin: 18px 0;
    }
}

main {
    width: 100%; /* Ширина main будет 100% от родительского контейнера */
    margin-top: 65px;
}

hr {
    margin-top: 0;
}

/*Footer*/
footer {

    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.line {
    width: 90%; /* Ensure the line spans the full width */
    margin: 20px 0;
}

.footer_fst {
    margin: 0;
    padding: 0;
    text-align: center; /* Changed from vertical-align to text-align */
}

.footer-container {
    display: flex;
    justify-content: space-around; /* Adjust this value */
    width: 100%;
}


.contact h3,
.navigation h3 {
    margin: 0 0 20px 0;
    padding: 0;
    align-self: start;
}

.contact,
.navigation {

    display: flex;
    align-items: start;
    flex-direction: column;
}

.contact a, .contact p,
.navigation a {
    margin: 0 0 10px 0;
    padding: 0;
    color: white;
    text-align: left;
    text-decoration: none;
    font-size: 18px;
}

.contact a img, .contact p img,
.navigation a img {
    margin: 0 10px 0 0;
}

.social-icons {
    align-items: center;
    margin: 0 0 10px 0;
    gap: 5px;
    display: flex;
}


.social-icons a {
    margin: auto;
}

/**{*/
/*    border: 1px red solid;*/
/*}*/
.footer2 {
    color: white;
    margin: 0;
    bottom: 0;
    /*height: 70px;*/
    width: 100%;
    background-color: #050b20;
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
}

.mobile-container {
    display: none;
}


.desktop-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.desktop-container .property {
    margin: 0 2%;
}

.footer2 .desktop-container .property p {
    margin: 0;
}

.footer2 .desktop-container .text-container {
    display: flex;
    align-items: flex-end;
}

.footer2 .text-container img {
    margin-left: 2%;
}

.text-container {
    width: 50%;
}

.text-container p {
    margin-left: 0.5%;
    margin-bottom: 5px;
}

@media (max-width: 451px) {
    .desktop-container {
        display: none;
    }

    .mobile-container {
        display: flex;
        align-items: center;
    }

    .text-container {
        width: 100%;
        margin: 2% 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-container img {
        margin-left: 0.5%;
        height: 100px;
        width: auto;
    }

    .mobile-container p {
        margin: 0;
    }

}

@media (max-width: 500px) {
    .left h2, .right h2 {
        font-size: 1.1em;
    }
}


@media (max-width: 480px) {
    .line {
        display: none;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .contact a, .contact p,
    .navigation a {
        color: white;
        /*text-align: left;*/
        /*text-decoration: none;*/
        font-size: 20px;

    }

    footer {
        align-items: start;
    }

    .footer_fst {
        padding: 10px 40px;
    }

    .contact,
    .navigation {
        display: flex;
        flex-direction: column;
    }

    .contact h3,
    .navigation h3 {
        font-size: 24px;
        margin: 20px 0 10px 0;
        text-transform: uppercase;
    }

    .contact a, .contact p,
    .navigation a {
        font-size: 22px;


    }

}


/*ГЛАВНАЯ*/
/*news*/

.news {
    display: flex;
    align-items: center;
}

.autoplay_news, .single-image {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.slick-slide img, .single-image img {
    margin: 0;
    padding: 0;
    width: 100%; /* Заставляет изображение занимать всю ширину слайда */
    height: auto; /* Сохраняет пропорции изображения */
    object-fit: cover; /* Если изображение имеет другой соотношение сторон, оно будет обрезано по размеру слайда */
}

/*scd*/

.scd h1 {
    font-size: 26px;
    font-weight: 400;
    text-align: center
}

.container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.container p {
    width: 70%;
    color: #0A1947;
    font-size: 20px;
    text-align: center;

}


/*.left h2,*/
/*.left p {*/
/*    margin-left: 40%;*/
/*    color: #0A1947;*/
/*    margin-bottom: 30px;*/
/*    text-align: justify;*/
/*    width: 60%;*/
/*    padding-right: 20px;*/
/*}*/

/*.right p {*/
/*    color: #0A1947;*/
/*    margin-bottom: 30px;*/
/*    text-align: justify;*/
/*    width: 60%;*/
/*    padding-left: 20px;*/
/*}*/

/*.right h2 {*/
/*    color: #0A1947;*/
/*    margin-bottom: 30px;*/
/*    text-align: justify;*/
/*    width: 48%;*/
/*    padding-left: 20px;*/
/*}*/

/*.container {*/
/*    display: flex;*/
/*    flex-wrap: wrap; !* Позволяет элементам переноситься на новую строку *!*/
/*}*/

/*.left,*/
/*.right {*/
/*    width: 50%; !* Изначально ширина 50% для десктопа *!*/
/*}*/

/*@media (max-width: 850px) {*/
/*    .left h2,*/
/*    .left p {*/
/*        margin-left: 20%;*/
/*        width: 80%;*/
/*    }*/

/*    .right p {*/
/*        width: 80%;*/
/*    }*/

/*    .right h2 {*/
/*        width: 68%;*/
/*    }*/
/*}*/

/*!* Стили для мобильных устройств *!*/
/*@media (max-width: 768px) {*/
/*    .container {*/
/*        display: flex;*/
/*        flex-direction: column; !* Вертикальное расположение элементов *!*/
/*    }*/

/*    .left,*/
/*    .right {*/
/*        width: 100%; !* Устанавливаем 100% ширину для мобильных устройств *!*/
/*        text-align: center; !* Центрируем текст *!*/

/*    }*/

/*    .left h2,*/
/*    .right h2 {*/
/*        width: 90%; !* Устанавливаем 100% ширину для мобильных устройств *!*/
/*        margin: 0;*/
/*        padding: 10px 5%;*/
/*        text-align: center;*/
/*    }*/

/*    .left p,*/
/*    .right p {*/
/*        width: 90%; !* Устанавливаем 100% ширину для мобильных устройств *!*/
/*        margin: 0;*/
/*        padding: 10px 5%;*/

/*    }*/
/*}*/


/*third*/
.thd h2 {
    font-weight: bold;
    text-align: center;
    color: #0A1947;
}

.autoplay {
    width: 100%;
    padding: 0;
    position: relative;
}

.slick-slide img {
    margin: 0;
    padding: 0;
    width: 100%; /* Заставляет изображение занимать всю ширину слайда */
    height: auto; /* Сохраняет пропорции изображения */
    object-fit: cover; /* Если изображение имеет другой соотношение сторон, оно будет обрезано по размеру слайда */
    transition: opacity 0.3s ease;
}

.carousel-item {
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.carousel-item:hover .carousel-overlay {
    opacity: 1;
}

.carousel-item:hover {

    background-color: rgba(0, 0, 0, 0.4);
}

.text {
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    font-size: 40px;
    margin-bottom: 10px;
}

/* Отключение эффекта hover на устройствах с сенсорными экранами */
@media (hover: none) and (pointer: coarse) {
    .carousel-item:hover .carousel-overlay {
        opacity: 0; /* Отключаем появление наложения */
    }

    .carousel-item:hover {
        filter: none; /* Убираем затемнение */
        background-color: transparent; /* Возвращаем фон в исходное состояние */
    }

    .text {
        display: none;
    }
}

/*four*/

.four {
    width: 100%;

    display: flex;
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
}

.socials {
    /*float: left;*/
    width: 100%;

    text-align: center;

}

.socials a {
    position: relative;
    display: inline-block;
    overflow: hidden; /* Обрезаем все, что выходит за границы элемента */


}

.socials a img {
    display: block;
    transition: transform 0.5s ease; /* Анимация для основного изображения */

}

.socials h1, .property h1 {
    font-weight: 400;
    text-align: center
}


.socials-hr {
    font-size: 26px;
    text-align: center;
    color: black;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.socials-hr {
    width: 100%;
    position: relative;
    text-align: center;
}

.socials-hr:before {
    content: " ";
    height: 1px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
}

.socials-hr:after {
    content: " ";
    height: 1px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
}

.socials-hr:before, .socials-hr:after {
    width: 40%;
}


/* Скрываем псевдоэлемент по умолчанию */
.socials a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: left 0.3s ease; /* Анимация движения слева-направо */
    z-index: 1;
}

/* VK */
.socials a[href*="vk.com"]::before {
    background: url("/static/img/main/home/four/vkontakte-hover.svg");
}

/* Telegram */
.socials a[href*="t.me"]::before {
    background: url("/static/img/main/home/four/telegram-hover.svg");
}

/* WhatsApp */
.socials a[href*="wa.me"]::before {
    background: url("/static/img/main/home/four/whatapp-hover.svg");
}

/* Instagram */
.socials a[href*="instagram.com"]::before {
    background: url("/static/img/main/home/four/instagram-hover.svg");
}

/* Эффект наведения */
.socials a:hover img {
    transform: translateX(100%); /* Сдвиг основного изображения вправо */
}

.socials a:hover::before {
    left: 0; /* Плавный сдвиг псевдоэлемента на место изображения */
}




/*.socials,*/
/*.property {*/
/*    width: 50%; !* Ширина 50% для настольных устройств *!*/
/*}*/


@media (max-width: 1055px) {
    .socials-hr:before, .socials-hr:after {
        width: 38%;
    }
}

@media (max-width: 955px) {
    .socials-hr:before, .socials-hr:after {
        width: 36%;
    }

    .socials a img {
        width: 130px;
    }

    .socials a[href*="vk.com"]::before {
        background-size: 130px;
    }

    .socials a[href*="t.me"]::before {
        background-size: 130px;
    }

    .socials a[href*="wa.me"]::before {
        background-size: 130px;
    }

    .socials a[href*="instagram.com"]::before {
        background-size: 130px;
    }

}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .socials-hr:before, .socials-hr:after {
        width: 36%;
    }

    .socials {
        order: 1; /* Соцсети идут первыми */
    }

    .socials a img {
        width: 110px;
    }

    .socials a[href*="vk.com"]::before {
        background-size: 110px;
    }

    .socials a[href*="t.me"]::before {
        background-size: 110px;
    }

    .socials a[href*="wa.me"]::before {
        background-size: 110px;
    }

    .socials a[href*="instagram.com"]::before {
        background-size: 110px;
    }
}

@media (max-width: 480px) {
    .four {
        flex-direction: column; /* Располагаем элементы по вертикали */
    }
    .socials a img {
        width: 120px;
    }

    .socials a[href*="vk.com"]::before {
        background-size: 120px;
    }

    .socials a[href*="t.me"]::before {
        background-size: 120px;
    }

    .socials a[href*="wa.me"]::before {
        background-size: 120px;
    }

    .socials a[href*="instagram.com"]::before {
        background-size: 120px;
    }
    .socials-hr:before, .socials-hr:after {
        width: 28%;
    }
}
@media (max-width: 361px) {
    .four {
        flex-direction: column; /* Располагаем элементы по вертикали */
    }
    .socials a img {
        width: 110px;
    }

    .socials a[href*="vk.com"]::before {
        background-size: 110px;
    }

    .socials a[href*="t.me"]::before {
        background-size: 110px;
    }

    .socials a[href*="wa.me"]::before {
        background-size: 110px;
    }

    .socials a[href*="instagram.com"]::before {
        background-size: 110px;
    }
    .socials-hr:before, .socials-hr:after {
        width: 28%;
    }
}

@media (max-width: 320px) {
    .four {
        flex-direction: column; /* Располагаем элементы по вертикали */
    }
    .socials a img {
        width: 160px;
    }

    .socials a[href*="vk.com"]::before {
        background-size: 160px;
    }

    .socials a[href*="t.me"]::before {
        background-size: 160px;
    }

    .socials a[href*="wa.me"]::before {
        background-size: 160px;
    }

    .socials a[href*="instagram.com"]::before {
        background-size: 160px;
    }
    .socials-hr:before, .socials-hr:after {
        width: 28%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .socials a:hover img {
        transform: none; /* Отключаем сдвиг изображения на сенсорных экранах */
    }

    .socials a:hover::before {
        left: -100%; /* Отключаем появление псевдоэлемента на сенсорных экранах */
    }
}


/*map*/
.map {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 0;
    padding: 0;
}

.map iframe {
    width: 100%;
    height: 500px; /* Высоту можно настроить по вашему усмотрению */
    border: none;
    margin: 0;
    padding: 0;
}


/*ПРАЙС*/
#price-header {
    margin: 0;
    padding: 1% 0 1% 0;
    font-size: 30px;
    text-align: center;
    color: #000000;
    width: 100%;
    position: relative;
}

@media (max-width: 451px) {
    #price-header {
        font-size: 24px;
        padding: 2% 0;
    }

}

li {
    list-style-type: none; /* Убираем маркеры */
}

.list {
    margin: 0 10% 2% 10%;
    text-align: center;
}

#td2 {
    width: 40%;
}

#td1 {
    padding-left: 10%;
    width: 50%;
    text-align: left;
}

.category_name {
    position: relative;
    font-size: 26px;
    text-align: center;
    color: #173494;
}

#prim {
    position: relative;
    font-size: 22px;
    text-align: center;
    color: black;
}


.service {
    font-size: 22px;
    width: 100%;
    font-weight: 500;
}

.category {
    border-top: #0A1947 solid 2px;
}

.category:nth-child(1) {
    border: none;
}

ul {
    margin: 0;
    padding: 0;
}

@media (max-width: 748px) {
    .service {
        font-size: 18px;
    }

    .category_name {
        font-size: 22px;
    }

    #prim {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .service {
        font-size: 16px;
        border-bottom: black dashed 1px;
    }

    .category_name {
        font-size: 20px;
    }

    #prim {
        font-size: 14px;
    }

}

/*КАТАЛОГ*/
/*.catalog_nav{*/
/*    padding: 1% 0;*/
/*}*/
.catalog-hr {
    padding: 1% 0;
    margin: 0;
    font-size: 30px;
    text-align: center;
    color: #000000;
    width: 100%;
    position: relative;
}

/*.catalog-hr:before {*/
/*    content: " ";*/
/*    height: 1px;*/
/*    background: #000;*/
/*    display: block;*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 0;*/
/*    width: 35%;*/
/*}*/

/*.catalog-hr:after {*/
/*    content: " ";*/
/*    height: 1px;*/
/*    background: #000;*/
/*    display: block;*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    right: 0;*/
/*    width: 35%;*/
/*}*/

.catalog-container {
    display: flex;
}

.catalog-info {
    width: 81%;
    display: flex;
    flex-direction: column;
}

.catalog-info h4 {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 1% 2%;
}

@media (max-width: 451px) {
    .catalog-info h4 {
        font-size: 18px;
        margin: 2%;
    }
}

/* Отключение прокрутки основного контента */
body.menu-open {
    overflow: hidden;
}

/* Затемняющий фон */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.category-list {
    width: 17%;
    padding-right: 2%;
    border-right: 1px solid #ccc;
    transition: transform 0.3s ease-in-out; /* Анимация для появления меню */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Добавляем прокрутку только для бокового меню */
    max-height: 100vh; /* Ограничиваем высоту бокового меню */
}

.category-list a {
    text-decoration: none;
    color: inherit;
    margin: 20px 0 0 40px;
    padding: 0;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;

}

.category-list a.active {
    font-weight: 800; /* Делаем текущую категорию жирной */
    text-decoration: underline; /* Подчеркиваем текущую категорию */
    font-size: 22px;
}

.category-list a:hover {
    font-weight: bold;
}

.category-toggle {
    display: none;
}

.product-list {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 20px 20px 20px;

}

@media (min-width: 2560px) {
    .product-list {
        width: 81%;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin: 0 10% 20px 20px;
    }
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(224, 224, 224, 0.38);
    padding: 15px;
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.2s ease-in-out;
}

/*@media (min-width: 1024px) {*/
/*    .product {*/
/*        height: 400px;*/
/*    }*/
/*}*/

.product a {
    text-decoration: none;
    color: black;
}

.product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.015);
}

.image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-title {
    /*margin: 10px 0;*/
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2em;
    height: 3.6em; /* 2 строки */
    text-transform: uppercase;

}

.color {
    text-transform: lowercase;
    font-weight: normal;
}

.description {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4em;
    color: #3f3f3f;
    -webkit-line-clamp: 2; /* Число отображаемых строк */
    display: -webkit-box; /* Включаем флексбоксы */
    -webkit-box-orient: vertical; /* Вертикальная ориентация */
    overflow: hidden;
    /*margin: 0 0 10px 0;*/

}

.price {
    text-align: center;
    font-size: 20px;
    font-weight: bold;

}

.price p {
    margin: 0;
}

@media (max-width: 1355px) {
    .catalog-hr:after, .catalog-hr:before {
        width: 30%;
    }
}

@media (max-width: 1000px) {
    .catalog-hr:after, .catalog-hr:before {
        width: 25%;
    }
}

@media (max-width: 925px) {
    .category-list a.active {
        font-size: 18px;
    }

    .category-list a {
        font-size: 16px;
    }

    .catalog-hr:after, .catalog-hr:before {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .catalog-container {
        flex-direction: column;
    }

    .catalog-hr:after, .catalog-hr:before {
        width: 15%;
    }

    .catalog_nav {
        display: flex;
    }

    /*.catalog-hr {*/
    /*    font-size: 22px;*/
    /*}*/
    .catalog-hr {
        font-size: 28px;
        padding: 2% 0;
    }

    .catalog_nav hr {
        display: none;
    }

    .category-toggle {
        border: none;
        cursor: pointer;
        margin-right: 10px;
        background-color: white;
    }

    .category-list {
        width: 80%;
        transform: translateX(100%);
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

    }

    .category-list a {
        margin-right: 0;
        font-size: 24px;
    }

    .category-list a.active {

        font-size: 26px;
    }

    .category-list.show {
        transform: translateX(0);
    }

    .category-toggle {
        display: block;
    }

    .catalog-info {
        width: 100%;
    }

    .product-list {


        grid-template-columns: repeat(2, 50%);
        margin: 0;
        gap: 0;
    }

    .product {

    }
}

@media (max-width: 555px) {
    .catalog-hr:after, .catalog-hr:before {
        width: 0;
    }
}

@media (max-width: 451px) {
    .catalog-hr {
        font-size: 22px;
    }

    .product-title {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .product-list {
        grid-template-columns: repeat(1, 100%);
    }

    .product-title, .description {
        font-size: 16px;
        margin: 0;
    }

    .product {
        margin: 5px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    flex-direction: row;
    font-size: 22px;

    border: 1px solid #f2f2f2;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);

    margin: 1% 20%;


}


@media (max-width: 769px) {
    .pagination {
        margin: 1% 0;
    }
}

.pagination a {
    text-decoration: none;
    color: black;
    margin: 0 5px;
}

.pagination span {
    padding: 5px 15px;
}

.current {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px; /* Создаем отступ от нижней части текста */
}

#last, #first {
    margin: 0 5px;
}


.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%; /* Отступ слева для внутренней границы */
    right: 10%; /* Отступ справа для внутренней границы */
    height: 3px; /* Толщина границы */
    background-color: #173494; /* Цвет границы */
}

/*КАРТОЧКА ТОВАРА*/


.product-detail {
    margin: 0 10%;
    display: flex;
    flex-direction: column;
}

.product-detail p {
    font-size: 20px;


}

.product_general {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.additional-img {
    max-width: 8%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 5%;
}

.additional-img img {
    max-height: 100px;
    transition: box-shadow 0.3s, transform 0.2s ease-in-out;
}

.additional-img img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.product_img {
    align-self: center;
    flex: 1;
    border-right: 1px dotted #ccc;
}


.product_img img {
    width: 90%;
    padding: 5%;
}

.additional-img img {
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product_info {
    width: 50%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product_info h1 {
    text-transform: uppercase;
    font-size: 40px;
}

.product_info p {
    font-size: 22px;
    margin: 0;
    padding: 0;
}

/**{*/
/*    border: 1px red solid;*/
/*}*/
.product_price {
    width: 223px;
    height: 72px;
    align-self: flex-start;
    margin: 15% 0 0 0;
    display: flex; /* Используем Flexbox */
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
    background: url("/static/img/main/product_detail/price_btn.svg") no-repeat center center;
    background-size: cover; /* Убедимся, что фон занимает весь div */
}

.product_price h2 {
    font-size: 36px;
    padding: 0;
    margin: 0;
    text-align: center;
}

.other-variants {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.other-variants img {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.2s ease-in-out;
}

.other-variants img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.cards {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.cards .product {
    flex: 0 0 auto; /* Устанавливаем фиксированную ширину карточки для предотвращения сжатия */
    width: 200px; /* Фиксированная ширина карточки */
}

@media (max-width: 1280px) {
    .product_info {
        width: 40%;
    }

    .product_price {
        width: 178px;
        height: 58px;
        margin: auto 0;
    }

    .product_price h2 {
        font-size: 30px;
    }

    .product_info p {
        font-size: 20px;
    }

    .other-variants img {
        width: 100px;
        height: 100px;
    }

    .other-variants {
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .product_price {
        width: 134px;
        height: 43px;
        margin: auto 0;
    }

    .product_price h2 {
        font-size: 24px;
    }

    .product-detail p {
        font-size: 18px;
    }

    .product_info p {
        font-size: 18px;
    }

    .product_info h1 {
        font-size: 36px;
        margin-bottom: 0;
    }

    .product_info {
        width: 30%;
    }
}

#tshort_sizes {
    width: 100%;
}

@media (max-width: 768px) {
    .additional-img {
        max-width: 100%;
    }

    .product_info {
        width: 100%;
    }

    .product_general {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .product_price {
        align-self: flex-start;
        margin: 2% 0;
    }

    .product_img {
        border: none;
        order: 0;
    }

    .additional-img {
        flex-direction: row;
        order: 1;
        width: 100%;
    }

    .product_info {
        order: 2;
    }

    .product_info h1 {
        margin: 20px 0;
    }

    .other-variants {
        margin-bottom: 20px;
    }
}

/*КОНТАКТЫ*/
#contact-header {
    margin: 0;
    padding: 1% 0;
    font-size: 30px;
    text-align: center;
    color: #000000;
    width: 100%;
    position: relative;
}

@media (max-width: 500px) {
    #contact-header {
        font-size: 24px;
        padding: 2% 0;
    }

}

.address {
    display: flex;
}

.addresses {
    margin: 0 10%;
    width: 100%;
}

thead {
    font-size: 26px;
    text-align: center;
    color: #173494;
}

#th1 {
    width: 50%;
}

#th2 {
    width: 25%;
}

#th3 {
    width: 25%;
}

hr {
    margin-top: 0;
}

/*table thead th { border-bottom: 3px dashed #173494;; }*/
td {
    text-align: center;
    padding: 1%;
    font-size: 24px;
    font-weight: 500;
}

.hr-lines {
    position: relative;
    max-width: 500px;
    text-align: center;
}

.hr-lines:before {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
}

.hr-lines:after {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
}

.hr-lines#th1:after,
.hr-lines#th1:before {
    width: 40%;
}

.hr-lines#th2:after,
.hr-lines#th2:before {
    width: 35%;
}

.hr-lines#th3:after,
.hr-lines#th3:before {
    width: 35%;
}

.hotline {
    margin: 0 10%;
}

.hotline-hr {
    font-size: 26px;
    text-align: center;
    color: #173494;
}

.hotline-hr {
    width: 100%;
    position: relative;
    text-align: center;
}

.hotline-hr:before {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 40%;
}

.hotline-hr:after {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 40%;
}

@media (max-width: 1600px) {
    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 37%;
    }

    .hr-lines#th2:after,
    .hr-lines#th2:before {
        width: 28%;
    }

    .hr-lines#th3:after,
    .hr-lines#th3:before {
        width: 28%;
    }

    .hotline-hr:after,
    .hotline-hr:before {
        width: 37%;
    }
}

@media (max-width: 1367px) {
    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 35%;
    }


    .hotline-hr:after,
    .hotline-hr:before {
        width: 35%;
    }
}

@media (max-width: 986px) {
    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 30%;
    }

    .hr-lines#th2:after,
    .hr-lines#th2:before {
        width: 20%;
    }

    .hr-lines#th3:after,
    .hr-lines#th3:before {
        width: 20%;
    }

    td {
        font-size: 20px;
    }

    .hotline-hr:after,
    .hotline-hr:before {
        width: 30%;
    }
}

@media (max-width: 770px) {
    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 25%;
        height: 2px;
    }

    .hr-lines#th2:after,
    .hr-lines#th2:before {
        width: 15%;
        height: 2px;
    }

    .hr-lines#th3:after,
    .hr-lines#th3:before {
        width: 15%;
        height: 2px;
    }

    .hotline-hr {
        font-size: 22px;
    }

    td {
        font-size: 16px;
    }

    .hotline-hr:after,
    .hotline-hr:before {
        width: 26%;
    }
}

@media (max-width: 620px) {
    thead {
        font-size: 18px;
    }

    .hotline-hr {
        font-size: 18px;
    }

    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 26%;

    }

    .hr-lines#th2:after,
    .hr-lines#th2:before {
        width: 10%;
    }

    .hr-lines#th3:after,
    .hr-lines#th3:before {
        width: 10%;
    }

    td {
        border-bottom: 1px solid rgba(23, 52, 148, 0.3);
    }

}

@media (max-width: 426px) {
    .hr-lines#th1:after,
    .hr-lines#th1:before {
        width: 16%;
    }

    .hr-lines#th2:after,
    .hr-lines#th2:before {
        width: 8%;
    }

    .hr-lines#th3:after,
    .hr-lines#th3:before {
        width: 8%;
    }

    .hotline-hr:after,
    .hotline-hr:before {
        width: 20%;
    }
}

@media (max-width: 330px) {
    .hotline-hr:after,
    .hotline-hr:before {
        width: 16%;
    }
}

.hotline-links {
    display: flex;
    align-self: center;
    padding: 0 10%;
}

.legal {
    margin: 0 10%;
}

.legal-hr {
    font-size: 26px;
    text-align: center;
    color: #173494;
}

.legal-hr {
    width: 100%;
    position: relative;
    text-align: center;
}

.legal-hr:before {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 33%;
}

.legal-hr:after {
    content: " ";
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 33%;
}

@media (max-width: 1441px) {
    .legal-hr:after, .legal-hr:before {
        width: 27%;
    }
}

@media (max-width: 1025px) {
    .legal-hr:after, .legal-hr:before {
        width: 25%;
    }
}

@media (max-width: 950px) {
    .legal-hr:after, .legal-hr:before {
        width: 20%;
    }
}

@media (max-width: 769px) {
    .legal-hr:after, .legal-hr:before {
        width: 15%;
    }
}

@media (max-width: 621px) {
    .legal-hr {
        font-size: 18px;
    }
}

@media (max-width: 450px) {
    .legal-hr:after, .legal-hr:before {
        width: 7%;
    }
}

@media (max-width: 376px) {
    .legal-hr:after, .legal-hr:before {
        width: 5%;
    }
}

@media (max-width: 321px) {
    .legal-hr, #th2, #th3 {
        font-size: 16px;
    }

    .legal-hr:after, .legal-hr:before {
        display: none;
    }
}

.legal-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

.lft, .cntr, .rght {
    padding: 0 1%;
}

.lft a {
    text-decoration: None;
    color: black;
}

.lft p {
    margin: 0;
}

@media (max-width: 769px) {
    .legal-flex {
        flex-direction: column;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .legal-flex {
        font-size: 14px;
    }
}

.rght a {
    font-weight: 500;
    text-decoration: none;
    color: black;
}

.numbers {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    align-items: start;
}

.numbers p {
    margin: 0 0 10px 0;
}

.numbers a, .numbers p {
    color: black;
    text-decoration: none;
    font-size: 30px;
    display: flex; /* Изменяем display на flex */
    align-items: center; /* Выравнивание по центру по вертикали */
    flex-grow: 1;
    margin-bottom: 10px;
}


.numbers img {
    height: 45px;
    width: auto;
    margin-right: 20px;
}

.qrs {
    display: flex;
    flex-grow: 2;
    justify-content: end;
}

.qrs a img {
    height: 233px;
    width: auto;
}

@media (max-width: 1225px) {
    .numbers a, .numbers p {
        font-size: 22px;
    }

    .qrs a img {
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .hotline-links {
        padding: 0 5%;
    }

    .numbers a, .numbers p {
        font-size: 22px;
    }

    .numbers img {
        height: 40px;
    }

    .qrs a img {
        height: 150px;
    }
}

/* Адаптация для экранов до 768px */
@media (max-width: 768px) {
    .hotline-links {
        padding: 0 5%;
        flex-direction: column;
        align-items: center;
    }


    .numbers a, .numbers p {
        font-size: 20px;
    }

    .numbers img {
        height: 35px;
    }

    .qrs {
        justify-content: center;
        margin-top: 20px;
    }
}

/* Адаптация для экранов до 480px */
@media (max-width: 480px) {
    .numbers a, .numbers p {
        font-size: 20px;
    }

    .numbers img {
        height: 40px;
    }

    .qrs {
        display: none;
    }
}


