:root {
  --header-height: 108px;
  --category-height: 64px;
  --border-color: #e2e5e9;
  --text-main: #222;
  --text-muted: #666;
  --accent: #2f6fed;
  --bg-light: #f7f8fa;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Блок №1: основная шапка ===== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-grid {
  position: relative;
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
}

.logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: calc(var(--header-height) * 0.88);
  overflow: hidden;
  margin-left: -24px;
  padding-right: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.info-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}

.info-link {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.info-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-area {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.phone-link {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.location:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

.location:active {
  background-color: var(--border-color);
}

.location-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ===== Телефон в шапке — кнопка с выпадающим меню способов связи ===== */

.phone-menu {
  position: relative;
}

.phone-menu-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.phone-menu-trigger:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

.phone-menu-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.phone-menu--open .phone-menu-chevron {
  transform: rotate(180deg);
}

.phone-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 30, 45, 0.16);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 120;
}

.phone-menu--open .phone-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.phone-menu-title {
  padding: 4px 8px 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.phone-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 12px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.phone-menu-item:hover {
  background-color: var(--bg-light);
}

.phone-menu-item--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.phone-menu-item .messenger-icon,
.phone-menu-item .contacts-card-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.phone-menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-menu-item-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.phone-menu-item-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.phone-menu-footer {
  margin-top: 6px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Блок №2: панель категорий ===== */

.category-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: var(--category-height);
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
}

.category-bar-inner {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
}

.category-btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.category-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ===== Блок №3: сетка карточек ===== */

.main-content {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 64px;
  display: flex;
  justify-content: center;
  scroll-margin-top: var(--header-height);
}

/* ===== Тестовый баннер первого экрана главной (HomeHero) =====
   Чтобы отключить баннер, достаточно поставить HOME_HERO_ENABLED = false
   в script.js — эти стили при этом просто не используются. */

.hero-section {
  width: 100%;
  /* Пропорции секции совпадают с пропорциями самого файла (2000×667) —
     фото заполняет область без белых полос сверху/снизу и без обрезки. */
  aspect-ratio: 2000 / 667;
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: #ffffff;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Заголовок «Каталог» со стрелками-указателями под баннером —
   приглашение пролистать вниз к карточкам категорий. */
.catalog-intro {
  width: 100%;
  padding: 20px 0 14px;
  text-align: center;
  background-color: #ffffff;
}

.catalog-intro-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.catalog-intro-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

.catalog-arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  animation: catalogArrowBounce 1.4s ease-in-out infinite;
}

.catalog-arrow-icon:nth-child(1) { animation-delay: 0s; opacity: 0.4; }
.catalog-arrow-icon:nth-child(2) { animation-delay: 0.15s; opacity: 0.7; }
.catalog-arrow-icon:nth-child(3) { animation-delay: 0.3s; }

@keyframes catalogArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.main-content--after-hero {
  padding-top: 24px;
}

.category-page-content {
  padding-top: calc(var(--header-height) + var(--category-height) + 32px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cards-grid {
  width: 100%;
  max-width: var(--container-width);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-light);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-overlay-button {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px) scale(0.95);
  padding: 10px 24px;
  background-color: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-card:hover .card-overlay-button {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.card-overlay-button:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.card-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.category-card:hover .card-title {
  color: var(--accent);
}

/* ===== Страница категории ===== */

.category-page-top {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 24px;
  margin-bottom: 24px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-button:hover {
  background-color: var(--bg-light);
  border-color: var(--accent);
  color: var(--accent);
}

.back-button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.category-page-title {
  margin-top: 20px;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.breadcrumbs-sep {
  color: var(--border-color);
}

.breadcrumbs-current {
  color: var(--text-main);
}

/* ===== SEO-блок с описанием категории (после каталога товаров) ===== */

.category-seo-block {
  width: 100%;
  max-width: var(--container-width);
  margin-top: 48px;
  padding: 32px 24px 0;
  border-top: 1px solid var(--border-color);
}

.category-seo-block h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.category-seo-block p {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.category-seo-block p:last-child {
  margin-bottom: 0;
}

.category-seo-block a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Сетка товаров ===== */

.product-grid {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 0 24px;
}

.product-grid--start {
  justify-content: flex-start;
}

.product-card {
  flex: 0 0 calc(25% - 24px);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}

.product-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-light);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
  min-height: 2.8em;
}

.product-price {
  margin-top: auto;
  padding-top: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

/* Второй ряд раздела «Дополнительный инструмент»: первая карточка смещена
   точно под вторую колонку первого ряда, вторая идёт сразу за ней обычным
   отступом и попадает точно под третью колонку. */
.product-card--offset-a {
  margin-left: calc(25% + 8px);
}

.category-placeholder {
  width: calc(100% - 48px);
  max-width: var(--container-width);
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-light);
}

.category-placeholder-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.category-placeholder-text {
  font-size: 16px;
}

/* ===== Подробная страница товара ===== */

.product-page-content {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.product-page-image {
  flex: 0 0 46%;
  max-width: 46%;
}

.product-page-image .product-image-placeholder {
  border-style: solid;
}

/* ===== Галерея из нескольких фото на подробной странице товара =====
   Используется только для товаров с 2+ фотографиями (data.js: images).
   Десктоп — стрелочки влево/вправо по клику; мобильный — свайп (стрелочки
   скрыты media-запросом ниже). */

.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.product-gallery-track .product-image {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.product-gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.product-gallery-arrow:hover {
  background-color: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
}

.product-gallery-arrow--prev {
  left: 14px;
}

.product-gallery-arrow--next {
  right: 14px;
}

.product-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.product-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-gallery-dot--active {
  background-color: var(--accent);
  transform: scale(1.25);
}

/* На мобильном — только свайп, без стрелочек (чтобы не перегружать
   компактный экран и не дублировать жест пальцем). */
@media (max-width: 767px) {
  .product-gallery-arrow {
    display: none;
  }
}

.product-page-info {
  flex: 1 1 54%;
  min-width: 0;
}

.product-page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.product-page-price {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.product-page-section-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.product-page-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}

.product-page-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

.product-page-list li {
  margin-bottom: 6px;
}

/* ===== Информационная страница «Доставка» ===== */

.delivery-page {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 24px;
}

.delivery-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
}

.delivery-intro {
  margin-top: 16px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.delivery-section {
  margin-top: 56px;
}

.delivery-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
}

/* Четыре интерактивных шага оформления заказа — на мобильном раскрываются
   по клику (аккордеон, один открытый шаг), на десктопе дополнительно по
   наведению курсора; раскладка карточек (сетка 4×1) не меняется. */

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.delivery-step {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.delivery-step:hover,
.delivery-step:focus-within {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.delivery-step-heading {
  margin: 0;
  font: inherit;
}

.delivery-step-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.delivery-step-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 12px;
}

.delivery-step-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.delivery-step-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.delivery-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.delivery-step-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.delivery-step-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.delivery-step--open .delivery-step-chevron {
  transform: rotate(180deg);
}

.delivery-step-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.22s ease;
}

.delivery-step--open .delivery-step-body {
  max-height: 480px;
  opacity: 1;
  padding: 0 20px 20px;
}

.delivery-step-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.delivery-inline-phone {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Единый переключатель «Условия доставки и оплаты» =====
   Мобильная раскладка (вертикальная) — по умолчанию; на десктопе шапка
   переключателя становится горизонтальной строкой (слева надпись, справа
   кнопки), а три информационных блока могут располагаться в ряд. */

.delivery-switcher {
  margin-top: 4px;
  padding: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.delivery-switcher-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delivery-switcher-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.delivery-switcher-toggle {
  display: flex;
  gap: 10px;
}

.delivery-switcher-btn {
  flex: 1 1 0;
  min-height: 48px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.delivery-switcher-btn--active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.delivery-switcher-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.delivery-switcher-panel {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-switcher-panel[hidden] {
  display: none;
}

.delivery-option-row {
  display: flex;
  gap: 10px;
}

.delivery-option-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.delivery-option-body {
  min-width: 0;
}

.delivery-option-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.delivery-option-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.delivery-option-address {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.delivery-option-list {
  margin-top: 4px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.delivery-option-list li {
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  .delivery-switcher-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .delivery-switcher-label {
    font-size: 19px;
  }

  .delivery-switcher-toggle {
    flex: 0 0 auto;
  }

  .delivery-switcher-btn {
    flex: 0 0 auto;
    padding: 12px 26px;
  }

  .delivery-switcher-panel {
    flex-direction: row;
    gap: 28px;
  }

  .delivery-option-row {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-step,
  .delivery-step-body,
  .delivery-step-chevron,
  .delivery-switcher-btn {
    transition-duration: 0.001ms !important;
  }
}

/* Контактный блок */

.delivery-contact {
  padding: 36px;
  text-align: center;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.delivery-contact-text {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.delivery-call-button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent);
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.delivery-call-button:hover {
  opacity: 0.9;
}

/* Нижняя кнопка возврата на главную — страницы «Доставка» и «Контакты» */

.page-bottom-back {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ===== Страница «Контакты» ===== */

.contacts-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contacts-card {
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contacts-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.contacts-card-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.contacts-card-title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.contacts-card-value {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

a.contacts-card-value {
  color: var(--accent);
  transition: color 0.2s ease;
}

a.contacts-card-value:hover {
  color: var(--text-main);
}

.contacts-card-value--static {
  color: var(--text-main);
}

.contacts-card-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Реквизиты продавца */

.requisites-table {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
}

.requisites-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.requisites-row:last-child {
  border-bottom: none;
}

.requisites-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.requisites-value {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.5;
}

/* ===== Кнопки связи на странице товара ===== */

.product-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.product-action-btn {
  flex: 1 1 200px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-action-btn--primary {
  border: none;
  background-color: var(--accent);
  color: #ffffff;
}

.product-action-btn--primary:hover {
  opacity: 0.9;
}

.product-action-btn--secondary {
  border: 1.5px solid var(--accent);
  background-color: #ffffff;
  color: var(--accent);
}

.product-action-btn--secondary:hover {
  background-color: var(--bg-light);
}

/* ===== Модальные окна ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

body.modal-open {
  overflow: hidden;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--bg-light);
  color: var(--text-main);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  padding-right: 24px;
}

.modal-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal-phone {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.modal-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.modal-btn--primary {
  border: none;
  background-color: var(--accent);
  color: #ffffff;
}

.modal-btn--primary:hover {
  opacity: 0.9;
}

.modal-btn--secondary {
  border: 1.5px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
}

.modal-btn--secondary:hover {
  background-color: var(--bg-light);
}

/* Выбор мессенджера */

.messenger-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.messenger-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.messenger-option:hover {
  border-color: var(--accent);
  background-color: var(--bg-light);
}

.messenger-option--disabled {
  cursor: not-allowed;
  color: var(--text-muted);
}

.messenger-option-name {
  flex: 1 1 auto;
}

.messenger-option-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.messenger-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ===== Уведомление о копировании ===== */

.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 22px;
  background-color: #222;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

.toast-notice--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Яндекс Карта на главной странице ===== */

.map-section {
  width: 100%;
  padding: 56px 24px;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  scroll-margin-top: var(--header-height);
}

.map-section-inner {
  width: 100%;
  max-width: var(--container-width);
}

.map-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.map-section-address {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.map-section-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
}

.map-frame-wrap {
  margin-top: 24px;
  width: 100%;
  height: 440px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.map-fallback-link:hover {
  text-decoration: underline;
}

/* ===== Единый чёрный подвал сайта ===== */

.site-footer {
  width: 100%;
  background-color: #15161a;
  color: #e4e4e7;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-title {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col-title--link {
  transition: color 0.2s ease;
}

.footer-col-title--link:hover {
  color: var(--accent);
}

.footer-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1aa;
}

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: #d4d4d8;
  transition: color 0.2s ease;
}

.footer-address:hover {
  color: #ffffff;
}

.footer-address .location-icon,
.footer-address svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.footer-link {
  font-size: 14px;
  color: #d4d4d8;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-copy-btn:hover {
  color: var(--accent);
}

.copy-icon {
  width: 16px;
  height: 16px;
}

.footer-messengers {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-messenger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #2c2d33;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e4e4e7;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.footer-messenger:hover {
  border-color: var(--accent);
  background-color: #1c1d22;
}

.footer-messenger--disabled {
  cursor: not-allowed;
  color: #71717a;
}

.footer-messenger--disabled small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #71717a;
}

.footer-messenger .messenger-icon {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid #2c2d33;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  max-width: var(--container-width);
  margin: 0 auto;
  font-size: 13px;
  color: #71717a;
}

/* ===== График связи: общие элементы ===== */

.clock-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Компактный блок на подробной странице товара */

.contact-schedule-card {
  margin-top: 16px;
  padding: 14px 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.contact-schedule-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.contact-schedule-card-title .clock-icon {
  color: var(--accent);
}

.contact-schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-main);
}

.contact-schedule-row span:first-child {
  color: var(--text-muted);
}

.contact-schedule-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Строка расписания в модальном окне звонка */

.modal-schedule-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Блок графика на странице «Контакты» */

.contact-schedule-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.contact-schedule-block-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--accent);
}

.contact-schedule-block-icon .clock-icon {
  width: 20px;
  height: 20px;
}

.contact-schedule-block-table {
  flex: 1 1 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.contact-schedule-block-table .requisites-row {
  padding: 12px 16px;
}

/* Расписание в Footer */

.footer-schedule {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #2c2d33;
}

.footer-schedule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.footer-schedule-title .clock-icon {
  color: var(--accent);
}

.footer-schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #d4d4d8;
}

.footer-schedule-row span:first-child {
  color: #a1a1aa;
}

.footer-schedule-note {
  margin-top: 8px;
  font-size: 11px;
  color: #71717a;
}
