.uc-cards-background {
  background-color: transparent;
}

/* ======================================
   Основные переменные и сбросы
   ====================================== */
:root {
  --accent: #d32f2f;
  --accent-dark: #b71c1c;
  --accent-light: #ef5350;
  --light: #f8f9fa;
  --dark: #2d2d2d;
  --gray: #6c757d;
  --font-main: "Montserrat", sans-serif; /* меняй здесь шрифт для всего сайта */
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main); /* используем Montserrat */
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f5f5f5;
  border-bottom: 1px solid #e4e4e4;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 14px !important;
}

.site-header__logo {
  font-weight: 700;
  font-size: 18px;
  color: #111;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.site-header__link {
  font-size: 14px;
  color: #111;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: .15s;
}

.site-header__link:hover,
.site-header__link--active {
  border-bottom-color: var(--accent);
}

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

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: .15s;
}

.site-header__cta:hover {
  background: var(--accent-dark);
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-header__nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header__right {
    gap: 12px;
    display: none;
  }

  .site-header__cta {
    display: none;
  }
}

/* ======================================
   Контейнер и страница
   ====================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Страница матраса: две колонки */
.product-page {
  display: grid;
  grid-template-columns: 64% 36%;
  gap: 36px;
  margin: 100px 0 40px;
  min-height: 100vh;
  align-items: start;
}

/* Убеждаемся, что стили страницы продукта работают даже если body имеет класс home-page */
/* Убеждаемся, что стили страницы продукта работают даже если body имеет класс home-page */
body.home-page .product-page {
  display: grid !important;
  grid-template-columns: 64% 36% !important;
  gap: 36px !important;
  margin: 100px 0 40px !important;
  min-height: 100vh !important;
  align-items: start !important;
}

body.home-page .product-page .container {
  max-width: 1240px !important; /* возвращаем стандартную ширину для страницы продукта */
}

body.home-page .left-column,
body.home-page .right-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 48px !important;
  width: 100% !important;
}

body.home-page .gallery .main-image {
  width: 100% !important;
  height: 480px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

body.home-page .product-widget {
  background: white !important;
  border-radius: 16px !important;
  padding: 32px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  width: 100% !important;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

/* ======================================
   Галерея
   ====================================== */
.gallery .main-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
}

.thumbnail {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: var(--accent);
}

/* Миниатюра видео */
.thumbnail-video {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 180ms ease-out;
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  background: transparent; /* убираем черный фон */
}

.thumbnail-video.active {
  border-color: var(--accent);
}

.thumbnail-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* предотвращаем клики по видео в миниатюре */
  border-radius: 8px; /* скругление углов как у обычных миниатюр */
}

/* Иконка воспроизведения поверх видео-миниатюры */
.thumbnail-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  /* SVG иконка Play через data URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.7); /* темный фон для иконки */
}

/* Видео в основном окне */
.gallery video.main-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Временное отключение видео на страницах матрасов */
#mainVideo,
.thumbnail-video {
  display: none !important;
}

/* ======================================
   Слои, описание, карта, отзывы
   ====================================== */
.composition,
.description,
.map-block,
.reviews {
  width: 100%;
}

.composition h2,
.description h3,
.map-block h3,
.reviews h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  text-align: center;
}

.layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}

.layer-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.layer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Описание матраса как карточка */
.description {
  margin-top: 16px;
}

.description h3 {
  max-width: 780px;
  margin: 0 auto 16px;
  text-align: left;
}

.description-text {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--light);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  white-space: pre-line; /* переносы строк → абзацы */
}

.description-text strong {
  font-weight: 600;
}

.description-text em {
  font-style: italic;
  color: var(--gray);
}

/* Отзывы */
.reviews {
  padding: 60px 0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.review-item {
  display: flex;
  gap: 20px;
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
}

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.review-content {
  flex: 1;
}

.review-stars {
  color: #f39c12;
  font-size: 1.3rem;
}

.review-text {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.review-name {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ======================================
   Правая колонка и виджет
   ====================================== */

/* колонка-обёртка */
.right-column {
  align-self: start;
}

/* виджет заказа в правой колонке */
.product-widget {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.product-widget h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* теги — красные с белым текстом */
.tag {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
}

.price small {
  font-size: 1.1rem;
  color: var(--gray);
  display: block;
  margin-top: 4px;
}

/* Выпадающий список размеров */
.size-selector {
  margin: 24px 0;
}

.size-selector label {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
  font-size: 1.1rem;
}

.size-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: white;
  color: var(--dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d32f2f' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.size-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* Кнопки CTA */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.btn {
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1.1rem;
  width: 100%;
}

.btn.primary {
  background: var(--accent);
  color: white !important;
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: white;
}

.delivery {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
}

/* ======================================
   Мобильная фиксированная панель
   ====================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-price {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--accent);
  white-space: nowrap;
}

.mobile-cta {
  flex: 1;
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

/* ======================================
   Адаптив для страницы матраса
   ====================================== */

/* ≥ 992px: две колонки, правая колонка "прилипает" при скролле */
@media (min-width: 992px) {
  .right-column {
    position: static;
  }

  .product-widget {
    position: sticky;
    top: 90px; /* примерно под фикс‑хедером */
    width: 100%;
  }
}

/* ≤ 992px: одна колонка, без fixed, с нижней панелью */
@media (max-width: 992px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 20px 0;
  }

  .product-widget {
    position: static;
    width: 100%;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  .main-image {
    height: 320px;
    border-radius: 12px;
    margin: 0 0 16px 0;
    width: 100%;
  }

  .gallery video.main-image {
    height: 320px;
  }

  .thumbnails {
    gap: 8px;
  }

  .thumbnail {
    width: 70px;
    height: 55px;
  }

  .size-select {
    padding: 14px 40px 14px 16px;
    font-size: 1.05rem;
  }

  .btn {
    padding: 16px;
    font-size: 1.05rem;
  }

  h2,
  h3 {
    font-size: 1.9rem;
  }

  .composition,
  .description,
  .map-block,
  .reviews {
    padding: 32px 0;
  }

  .review-item,
  .layer-card,
  .delivery {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 280px;
  }

  .gallery video.main-image {
    height: 280px;
  }

  .mobile-price {
    font-size: 1.25rem;
  }

  .mobile-cta {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ======================================
   Анимации кнопок справа
   ====================================== */

/* "Заказать в Telegram" */
.btn-pulse {
  animation: btnPulseScale 0.9s 2s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
  transform-origin: center center;
}

@keyframes btnPulseScale {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  25% {
    transform: scale(1.015);
  }
  55% {
    transform: scale(1.04);
    box-shadow: 0 14px 36px rgba(211, 47, 47, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

/* "Позвонить сейчас" — через 0.5s после первой */
.btn-pulse-secondary {
  animation: btnPulseScale 0.9s 3.4s cubic-bezier(0.16, 1, 0.3, 1) 1 forwards;
  transform-origin: center center;
}

/* ======================================
   Главная: большой промо-баннер
   ====================================== */
.promo-hero {
  padding-block: 32px;
}

.promo-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 28px;
  background: linear-gradient(120deg, #ff8a00, #ff6a3c);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.promo-hero__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.promo-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.promo-hero__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
}

.promo-hero__subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Кнопка "Подробнее" в баннере */
.promo-hero__button {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out,
              transform 120ms ease-out, box-shadow 160ms ease-out;
}

.promo-hero__button:hover {
  background: #ffffff;
  color: #ff6a3c;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.promo-hero__button:active {
  transform: scale(0.97);
}

/* Картинка внутри баннера */
.promo-hero__image {
  border-radius: 24px;
  overflow: hidden;
  min-height: 180px;
}

.promo-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .promo-hero__card {
    grid-template-columns: 1fr;
    padding: 22px 20px 26px;
  }

  .promo-hero__image {
    height: 200px;
    order: -1; /* картинка сверху на мобилке */
  }
}

/* ======================================
   Главная: карточки разделов с картинкой
   ====================================== */
.home-section {
  padding-block: 56px;
}

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

.home-section__header p {
  color: var(--gray);
}

/* Сетка карточек разделов: 4 в ряду, 2 ряда */
.home-category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* фиксированные 4 колонки */
  gap: 18px;
  max-width: 100%;
}

/* Карточка раздела */
.home-category-tile {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f3;
  overflow: hidden;
  text-decoration: none;
  color: var(--accent); /* красный текст по умолчанию */
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 180ms ease-out,
              border-color 180ms ease-out,
              background-color 180ms ease-out,
              color 180ms ease-out;
}

/* контейнер для анимации картинки */
.home-category-tile__image-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f3;
  transition: border-color 180ms ease-out;
}

.home-category-tile__image-wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* контент под картинкой */
.home-category-tile__content {
  padding: 12px 14px 16px;
}

.home-category-tile__content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--accent); /* красный заголовок */
  transition: color 180ms ease-out;
}

.home-category-tile__content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 180ms ease-out;
}

/* Hover‑эффект: красный фон, белый текст, убираем серую линию */
.home-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
  background-color: var(--accent); /* красный фон */
  color: #ffffff; /* белый текст */
}

.home-category-tile:hover .home-category-tile__image-wrap {
  border-bottom-color: transparent; /* убираем серую линию */
}

.home-category-tile:hover .home-category-tile__image-wrap img {
  transform: translateY(-6px);
}

.home-category-tile:hover .home-category-tile__content h3,
.home-category-tile:hover .home-category-tile__content p {
  color: #ffffff; /* белый текст при hover */
}

/* Адаптив для главной */
@media (max-width: 1200px) {
  .home-category-cards {
    grid-template-columns: repeat(3, 1fr); /* 3 в ряду на планшетах */
  }
}

@media (max-width: 768px) {
  .home-section {
    padding-block: 40px;
  }

  .home-category-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 в ряду на мобилке */
  }
}

@media (max-width: 480px) {
  .home-category-cards {
    grid-template-columns: 1fr; /* 1 в ряду на очень маленьких */
  }
}

/* ======================================
   Главная: карточки товаров
   ====================================== */

.products-section {
  padding-block: 60px;
}

/* На больших экранах делаем блок такой же ширины как баннер */
@media (min-width: 1240px) {
  .products-section {
    padding-inline: 24px; /* отступы от краёв браузера, как у баннера */
  }

  .products-section .container {
    max-width: calc(1240px * 1.2); /* такая же ширина как у баннера */
    padding-inline: 0;
    margin-inline: auto;
  }
}

/* Ряд с карточками: большая слева, две маленькие справа */
.market-cards-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr; /* чуть шире для большой карточки */
  gap: 20px;
  max-width: 100%;
  margin-bottom: 20px; /* отступ между строками */
}

/* Ряд только с маленькими карточками: 4 равных колонки */
.market-cards-row--small-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Вторая строка: обратный порядок (2 маленькие первые, большая третья) */
.market-cards-row--reverse {
  grid-template-columns: 1fr 1fr 1fr; /* маленькие слева, большая справа */
}

/* Большая карточка: фото слева, описание справа */
.market-card-big {
  display: flex;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f3;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 200ms ease-out,
              border-color 200ms ease-out;
}

/* Модификатор для обратного порядка: фото справа, описание слева */
.market-card-big--reverse {
  flex-direction: row-reverse !important; /* принудительно применяем обратный порядок */
}

/* Убеждаемся, что маленькие карточки всегда вертикальные (фото сверху) */
.market-card-small {
  flex-direction: column !important; /* принудительно вертикальная ориентация */
}

/* Убеждаемся, что изображение и контент занимают правильную ширину в обратной карточке */
.market-card-big--reverse .market-card-big__image {
  flex: 0 0 52% !important; /* изображение справа, занимает 52% */
}

.market-card-big--reverse .market-card-big__content {
  flex: 1 !important; /* контент слева, занимает оставшееся пространство */
  padding: 34px !important; /* такой же padding как у обычной карточки */
  gap: 14px !important; /* такой же gap */
  display: flex !important;
  flex-direction: column !important;
}

.market-card-big--reverse .market-card-big__title {
  margin: 0 0 12px !important; /* такой же margin */
}

.market-card-big--reverse .market-card-big__description {
  margin: 0 !important; /* такой же margin */
}

.market-card-big--reverse .market-card-big__footer {
  margin-top: 10px !important; /* такой же margin-top */
  gap: 16px !important; /* такой же gap */
  display: flex !important;
  flex-direction: column !important; /* вертикальное расположение */
  align-items: flex-start !important; /* выравнивание по левому краю */
}

.market-card-big__image {
  flex: 0 0 52%; /* занимает 52% ширины */
  max-width: 52%; /* ограничиваем максимальную ширину */
  overflow: hidden;
  background: #f8f9fa;
  box-sizing: border-box; /* padding включается в ширину */
}

.market-card-big__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* заполняем контейнер, без белых полей */
  object-position: center center;
  display: block;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.market-card-big__content {
  flex: 1;
  min-width: 0; /* позволяем контенту сжиматься */
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box; /* padding включается в ширину */
  overflow: hidden; /* предотвращаем выход контента за границы */
}

.market-card-big__title {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.market-card-big__description {
  margin: 0;
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.5;
  flex-grow: 1;
}

.market-card-big__footer {
  display: flex;
  flex-direction: column; /* вертикальное расположение: цена сверху, кнопка снизу */
  align-items: flex-start; /* выравнивание по левому краю */
  gap: 16px;
  margin-top: 10px;
}

.market-card-big__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  flex-wrap: nowrap; /* предотвращаем перенос цены на новую строку */
  white-space: nowrap;
}

.market-card-big__price-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.market-card-big__price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  white-space: nowrap; /* предотвращаем перенос числа */
}

.market-card-big__price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.market-card-big__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease-out,
              color 200ms ease-out,
              transform 150ms ease-out;
  white-space: nowrap;
  align-self: flex-start; /* кнопка выравнивается по левому краю */
}

.market-card-big:hover .market-card-big__btn {
  background: var(--accent);
  color: #ffffff;
}

.market-card-big:active .market-card-big__btn {
  background: var(--accent-dark);
  color: #ffffff;
}

/* Маленькая карточка: фото сверху, описание снизу */
.market-card-small {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f3;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 200ms ease-out,
              border-color 200ms ease-out;
}

.market-card-small__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
}

.market-card-small__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* заполняем контейнер, без белых полей */
  object-position: center center;
  display: block;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.market-card-small__content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.market-card-small__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.market-card-small__description {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  flex-grow: 1;
}

.market-card-small__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.market-card-small__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}

.market-card-small__price-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 400;
}

.market-card-small__price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.market-card-small__price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.market-card-small__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease-out,
              color 200ms ease-out,
              transform 150ms ease-out;
  white-space: nowrap;
}

.market-card-small:hover .market-card-small__btn {
  background: var(--accent);
  color: #ffffff;
}

.market-card-small:active .market-card-small__btn {
  background: var(--accent-dark);
  color: #ffffff;
}

/* Hover эффекты */
.market-card-big:hover,
.market-card-small:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.market-card-big:hover .market-card-big__image img,
.market-card-small:hover .market-card-small__image img {
  transform: scale(1.05);
}

.market-card-big:hover .market-card-big__title,
.market-card-small:hover .market-card-small__title {
  color: var(--accent);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .market-cards-row {
    grid-template-columns: 1fr 1fr; /* 2 колонки на планшетах */
  }

  .market-cards-row--small-4 {
    grid-template-columns: 1fr 1fr;
  }

  .market-card-big {
    grid-column: span 2; /* большая карточка на всю ширину */
    flex-direction: column; /* вертикальная компоновка на планшетах */
  }

  /* На планшетах обратный порядок тоже вертикальный */
  .market-card-big--reverse {
    flex-direction: column-reverse; /* фото снизу, контент сверху */
  }

  .market-card-big__image {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
  }
  
  .market-card-big__image img {
    object-fit: contain; /* показываем всё изображение без обрезки */
    object-position: center center;
    background: #f8f9fa;
  }

  .market-card-big__content {
    padding: 24px;
  }

  /* Убеждаемся, что spacing одинаковый для обратной карточки на планшетах */
  .market-card-big--reverse .market-card-big__content {
    padding: 24px; /* такой же padding */
  }
}

@media (max-width: 768px) {
  .market-cards-row {
    grid-template-columns: 1fr; /* 1 колонка на мобилке */
  }

  .market-cards-row--small-4 {
    grid-template-columns: 1fr;
  }

  /* На мобилке большие карточки превращаются в маленькие */
  .market-card-big {
    grid-column: span 1;
    flex-direction: column; /* вертикальный layout как у маленьких */
    min-height: auto !important; /* убираем фиксированную высоту если есть */
  }

  /* На мобилке обратный порядок тоже вертикальный (фото сверху) */
  .market-card-big--reverse {
    flex-direction: column !important; /* фото сверху, как у обычных маленьких карточек */
    display: flex !important; /* убеждаемся, что карточка flex */
  }

  /* Изображение больших карточек на мобилке как у маленьких */
  .market-card-big__image {
    flex: 0 0 auto !important; /* убираем flex-basis */
    width: 100% !important; /* полная ширина */
    height: 220px !important; /* такая же высота как у маленьких карточек */
    max-width: 100% !important; /* убираем ограничение */
  }

  /* Контент больших карточек на мобилке как у маленьких */
  .market-card-big__content {
    flex: 1 1 auto !important; /* растягивается как у маленьких карточек */
    padding: 22px !important; /* такой же padding как у маленьких карточек */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* убираем gap, используем margin */
  }

  /* Убеждаемся, что spacing одинаковый для обратной карточки на мобилке */
  .market-card-big--reverse .market-card-big__image {
    flex: 0 0 auto !important; /* переопределяем десктопные стили */
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .market-card-big--reverse .market-card-big__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* показываем всё изображение без обрезки */
    object-position: center center !important;
    display: block !important;
    background: #f8f9fa !important;
  }

  .market-card-big--reverse .market-card-big__content {
    flex: 1 1 auto !important; /* растягивается как у маленьких карточек */
    padding: 22px !important; /* такой же padding */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* убираем gap, используем margin */
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .market-card-big--reverse .market-card-big__description {
    flex-grow: 1 !important; /* растягивается как у маленьких карточек */
    min-height: 0 !important; /* позволяем сжиматься */
  }

  /* Заголовок больших карточек на мобилке как у маленьких */
  .market-card-big__title {
    font-size: 1.1rem; /* такой же размер как у маленьких */
    margin: 0 0 8px; /* такой же margin */
  }

  /* Описание больших карточек на мобилке как у маленьких */
  .market-card-big__description {
    font-size: 0.9rem !important; /* такой же размер как у маленьких */
    margin: 0 0 16px !important; /* такой же margin */
    flex-grow: 1 !important; /* растягивается как у маленьких карточек */
    min-height: 0 !important; /* позволяем сжиматься */
  }

  /* Цена больших карточек на мобилке как у маленьких */
  .market-card-big__price-value {
    font-size: 1.5rem; /* такой же размер как у маленьких */
  }

  /* Footer больших карточек на мобилке как у маленьких - горизонтальный layout */
  .market-card-big__footer {
    flex-direction: row !important; /* горизонтальный layout как у маленьких */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important; /* такой же gap как у маленьких */
    margin-top: auto !important; /* как у маленьких */
  }

  /* Кнопка больших карточек на мобилке как у маленьких */
  .market-card-big__btn {
    padding: 10px 20px !important; /* такой же padding как у маленьких */
    font-size: 0.9rem !important; /* такой же размер как у маленьких */
    align-self: auto !important; /* убираем align-self: flex-start */
  }

  /* Убеждаемся, что обратная карточка на мобилке выглядит как обычная маленькая */
  .market-card-big--reverse .market-card-big__image {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
  }

  .market-card-big--reverse .market-card-big__content {
    padding: 22px !important;
    gap: 14px !important;
  }

  .market-card-big--reverse .market-card-big__footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: auto !important;
  }

  /* Устанавливаем одинаковую минимальную высоту для всех карточек на мобилке */
  .market-card-small,
  .market-card-big {
    min-height: 400px !important; /* оригинальная минимальная высота */
  }

  .market-card-small__image {
    height: 220px !important; /* оригинальная высота изображения */
  }

  .market-card-small__content {
    padding: 16px;
  }
}

/* ======================================
   Главная: промо-баннер / карусель (ormatek-like)
   ====================================== */

.orm-promo {
  padding-block: 32px;
  margin-top: 60px; /* можно 0/20/32/40 по вкусу */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* предотвращаем горизонтальный скролл */
}

/* На десктопе карусель шире сетки на ~20%, но с отступами от краёв браузера */
@media (min-width: 1240px) {
  .orm-promo {
    padding-inline: 24px; /* отступы от краёв браузера */
  }

  .orm-promo .container {
    padding-inline: 0;
    max-width: calc(1240px * 1.5); /* шире основных блоков ~в полтора раза */
    margin-inline: auto;
  }

  .orm-promo-carousel {
    width: 100%;
    max-width: 100%;
  }
}

.orm-promo__card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px 40px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: none;
  min-height: 220px;
}

.orm-promo__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* заполняем весь блок без пустых мест */
  object-position: center center; /* центрируем, чтобы важная часть была видна */
  display: block;
}


.orm-promo__content {
  position: relative;
  z-index: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orm-promo__label {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.orm-promo__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
}

.orm-promo__subtitle {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  opacity: 0.96;
}

/* Кнопка-вид внутри ссылки */
.orm-promo__btn {
  margin-top: 18px;
  align-self: flex-start;
  padding: 20px 56px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background-color 160ms ease-out, color 160ms ease-out,
    box-shadow 160ms ease-out, transform 120ms ease-out;
}

.orm-promo__card:hover .orm-promo__btn,
.orm-promo__btn:hover {
  background: #ffffff;
  color: #ff6b3c;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

.orm-promo__card:active .orm-promo__btn,
.orm-promo__btn:active {
  transform: scale(0.97);
}

/* --- Карусель баннеров --- */
.orm-promo-carousel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 200px; /* уменьшена высота для структуры "песочные часы" */
  width: 100%;
}

.orm-promo-carousel__slides {
  position: relative;
  min-height: 200px; /* уменьшена высота */
  width: 100%;
}

.orm-promo-slide {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  color: #ffffff;
  opacity: 0;
  pointer-events: none; /* баннер не кликабельный */
  transition: opacity 420ms ease;
}

.orm-promo-slide.is-active {
  opacity: 1;
  pointer-events: none; /* баннер не кликабельный, только кнопка */
}

/* кнопка "Подробнее" справа внизу */
.orm-promo-slide .orm-promo__btn {
  position: absolute;
  right: 40px;
  bottom: 28px;
  margin-top: 0;
  z-index: 2;
  pointer-events: auto; /* кнопка кликабельна */
  text-decoration: none; /* убираем подчёркивание у ссылки */
}

/* лёгкое затемнение, чтобы кнопка читалась на любом фото */
.orm-promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.06) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* стрелки скрываем (заменили на точки) */
.orm-promo-carousel__arrow {
  display: none !important;
}

/* точки по центру снизу, на уровне кнопки */
.orm-promo-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.orm-promo-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.orm-promo-carousel__dot.is-active {
  background: #ffffff;
}

@media (max-width: 1239px) {
  /* На планшетах и мобилке карусель остаётся внутри контейнера */
  .orm-promo {
    padding-inline: 0; /* убираем лишние отступы */
    margin-left: 0;
    margin-right: 0;
  }

  .orm-promo .container {
    padding-inline: 16px; /* возвращаем обычный padding */
    max-width: 100%;
  }

  .orm-promo-carousel {
    margin-inline: 0;
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .orm-promo {
    padding-inline: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .orm-promo .container {
    padding-inline: 16px;
    max-width: 100%;
    margin-inline: auto; /* центрируем контейнер */
  }

  .orm-promo__card {
    padding: 22px 20px 26px;
    min-height: 180px;
  }

  .orm-promo__content {
    max-width: 100%;
  }

  .orm-promo-carousel,
  .orm-promo-carousel__slides {
    width: 100%;
    max-width: 100%;
    margin-inline: auto; /* центрируем карусель */
    overflow: hidden; /* защищаем от случайного горизонтального скролла */
  }

  .orm-promo-slide {
    width: 100%;
    max-width: 100%;
    left: 0; /* убираем возможный сдвиг */
    right: 0;
    background: transparent; /* убираем оранжевый фон */
  }

  /* Изображение заполняет блок, блок обрезается */
  .orm-promo__bg {
    object-fit: cover; /* заполняем весь блок */
    object-position: center center; /* центрируем изображение */
  }

  /* Уменьшаем кнопку на мобилке */
  .orm-promo-slide .orm-promo__btn {
    right: 16px;
    bottom: 16px;
    padding: 10px 20px; /* меньше padding */
    font-size: 0.85rem; /* меньше размер текста */
  }

  .orm-promo-carousel__dots {
    bottom: 18px;
  }
}

/* Дополнительные правила для очень маленьких экранов */
@media (max-width: 480px) {
  .orm-promo {
    padding-inline: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .orm-promo .container {
    padding-inline: 12px; /* меньше padding на очень маленьких экранах */
    max-width: 100%;
    margin-inline: auto; /* центрируем контейнер */
  }

  .orm-promo-carousel,
  .orm-promo-carousel__slides {
    height: 260px; /* фиксированная высота - блок обрезается */
    min-height: 260px;
    max-height: 260px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto; /* центрируем карусель */
    overflow: hidden; /* обрезаем блок */
  }

  .orm-promo-slide {
    width: 100%;
    max-width: 100%;
    left: 0; /* убираем возможный сдвиг */
    right: 0;
    background: transparent; /* убираем оранжевый фон */
  }

  .orm-promo__bg {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    object-fit: cover; /* заполняем весь блок */
    object-position: center center; /* центрируем изображение */
  }

  /* Ещё меньше кнопка на очень маленьких экранах */
  .orm-promo-slide .orm-promo__btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    right: 12px;
    bottom: 12px;
  }
}


/* На десктопе баннер немного выше, но всё равно узкий */
@media (min-width: 1240px) {
  .orm-promo-carousel,
  .orm-promo-carousel__slides {
    min-height: 240px; /* узкий баннер для структуры "песочные часы" */
  }
}


.orm-promo__btn {
  padding: 20px 56px;   /* было 10px 28px */
  font-size: 1.05rem;   /* было 0.9rem */
  font-weight: 700;
  border-width: 2px;
}




.home-page .container {
  max-width: 1364px;  /* +10% от 1240px */
}

/* Опционально: расширь баннеры явно, если нужно переопределить */
.home-page .orm-promo-carousel,
.home-page .orm-promo-carousel__slides {
  min-height: 400px;  /* +10% от 630px, если хочешь пропорционально */
}

.home-page .orm-promo__card {
  min-height: 400px;  /* Аналогично для карточек баннеров */
}



/* Секция категорий на главной */
.home-page .home-section {
  padding-block: 60px;  /* отступы сверху/снизу, как в примере */
}

/* Заголовок секции: центр, чёрный h2 + серый p */
.home-page .home-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.home-page .home-section__header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.home-page .home-section__header p {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 0;
}

/* Карточки: фиксированные 4 колонки */
.home-page .home-category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* строго 4 равные колонки */
  gap: 24px;  /* отступы между карточками, как на скрине */
  width: 100%;
}

/* Каждая карточка: белый фон, скруглённые углы, тень */
.home-page .home-category-tile {
  background: white;
  border-radius: 20px;  /* большие скругления, как на скрине */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);  /* лёгкая тень */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .home-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--accent); /* красный фон */
  border-color: var(--accent);
  color: #ffffff; /* белый текст */
}

.home-page .home-category-tile:hover .home-category-tile__content h3,
.home-page .home-category-tile:hover .home-category-tile__content p {
  color: #ffffff; /* белый текст при hover */
}

.home-page .home-category-tile:hover .home-category-tile__image-wrap {
  border-bottom-color: transparent; /* убираем серую линию */
}

/* Изображение: полноразмерное, без бордера снизу (убрали) */
.home-page .home-category-tile__image-wrap {
  position: relative;
  overflow: hidden;
}

.home-page .home-category-tile__image-wrap img {
  width: 100%;
  height: 180px;  /* фиксированная высота для ровности */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.home-page .home-category-tile:hover .home-category-tile__image-wrap img {
  transform: scale(1.05);  /* зум на hover для динамики */
}

/* Контент: padding, оранжевый h3 + серый p */
.home-page .home-category-tile__content {
  padding: 16px 20px;
}

.home-page .home-category-tile__content h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);  /* оранжевый, как на скрине */
}

.home-page .home-category-tile__content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Адаптив: на экранах <1200px — 3 колонки, <768px — 2, <480px — 1 */
@media (max-width: 1200px) {
  .home-page .home-category-cards {
    grid-template-columns: repeat(3, 1fr);  /* 3 колонки */
  }
}

@media (max-width: 768px) {
  .home-page .home-category-cards {
    grid-template-columns: repeat(2, 1fr);  /* 2 колонки */
  }
}

@media (max-width: 480px) {
  .home-page .home-category-cards {
    grid-template-columns: 1fr;  /* 1 колонка */
  }
}

/* ======================================
   Страница акций
   ====================================== */
.promotions-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 60px 0 40px 0;
  text-align: left;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.promotion-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.promotion-image {
  position: relative;
  flex: 0 0 45%;
  min-height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.promotion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.promotion-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promotion-badge-orange {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.promotion-badge-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  padding: 0;
  min-width: auto;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.95;
}

.badge-code {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.badge-discount {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.badge-discount-large {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.badge-symbol {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.promotion-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promotion-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.promotion-description {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.promotion-validity {
  font-size: 0.9rem;
  color: var(--dark);
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: inline-block;
  width: fit-content;
  background: #fafafa;
}

/* Адаптивность для страницы акций */
@media (max-width: 968px) {
  .promotions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .promotion-card {
    flex-direction: column;
  }
  
  .promotion-image {
    flex: 0 0 auto;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .promotions-title {
    font-size: 2rem;
    margin: 40px 0 30px 0;
  }
  
  .promotion-content {
    padding: 20px;
  }
  
  .promotion-title {
    font-size: 1.3rem;
  }
  
  .promotion-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .promotions-title {
    font-size: 1.75rem;
    margin: 30px 0 24px 0;
  }
  
  .promotion-image {
    height: 200px;
  }
  
  .promotion-badge {
    top: 12px;
    left: 12px;
    padding: 8px 16px;
    min-width: 80px;
  }
  
  .badge-discount {
    font-size: 1.2rem;
  }
  
  .badge-discount-large {
    font-size: 1.4rem;
  }
  
  .promotion-content {
    padding: 16px;
  }
  
  .promotion-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .promotion-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  
  .promotion-validity {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}
div.contact {
  max-width: 1364px;
  margin: 0px auto;
  /*background-color: rgba(0, 0, 0, 0.05);*/
  border-radius: 5px;
  padding: 40px;
}
div.contact > div.title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
div.contact > div.title > * {
  padding: 0px;
  margin: 0px;
}
div.contact > div.title > h1 {
  color: #2D2D2D;
  letter-spacing: 0.2rem;
  font-weight: bold;
}
div.contact > div.title > span {
  color: #6c657d;
  font-weight: light;
  letter-spacing: 0.2rem;
}
div.contact > div.content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
div.contact > div.content > div.map, div.contact > div.content > iframe {
  max-width: 50%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.125);
  height: 400px;
  border-radius: 5px;
}
div.contact > div.content > div.text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
div.contact > div.content > div.text > * {
  padding: 0;
  margin: 0;
  text-decoration: none;
}
div.contact > div.content > div.text > a {
  margin-bottom: 0.4em;
  font-size: 32px;
  font-weight: bold;
  color: rgb(22, 22, 22);
}
div.contact > div.content > div.text > span {
  margin-top: 1em;
  font-size: 16px;
  font-weight: bold;
}
@media (max-width: 1160px) {
  div.contact > div.content > div.map, div.contact > div.content > iframe {
    max-width: 100%;
  }
}