/* Современная палитра цветов с акцентом на доступность и эмоциональный баланс */

:root {
  /* Основные цвета */
  --primary-blue: #2563EB;      /* Основной синий для акцентов */
  --secondary-purple: #7C3AED;  /* Вторичный фиолетовый для акцентов */
  --neutral-gray: #374151;      /* Основной текст */
  --light-bg: #F9FAFB;          /* Основной фон */
  --light-gray: #E5E7EB;        /* Второстепенные элементы */
  --success-green: #10B981;     /* Успешные действия */
  --warning-orange: #F59E0B;    /* Предупреждения */
  --error-red: #EF4444;         /* Ошибки */
  --dark-accent: #1F2937;       /* Заголовки и логотипы */
  --light-text: #6B7280;        /* Второстепенный текст */
  --dev-notification-bg: #f8d7da; /* Нежно-красный цвет для плашки разработки */
}
/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Убран CSS scroll-behavior для передачи контроля JavaScript */

/* Стили для элементов навигации */
.nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}

.nav ul li a:hover {
    color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.1);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2B2B2B;
    background-color: var(--light-bg);
    font-size: 19px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Секции с определенными фонами */
main > section#products {
    background-color: var(--light-bg);
}

/* Остальные секции поочередно с тремя фоновыми цветами */
main > section#about {
    background-color: var(--light-gray);
}

main > section#additional-services {
    background-color: var(--light-bg);
}

main > section#contact-details {
    background-color: var(--light-bg);
}

main > section#contacts {
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* Убираем специфичные стили для info-card внутри section-container */
.section-container .info-card {
    /* Возвращаем стандартные стили для info-card */
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 280px;
    grid-column: auto;
    flex: none;
    max-width: 100%;
    padding: 40px;
}

/* Заголовок */
.header {
    background-color: var(--dark-accent);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Запрещаем перенос элементов на новую строку */
}

/* Убираем маркеры у всех элементов li */
li {
    list-style: none;
    list-style-type: none;
    list-style-image: none;
}

/* Дополнительно убираем маркеры у ul и ol для полной уверенности */
ul, ol {
    list-style: none;
    list-style-type: none;
    list-style-image: none;
    padding-left: 0;
    margin-left: 0;
}

/* Более специфичные правила для блока delivery-areas */
.delivery-areas ul {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.delivery-areas li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

/* Стили для списков с отступами, чтобы маркеры не вылезали за левый край остального текста */
ul {
    padding-left: 20px;
    margin-left: 0;
}

li {
    margin-bottom: 8px;
    position: relative;
}

/* Добавляем маркеры для списков в определенных блоках */
.info-card ul li,
.section-container ul li,
.about-text ul li,
.vacancies ul li,
.products ul li,
.contacts ul li,
.faq-item ul li,
.policy-section ul li {
    list-style: disc;
    padding-left: 0;
}

.info-card ul,
.section-container ul,
.about-text ul,
.vacancies ul,
.products ul,
.contacts ul,
.faq-item ul,
.policy-section ul {
    padding-left: 20px;
    margin-left: 0;
}

/* Стили для гамбургер-меню */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.close-menu {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    width: 30px;
    height: 30px;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0.5)), url('images/fon.avif') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.4;
    text-wrap: balance;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s;
    min-height: 44px; /* Обеспечиваем минимальную высоту для кликабельности */
    text-align: center;
    min-width: 120px; /* Обеспечиваем минимальную ширину для кнопки */
    max-width: 215px;
    margin: 0 auto; /* Центрируем кнопку */
}

.cta-button:hover {
    background-color: var(--secondary-purple);
}

/* Раздел "О нас" */
.about {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Основные стили для секции "О нас" при ширине 1000px и выше - сохраняем пропорции */
@media (min-width: 1001px) {
    .about-content {
        align-items: stretch;
        gap: 40px;
    }
    
    .about-text {
        flex: 1 1 60%;
        max-width: 60%;
    }
    
    .about-image {
        flex: 1 1 40%;
        max-width: 40%;
        height: auto;
        aspect-ratio: 4/5;
        max-width: 500px; /* Ограничиваем максимальную ширину */
        max-height: 600px; /* Ограничиваем максимальную высоту */
    }
    
    .about-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Адаптивные стили для планшетных устройств */
@media (max-width: 1000px) and (min-width: 769px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .about-text {
        width: 100%;
        max-width: 600px;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 4/5;
        max-width: 400px; /* Ограничиваем максимальную ширину */
        max-height: 500px; /* Ограничиваем максимальную высоту */
    }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) and (min-width: 481px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .about-text {
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 4/5;
        max-width: 350px; /* Ограничиваем максимальную ширину */
        max-height: 450px; /* Ограничиваем максимальную высоту */
    }
}

/* Адаптивные стили для маленьких мобильных устройств */
@media (max-width: 480px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .about-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 0 10px;
    }
    
    .about-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 4/5;
        max-width: 300px; /* Ограничиваем максимальную ширину */
        max-height: 400px; /* Ограничиваем максимальную высоту */
    }
}

/* Стили для текста в секции "О нас" */
.about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--dark-accent);
    text-align: left;
}

.about-text h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--dark-accent); /* Исправлен цвет на черный (темный акцент) */
    text-align: left;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    text-align: left;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    position: relative;
}

/* Стили для изображения в секции "О нас" */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 30px auto; /* Увеличиваем нижний отступ по умолчанию */
    max-width: 500px; /* Ограничиваем максимальную ширину */
    max-height: 600px; /* Ограничиваем максимальную высоту */
}

/* Добавляем нижний отступ для картинки при ширине экрана меньше 10px */
@media (max-width: 1000px) {
    .about-image {
        margin: 0 auto 30px auto; /* Увеличиваем нижний отступ на мобильных устройствах */
    }
}

/* Добавляем нижний отступ для картинки на мобильных устройствах (меньше или равной 768px) */
@media (max-width: 768px) {
    .about-image {
        margin-bottom: 40px !important;
    }
}

/* Центрируем картинку по вертикали при ширине экрана больше 1000px */
@media (min-width: 1001px) {
    .about-image {
        align-self: center; /* Центрируем по вертикали в flex-контейнере */
        margin: 0 auto; /* Убираем нижний отступ на больших экранах */
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
    aspect-ratio: 4/5;
    max-width: 100%;
    max-height: 100%;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* Раздел "Вакансии" */
.vacancies {
    padding: 40px 0;
}

.vacancies .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-accent);
}

.vacancies .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vacancies .product-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.vacancies .product-card:hover {
    transform: translateY(-10px);
}

.vacancies .product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vacancies .product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-accent);
}

.vacancies .product-card p {
    margin-bottom: 1.5rem;
    color: var(--neutral-gray);
}

.vacancies .product-specs {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: left;
}

.vacancies .product-specs p {
    margin-bottom: 0.5rem;
}

.vacancies .apply-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
    text-align: center;
}

.vacancies .apply-button:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.vacancies .apply-button:active {
    transform: translateY(0);
}

/* Раздел "Продукция" */
.products {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, cursor 0.3s;
    border: 1px solid var(--light-gray);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Убедимся, что курсор-указатель отображается для всех элементов внутри карточки товара */
.product-card * {
    cursor: pointer;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-accent);
}

.product-card p {
    margin-bottom: 1.5rem;
    color: var(--neutral-gray);
}

.product-specs {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: left;
}

.product-specs p {
    margin-bottom: 0.5rem;
}

/* Раздел "Контакты" */
.contacts {
    padding: 40px 0;
}

/* Унифицированные стили для всех информационных блоков */
.info-card, .contact-info, .contact-form, .product-card, .faq-item, .policy-section {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    max-width: 100%;
}

/* Отдельно увеличиваем внутренние отступы для info-card для лучшего заполнения пространства */
.info-card {
    padding: 40px;
}
.info-card {
    margin-bottom: 25px;
    /* Изменяем позиционирование, чтобы обеспечить отступ от краев container */
    margin-left: auto;
    margin-right: auto;
    /* Добавляем максимальную ширину для info-card */
    max-width: 100%;
    width: 100%;
    /* Уменьшаем минимальную ширину для лучшей адаптивности */
    min-width: 200px;
    /* Увеличиваем внутренние отступы для лучшего заполнения пространства */
    padding: 40px;
}


.info-card::before, .contact-info::before, .contact-form::before, .product-card::before, .faq-item::before, .policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.info-card:hover, .contact-info:hover, .contact-form:hover, .product-card:hover, .faq-item:hover, .policy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card:hover::before, .contact-info:hover::before, .contact-form:hover::before, .product-card:hover::before, .faq-item:hover::before, .policy-section:hover::before {
    transform: scaleX(1);
}

.info-card h3, .contact-info h3, .contact-form h3, .product-card h3, .faq-item h3, .policy-section h3 {
    color: var(--dark-accent);
    margin-bottom: 20px;
    font-size: 1.6rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
    font-weight: 700;
}

/* Специфические стили для заголовков h3 в определенных блоках */
.info-card h3 {
    color: var(--dark-accent);
    margin-bottom: 20px;
    font-size: 1.6rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
    font-weight: 700;
}

.info-card h3::after, .contact-info h3::after, .contact-form h3::after, .product-card h3::after, .faq-item h3::after, .policy-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-blue);
}

.info-card p, .contact-info p, .contact-form p, .product-card p, .faq-item p, .policy-section p {
    color: var(--neutral-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Унифицированные стили для контейнеров секций */
.section-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0.08);
    border: 1px solid var(--light-gray);
    transition: box-shadow .3s ease;
    width: 100%;
    max-width: 1200px;
    min-width: 280px;
    margin: 40px auto;
    justify-content: center;
    flex: 1 1 auto;
    overflow-x: hidden;
}

.section-container:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
    transition: box-shadow 0.3s ease;
}

.contacts-content:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--light-gray);
}

/* Стили для секции контактов и формы связи */
.contact-info, .contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--light-gray);
}

.contacts-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-accent);
}

#contacts {
    padding: 40px 0;
}

#our-contacts {
    padding: 40px 0;
}

.contacts-section {
    padding: 40px 0;
}

/* Стили для социальных сетей и мессенджеров */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
}

.social-links a:hover {
    background-color: var(--secondary-purple);
}
/* Дополнительные стили для формы связи */
.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--light-gray);
    /* Добавляем минимальную ширину для предотвращения сжатия формы */
    min-width: 280px;
    /* Обеспечиваем корректное поведение flex-элемента */
    flex: 1 1 auto;
}

.contact-form input,
.contact-form textarea,
.info-card input,
.info-card textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    /* Обеспечиваем минимальную ширину для полей ввода */
    min-width: 250px;
    box-sizing: border-box;
    /* Увеличиваем внутренние отступы для лучшего заполнения пространства */
    padding: 18px;
}


.contact-form input:focus,
.contact-form textarea:focus,
.info-card input:focus,
.info-card textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.submit-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 10px;
    /* Обеспечиваем минимальную ширину для кнопки */
    min-width: 200px;
}


.submit-button:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-accent);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--neutral-gray);
}


/* Футер */
.footer {
    background-color: var(--dark-accent);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Адаптивность для героя-секции на экранах шириной менее 400px */
@media (max-width: 400px) {
    .hero {
        padding-top: 70px; /* Компенсируем фиксированную высоту заголовка */
        height: auto;
        min-height: 100vh;
        display: block; /* Изменили с flex на block для лучшей адаптивности */
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: 0.8rem;
        line-height: 1.2;
        text-wrap: balance;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        text-wrap: balance;
        text-align: center;
    }
    
    .cta-button {
        padding: clamp(8px, 3vw, 12px) clamp(16px, 5vw, 24px);
        font-size: clamp(0.8rem, 4vw, 1rem);
        min-height: 40px;
        margin: 0 auto; /* Убедимся, что кнопка остается центрированной на маленьких экранах */
    }
}

/* Адаптивность для экранов до 430px */
@media (max-width: 430px) {
    .info-card, .contact-info, .contact-form, .product-card, .faq-item, .policy-section {
        padding: 12px;
        margin-bottom: 12px;
        min-width: 230px;
    }
    
    .section-container {
        padding: 18px;
        gap: 30px;
        margin: 40px auto; /* Сохраняем вертикальные отступы */
        min-width: 280px;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
        min-width: 280px;
    }
.container{
    padding: 0 10px;
    overflow-x: hidden;
    margin-right: 0; /* Убираем избыточный правый отступ */
}

}

/* Корректировка соотношения элементов в диапазоне 430-300px */
@media (max-width: 430px) and (min-width: 300px) {
    .review-card {
        /* Убираем избыточные ограничения для правильного соотношения */
        width: calc(100% - 20px);
        min-width: calc(100% - 20px);
        max-width: 100%;
        flex: 0 0 auto;
    }
    
    .info-card {
        width: 100%;
        min-width: 250px;
    }
    
    /* Улучшаем отображение отзывов на очень маленьких экранах */
    .reviews-slider-inner {
        gap: 15px;
        padding: 0 10px;
        flex-wrap: nowrap; /* Prevent flex items from wrapping to new lines */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: visible;
        scroll-snap-type: x mandatory; /* Enable scroll snapping for better UX */
        padding-bottom: 10px; /* Add space for scrollbar */
    }
    
    .review-card {
        padding: 15px;
        min-height: 320px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .review-author-info h4 {
        font-size: 16px;
        white-space: normal;
    }
    
    .review-content p {
        font-size: 0.85rem;
        padding-left: 15px;
        line-height: 1.5;
    }
    
    .review-content p:before {
        font-size: 2rem;
        top: -10px;
        left: -5px;
    }
}

/* Адаптивность для экранов до 480px */
@media (max-width: 480px) {
    .info-card, .contact-info, .contact-form, .product-card, .review-card, .faq-item, .policy-section {
        padding: 15px;
        margin-bottom: 15px;
        min-width: 240px;
    }

    .section-container {
        padding: 20px;
        gap: 30px;
        margin: 40px auto;
        min-width: 280px;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .submit-button {
        min-width: 180px;
        width: 100%;
        padding: 12px;
    }
    
    .products-grid,
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1.1rem);
    }
    
    .section-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
    
    .section-container {
        padding: 20px;
        gap: 30px;
        margin: 40px auto;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        min-width: 280px;
    }
    
    .container {
        margin-right: 0; /* Убираем избыточный правый отступ */
    }
    
    .info-card, .contact-info, .contact-form, .product-card, .review-card, .faq-item, .policy-section {
        padding: 15px;
        margin-bottom: 15px;
        min-width: 230px;
    }
}

/* Адаптивность для экранов до 500px */
@media (max-width: 50px) {
    .contact-info-with-social {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .social-links {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .social-links a {
        flex: 1;
        min-width: auto;
        max-width: 100%;
        width: 100%;
        font-size: 12px;
        padding: 8px 5px;
        text-align: center;
    }
}

/* Адаптивность для экранов до 350px */
@media (max-width: 350px) {
    .reviews-container {
        width: 100%;
        min-width: 100%;
        overflow-x: visible;
        height: auto; /* Изменяем с фиксированной высоты на автоматическую */
    }
    
    .reviews-slider-inner {
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto; /* Включаем горизонтальный скролл для прокрутки карточек */
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        position: relative; /* Изменяем на relative для правильного позиционирования */
        top: 0;
        left: 0;
        width: 100%;
        height: auto; /* Изменяем с фиксированной высоты на автоматическую */
        padding-bottom: 10px; /* Добавляем отступ для полосы прокрутки */
    }
    
    .review-card {
        flex: 0 0 auto; /* Карточки не сжимаются */
        width: 220px; /* Устанавливаем фиксированную ширину для карточек */
        min-width: 200px; /* Уменьшаем минимальную ширину для большей адаптивности */
        margin-right: 0;
        scroll-snap-align: start; /* Включаем прилипание при прокрутке */
    }
    
    .review-card:last-child {
        margin-right: 0;
    }
}

/* Адаптивность для экранов до 768px */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }

    .close-menu {
        display: none;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
        width: 30px;
        height: 30px;
    }

    .nav ul.active ~ .close-menu {
        display: block;
    }

    .nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 100vw; /* Устанавливаем максимальную ширину как 100% вьюпорта */
        height: calc(100vh - 70px);
        background-color: var(--dark-accent);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .nav ul.active {
        left: 0;
        width: 100%;
        max-width: 100vw; /* Убедимся, что ширина не ограничена при активации */
    }

    .nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Кнопка закрытия мобильного меню */
    .close-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
        width: 30px;
        height: 30px;
    }

    .nav ul .close-menu {
        display: none;
    }
    
    .nav ul.active .close-menu {
        display: block;
    }
    
    /* Смещение основного контента при активном меню */
    body.menu-open {
        overflow-x: hidden;
        position: fixed;
        width: 100%;
    }
    
    .header {
        transition: transform 0.3s ease;
    }
    
    main, .main-content {
        transition: transform 0.3s ease;
    }
    
    .nav ul.active ~ .header {
        transform: translateX(100%); /* Изменено значение для соответствия новой ширине меню */
    }
    
    .nav ul.active ~ main,
    .nav ul.active ~ .main-content {
        transform: translateX(100%); /* Изменено значение для соответствия новой ширине меню */
    }
    
    .nav ul li {
        margin: 0;
        white-space: nowrap; /* Запрещаем перенос текста внутри элемента */
    }
    
    .nav ul li a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
        padding: 0.5rem 0.7rem;
        border-radius: 4px;
    }
    
    .nav ul li a:hover {
        color: var(--primary-blue);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-container {
        padding: 25px;
        gap: 30px;
        margin: 40px auto;
        min-width: 280px;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        margin-right: 0; /* Убираем избыточный правый отступ */
    }

    .info-card, .contact-info, .contact-form, .product-card, .review-card, .faq-item, .policy-section {
        padding: 20px;
        margin-bottom: 20px;
        min-width: 250px;
    }

    
    .about-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 4/5;
        max-width: 350px; /* Ограничиваем максимальную ширину */
        max-height: 450px; /* Ограничиваем максимальную высоту */
    }
    
    .about-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/5;
        object-fit: cover;
        max-width: 100%;
        max-height: 100%;
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
        min-width: 50px; /* Обеспечиваем фиксированный размер для аватара */
        min-height: 50px;
    }
    
    .yandex-map-container {
        height: 300px; /* Уменьшаем высоту карты на мобильных устройствах */
        aspect-ratio: 16/9; /* Сохраняем пропорции */
    }
    
    /* Дополнительные стили для пропорционального отображения элементов в контейнере */
    .info-card, .contact-info, .contact-form, .product-card, .review-card, .faq-item, .policy-section {
        /* Обеспечиваем, чтобы элементы сохраняли свои пропорции при изменении размера экрана */
        box-sizing: border-box;
    }
    
    /* Сохраняем пропорции для изображений в карточках товаров */
    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
        border-radius: 5px;
    }
    
    /* Пропорциональное масштабирование для текста */
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .info-card h3, .contact-info h3, .contact-form h3, .product-card h3, .review-card h3, .faq-item h3, .policy-section h3 {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }
    
    /* Обеспечиваем пропорциональное изменение внутренних отступов */
    .info-card, .contact-info, .contact-form, .product-card, .review-card, .faq-item, .policy-section {
        padding: clamp(15px, 4vw, 30px);
    }
    
    .contact-info-with-social {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .contact-text {
        flex: 1;
    }
    
    .vacancies .products-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        width: 400px;
        min-width: 400px;
        height: 500px;
        min-height: 500px;
        aspect-ratio: 4/5; /* Сохраняем пропорции 400x500 */
        padding: 20px;
        margin: 0;
    }
    
    .reviews-slider-inner {
        gap: 15px;
        padding: 0;
        flex-wrap: nowrap; /* Prevent flex items from wrapping to new lines */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: visible;
        scroll-snap-type: x mandatory; /* Enable scroll snapping for better UX */
        padding-bottom: 10px; /* Add space for scrollbar */
    }
    
    .review-content p {
        font-size: 0.95rem;
    }
    
    .review-card {
        width: 350px; /* Уменьшаем ширину для мобильных устройств */
        min-width: 350px;
        height: 437.5px; /* Сохраняем пропорции (350 * 5/4 = 437.5) */
        min-height: 437.5px;
        padding: 18px;
    }
    
    .reviews-slider-inner {
        gap: 12px;
        flex-wrap: nowrap; /* Prevent flex items from wrapping to new lines */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: visible;
        scroll-snap-type: x mandatory; /* Enable scroll snapping for better UX */
        padding-bottom: 10px; /* Add space for scrollbar */
    }
    
    .review-header {
        gap: 12px;
    }
    
    .review-avatar {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .review-content p {
        font-size: 0.9rem;
        padding-left: 20px;
    }
    
    .review-content p:before {
        font-size: 3rem;
        top: -15px;
        left: -8px;
    }
}

/* Адаптивность для экранов до 350px */
@media (max-width: 350px) {
    .container{
        padding: 0 5px;
        overflow-x: hidden;
        margin-right: 0; /* Убираем избыточный правый отступ */
    }
    
    .social-links a {
        font-size: 11px;
        padding: 7px 5px;
        min-height: 36px;
    }
    
    /* Улучшаем отображение отзывов на очень маленьких экранах */
    .review-card {
        padding: 12px;
        min-height: 300px;
    }
    
    .review-header {
        gap: 8px;
    }
    
    .review-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .review-author-info h4 {
        font-size: 15px;
    }
    
    .review-content p {
        font-size: 0.8rem;
        padding-left: 12px;
    }
    
    .review-content p:before {
        font-size: 1.8rem;
        top: -8px;
        left: -4px;
    }
    
    .review-rating {
        font-size: 16px;
    }
}

/* Адаптивность для экранов до 320px */
@media (max-width: 320px) {
    .review-card {
        padding: 10px;
        min-height: 280px;
        margin: 0 5px;
    }
    
    .reviews-slider-inner {
        gap: 10px;
        padding: 0 5px;
    }
    
    .review-header {
        gap: 6px;
    }
    
    .review-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .review-author-info h4 {
        font-size: 14px;
    }
    
    .review-content p {
        font-size: 0.75rem;
        padding-left: 10px;
        line-height: 1.4;
    }
    
    .review-content p:before {
        font-size: 1.5rem;
        top: -6px;
        left: -3px;
    }
    
    .review-rating {
        font-size: 14px;
    }
}

/* Адаптивность для экранов до 310px */
@media (max-width: 310px) {
    .container{
        padding: 0;
        overflow-x: hidden;
        margin-right: 0; /* Убираем избыточный правый отступ */
    }
    
    .social-links a {
        font-size: 10px;
        padding: 6px 5px;
        min-height: 32px;
    }
}

/* Анимация при прокрутке и загрузке страницы */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация появления при загрузке страницы */
.page-load-animation {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимация исчезновения при переходе между страницами */
.page-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Анимация основного контента */
.main-content {
    transition: opacity 0.3s ease;
}

.main-content.fade-out {
    opacity: 0;
}

.main-content.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Сбрасываем opacity для элементов с fade-in классом */
.main-content.fade-in {
    opacity: 1;
}

/* Анимация загрузки страницы для элементов с атрибутом data-animate-on-load */
.main-content[data-animate-on-load] {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

/* Стили для отображения палитры */
.palette-container {
 display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.color-card {
  width: 150px;
 height: 150px;
 border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    color: white;
 font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0.7);
}

.color-name {
 background: rgba(0,0,0.5);
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
 text-align: center;
}

/* Стили для горизонтального слайдера прокрутки отзывов */
.reviews-progress-container {
    margin-top: 30px;
    padding: 0 20px;
}

.reviews-progress-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--light-gray);
    border-radius: 3px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0.1);
    position: relative;
}

.reviews-progress-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
}

.reviews-progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.3s ease, left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    top: -6px;
    /* Синхронизируем анимацию с карточками отзывов */
    transition: background 0.3s ease, transform 0.3s ease, left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews-progress-slider::-webkit-slider-thumb:hover {
    background: var(--secondary-purple);
    transform: scale(1.1);
}

.reviews-progress-slider::-moz-range-track {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    border: none;
}

.reviews-progress-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.3s ease, left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews-progress-slider::-moz-range-thumb:hover {
    background: var(--secondary-purple);
    transform: scale(1.1);
}
/* Стили для заполненной части слайдера */
.reviews-progress-slider {
    --progress: 0%;
}

.reviews-progress-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--primary-blue) 0%, var(--primary-blue) var(--progress, 0%), var(--light-gray) var(--progress, 0%), var(--light-gray) 100%);
    background-size: 100% 100%;
    transition: background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Добавляем плавную анимацию для всей полосы прогресса */
.reviews-progress-slider {
    transition: --progress 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Стили для FAQ страницы */
.faq-section {
    padding: 140px 0 40px 0; /* Увеличен отступ сверху для компенсации фиксированного заголовка */
    margin-top: 0; /* Убедимся, что нет дополнительных отступов сверху */
}

/* Исправление для видимости заголовка поверх фиксированного навигационного меню */
.faq-section .section-title {
    position: relative;
    padding-top: 20px;
    z-index: 2; /* Убедимся, что заголовок поверх других элементов */
}

/* Псевдоэлемент для компенсации высоты фиксированного навигационного меню */
.faq-section .section-title::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: -1; /* Убедимся, что псевдоэлемент не мешает взаимодействию с контентом */
}

/* Дополнительные стили для планшетных устройств */
@media (min-width: 769px) and (max-width: 1024px) {
    .faq-section .section-title::before {
        top: -90px;
        height: 90px;
    }
}

.faq-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-accent);
}

.faq-item {
    margin-bottom: 25px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0.03);
    border-left: 5px solid var(--primary-blue);
    transition: none;
}

/* Добавляем плавную анимацию для всех FAQ-элементов */
.faq-section .faq-item {
    opacity: 1;
    animation: fadeInUp 0.6s ease forwards;
}

.faq-section .faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-section .faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-section .faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-section .faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-section .faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-section .faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-section .faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-section .faq-item:nth-child(8) { animation-delay: 0.8s; }

/* Убираем hover-эффекты для FAQ-элементов */
.faq-item {
    transition: none;
}

.faq-item:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item h3 {
    color: var(--dark-accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.faq-item p {
    color: var(--neutral-gray);
    line-height: 1.7;
    margin-bottom: 5px;
}

/* Стили для политики конфиденциальности */
.policy-container {
    max-width: 800px;
    margin: 120px auto 40px; /* Увеличен отступ сверху для лучшей видимости заголовка */
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.policy-container h2, .policy-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-accent);
}

.policy-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    transition: none;
}

.policy-section h3 {
    color: var(--dark-accent);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.4rem;
    text-align: center;
}

.policy-section ul {
    margin-left: 20px;
    margin-top: 10px;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 5px;
    color: var(--neutral-gray);
    line-height: 1.6;
}
/* Стили для универсального контейнера секции и адаптивность */
/* Удалено дублирующее определение .section-container */
/* Все стили для .section-container определены выше в файле */

/* Стили для контейнера с контактной информацией и социальными кнопками */
.contact-info-with-social {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.contact-text {
    flex: 1;
}

/* Стили для кнопок социальных сетей и мессенджеров */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
    align-self: flex-start;
}

.social-links a {
    display: inline-block;
    padding: 6px 10px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s;
    margin: 0;
    min-width: 120px;
    text-align: center;
}

.social-links a:hover {
    background-color: var(--secondary-purple);
}

/* Стили для навигационных кнопок */
.nav-button {
    background-color: var(--secondary-purple);
}

.nav-button:hover {
    background-color: var(--primary-blue);
}

/* Удалено дублирующее определение .section-container:hover */
/* Стиль :hover для .section-container определен выше в файле */

/* Стили для Яндекс Карты */
.yandex-map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0.1);
    margin: 20px 0;
}

.yandex-map-fallback {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0.1);
    cursor: pointer;
}

.yandex-map-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 40px;
    z-index: 1000;
    cursor: pointer;
}

/* Адаптивные стили для Яндекс Карты */
@media (max-width: 768px) {
    .yandex-map-container {
        height: 400px;
        margin: 15px 0;
    }
    
    .yandex-map-fallback {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .yandex-map-container {
        height: 300px;
    }
    
    .yandex-map-fallback {
        height: 300px;
    }
}

/* Стили для валидации формы */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group .error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.form-group input.error,
.form-group textarea.error {
    border: 2px solid var(--error-red);
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
}

.form-group input:focus.error,
.form-group textarea:focus.error {
    outline: none;
    border: 2px solid var(--error-red);
    box-shadow: 0 0 5px rgba(239, 68, 0.5);
}

/* Стили для выпадающего списка выбора темы */
select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--light-bg);
    color: var(--neutral-gray);
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 2px rgba(37, 99, 235, 0.2);
}

select:hover {
    border-color: var(--primary-blue);
}

select option {
    background-color: var(--light-bg);
    color: var(--neutral-gray);
    padding: 10px;
}

select option:checked {
    background-color: var(--primary-blue);
    color: white;
}

/* Адаптивные стили для заголовка FAQ на мобильных устройствах */
@media (max-width: 768px) {
    .faq-section .section-title {
        margin-top: -130px; /* Увеличиваем компенсацию для мобильных устройств */
        padding-top: 30px;
    }
    
    .faq-section {
        padding: 160px 0 40px 0; /* Увеличиваем верхний отступ для мобильных устройств */
    }
    
    .faq-section .section-title::before {
        top: -130px;
        height: 130px;
    }
}

/* Стили для адаптивного блока отзывов */
:root {
  --reviews-bg: #f8fafc;
  --reviews-card-bg: #ffffff;
  --reviews-border: #e2e8f0;
  --reviews-text: #1f2933;
  --reviews-muted: #6b7280;
  --reviews-accent: #2563eb;
  --reviews-radius: 12px;
  --reviews-gap: 1.5rem;
  --reviews-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --reviews-transition: 0.4s ease;
  --reviews-btn-bg: #2563eb;
  --reviews-btn-bg-disabled: #cbd5e1;
  --reviews-btn-text: #ffffff;
  --reviews-btn-radius: 99px;
}

.reviews {
  padding: 3rem 1rem;
  background: var(--reviews-bg);
}

.reviews__container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews__title {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--reviews-text);
}

/* Вьюпорт */

.reviews__viewport {
  overflow: hidden;
  position: relative;
}

/* Трек: десктоп/планшет – горизонтальный слайдер, мобайл > 768 – тоже,
   но при очень узких экранах включим вертикальный режим через JS. */

.reviews__track {
  display: flex;
  gap: var(--reviews-gap);
  transition: transform var(--reviews-transition);
  will-change: transform;
}

/* Карточка отзыва */

.review-card {
 flex: 0 0 auto; /* Фиксируем размер карточки */
  background: var(--reviews-card-bg);
  border-radius: var(--reviews-radius);
  padding: 1.5rem;
 box-shadow: var(--reviews-shadow);
 border: 1px solid var(--reviews-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 1;
  transform: translateY(0);
  width: 400px; /* Устанавливаем фиксированную ширину для всех карточек */
  height: 450px; /* Устанавливаем новую высоту для всех карточек */
  min-width: 400px; /* Устанавливаем минимальную ширину для карточки */
  max-width: 400px; /* Устанавливаем максимальную ширину для карточки */
  min-height: 450px; /* Устанавливаем новую минимальную высоту для карточки */
  max-height: 450px; /* Устанавливаем новую максимальную высоту для карточки */
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.review-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  flex-shrink: 0;
}

.review-card__user {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--reviews-text);
}

.review-card__rating {
  display: flex;
  gap: 2px;
}

.star {
  width: 14px;
  height: 14px;
  background: var(--reviews-accent);
  clip-path: polygon(
    50% 0%,
    63% 38%,
    100% 38%,
    69% 59%,
    82% 100%,
    50% 75%,
    18% 100%,
    31% 59%,
    0% 38%,
    37% 38%
  );
}

.star--empty {
  background: #e5e7eb;
}

.review-card__date {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--reviews-muted);
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--reviews-text);
}

/* Кнопки навигации */

.reviews__controls {
  margin-top: 1.5rem;
 display: flex;
 gap: 1rem;
  justify-content: flex-end;
}

.reviews__btn {
 padding: 0.6rem 1.4rem;
 border-radius: var(--reviews-btn-radius);
  border: none;
  cursor: pointer;
  background: var(--reviews-btn-bg);
  color: var(--reviews-btn-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.reviews__btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.reviews__btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
}

.reviews__btn:disabled {
  background: var(--reviews-btn-bg-disabled);
  cursor: default;
  box-shadow: none;
}

/* Адаптивность: планшеты */

@media (max-width: 1023px) {
  .review-card {
    flex: 0 0 auto; /* Убираем ограничение на количество карточек в ряду */
  }
}

/* Малые планшеты / крупные телефоны */

@media (max-width: 767px) {
  .reviews {
    padding: 2.5rem 1rem;
  }

  .reviews__title {
    font-size: 1.5rem;
  }

  .review-card {
    flex: 0 0 auto; /* Убираем ограничение на количество карточек в ряду */
  }

  .reviews__controls {
    justify-content: center;
 }
}

/* Вертикальный режим для очень узких экранов
   (сам скролл включается логикой JS – здесь только стили) */

.reviews--vertical .reviews__viewport {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.reviews--vertical .reviews__track {
  flex-direction: column;
  transform: none !important;
}

.reviews--vertical .review-card {
    flex: 0 0 auto;
}

/* Стили для карусели отзывов */
.reviews-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reviews-slider {
    position: relative;
    overflow: hidden; /* Изменяем на hidden, чтобы карточки не выходили за границы контейнера */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
    padding: 30px;
    margin: 20px 0 40px;
    /* Убираем фиксированную высоту для лучшей адаптивности */
    min-height: 400px;
    /* Убираем flex и justify-content, чтобы не конфликтовать с transform */
    /* display: flex;
    align-items: center;
    justify-content: center; */
    /* Устанавливаем фиксированную высоту для контейнера, чтобы карточки не меняли размер */
    height: auto;
    /* Добавляем относительное позиционирование для правильной работы transform */
    position: relative;
    /* Убираем overflow, чтобы не обрезать карточки при центрировании */
    overflow: hidden; /* Устанавливаем overflow: hidden для предотвращения наложения */
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-slider-inner {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
    /* Убираем переполнение, чтобы карточки не выходили за границы */
    overflow: visible;
    /* Устанавливаем размеры для корректного позиционирования */
    width: 100%;
    position: relative;
    /* Убираем justify-content, так как позиционирование будет осуществляться через transform */
    justify-content: flex-start;
    align-items: center;
    /* Убираем flex-wrap, чтобы карточки не переносились на новую строку */
    flex-wrap: nowrap;
    /* Добавляем will-change для оптимизации производительности анимации */
    will-change: transform;
    /* Добавляем backface-visibility для лучшей производительности */
    backface-visibility: hidden;
    /* Добавляем transform-style для лучшей производительности */
    transform-style: preserve-3d;
    /* Устанавливаем z-index для контейнера слайдов */
    z-index: 1;
}

.review-card {
    flex: 0 auto; /* Фиксируем размер карточки */
    background: var(--reviews-card-bg);
    border-radius: var(--reviews-radius);
    padding: 25px;
    box-shadow: var(--reviews-shadow);
    border: 1px solid var(--reviews-border);
    opacity: 1; /* Убираем изначальное затенение */
    transform: translateX(0); /* Убираем изначальное смещение */
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 400px; /* Устанавливаем фиксированную ширину для всех карточек */
    height: 450px; /* Устанавливаем новую высоту для всех карточек */
    min-width: 400px; /* Устанавливаем минимальную ширину для карточки */
    max-width: 400px; /* Устанавливаем максимальную ширину для карточки */
    min-height: 450px; /* Устанавливаем новую минимальную высоту для карточки */
    max-height: 450px; /* Устанавливаем новую максимальную высоту для карточки */
    /* Добавляем ограничения для предотвращения выхода за границы */
    position: relative;
    overflow: hidden;
    /* Центрируем карточку внутри контейнера */
    margin: 0 auto;
    /* Убираем дублирующиеся свойства */
    display: flex;
    z-index: 2; /* Устанавливаем базовый z-index для избежания наложения */
    /* Добавляем плавные переходы для анимаций */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Анимации при наведении на карточку отзыва */
.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Анимации для элементов внутри карточки при наведении */
.review-card:hover .review-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.review-card:hover .review-author-info h4 {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.review-card:hover .review-rating {
    transform: scale(1.05);
}

.review-card:hover .review-content p {
    color: var(--dark-accent);
}

.review-card:hover .review-content p:before {
    opacity: 0.3;
    transform: scale(1.1);
}

.review-card:hover .review-date {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Добавляем более плавные переходы для элементов в заголовке отзыва */
.review-header {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.review-avatar {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.review-author-info h4 {
    transition: color 0.4s ease, transform 0.4s ease;
}

.review-rating {
    transition: transform 0.4s ease;
}

.review-date {
    transition: color 0.4s ease, font-weight 0.4s ease;
}

/* Дополнительные анимации для активной карточки */
.review-card.active {
    opacity: 1;
    transform: translateX(0);
    /* Убираем любые возможные смещения для активной карточки */
    position: relative;
    z-index: 20; /* Повышаем z-index для активной карточки */
    /* Добавляем более заметное выделение для активной карточки */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Убедимся, что активная карточка центрирована */
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card.active:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Дополнительные стили для центрирования активной карточки */
.reviews-slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0);
    /* Убираем любые возможные смещения для активной карточки */
    position: relative;
    z-index: 20; /* Повышаем z-index для активной карточки */
    /* Добавляем более заметное выделение для активной карточки */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    /* Убедимся, что активная карточка центрирована */
    margin: 0 auto;
}

.review-card.prev,
.review-card.next {
    opacity: 0.6;
    transform: translateX(0);
    display: flex;
    z-index: 3; /* Устанавливаем z-index для соседних карточек */
}

.review-card.prev,
.review-card.next {
    opacity: 0.6;
    transform: translateX(0);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.review-author-info {
    flex-grow: 1;
    margin-left: 15px;
}

.review-author-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-accent);
    font-size: 1.1rem;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.star {
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    position: relative;
    display: inline-block;
}

.star::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 16px;
    color: #e5e7eb;
    text-align: center;
}

.star.filled {
    background: transparent;
}

.star.filled::before {
    color: #f59e0b;
}

.review-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-left: 15px;
    flex-shrink: 0;
}

.review-content {
    position: relative;
    padding-left: 45px;
}

.review-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-gray);
}

.review-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-gray);
    position: relative;
}

/* Стили для отдельного элемента кавычки */
.quote-mark {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.reviews-nav:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.reviews-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.reviews-nav-prev {
    left: 10px;
}

.reviews-nav-next {
    right: 10px;
}

.arrow-left,
.arrow-right {
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.arrow-left {
    border-right: 12px solid var(--dark-accent);
}

.arrow-right {
    border-left: 12px solid var(--dark-accent);
}

.reviews-nav:hover .arrow-left,
.reviews-nav:hover .arrow-right {
    border-right-color: white;
    border-left-color: white;
}

.reviews-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.review-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.review-indicator:hover {
    background: var(--secondary-purple);
    transform: scale(1.1);
}

/* Адаптивность для карусели отзывов */
@media (max-width: 768px) {
    .reviews-slider {
        padding: 20px 50px;
    }
    
    .reviews-nav {
        width: 40px;
        height: 40px;
    }
    
    .reviews-nav-prev {
        left: 5px;
    }
    
    .reviews-nav-next {
        right: 5px;
    }
    
    .review-card {
        padding: 20px;
        width: 320px; /* Устанавливаем фиксированную ширину для планшетов */
        height: 450px; /* Увеличиваем высоту для планшетов */
        min-width: 320px; /* Устанавливаем минимальную ширину для планшетов */
        max-width: 320px; /* Устанавливаем максимальную ширину для планшетов */
        min-height: 450px; /* Увеличиваем минимальную высоту для планшетов */
        max-height: 450px; /* Увеличиваем максимальную высоту для планшетов */
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-date {
        margin-left: 0;
    }
    
    .review-content p:before {
        font-size: 2.5rem;
        top: -8px;
        left: -5px;
    }
}

@media (max-width: 480px) {
    .reviews-slider {
        padding: 15px 40px;
    }
    
    .reviews-nav {
        width: 35px;
        height: 35px;
    }
    
    .review-card {
        padding: 15px;
        width: 280px; /* Устанавливаем фиксированную ширину для мобильных устройств */
        height: 420px; /* Увеличиваем высоту для мобильных устройств */
        min-width: 280px; /* Устанавливаем минимальную ширину для мобильных устройств */
        max-width: 280px; /* Устанавливаем максимальную ширину для мобильных устройств */
        min-height: 420px; /* Увеличиваем минимальную высоту для мобильных устройств */
        max-height: 420px; /* Увеличиваем максимальную высоту для мобильных устройств */
        margin: 0 auto; /* Центрируем карточку на мобильных устройствах */
    }
    
    .review-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .review-author-info h4 {
        font-size: 1rem;
    }
    
    .review-content p {
        font-size: 0.95rem;
    }
    
    .review-content p:before {
        font-size: 2rem;
        top: -6px;
    }
    
    .star {
        width: 14px;
        height: 14px;
    }
}

/* Стили для информационной плашки о разработке */
.dev-notification {
   position: fixed;
   top: 70px; /* Размещаем под header */
   left: 0;
   right: 0;
   background-color: var(--dev-notification-bg); /* Используем нежно-красный цвет из переменных */
   color: #721c24; /* Темный текст для контраста с нежно-красным фоном */
   text-align: center;
   padding: 8px 0;
   z-index: 9999;
   font-size: 14px;
   font-weight: 500;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease;
}

.dev-notification-content {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 10px;
}

.dev-notification-text {
   margin: 0;
}

.dev-notification-close {
   background: none;
   border: none;
   color: #721c24;
   font-size: 18px;
   cursor: pointer;
   padding: 0;
   margin: 0;
   width: 20px;
   height: 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   transition: background-color 0.3s ease;
}

.dev-notification-close:hover {
   background-color: rgba(0, 0, 0, 0.1);
}

/* Убираем смещение основного контента, так как плашка теперь под header */
body.has-dev-notification .header {
   top: 0; /* Возвращаем header в стандартное положение */
}

body.has-dev-notification .hero {
   margin-top: 70px; /* Теперь учитываем только высоту header */
}
