/* КОРСА - Основные стили */
/* Основные переменные */
:root {
  --color-primary: #1B3C59;    /* Основной синий */
  --color-accent: #FF6B35;    /* Акцентный оранжевый */
  --color-success: #4CAF50;    /* Зеленый */
  --color-bg: #F7F7F7;    /* Фоновый серый */
  --color-text: #333333;    /* Основной текст */
  --color-text-light: #FFFFFF; /* Светлый текст */
  --bs-primary: #1B3C59;
  --bs-primary-rgb: 27, 60, 89;
  --bs-warning: #FF6B35;
  --bs-warning-rgb: 255, 107, 53;
}

/* Сброс стилей с повышенной специфичностью */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Базовые стили */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  height: 50px;
}

.nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* Мобильное меню */
.hamburger {
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .nav__list.active {
    display: flex;
  }
}

/* Увеличиваем специфичность селектора для кнопки в шапке */
.nav__callback-btn {
  padding: 10px 20px;
  background: #ff7f4d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav__callback-btn:hover {
  background: #ff6b35;
}

/* Формы */
.form__group {
  margin-bottom: 20px;
}

.form__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.form__input:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Уведомления */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.notification--show {
  transform: translateY(0);
  opacity: 1;
}

.notification--success {
  background: var(--color-success);
  color: white;
}

.notification--error {
  background: #f44336;
  color: white;
}

/* Анимации */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}



/* Первый экран */
.hero {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(rgba(var(--bs-primary-rgb), 0.95), rgba(var(--bs-primary-rgb), 0.9));
  padding-top: 90px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(27, 60, 89, 0.9),
    rgba(27, 60, 89, 0.95)
  );
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: 42px;
  color: #fff;
  margin-bottom: 40px;
}

.hero__highlight {
  display: block;
  color: var(--color-accent);
  margin-top: 12px;
  font-size: 32px;
}

.hero__subtitle {
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-text-light);
  margin-bottom: 48px;
  opacity: 0.9;
}

.hero__advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.advantage__item {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.advantage__item:hover {
  transform: translateY(-5px);
}

.hero__trust {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}

.trust__number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
}

.trust__text {
  font-size: 14px;
  color: var(--color-text-light);
  opacity: 0.8;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
  .hero__advantages {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__highlight {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0;
  }
}

/* Стили для футера */
.footer {
    background-color: var(--color-primary);
    padding: 80px 0 40px;
    color: var(--color-text-light);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__column {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    display: block;
    margin-bottom: 24px;
}

.footer__description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer__certificates {
    display: flex;
    gap: 16px;
}

.certificate__img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.certificate__img:hover {
    opacity: 1;
}

/* Стили для заголовков и списков */
.footer__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    color: var(--color-text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__list a:hover {
    opacity: 1;
}

/* Стили для контактов в футере */
.footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff;
}

.footer__contact-item i {
    font-size: 18px;
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

.footer__contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-item a:hover {
    color: var(--color-accent);
}

.footer__contact-item span {
    font-size: 14px;
    opacity: 0.9;
}

/* Стили для нижней части футера */
.footer__bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: 14px;
    opacity: 0.6;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social__link:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.social__link i {
    font-size: 18px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 1;
}

/* Медиа-запросы для адаптивности футера */
@media (max-width: 1200px) {
    .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer__column:nth-child(4), /* Контакты */
    .footer__column:nth-child(5) { /* Информация */
    grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    }
    
    .footer__column:first-child {
    grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .product__image {
        height: 180px;
        padding: 15px;
    }
    
    .product__content {
        padding: 15px;
        height: auto;
        min-height: 90px;
    }
    
    .product__content h3 {
        font-size: 15px;
        margin-bottom: 5px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    .product__content p {
        font-size: 12px;
        line-height: 1.3;
        word-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .footer__grid {
    grid-template-columns: 1fr;
    }
    
    .footer__column:first-child {
    grid-column: span 1;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal--active {
    display: flex;
    opacity: 1;
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: var(--color-bg);
    padding: 40px;
    border-radius: 16px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal--active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.modal__close:hover {
    transform: rotate(90deg);
}

.modal__title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* Стили для прелоадера */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader--hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-text-light);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
    transform: rotate(360deg);
    }
}

/* Стили для анимации появления элементов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для секции каталога */
.catalog {
    padding: 100px 0;
    background: var(--color-bg);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 18px;
    color: #4a4a4a; /* явный цвет вместо opacity:0.8 — гарантирует контраст 7:1 на светлом фоне */
    max-width: 600px;
    margin: 0 auto;
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product__image {
    position: relative;
    width: 100%;
    height: 240px; /* Фиксированная высота для изображений */
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-card:hover .product__image img {
    transform: scale(1.05);
}

.product__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: auto;
    min-height: 120px;
}

.product__content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение в 2 строки */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.product__content p {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение в 2 строки */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.catalog__action {
    text-align: center;
    margin-top: 40px;
}

.catalog__action .button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
}

.catalog__action .button:hover {
    background: #fff;
    color: var(--color-accent);
}

@media (max-width: 1200px) {
    .catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section__title {
        font-size: 28px;
    }
    
    .section__subtitle {
        font-size: 16px;
    }
    
    .catalog__action .button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Стили для секции преимуществ */
.benefits {
    padding: 100px 0;
    background: #fff;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.benefit__item {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-bg);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.benefit__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit__icon i {
    font-size: 32px;
    color: var(--color-text-light);
}

.benefit__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.benefit__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.8;
}

/* Медиа-запросы для секции преимуществ */
@media (max-width: 992px) {
    .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits__grid {
    grid-template-columns: 1fr;
    }
    
    .benefit__item {
    padding: 30px 20px;
    }
}

/* Стили для тултипов */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover .tooltip__text {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.tooltip__text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 8px 12px;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tooltip__text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-primary);
}

/* Стили для индикаторов загрузки */
.button--loading {
    position: relative;
    color: transparent;
}

.button--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Индикатор прогресса */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.scroll-progress__bar {
    height: 100%;
    background: var(--color-accent);
    width: 0;
    transition: width 0.1s ease;
}

/* Стили для кнопки "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
}



/* Стили для секции брендов */
.brands {
    padding: 80px 0;
    background: var(--color-bg);
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Добавление стиля для центрирования последнего элемента */
.brands__grid > *:last-child:nth-child(3n-1) {
    grid-column-start: 2;
}

.brands__grid > *:last-child:nth-child(3n-2) {
    grid-column: 1 / 4;
    width: 33.33%;
    justify-self: center;
}

.brand__card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.brand__card:hover {
    transform: translateY(-5px);
}

.brand__image {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.brand__name {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.brand__description {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Центрирование последнего элемента для 2-колоночного макета */
    .brands__grid > *:last-child:nth-child(odd) {
        grid-column: 1 / 3;
        width: 50%;
        justify-self: center;
    }
    
    /* Сброс правила для 3-колоночного макета */
    .brands__grid > *:last-child:nth-child(3n-1),
    .brands__grid > *:last-child:nth-child(3n-2) {
        grid-column: auto;
        width: auto;
        justify-self: auto;
    }
    
    .brand__card {
        padding: 20px;
    }
    
    .brand__image {
        height: 60px;
        margin-bottom: 15px;
    }
    
    .brand__name {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .brand__description {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .brands {
        padding: 40px 0;
    }
    
    .section__header {
        margin-bottom: 30px;
    }
    
    .section__title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .section__subtitle {
        font-size: 14px;
    }
    
    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    /* Сохраняем центрирование последнего элемента для 2-колоночного макета */
    .brands__grid > *:last-child:nth-child(odd) {
        grid-column: 1 / 3;
        width: 50%;
        justify-self: center;
        margin: 0 auto;
    }
    
    .brand__card {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .brand__image {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .brand__name {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 1.3;
    }
    
    .brand__description {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Стили для секции сертификатов */
.certificates {
    padding: 100px 0;
    background: #fff;
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.certificate__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
}

.certificate__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 60, 89, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate__item:hover .certificate__overlay {
    opacity: 1;
}

.certificate__item:hover .certificate__image {
    transform: scale(1.05);
}

.certificate__zoom {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-text-light);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate__zoom:hover {
    transform: scale(1.1);
    background: var(--color-accent-dark);
}

/* Медиа-запросы для секции сертификатов */
@media (max-width: 992px) {
    .certificates__grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .certificates__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    }
}

/* Стили для секции отзывов */
.reviews {
    padding: 40px 0;
}

.section__header {
    margin-bottom: 40px;
}

.section__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.8;
}

.reviews__slider .row {
    margin: 0 -15px;
}

.review__item {
    padding: 15px;
    display: flex;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

/* Продолжение стилей */
.review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.review-card__logo {
    width: 60px;
    height: 60px;
    margin-right: 16px;
    border-radius: 50%;
    padding: 8px;
    background: #f5f5f5;
}

.review-card__info {
    flex: 1;
}

.review-card__company {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.review-card__rating {
    color: #ffc107;
    font-size: 14px;
}

.review-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    flex-grow: 1;
    position: relative;
    padding-left: 24px;
}

.review-card__text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 36px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.2;
}

.reviews__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.reviews__prev,
.reviews__next {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews__prev:hover,
.reviews__next:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.reviews__prev:disabled,
.reviews__next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .review__item {
    margin-bottom: 20px;
    }
    
    .review-card {
    margin-bottom: 0;
    }
    
    .reviews__nav {
    margin-top: 20px;
    }
}

/* Стили для секции процесса работы */
.workflow {
    padding: 100px 0;
    background: #fff;
}

.workflow__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.workflow__grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.1;
}

.workflow__item {
    text-align: center;
    position: relative;
}

.workflow__number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.workflow__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.workflow__description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.8;
}

/* Медиа-запросы для секции процесса работы */
@media (max-width: 992px) {
    .workflow {
        padding: 70px 0;
    }
    
    .workflow__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 40px;
    }
    
    .workflow__grid::before {
        display: none;
    }
    
    .workflow__number {
        width: 70px;
        height: 70px;
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .workflow__title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .workflow__description {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .workflow {
        padding: 50px 0;
    }
    
    .workflow__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .workflow__number {
        width: 60px;
        height: 60px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .workflow__title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .workflow__description {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .workflow {
        padding: 40px 0;
    }
    
    .workflow__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 25px;
    }
    
    .workflow__item {
        padding: 10px;
    }
    
    .workflow__number {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .workflow__title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .workflow__description {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .section__title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .section__subtitle {
        font-size: 14px;
    }
}

/* Стили для секции контактов */
.contacts {
    padding: 80px 0;
    background: var(--color-bg);
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 18px;
    color: #4a4a4a; /* явный цвет вместо opacity:0.8 — гарантирует контраст 7:1 на светлом фоне */
    max-width: 600px;
    margin: 0 auto;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contacts__map {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contacts__info {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact__block {
    margin-bottom: 30px;
}

.contact__block:last-child {
    margin-bottom: 0;
}

.contact__title {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact__item i {
    color: var(--color-accent);
    font-size: 20px;
    margin-top: 3px;
}

.contact__content {
    flex: 1;
}

.contact__text,
.contact__link {
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    margin: 0;
}

.contact__link:hover {
    color: var(--color-accent);
}

.contact__label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.messengers {
    display: flex;
    gap: 15px;
}

.messenger__link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.messenger__link:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Адаптивность для контактов */
@media (max-width: 992px) {
    .contacts__grid {
    grid-template-columns: 1fr;
    }
    
    .contacts__map {
    padding-bottom: 56.25%;
    }
}

@media (max-width: 576px) {
    .contacts__info {
    padding: 20px;
    }
    
    .contact__title {
    font-size: 16px;
    }
    
    .contact__text,
    .contact__link {
    font-size: 14px;
    }
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat__item {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--color-accent);
}

.stat__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .hero__stats {
    flex-direction: column;
    gap: 32px;
    }
    
    .stat__number {
    font-size: 36px;
    }
}

/* Анимированный бейдж */
.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

.badge__icon {
    font-size: 24px;
    margin-right: 12px;
}

.badge__text {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 18px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}



/* Анимации появления */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Верхняя часть */
.hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.hero__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 14px;
}

.hero__phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__phone a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
}

.hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ВАЖНО: селектор сужен с .search до .header .search.
   WordPress на странице поиска добавляет class="search" на <body>, и без
   префикса это правило ужимало весь body до 300px (broken layout). */
.header .search {
    position: relative;
    width: 300px;
}

.search__input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-light);
}

.work-hours {
    display: flex;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 14px;
    opacity: 0.8;
}

/* Фиксированное меню */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-primary);
    padding: 15px 0;
}

.nav__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__menu {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__menu a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
    transition: color 0.3s;
}

.nav__menu a:hover {
    color: var(--color-accent);
}

.nav__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__schedule {
    font-size: 14px;
    color: var(--color-text-light);
    margin-right: 15px;
}

.nav__phone {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-light);
}

  
/* Стили для кнопки заказа звонка */
.button--outline {
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    color: #FFF;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
  
.button--outline:hover {
    background: var(--color-accent);
}
  
/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
  
.modal--active {
    display: flex !important;
}
  
.modal__content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-width: 500px;
    width: 90%;
    margin: 20px;
}
  
/* Стили формы в модальном окне */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
  
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
  
.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
  
.form-group input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Стили для полей с ошибками */
input.error {
    border-color: #f44336 !important;
    background-color: rgba(244, 67, 54, 0.05);
}

.form-group .error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}
  
/* Заголовок модального окна */
.modal__content h3 {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-size: 24px;
    text-align: center;
}
  
/* Кнопка закрытия */
.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}
  
.modal__close:hover {
    color: var(--color-primary);
}



.city-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 14px;
    cursor: pointer;
}

/* Мобильное меню */
@media (max-width: 768px) {
    /* 1. Гамбургер меню */
    .hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    margin-left: auto;
    }

    .nav__menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    padding: 20px;
    }

    .nav__menu.active {
    display: block;
    }

    .nav__menu li {
    display: block;
    margin: 15px 0;
    }

    /* 2. Блоки первого экрана */
    .hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }

    .hero-feature {
    width: 100%;
    }

    /* 3. Дистрибьютор секция */
    .distributor-section {
    padding: 30px 15px;
    }

    .distributor-item {
    margin-bottom: 20px;
    }

    /* 4. Каталог продукции */
    .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    }

    /* 5. Кнопки в карточках */
    .product-card__button {
    margin: 0 auto;
    display: block;
    }

    /* 6. Почему выбирают */
    .advantages-section {
    padding: 30px 15px;
    }

    .advantage-card {
    margin-bottom: 20px;
    }

    /* 7. Сертификаты слайдер */
    .certificates-grid {
    display: none;
    }

    .certificates-slider {
    display: block;
    }

    /* 8. Отзывы */
    .reviews-section {
    padding: 30px 15px;
    }

    .review-card {
    margin-bottom: 20px;
    }

    /* 9. Как мы работаем */
    .workflow-section {
    padding: 30px 15px;
    }

    .workflow-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px;
    }

    .workflow-item {
    min-width: 280px;
    margin-right: 15px;
    }

    /* 10. География поставок */
    .geography-section {
    display: none;
    }

    /* 11. FAQ */
    .faq-section {
    padding: 30px 15px;
    }

    /* 12. Популярные товары */
    .popular-products {
    display: none;
    }

    /* 13. Футер - удаляем плюсики */
    /* Эти стили перенесены в footer.css */
}

/* Стили для отзывов */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.review-card__logo {
    width: 60px;
    height: 60px;
    margin-right: 16px;
}

.review-card__company {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-card__rating {
    color: #ffc107;
}

.review-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.reviews__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.reviews__prev,
.reviews__next {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.reviews__prev:hover,
.reviews__next:hover {
    background: var(--color-primary-dark);
}

/* Стили для бейджей на карточках товаров */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.badge-new {
    background: #4CAF50;
    color: white;
}

.badge-hit {
    background: #FF9800;
    color: white;
}

.badge-partner {
    background: #2196F3;
    color: white;
}

.badge-discount {
    background: #f44336;
    color: white;
}

/* Стили для индикатора наличия */
.stock-indicator .badge {
    font-size: 12px;
    padding: 6px 12px;
}

.stock-indicator .badge i {
    font-size: 10px;
}

/* Кастомные стили для компонентов */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Стили для модального окна выбора города */
.city-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.city-modal__content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal__title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.city-option {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 16px;
}

.city-option:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.city-option.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.modal__close:hover {
    color: var(--color-primary);
}

/* Стили для текущего города в шапке */
.current-city {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-weight: 500;
    z-index: 1;
    position: relative;
}

.current-city:hover {
    color: var(--color-accent);
}

.current-city i {
    font-size: 14px;
}

/* Стили для внутренних страниц */
.page-content {
  padding: 50px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1B3C59;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #1B3C59;
  margin-bottom: 20px;
  margin-top: 40px;
}

.section-description {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 40px;
}

/* Стили для страницы "О компании" */
.about-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1B3C59;
  margin-bottom: 15px;
}

.about-card-icon {
  font-size: 48px;
  color: #FF6B35;
  margin-bottom: 20px;
}

.about-image {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  width: 100%;
  height: auto;
}

/* Стили для страницы "Контакты" */
.contact-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-icon {
  font-size: 48px;
  color: #FF6B35;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1B3C59;
  margin-bottom: 15px;
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-card a {
  color: #1B3C59;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: #FF6B35;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-additional ul li {
  margin-bottom: 10px;
}

/* Стили для страницы "Доставка и оплата" */
.delivery-card,
.payment-card,
.terms-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.delivery-card:hover,
.payment-card:hover,
.terms-card:hover {
  transform: translateY(-5px);
}

.delivery-icon,
.payment-icon {
  font-size: 48px;
  color: #FF6B35;
  margin-bottom: 20px;
  text-align: center;
}

.delivery-card h3,
.payment-card h3,
.terms-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1B3C59;
  margin-bottom: 15px;
  text-align: center;
}

.delivery-additional,
.delivery-contacts {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.delivery-additional h3,
.delivery-contacts h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1B3C59;
  margin-bottom: 15px;
}

.delivery-additional ul li,
.delivery-contacts ul li {
  margin-bottom: 10px;
}

.delivery-contacts a {
  color: #1B3C59;
  text-decoration: none;
  font-weight: 500;
}

.delivery-contacts a:hover {
  color: #FF6B35;
}

/* Хлебные крошки */
.breadcrumbs {
  margin-bottom: 30px;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: #1B3C59;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #FF6B35;
}

.breadcrumb-item.active {
  color: #666;
}

/* Адаптивность для внутренних страниц */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 20px;
  }
  
  .page-content {
    padding: 30px 0;
  }
  
  .about-card,
  .contact-card,
  .delivery-card,
  .payment-card,
  .terms-card {
    padding: 20px;
  }
  
  .about-card-icon,
  .contact-icon,
  .delivery-icon,
  .payment-icon {
    font-size: 36px;
  }
}