:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --header-bg: #2c3e50;
    --accent-color: #f39c12;
    --text-color: #6a343a;
}

* {
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.2;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

.products-container,
.modal-content {
    max-width: 100%;
    width: 100%;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 700;
    background: linear-gradient(145deg, #E1F0F7 0%, #9AC9E4 100%);
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 5px 5px;
}


.header {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link:active {
    opacity: 0.8;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.2);
}

.logo-image:hover {
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}


.logo-icon {
    font-size: 1.8rem;
    color: var(--light-color);
}

.logo a {
    color: var(--light-color);
    height: auto;
}


.logo-text {
    position: relative;
    display: inline-block;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}


.logo-text h1::after {
    content: '';
    position: absolute;
    top: 25px;
    left: -1ch;
    width: 1ch;
    height: calc(10% + 0px);
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.8),
            rgba(255, 255, 255, 0.9),
            rgba(255, 215, 0, 0.8),
            transparent);
    border-radius: 3px;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: moveGoldBar 12s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes moveGoldBar {
    0% {
        left: -2ch;
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    25% {
        left: 2ch;
    }

    40% {
        left: 8ch;
    }

    50% {
        left: 10ch;
    }

    60% {
        left: 12ch;
    }

    80% {
        left: 22ch;
        opacity: 0.9;
    }

    95% {
        left: 25ch;
        opacity: 0;
    }

    100% {
        left: 26ch;
        opacity: 0;
    }
}

/* Дополнительное мерцание текста */
@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

.logo-text .tagline {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Обновленная анимация свечения */
@keyframes textGlow {

    0%,
    100% {
        text-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.1),
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 0 10px rgba(255, 215, 0, 0.2);
    }

    50% {
        text-shadow:
            0 6px 12px rgba(0, 0, 0, 0.25),
            0 4px 8px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(255, 215, 0, 0.4);
    }
}

/* Для создания более выраженного 3D эффекта можно добавить */
.logo-text h1 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #283b5a;
    font-size: clamp(1rem, 3vw, 1.4rem);
    white-space: nowrap;

    /* Более сложная тень для максимального объема */
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.1),
        /* Светлая часть */
        -1px -1px 0 rgba(0, 0, 0, 0.1),
        /* Темная часть */
        0 4px 8px rgba(0, 0, 0, 0.2),
        /* Основная тень */
        0 6px 12px rgba(0, 0, 0, 0.15),
        /* Дополнительный объем */
        0 8px 16px rgba(0, 0, 0, 0.1);
    /* Рассеянная тень */

    position: relative;
    z-index: 1;

}

.logo-text h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-text .tagline {
    opacity: 0.9;
    margin-top: 3px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
}

/* Стили для блока PDF каталога */
.pdf-catalog-block {
    margin-top: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-catalog-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 30px;
    background: #C5A028;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pdf-catalog-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pdf-catalog-link:hover::before {
    width: 300px;
    height: 300px;
}

.pdf-catalog-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
}

.pdf-catalog-link i {
    font-size: 1.2rem;
    color: var(--accent-color);
    animation: gentlePulse 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

.pdf-catalog-description {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.pdf-size,
.pdf-update {
    padding: 3px 8px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdf-size::before {
    content: '📄';
    font-size: 0.8rem;
    margin-right: 3px;
}

.pdf-update::before {
    content: '🔄';
    font-size: 0.8rem;
    margin-right: 3px;
}

.contact-card {
    max-width: 360px;
}

.contact-items {
    display: flex;
    flex-direction: column;
}

.contact-row-map {
    flex-direction: column;
    align-items: flex-start !important;
}

.map-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

#yandex-map,
#yandex-map-constructor {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.contact-action {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-action .value {
    word-break: break-word;
    font-size: clamp(12px, 2vw, 16px);
}

.contact-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}

.icon-wrapper {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #C5A028;
}


.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .value {
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.3;
}

.label {
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #2d3e4f;
    font-size: clamp(10px, 1.5vw, 14px);
}

.value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.header-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.header-address:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-address i {
    color: var(--accent-color);
}

.social-block {
    display: flex;
    flex-direction: column;
    padding: 3px 5px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    max-width: 130px;
}

.social-block i {
    color: #B8860B;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(3px, 1vw, 5px) clamp(5px, 2vw, 10px);
    font-size: clamp(12px, 2vw, 14px);
}

.social-item i {
    font-size: 16px;
}

.social-item.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}

.social-item.telegram:hover {
    background: #0088cc;
}

.social-item.viber:hover {
    background: #665cac;
}

header nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    color: #C5A028;
}

.header-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.header-nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-nav a i {
    font-size: 0.9rem;
    color: #C5A028;
}

.user-greeting {
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    margin-left: 15px;
}

/* Новые стили для верхней строки */
.contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.user-actions-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.user-links {
    display: flex;
    align-items: center;
}

.user-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-links a i {
    color: #C5A028;
    font-size: 0.9rem;
}

.separator {
    color: #2c3e50;
    font-weight: 300;
}

.user-greeting {
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    text-align: right;
    white-space: nowrap;
}

/* Обновленные стили для social-block */
.social-block {
    display: flex;
    flex-direction: column;
    padding: 3px 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.social-block .social-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #2d3e4f;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;

}

/* Стили для горизонтального меню навигации (светлый вариант) */
.main-nav {
    background: linear-gradient(145deg, #E1F0F7 0%, #9AC9E4 100%);
    position: sticky;
    top: 0;
    z-index: 699;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #C5A028;
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    position: relative;
    flex: 0 1 auto;
}

.nav-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 18px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    will-change: transform; /* оптимизация */
    overflow: hidden;       /* чтобы круг не выходил за пределы */
}

.akcii {
    background-color: #dc092e;
    color: #fff;
}

.nav-link i {
    font-size: 1.2rem;
    color: #C5A028;
    transition: all 0.3s ease;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(197, 160, 40, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: -1;
    pointer-events: none;
}

.nav-link:hover::before {
    width: 200px;
    height: 200px;
    background: rgba(197, 160, 40, 0.25);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 160, 40, 0.35);
}

.nav-link:hover i {
    transform: scale(1.15);
    color: #C5A028;
    /* более яркий золотой */
}

/* Эффект подчеркивания */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C5A028, #f39c12, #C5A028, transparent);
    transition: width 0.3s ease;
    border-radius: 2px;
    z-index: 1;
}

.nav-link:hover::after {
    width: 85%;
}

/* Активный пункт меню */
.nav-link.active {
    background: rgba(197, 160, 40, 0.1);
}

.nav-link.active i {
    color: #f39c12;
}

.nav-link.active::after {
    width: 80%;
}

/* Стили для футера в цветах header */
.footer {
    background: linear-gradient(145deg, #E1F0F7 0%, #9AC9E4 100%);
    color: #2c3e50;
    margin-top: 50px;
    padding: 50px 0 0;
    position: relative;
    width: 100%;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a6bff, #f39c12, #4a6bff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Колонки футера */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Логотип */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C5A028;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-logo h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #283b5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Социальные иконки */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(197, 160, 40, 0.3);
}

.footer-social-link:hover {
    transform: translateY(-3px);
    border-color: #C5A028;
}

.footer-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: white;
    box-shadow: 0 5px 15px rgba(210, 53, 165, 0.3);
}

.footer-social-link.telegram:hover {
    background: #0088cc;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.footer-social-link.viber:hover {
    background: #665cac;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 92, 172, 0.3);
}

/* Заголовки колонок */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #283b5a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #C5A028, transparent);
    border-radius: 2px;
}

/* Списки ссылок */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: #C5A028;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: #C5A028;
    opacity: 1;
    transform: translateX(5px);
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Контактная информация */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact li i {
    width: 20px;
    color: #C5A028;
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-text {
    flex: 1;
}

.contact-text span {
    display: block;
    font-size: 0.8rem;
    color: #5a6b7a;
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-text a,
.contact-text p {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-text a:hover {
    color: #C5A028;
}

/* Нижняя строка футера */
.footer-bottom {
    border-top: 2px solid rgba(197, 160, 40, 0.2);
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #2c3e50;
    font-size: 0.85rem;
    opacity: 0.7;
}

.developer {
    color: #2c3e50;
    font-size: 0.85rem;
    opacity: 0.7;
}

.developer i {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Добавляем новые стили для отзывов и рейтингов */
.rating-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 5px;
}

.rating-stars {
    color: #f39c12;
    font-size: clamp(10px, 1.5vw, 14px);
}

.rating-average {
    font-weight: bold;
    margin-right: 2px;
}

.review-count {
    font-size: clamp(10px, 1.5vw, 12px);
    color: var(--secondary-color);
}

.user-rating {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.user-rating .star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.user-rating .star:hover,
.user-rating .star.active {
    color: #f39c12;
}

.reviews-container {
    border-top: 1px solid #eee;
    padding-top: 5px;
}

.review-form {
    margin-top: 5px;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.review-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.review-item {
    border-bottom: 1px solid #eee;
}

.review-author {
    font-weight: bold;
}

.review-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.review-text {
    line-height: 1.1;
}

/* Стили для блока отзывов с треугольником */
.reviews-section {
    margin-top: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(145deg, #E1F0F7 0%, #9AC9E4 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(197, 160, 40, 0.3);
}

.reviews-header:hover {
    background: linear-gradient(145deg, #d2e9f2 0%, #8bbeda 100%);
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-title i {
    color: #C5A028;
    font-size: 1.2rem;
}

.reviews-title h3 {
    margin: 0;
    font-size: 1rem;
    color: #283b5a;
    font-weight: 600;
}

.reviews-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-count-badge {
    background-color: #C5A028;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

#toggleIcon {
    transition: transform 0.3s ease;
    color: #283b5a;
    font-size: 1rem;
}

#toggleIcon.rotated {
    transform: rotate(180deg);
}

.reviews-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: white;
}

.reviews-content.open {
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.reviews-list {
    margin-bottom: 20px;
}

.review-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.review-item:hover {
    background-color: #f5f5f5;
}

.review-item:last-child {
    border-bottom: none;
}

.review-author {
    font-weight: bold;
    color: #283b5a;
    margin-bottom: 4px;
}

.review-date {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.review-text {
    line-height: 1.4;
    color: #333;
    font-size: 0.9rem;
}

.no-reviews {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.login-prompt {
    text-align: center;
    padding: 15px;
    color: #666;
}

.login-prompt a {
    color: #C5A028;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Стиль для сообщения об отсутствии отзывов */
.no-reviews {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.login-prompt {
    text-align: center;
    padding: 15px;
    color: #666;
}

.login-prompt a {
    color: #C5A028;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-left: 5px;
}

.custom-hr {
    margin: 3px;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Основной контент */
main {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
}


/* Левое меню */
aside {
    width: 250px;
    background-color: white;
    padding: 0px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    height: fit-content;
}

aside h2 {
    margin-top: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

aside ul {
    list-style: none;
    padding: 0;
    margin: 0 0 5px 0;
}

aside ul li {
    margin-bottom: 3px;
}

aside ul li a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    padding: 3px 0;
    transition: color 0.3s;
}

aside ul li a:hover {
    color: var(--primary-color);
}

aside .submenu {
    margin-left: 15px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

/* Активный пункт в левом меню (категории и подкатегории) */
aside ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(74, 107, 255, 0.08);
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    transition: all 0.2s;
}

/* Активный пункт в подменю */
aside .submenu li a.active {
    border-left-color: var(--primary-color);
    background-color: rgba(74, 107, 255, 0.05);
}

/* Ссылка сброса сортировки */
aside ul li a.reset-sort {
    color: var(--secondary-color);
    font-style: italic;
    border-top: 1px dashed #ccc;
    margin-top: 5px;
    padding-top: 5px;
}

aside ul li a.reset-sort:hover {
    color: var(--primary-color);
}

aside a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Основное содержимое */
.products-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    width: clamp(200px, 100%, 250px);
    min-height: 300px;
    width: 250px;
    height: auto;
    min-height: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.product-image {
    height: 150px;
    overflow: hidden;
    padding: 5px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(10px, 2vw, 15px);
}

.product-name {
    font-weight: 600;
    margin: 0 0 3px 0;
    font-size: 10px;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(8px, 2vw, 10px);
    white-space: normal;
    line-height: 1.3;
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.product-quantity {
    display: none;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.add-to-cart-form {
    display: none;
    margin-top: auto;
}

.add-to-cart-form input[type="number"] {
    width: 60px;
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-to-cart-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-form button:hover {
    background-color: #0069d9;
}

.out-of-stock {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Поисковая форма */
.search-container {
    width: 100%;
    margin-bottom: 30px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #0069d9;
}

.reset-search {
    margin-left: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reset-search:hover {
    color: var(--danger-color);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 1% auto;
    padding: 5px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalopen 0.3s;
    max-height: 98vh;
    overflow-y: auto;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-body {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.modal-details {
    flex: 1;
}

.modal-title {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.modal-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 5px 0;
}

.modal-description {
    line-height: 1;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Пагинация */
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    padding: clamp(5px, 1vw, 8px) clamp(8px, 2vw, 15px);
    font-size: clamp(12px, 2vw, 14px);
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Уведомления */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.notification {
    padding: 15px 20px;
    background-color: var(--success-color);
    color: white;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background-color: var(--danger-color);
}

/* Подсветка поиска */
.highlight {
    background-color: #fffacd;
    padding: 0 2px;
    border-radius: 2px;
}

/* Стили для мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    z-index: 600;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 10px 0;
    padding: 10px 20px;
    width: 80%;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: #4361ee;
}

.mobile-nav a i {
    margin-right: 10px;
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Стили для кнопки "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    background-color: #4361ee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    font-size: clamp(16px, 3vw, 20px);
    bottom: clamp(15px, 3vw, 30px);
    right: clamp(15px, 3vw, 30px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #3a56d4;
    transform: translateY(-3px);
}

.current-price-filter {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
}

.current-price-filter a {
    margin-left: 10px;
    color: #666;
}

/* В файле styles.css */
.price-filter {
    margin-bottom: 20px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    /* отступ между элементами */
    margin-bottom: 10px;
    width: 100%;
}

.price-inputs input {
    flex: 1;
    /* каждый input занимает равное доступное пространство */
    min-width: 0;
    /* предотвращает переполнение при маленьких экранах */
    padding: 8px 10px;
    /* немного увеличим padding для удобства */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-inputs span {
    flex-shrink: 0;
    /* дефис не сжимается */
    font-weight: bold;
    color: #666;
}

.price-filter button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.price-filter button:hover {
    background: var(--header-bg);
}

.reset-filter {
    display: inline-block;
    margin: 5px 5px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.reset-filter:hover {
    text-decoration: underline;
}

/* Стили для сообщения о ненайденных товарах */
.no-products-found {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.no-products-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products-title {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.no-products-message {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-products-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.no-products-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-products-btn.secondary {
    background-color: var(--secondary-color);
}

.no-products-btn.secondary:hover {
    background-color: #5a6268;
}

.no-products-suggestions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.no-products-suggestions h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.suggestion-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-tag {
    padding: 6px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.suggestion-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.price-hint {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 5px;
}

/* Анимация появления меню */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav {
    animation: slideDown 0.5s ease-out;
}

/* Стили для ответов администратора в отзывах */
.admin-reply {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 3px solid #28a745;
    border-radius: 4px;
    padding: 5px;
    margin-left: 2px;
}

.admin-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.admin-reply-header i {
    font-size: 1rem;
}

.admin-reply-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.admin-reply-date {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-reply-date i {
    font-size: 0.7rem;
}

.review-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 4px;
    margin-bottom: 1px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    flex-wrap: wrap;
    gap: 1px;
}

.review-author {
    font-weight: 600;
    color: #2c3e50;
}

.review-date {
    font-size: 0.8rem;
    color: #666;
}

.review-text {
    line-height: 1.6;
    color: #333;
}
/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #C5A028;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: #28a745;
    color: white;
}

.cookie-btn.accept:hover {
    background: #218838;
}

.cookie-btn.settings {
    background: #6c757d;
    color: white;
}

.cookie-btn.settings:hover {
    background: #5a6268;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow: auto;
}

.cookie-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: #333;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close-cookie-modal {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-cookie-modal:hover {
    color: #333;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.cookie-category label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cookie-category.disabled label {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category p {
    margin: 8px 0 0 24px;
    font-size: 12px;
    color: #666;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cookie-save-btn {
    background: #4a6bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-save-btn:hover {
    background: #3a56d4;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-buttons {
        justify-content: center;
    }
    .cookie-modal-content {
        margin: 20% auto;
    }
}
/* Адаптация для мобильных устройств */
@media (max-width: 1200px) {
    aside {
        width: clamp(180px, 25%, 220px);
    }

    .contact {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .user-actions-block,
    .social-block {
        align-items: center;
    }

    .user-links {
        justify-content: center;
    }

    .user-greeting {
        text-align: center;
    }

    .social-block .social-title {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .logo {
        display: flex;
        align-items: flex-start;
        gap: 1px;
    }

    .logo-image {
        width: 50%;
        height: auto;
        border: 1px solid var(--light-color);
    }

    main {
        flex-direction: column;
        padding: 0 15px;
    }

    .logo-text h1,
    .tagline {
        white-space: normal;
    }

    .contact {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-card,
    .social-block,
    .user-actions-block {
        width: 100%;
        max-width: 100%;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    aside {
        position: static;
        margin-right: 0;
        width: 100%;
    }

    .products-container {
        justify-content: center;
    }

    .modal-body {
        flex-direction: column;
    }

    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-logo {
        gap: 8px;
    }

    .footer-logo-img {
        width: 45px;
        height: 45px;
    }

    .footer-logo h3 {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }

    .header-address {
        width: 80%;
        justify-content: center;
        margin: 0 auto;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .header-nav a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .logo-link {
        width: 100%;
        /* На всю ширину на мобильных */
        padding: 10px 0;
    }

    .pdf-catalog-block {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 15px;
        padding: 12px;
        width: 100%;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .pdf-catalog-link {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
        font-size: 14px;
    }

    .pdf-catalog-link span {
        white-space: normal;
    }

    .pdf-catalog-description {
        width: 100%;
        justify-content: center;
    }

    .admin-reply {
        margin-left: 0;
        padding: 12px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-item span {
        display: none;
    }

    .social-item {
        padding: 8px;
    }

    .social-item i {
        font-size: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    #yandex-map,
    #yandex-map-constructor {
        height: 150px;
    }

    .header {
        width: 100%;
    }

    /* Стили для горизонтального меню на мобильных */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #C5A028 #9AC9E4;
        display: block;
        /* Убеждаемся, что меню отображается */
    }

    .main-nav::-webkit-scrollbar {
        height: 4px;
    }

    .main-nav::-webkit-scrollbar-track {
        background: #9AC9E4;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background: #C5A028;
        border-radius: 4px;
    }

    .nav-menu {
        justify-content: flex-start;
        padding: 5px 10px;
        gap: 5px;
        display: flex;
        /* Убеждаемся, что меню отображается */
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .user-greeting {
        margin-left: 0;
        margin-top: 10px;
        width: 80%;
        text-align: center;
        margin: auto;
    }

    .reviews-header {
        padding: 5px 12px;
    }

    .reviews-title h3 {
        font-size: 0.9rem;
    }

    .reviews-content.open {
        padding: 5px;
    }

    .review-item {
        padding: 5px;
    }

    aside ul li a {
        padding: 3px 0;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 5px;
    }

    .modal-body {
        gap: 15px;
    }

    .reviews-header {
        padding: 5px 12px;
    }

    .reviews-title h3 {
        font-size: 0.95rem;
    }

    .reviews-content.open {
        padding: 5px;
    }

    .review-item {
        padding: 5px;
    }

    .review-author {
        font-size: 0.9rem;
    }

    .review-date {
        font-size: 0.7rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .review-form textarea {
        min-height: 60px;
        padding: 5px;
        font-size: 0.9rem;
    }

    .review-form button {
        padding: 5px 15px;
        font-size: 0.9rem;
        width: 100%;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links li a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .product-card {
        width: 100%;
        height: auto;
    }

    .product-image {
        height: 200px;
    }

    .search-form {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .search-form button {
        width: 100%;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .nav-link i {
        font-size: 0.95rem;
    }

    .reset-search {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 5px;
    }

    .reviews-header {
        padding: 8px 10px;
    }

    .reviews-title i {
        font-size: 1rem;
    }

    .reviews-title h3 {
        font-size: 0.9rem;
    }

    .review-count-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    #toggleIcon {
        font-size: 0.9rem;
    }

    .logo-text {
        padding: 0 5px;
    }

    .logo-image {
        width: 100%;
        height: auto;
        border: 1px solid var(--light-color);
    }

    .modal-body {
        gap: 15px;
    }

    .modal-image img {
        max-height: 200px;
    }

    .pdf-catalog-description {
        flex-direction: column;
        gap: 5px;
    }

    .pdf-size,
    .pdf-update {
        width: 100%;
        justify-content: center;
    }

    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .contact-text {
        text-align: center;
    }

    .price-inputs {
        flex-wrap: wrap;
        /* перенос на новую строку при недостатке места */
        gap: 5px;
    }

    .price-inputs input {
        flex: 1 1 100%;
        /* каждый input на всю ширину */
    }

    .price-inputs span {
        display: none;
    }

    .footer-logo-img {
        width: 40px;
        height: 40px;
    }

    .footer-logo h3 {
        font-size: 0.9rem;
    }

    .footer-description {
        font-size: 0.8rem;
    }
}