/* Glass Decor — кастом поверх sotbit_b2c.
   --gd-* объявляются только в gd-tokens.css. */

:root {
  --background: var(--gd-bg-page);
  --foreground: var(--gd-text-primary);
  /* Повтор алиасов после CSS темы — чтобы --border-radius-lg не остался 32px. */
  --border-radius-sm: var(--gd-radius-sm);
  --border-radius-m: var(--gd-radius-md);
  --border-radius: var(--gd-radius-lg);
  --border-radius-lg: var(--gd-radius-lg);
}

/* ========== Промт №4: тёмная палитра темы (не --gd-*) ========== */
[data-theme="dark"] {
  --success: #3FD16A;
  --warning: #FFB25E;
  --error: #FF8A8A;

  /* --white не трогаем. --dark в тёмной теме = основной текст;
     на светлых пластинах (фильтр, нижняя панель) — см. --gd-ink-on-light */
  --dark: #ECEAF2;
  --primary: #6E50CF;
  --primary-hover: #7A5EDA;
  --primary-active: #7A5EDA;
  --primary-100: #241F38;
  --primary-200: #272338;
  --primary-light: #6E50CF33;
  --secondary-200: #272338;
  --secondary-300: #403A57;
  --secondary-400: #6C6690;
  --secondary-500: #7B7594;
  --secondary-600: #A9A3BD;
  --secondary-700: #A9A3BD;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);

  --background: #16141F;
  --foreground: #ECEAF2;

  color-scheme: dark;
}

/* Промт №6: перебиваем 4 шаблонных правила с important — без подмены --white */
[data-theme="dark"] body {
  background-color: var(--gd-bg-page) !important;
  background-image: none !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--gd-bg-surface) !important;
}

[data-theme="dark"] .btn:not(.btn-secondary, .btn-tertiary) {
  color: var(--gd-text-on-accent) !important;
}

[data-theme="dark"] .btn:is(.btn-secondary):disabled {
  background-color: var(--gd-bg-elevated) !important;
  color: var(--gd-text-muted) !important;
  border-color: var(--gd-border) !important;
}

/* Текст на акценте: шаблонный white → смысловой токен (палитра white больше не роль) */
.btn:not(.btn-secondary, .btn-tertiary),
.go-top-btn,
.go-top-btn svg,
.badge {
  color: var(--gd-text-on-accent);
}

/* Заголовки hero: инлайн-цвет на фото без непрозрачного фона → контраст 1:1 к body.
   Тёмный текст — светлая подложка; светлый текст — тёмная. */
.hero__title {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  background-color: rgb(255, 255, 255);
}

.hero__slide--text-light .hero__title {
  background-color: rgb(0, 0, 0);
}

/* Промт №5: мелкие подписи в тёмной теме */
[data-theme="dark"] {
  --secondary-500: #A9A3BD;
}

/* Карточки блога живут на --gd-bg-surface: текст — общие токены темы, не #2C2C2C */

/* Фильтр каталога в тёмной теме: поверхность, не белая пластина */
[data-theme="dark"] .filter,
[data-theme="dark"] .filter__footer,
[data-theme="dark"] .filter__item-control-wrapper[data-role="show_more_items"] {
  background-color: var(--gd-bg-surface);
  background: var(--gd-bg-surface);
  color: var(--gd-text-primary);
  box-shadow: var(--gd-shadow);
}

[data-theme="dark"] .filter__title,
[data-theme="dark"] .filter__item-name,
[data-theme="dark"] .filter__item-control,
[data-theme="dark"] .filter .text-dark {
  color: var(--gd-text-primary);
}

[data-theme="dark"] .filter .text-secondary-500,
[data-theme="dark"] .filter__item-label,
[data-theme="dark"] .filter__close-btn,
[data-theme="dark"] .filter__item-icon {
  color: var(--gd-text-secondary);
}

[data-theme="dark"] .filter__item-control-more {
  color: var(--gd-accent-text);
}

[data-theme="dark"] .filter .input-text,
[data-theme="dark"] .filter input[type="text"],
[data-theme="dark"] .filter input[type="number"] {
  background-color: var(--gd-bg-elevated);
  color: var(--gd-text-primary);
  border-color: var(--gd-border);
}

[data-theme="dark"] .filter__item {
  border-color: var(--gd-border);
}

/* Personal: на десктопе в хедере, на узком экране — fixed-бар с белым фоном шаблона */
[data-theme="dark"] .personal {
  background-color: var(--gd-bg-surface);
  color: var(--gd-text-primary);
}

[data-theme="dark"] .personal__item-text,
[data-theme="dark"] .personal__item-link {
  color: var(--gd-text-primary);
}

[data-theme="dark"] .pseudo-link {
  color: var(--gd-accent-text);
}

/* Тонкий баннер: инлайн-цвет на фото без подложки → контраст к body */
.thin-banner__title {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  background-color: rgb(255, 255, 255);
}

[data-theme="dark"] .btn:is(.btn-secondary) {
  background-color: var(--gd-bg-elevated);
  border-color: var(--gd-border-strong);
  color: var(--gd-accent-text);
}

[data-theme="dark"] .btn:is(.btn-secondary):hover {
  background-color: var(--gd-bg-accent-soft);
  border-color: var(--gd-accent);
  color: var(--gd-accent-text);
}

/* Статус «в наличии»: белый на ярком зелёном не проходит 4.5:1 */
.new-status.status-e68f74357c7d0c074eb5951130970695 {
  color: var(--gd-ink-on-bright);
}

.new-status.status-e68f74357c7d0c074eb5951130970695 span {
  color: inherit;
}

/* подписи характеристик: palette secondary-500 на белом ≈ 2:1 */
.text-secondary-500 {
  color: var(--secondary-700);
}

[data-theme="dark"] .text-secondary-500 {
  color: var(--gd-text-secondary);
}

.breadcrumbs__item--last,
.breadcrumbs__item--last > span {
  color: var(--secondary-700);
}

[data-theme="dark"] .breadcrumbs__item--last,
[data-theme="dark"] .breadcrumbs__item--last > span {
  color: var(--gd-text-secondary);
}

body {
  background-color: var(--gd-bg-page);
  color: var(--gd-text-primary);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.header__top,
.header__main,
.header__second-menu-wrapper,
.header-mobile-menu,
.footer--1,
.footer.footer,
.tab,
.input-text,
.bg-white {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .header__top,
  .header__main,
  .header__second-menu-wrapper,
  .header-mobile-menu,
  .footer--1,
  .footer.footer,
  .tab,
  .input-text,
  .bg-white {
    transition: none;
  }
}

.header__top {
  background-color: var(--gd-bg-elevated);
}

.header__main,
.header--2 .header__second-menu-wrapper,
.header-mobile-menu {
  background-color: var(--gd-bg-surface);
}

.footer--1,
footer.footer {
  background-color: var(--gd-bg-footer);
  color: var(--gd-text-on-footer);
}

/* шаблон задавал цвет меню подвала через палитровый white — заменяем токеном */
.footer--1 .footer__menu-wrapper,
.footer--1 .footer__bottom {
  color: var(--gd-text-on-footer);
}

.footer__menu-title,
.footer__menu-text,
.footer__socnet,
.footer__vendor {
  color: var(--gd-text-on-footer);
}

.footer__copyright,
.footer__vendor-text {
  color: var(--gd-text-on-footer-muted);
}

.btn:not(.btn-secondary, .btn-tertiary) {
  background-color: var(--gd-accent);
  border-color: var(--gd-accent);
  color: var(--gd-text-on-accent);
}

.btn:not(.btn-secondary, .btn-tertiary):hover {
  background-color: var(--gd-accent-hover);
  border-color: var(--gd-accent-hover);
  color: var(--gd-text-on-accent);
}

.go-top-btn {
  background-color: var(--gd-accent);
  color: var(--gd-text-on-accent);
}

.go-top-btn svg {
  color: var(--gd-text-on-accent);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .header__main,
[data-theme="dark"] .header-mobile-menu,
[data-theme="dark"] .header--2 .header__second-menu-wrapper,
[data-theme="dark"] .contacts-popup,
[data-theme="dark"] .search-dropdown,
[data-theme="dark"] .search-label:focus-within,
[data-theme="dark"] .detail__fixed-header,
[data-theme="dark"] .price-table__content,
[data-theme="dark"] .regions__choose_popup {
  background-color: var(--gd-bg-surface);
}

[data-theme="dark"] .input-text,
[data-theme="dark"] textarea.input-text,
[data-theme="dark"] .gd-field .input-text,
[data-theme="dark"] .search-input {
  background-color: var(--gd-bg-elevated);
  color: var(--gd-text-primary);
  -webkit-text-fill-color: var(--gd-text-primary);
  caret-color: var(--gd-text-primary);
}

[data-theme="dark"] .tab {
  background-color: var(--gd-bg-accent-soft);
}

[data-theme="dark"] .btn:not(.btn-secondary, .btn-tertiary),
[data-theme="dark"] .go-top-btn {
  color: var(--gd-text-on-accent);
}

/* Подложки под фото в галерее (страница товара) — светлая пластина; не карточки каталога */
[data-theme="dark"] .img-contain,
[data-theme="dark"] .gallery-main__slide,
[data-theme="dark"] .product-card__image,
[data-theme="dark"] .catalog-section-item__image,
[data-theme="dark"] .product-item-image-wrapper {
  background-color: var(--gd-media-plate);
  border: 1px solid var(--gd-border);
  border-radius: var(--border-radius-m);
}

.gd-logo--dark {
  display: none;
}

[data-theme="dark"] .gd-logo--light {
  display: none;
}

[data-theme="dark"] .gd-logo--dark {
  display: block;
}

.footer .gd-logo--light {
  display: none;
}

.footer .gd-logo--dark {
  display: block;
}

.gd-theme-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--gd-border);
  border-radius: var(--border-radius-sm);
  background: var(--gd-bg-surface);
  color: var(--gd-text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.gd-theme-toggle:focus-visible {
  outline: 2px solid var(--gd-accent);
  outline-offset: 2px;
}

.gd-theme-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.gd-theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .gd-theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .gd-theme-toggle__icon--moon {
  display: block;
}

.gd-theme-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gd-border);
  color: var(--gd-text-primary);
  font-size: 16px;
}

/* Скрим под баннеры: инлайн-цвета из админки темой не перекрыть
   TODO (контент): убрать style="color:#…" у заголовков слайдов */
[data-theme="dark"] .main-slider__item-content,
[data-theme="dark"] .banner__content {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--gd-border-strong);
  border-radius: var(--gd-radius-sm);
}

[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar-track {
  background: var(--gd-bg-elevated);
}

@media print {
  [data-theme="dark"] {
    --background: #FFFFFF;
    --foreground: #2C2C2C;
    --dark: #2C2C2C;
    --primary: #8450DB;
    --primary-hover: #6353D9;
    --secondary-200: #F3F5F6;
    --secondary-300: #E9ECEF;
    --secondary-400: #CED4DA;
    --secondary-500: #ABB5BE;
    --secondary-600: #8F9396;
    --secondary-700: #495057;
    color-scheme: light;
  }
}

/* --- Промт №1: артикул под названием --- */
.gd-product-title {
  margin-bottom: 4px;
}

.gd-sku {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: var(--gd-font-small);
  line-height: var(--line-height);
  color: var(--gd-text-muted);
}

.gd-sku__value {
  color: var(--secondary-700); /* secondary-600 даёт ~3.1:1 — ниже WCAG 4.5 */
}

.gd-sku__copy {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  transition: color var(--transition);
}

.gd-sku__copy:hover {
  color: var(--gd-accent-text);
}

.gd-sku__copy:focus-visible {
  outline: 2px solid var(--gd-accent);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* --- Промт №1: количество на паллете в таблице цен --- */
.gd-price-table__pallet {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gd-border);
  font-size: 14px;
  line-height: var(--line-height);
}

.gd-price-table__pallet-label {
  color: var(--gd-text-muted);
}

.gd-price-table__pallet-value {
  color: var(--gd-text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Промт №2: пилюли объёма партии --- */
.detail-product .price-select {
  display: flex;
  flex-wrap: wrap;
  gap: 12px !important; /* перебивает utility .gap-4 */
  row-gap: 8px !important;
}

.detail-product .price-select .badge {
  display: block;
  box-sizing: border-box;
  height: 40px !important;
  line-height: 38px;
  padding: 0 20px;
  font-size: 16px !important; /* перебивает .fs-1 { 14px !important } */
  font-weight: 500;
  background-color: var(--gd-bg-surface);
  color: var(--gd-accent-text);
  border: 1px solid var(--gd-border-strong);
  border-radius: var(--gd-radius-sm);
  cursor: pointer;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  user-select: none;
}

.detail-product .price-select .badge:hover {
  background-color: var(--primary-light);
  border-color: var(--gd-accent);
  color: var(--gd-accent-text);
}

.detail-product .price-select .badge.active {
  background-color: var(--gd-accent);
  color: var(--gd-text-on-accent);
  border-color: var(--gd-accent);
}

.detail-product .price-select .badge.active:hover {
  background-color: var(--gd-accent-hover);
  border-color: var(--gd-accent-hover);
  color: var(--gd-text-on-accent);
}

.detail-product .price-select .badge:focus-visible {
  outline: 2px solid var(--gd-accent);
  outline-offset: 2px;
}

/* --- Промт №3: F.A.Q. --- */
.gd-faq-page {
  padding-top: 24px;
  padding-bottom: 64px;
}

.gd-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.gd-faq .tab__header {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.gd-faq .tab__body:not(.is-open) {
  display: none;
}

.gd-faq .tab__header.active + .tab__body,
.gd-faq .tab__body.is-open {
  display: block;
}

.gd-faq-page .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  color: var(--gd-text-muted);
  font-size: 14px;
}

.gd-faq-page .breadcrumb__link {
  color: inherit;
}

.gd-faq-page .breadcrumb__current {
  color: var(--gd-text-primary);
}

/* Шаблонный main { margin-top: 55px } компенсировал абсолютное
   второе меню шапки (42px). Глобальный 0 из 1b прятал крошки под это меню.
   Обнуляем только на главной, где первый блок — полноширинный hero. */
main {
  margin-top: var(--gd-space-8);
}

main:has(> #HERO_BANNER) {
  margin-top: 0;
}

@media (max-width: 1024px) {
  :root {
    --bottom-bar-height: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  html body {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: block;
    padding-bottom: var(--bottom-bar-height) !important;
  }

  html.gd-kb-open body {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  nav.personal,
  .header__personal-wrapper {
    display: none !important;
  }

  main::after,
  .auth-page::after {
    display: none;
  }
}

html.gd-modal-open,
body.gd-modal-open {
  overflow: hidden;
}

/* --- Главная: hero full-bleed, копирайт в сетке контейнера --- */
#HERO_BANNER.main-page-block {
  margin-top: 0;
  margin-left: calc(var(--padding-container-left, var(--padding-container)) * -1);
  margin-right: calc(var(--padding-container-right, var(--padding-container)) * -1);
  width: auto;
  max-width: none;
}

#HERO_BANNER .hero.hero--compact {
  margin: 0;
  width: 100%;
  max-width: none;
}

#HERO_BANNER .hero__outer,
#HERO_BANNER .hero__inner,
#HERO_BANNER .hero__wrapper {
  width: 100%;
  max-width: none;
}

/* Высота баннера: было 50vh, +10% */
#HERO_BANNER .hero--fullscreen .hero__wrapper,
#HERO_BANNER .hero.hero--compact .hero__wrapper,
.header--2 + .container #HERO_BANNER .hero--fullscreen .hero__wrapper {
  height: 55vh;
  min-height: 55vh;
  max-height: 55vh;
  aspect-ratio: unset;
}

.hero.hero--compact .hero__outer,
.hero.hero--compact .hero__inner,
.hero.hero--compact .hero__wrapper {
  height: inherit;
}

.hero.hero--compact .hero__slide {
  padding: 0;
  height: 100% !important;
}

.hero.hero--compact .hero__slide--gd-client {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background: #0b0d14;
  min-height: 100%;
  height: 100%;
}

@media (min-width: 1025px) {
  .hero.hero--compact .hero__slide--gd-client {
    /* второе меню наезжает на баннер: центрируем копию в видимой части */
    box-sizing: border-box;
    padding-top: var(--second-menu-height, 42px);
  }
}

.hero.hero--compact .hero__slide--gd-client picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero.hero--compact .hero__background {
  top: 0;
  bottom: 0;
  left: auto !important;
  right: 0;
  width: auto !important;
  height: 100% !important;
  max-height: none;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  object-fit: cover;
  object-position: right center;
  transform: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 10%,
    #000 26%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 10%,
    #000 26%
  );
}

@media (min-width: 1025px) {
  .hero.hero--compact .hero__background {
    top: 50%;
    bottom: auto;
    height: 150% !important;
    /* Ниже центра + верх исходника: иначе zoom срезает горлышки */
    transform: translateY(-30%);
    object-position: right top;
  }
}

/* Слайд 2: свой кадр, без 150% zoom от v3.webp */
.hero.hero--compact .hero__background--slide2 {
  left: 0 !important;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  transform: none;
  object-fit: cover;
}
/* A60: ниже Y% → больше потолка исходника над горлышком.
   46% срезало; 0% давало ~117px поля. 31% ≈ 28–32px над ободком. */
.hero.hero--compact .hero__background--slide2 {
  object-position: 68% 31%;
}
/* Баннер 1: cover, кадр спущен — отражение жертвуем, горлышки с зазором */
.hero.hero--compact .hero__background--slide1 {
  left: 0 !important;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
  max-width: none;
  transform: none;
  object-fit: cover;
  object-position: 65% 42%;
}
/* A91: баннер 3 — contain в боксе по кадру (A73), PNG 1860×845 целиком */
.hero.hero--compact .hero__background--slide3 {
  left: auto !important;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto !important;
  height: 100% !important;
  aspect-ratio: 1860 / 845;
  max-width: none;
  transform: none;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 10%,
    #000 26%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 10%,
    #000 26%
  );
}
@media (min-width: 1025px) {
  /* Зеркало пола (янтарь ниже донца, source ~695+) режем; origin 38% бережёт горлышки под меню.
     translateX(-20%) оставляем. Не поднимать scale к 2 — режет бутылки. */
  .hero.hero--compact .hero__background--slide1 {
    top: 0;
    bottom: 0;
    left: auto !important;
    right: 0;
    width: min(100%, calc(55vh * 2.18)) !important;
    height: 100% !important;
    aspect-ratio: auto;
    transform-origin: 50% 38%;
    transform: translateX(-20%) scale(1.28);
    object-fit: cover;
    object-position: 65% 8%;
    /* translateX(-20%) оставляет правый обрез кадра — растворяем в фон слайда */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 8%,
      #000 22%,
      #000 88%,
      rgba(0, 0, 0, 0.35) 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.45) 8%,
      #000 22%,
      #000 88%,
      rgba(0, 0, 0, 0.35) 95%,
      transparent 100%
    );
  }
  /* Вуаль справа: щель до края экрана + мягкий уход кадра в #0b0d14 */
  .hero.hero--compact .hero__slide--gd-client:has(.hero__background--slide1) > .gd-hero-shade {
    background:
      linear-gradient(
        to left,
        #0b0d14 0%,
        rgba(11, 13, 20, 0.92) 4%,
        rgba(11, 13, 20, 0.5) 9%,
        rgba(11, 13, 20, 0.12) 14%,
        transparent 20%
      ),
      linear-gradient(
        90deg,
        #0b0d14 0%,
        rgba(11, 13, 20, 0.94) 22%,
        rgba(11, 13, 20, 0.42) 40%,
        rgba(11, 13, 20, 0) 56%
      );
  }
  .hero.hero--compact .hero__background--slide2 {
    top: 0;
    bottom: 0;
    height: 100% !important;
    transform: none;
  }
  .hero.hero--compact .hero__background--slide3 {
    top: var(--second-menu-height, 42px);
    bottom: 0;
    height: calc(100% - var(--second-menu-height, 42px)) !important;
    width: auto !important;
    transform: none;
    object-fit: contain;
    object-position: right center;
  }
}

.hero.hero--compact .hero__slide--gd-client .hero__title {
  width: auto;
  max-width: 760px;
  margin: 0 0 20px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  /* A95: +17% к 48px / 3.2vw / 28px */
  font-size: clamp(33px, 3.74vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
}

/* A83: на широком экране заголовок в одну строку. До 1024 px слова переносятся. */
@media (min-width: 1025px) {
  .hero.hero--compact .hero__slide--gd-client .hero__title--banner3 {
    width: max-content;
    max-width: calc(100% - 48px);
    white-space: nowrap;
  }
}

.gd-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #0b0d14 0%,
    rgba(11, 13, 20, 0.94) 22%,
    rgba(11, 13, 20, 0.42) 40%,
    rgba(11, 13, 20, 0) 56%
  );
}

.gd-hero-copy {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Поле, чтобы эйбрау не касался кромки; вертикаль даёт align-items: center на слайде */
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: var(--padding-container-left, var(--gd-container-pad));
  padding-right: var(--padding-container-right, var(--gd-container-pad));
  color: #fff;
}

.gd-proof {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 3px 8px;
  margin: 0 0 16px;
  border-left: 3px solid var(--gd-eyebrow, #51d0d7);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  font-size: var(--gd-font-small);
  font-weight: 500;
  text-transform: uppercase;
}

.gd-hero-lead {
  max-width: 570px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  /* A95: 16px × 1.1875 */
  font-size: 19px;
  line-height: var(--line-height, 1.4);
}

.gd-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gd-space-3);
}

.gd-hero-btn {
  min-height: 47px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* A95: 16px / 40px / 22px × ~1.17 */
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--gd-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.gd-hero-btn svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.gd-hero-btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--gd-brand), var(--gd-brand-2));
  border: none;
}

.gd-hero-btn--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.gd-hero-btn--secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(16, 18, 30, 0.22);
}

.gd-hero-btn--secondary:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Полоса фактов: фон на всю ширину, колонки в .container */
.gd-facts {
  margin-bottom: 0;
  background: var(--gd-bg);
}

.gd-facts .container {
  padding-top: 0;
  padding-bottom: 0;
}

.gd-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gd-facts__item {
  min-height: 72px;
  padding: 18px 0;
  padding-right: var(--gd-space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--gd-border);
  color: var(--gd-text-primary);
}

.gd-facts__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.gd-facts__item:not(:first-child) {
  padding-left: var(--gd-space-5);
}

.gd-facts__item strong {
  margin-bottom: var(--gd-space-1);
  font-size: var(--gd-font-h3);
  font-weight: 600;
  line-height: 1.25;
}

.gd-facts__item span {
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  line-height: 1.35;
}

@media (max-width: 576px) {
  #HERO_BANNER .hero--fullscreen .hero__wrapper,
  #HERO_BANNER .hero.hero--compact .hero__wrapper,
  .header--2 + .container #HERO_BANNER .hero--fullscreen .hero__wrapper {
    min-height: clamp(300px, 38vh, 320px);
    height: clamp(300px, 38vh, 320px);
    max-height: max(40vh, 300px);
  }

  .hero.hero--compact .hero__background {
    left: 0 !important;
    right: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    transform: none;
    object-fit: cover;
    object-position: center 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Специфичнее generic object-position: center 42% выше */
  #HERO_BANNER .hero.hero--compact .hero__background--slide2 {
    object-position: 62% 31%;
    top: 0;
    height: 100% !important;
  }
  #HERO_BANNER .hero.hero--compact .hero__background--slide1 {
    object-fit: cover;
    object-position: 78% 27%;
    top: 0;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    transform: none;
  }
  #HERO_BANNER .hero.hero--compact .hero__background--slide3 {
    left: 0 !important;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: right center;
    top: 0;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero.hero--compact .hero__title--banner3 {
    white-space: normal;
  }

  .gd-hero-shade {
    background: linear-gradient(
      180deg,
      rgba(17, 19, 31, 0.88),
      rgba(24, 26, 41, 0.55) 68%,
      rgba(20, 21, 35, 0.76)
    );
  }

  .gd-hero-copy {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gd-proof {
    margin-bottom: 8px;
  }

  .hero.hero--compact .hero__slide--gd-client .hero__title {
    margin-bottom: 12px;
  }

  .gd-hero-lead {
    margin-bottom: 20px;
  }

  .gd-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .gd-hero-btn--primary {
    width: 100%;
  }

  .gd-facts__grid {
    grid-template-columns: 1fr;
  }

  .gd-facts__item {
    min-height: 56px;
    padding: var(--gd-space-3) 0;
    border-right: 0;
    border-bottom: 1px solid var(--gd-border);
  }

  .gd-facts__item:not(:first-child) {
    padding-left: 0;
  }

  .gd-facts__item:last-child {
    border-bottom: 0;
  }
}

/* Модалка */
.gd-modal {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gd-text-primary);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
}

.gd-modal::backdrop {
  background: rgba(16, 18, 30, 0.55);
}

.gd-modal__panel {
  position: relative;
  width: min(720px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: var(--gd-space-5);
  background: var(--gd-bg-surface, var(--gd-bg));
  border-radius: var(--gd-radius-md);
  overflow: auto;
}

.gd-modal__close {
  position: absolute;
  top: var(--gd-space-4);
  right: var(--gd-space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--gd-radius-sm);
  background: transparent;
  color: var(--gd-text-secondary);
  cursor: pointer;
}

.gd-modal__close:hover {
  background: var(--gd-bg-soft);
  color: var(--gd-text-primary);
}

.gd-modal__title {
  margin: 0 0 var(--gd-space-2);
  font-size: var(--gd-font-h2);
  font-weight: 500;
  line-height: 1.25;
  color: var(--gd-text-primary);
}

.gd-modal__subtitle {
  margin: 0 0 var(--gd-space-5);
  font-size: var(--gd-font-small);
  line-height: 1.45;
  color: var(--gd-text-secondary);
}

.gd-modal__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gd-space-4);
  margin-bottom: var(--gd-space-4);
}

.gd-modal__fields > label,
.gd-modal__fields .form__text {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.gd-modal__fields > label > span,
.gd-modal__fields .form__text > span {
  display: block;
  width: 100%;
  line-height: 1.3;
}

.gd-modal__fields .input-text,
.gd-modal__fields .gd-modal__textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.gd-modal__message {
  grid-column: 1 / -1;
}

.gd-modal__textarea {
  min-height: 112px;
  height: auto;
  padding: var(--gd-space-3) var(--gd-space-4);
  resize: vertical;
  border-radius: var(--gd-radius-sm);
  text-align: left;
}

.gd-modal .input-text,
.gd-modal .btn {
  border-radius: var(--gd-radius-sm);
}

.gd-modal .input-text:focus {
  outline-color: transparent;
}

.gd-modal .input-text:focus-visible {
  border-color: var(--primary);
  outline-color: var(--primary-light);
}

.gd-modal__consent {
  margin-bottom: var(--gd-space-4);
}

.gd-modal__actions {
  display: flex;
  justify-content: flex-start;
}

.gd-modal__submit {
  border-radius: var(--gd-radius-sm);
}

.gd-modal__thanks {
  padding-top: var(--gd-space-2);
}

@media (max-width: 768px) {
  .gd-modal__panel {
    padding: 20px var(--gd-space-4);
  }

  .gd-modal__fields {
    grid-template-columns: 1fr;
  }
}

/* --- PDF 1.6: три радиуса. Кнопки/поля/чипы → sm, даже если тема давала 32/пилюлю. --- */
.btn,
.btn-small,
.catalog-btn,
.search-label,
.header__search .search-label,
.input-text,
.input-text-container,
.input-flags,
.detail-product .price-select .badge,
.badge-sale,
.blog-small__badge,
.counter,
.new-status {
  border-radius: var(--gd-radius-sm);
}

.catalog-item__image-container,
.blog-small__item,
.blog-small__text-container {
  border-radius: var(--gd-radius-md);
}

.promo-small__image-container,
.mainpage-webform,
.mainpage-about,
.mainpage-about__image-container,
.thin-banner__wrapper,
.brand-list__item.keen-slider__slide,
.contacts-popup,
.search-dropdown {
  border-radius: var(--gd-radius-lg);
}

/* Чекбокс — квадрат 3px, не кружок: иначе в фильтре читается как radio */
.input-checkbox,
input[type="checkbox"] {
  border-radius: var(--gd-radius-xs);
}

input[type="radio"],
.input-radio {
  border-radius: 50%;
}

/* 50% оставляем только кругам без текста */
.go-top-btn,
.catalog-item__card-controls-item,
.input-toggle::before {
  border-radius: 50%;
}

/* --- Главная: плитки категорий и укупорки --- */
.gd-tiles.main-page-block {
  margin-top: var(--gd-space-7);
  margin-bottom: var(--gd-space-7);
}

.gd-tiles__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gd-space-4);
  margin-bottom: var(--gd-space-5);
}

.gd-tiles__eyebrow {
  margin: 0 0 var(--gd-space-2);
  font-size: var(--gd-font-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gd-text-secondary);
}

.gd-tiles__title {
  margin: 0;
  font-size: var(--gd-font-h2);
  font-weight: 500;
  line-height: 1.25;
  color: var(--gd-text-primary);
}

.gd-tiles__more {
  flex-shrink: 0;
  font-size: var(--gd-font-body);
  font-weight: 500;
  color: var(--gd-accent-text);
  white-space: nowrap;
  text-decoration: none;
}

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

.gd-tiles__grid {
  display: grid;
  gap: var(--gd-space-4);
}

.gd-tiles--categories .gd-tiles__grid {
  grid-template-columns: minmax(0, 33.333vw) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  min-height: 380px;
}

.gd-tiles--categories .gd-tiles__item--hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: 33.333vw;
}

.gd-tiles--categories .gd-tiles__item:not(.gd-tiles__item--hero) {
  aspect-ratio: 16 / 9;
}

.gd-tiles--closures .gd-tiles__grid {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 1281px) {
  .gd-tiles--closures .gd-tiles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gd-tiles--closures .gd-tiles__item {
  aspect-ratio: 3 / 2;
}

.gd-tiles__item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gd-space-2);
  min-width: 0;
  padding: var(--gd-space-5);
  border-radius: var(--gd-radius-lg);
  background-color: var(--gd-tile-bg, var(--gd-bg-soft));
  color: var(--gd-tile-fg, var(--gd-text-primary));
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Слой фото: --tile-bg: url(...) на элементе. Кадры уже с пустым полем слева/сверху. */
.gd-tiles__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--tile-bg, none);
  background-size: var(--tile-size, cover);
  background-position: var(--tile-pos, right center);
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Кадры 30.08: бутылки справа, поле студии слева — cover как у «банок». */
.gd-tiles__item[data-gd-tile="krepkiy"]::before,
.gd-tiles__item[data-gd-tile="vino"]::before,
.gd-tiles__item[data-gd-tile="legkiy"]::before,
.gd-tiles__item[data-gd-tile="voda"]::before {
  background-size: cover;
  background-position: right bottom;
}
/* Банки: чуть меньше 130%, чтобы горлышки и донья влезали */
.gd-tiles__item[data-gd-tile="banki"]::before {
  background-size: 100% auto;
  background-position: 82% 58%;
}
/* GPI / винтовые: золотые колпачки справа внизу, поле слева под текст */
.gd-tiles__item[data-gd-tile="vintovye"]::before {
  background-size: cover;
  background-position: right bottom;
}
/* A108: swing.jpg — обрезанный кадр, три пробки без лишнего поля сверху */
.gd-tiles__item[data-gd-tile="bugelnye"]::before {
  background-image:
    linear-gradient(to right, var(--gd-tile-bg) 0%, var(--gd-tile-bg) 22%, transparent 38%),
    var(--tile-bg);
  background-size: 100% 100%, auto 100%;
  background-position: 0 0, right 4% bottom 6%;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  .gd-tiles__item[data-gd-tile="bugelnye"]::before {
    background-size: 100% 100%, auto 94%;
    background-position: 0 0, right 3% bottom 5%;
  }
}

.gd-tiles__item--dark {
  --gd-tile-scrim: linear-gradient(
    135deg,
    rgb(26 20 40 / 0.78) 0%,
    rgb(26 20 40 / 0.42) 32%,
    rgb(26 20 40 / 0) 60%
  );
}

/* A94: после --dark, иначе 135deg/60% снова гасит пробки */
.gd-tiles__item--dark[data-gd-tile="bugelnye"] {
  --gd-tile-scrim: linear-gradient(
    to right,
    rgb(49 37 74 / 0.34) 0%,
    rgb(49 37 74 / 0.1) 30%,
    transparent 44%
  );
}


/* Шаг 4 A4: плотнее подложка только у «Стеклянные банки» */
.gd-tiles__item--dense.gd-tiles__item--dark {
  --gd-tile-scrim: linear-gradient(
    135deg,
    rgb(26 20 40 / 0.95) 0%,
    rgb(26 20 40 / 0.86) 26%,
    rgb(26 20 40 / 0.55) 48%,
    rgb(26 20 40 / 0.18) 72%,
    rgb(26 20 40 / 0) 100%
  );
}

.gd-tiles__item--light {
  --gd-tile-scrim: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.92) 0%,
    rgb(255 255 255 / 0.5) 32%,
    rgb(255 255 255 / 0) 60%
  );
}

.gd-tiles__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gd-tile-scrim);
  pointer-events: none;
}

/* Новый кадр «Крепкий» уже тёмный слева — широкая заливка A1 съедала крайнюю бутылку. */
.gd-tiles__item[data-gd-tile="krepkiy"] {
  --gd-tile-scrim: linear-gradient(
    135deg,
    rgb(27 17 46 / 0.5) 0%,
    rgb(27 17 46 / 0.18) 20%,
    transparent 38%
  );
}


.gd-tiles__item:hover {
  transform: translateY(-2px);
  color: var(--gd-tile-fg, var(--gd-text-primary));
}

.gd-tiles__item:hover::before {
  filter: brightness(0.88);
}

/* Банки: плотный scrim глушил общий hover brightness */
.gd-tiles__item--dense.gd-tiles__item--dark[data-gd-tile="banki"]:hover {
  --gd-tile-scrim: linear-gradient(
    135deg,
    rgb(26 20 40 / 0.7) 0%,
    rgb(26 20 40 / 0.42) 28%,
    rgb(26 20 40 / 0.12) 52%,
    rgb(26 20 40 / 0) 78%
  );
}

.gd-tiles__item[data-gd-tile="banki"]:hover::before {
  filter: brightness(1.08);
}

.gd-tiles__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gd-space-2);
  max-width: 72%;
}

.gd-tiles__item-title,
.gd-tiles__item-sub {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.gd-tiles__item-title {
  font-size: var(--gd-font-h2);
  font-weight: 600;
  line-height: 1.2;
}

.gd-tiles__item-sub {
  font-size: var(--gd-font-small);
  font-weight: 400;
  line-height: 1.35;
}

/* Укупорка: название и подстрочник — одна строка от 1025px */
.gd-tiles--closures .gd-tiles__item {
  padding: var(--gd-space-4);
}

.gd-tiles--closures .gd-tiles__item-title,
.gd-tiles--closures .gd-tiles__item-sub {
  max-width: 100%;
  white-space: nowrap;
}

.gd-tiles--closures .gd-tiles__item-title {
  font-size: clamp(16px, 0.4vw + 12px, 18px);
}

.gd-tiles--closures .gd-tiles__item-sub {
  font-size: var(--gd-font-small);
}

.gd-tiles--closures .gd-tiles__copy {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .gd-tiles__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gd-tiles--categories .gd-tiles__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .gd-tiles--categories .gd-tiles__item--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gd-tiles--closures .gd-tiles__item-title,
  .gd-tiles--closures .gd-tiles__item-sub {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .gd-tiles--categories .gd-tiles__grid,
  .gd-tiles--closures .gd-tiles__grid {
    grid-template-columns: 1fr;
  }

  .gd-tiles--categories .gd-tiles__item--hero,
  .gd-tiles--categories .gd-tiles__item:not(.gd-tiles__item--hero),
  .gd-tiles--closures .gd-tiles__item {
    aspect-ratio: 4 / 3;
  }

  .gd-tiles--closures .gd-tiles__item {
    aspect-ratio: 3 / 2;
  }
}

/* Компактная полоса акций: градиент, без фото бутылок */
.gd-promo-strip.main-page-block {
  margin-top: var(--gd-space-7);
  margin-bottom: var(--gd-space-7);
}

.gd-promo-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gd-space-5);
  min-height: 120px;
  padding: var(--gd-space-5) var(--gd-space-6);
  border-radius: var(--gd-radius-lg);
  background: linear-gradient(100deg, var(--gd-brand) 0%, var(--gd-brand-2) 100%);
  box-shadow: inset 8px 0 0 var(--gd-sale, #e24a4a);
  color: #fff;
}

.gd-promo-strip__title {
  margin: 0 0 var(--gd-space-2);
  font-size: var(--gd-font-h2);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}

.gd-promo-strip__text {
  margin: 0;
  font-size: var(--gd-font-body);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

/* Шаг 4 A2: без класса .btn — тема .btn { color: white !important } больше не перекрывает текст */
.gd-promo-strip__btn,
.gd-promo-strip__btn:link,
.gd-promo-strip__btn:visited {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--gd-radius-sm);
  background: #fff !important;
  color: var(--gd-brand) !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.gd-promo-strip .gd-promo-strip__btn:hover,
.gd-promo-strip .gd-promo-strip__btn:focus,
.gd-promo-strip .gd-promo-strip__btn:focus-visible,
.gd-promo-strip .gd-promo-strip__btn:active {
  background: color-mix(in srgb, var(--gd-brand) 8%, #fff) !important;
  color: var(--gd-brand) !important;
}

@media (max-width: 767px) {
  .gd-promo-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }
}

/* Пустая карусель преимуществ темы — иначе дыра в ритме после объединения about */
#ADVANTAGES.main-page-block {
  display: none;
}

/* Временные направляющие для скрина сетки (класс вешает скрипт съёмки) */
body.gd-debug-grid::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--padding-container-left, var(--padding-container, 16px));
  width: 0;
  border-left: 2px solid #ff2d55;
  z-index: 100000;
  pointer-events: none;
}

/* --- Шаг 4 C: популярные позиции --- */
.gd-popular.gd-popular,
.gd-popular-wrap.main-page-block {
  margin-top: var(--gd-space-7);
  margin-bottom: var(--gd-space-7);
}

.gd-popular__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gd-space-4);
  margin-bottom: var(--gd-space-5);
}

.gd-popular__eyebrow {
  margin: 0 0 var(--gd-space-2);
  font-size: var(--gd-font-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gd-text-secondary);
}

.gd-popular__title {
  margin: 0;
  font-size: var(--gd-font-h2);
  font-weight: 500;
  line-height: 1.25;
  color: var(--gd-text-primary);
}

.gd-popular__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--gd-space-2);
}

.gd-popular__chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--gd-border-strong);
  border-radius: var(--gd-radius-sm);
  background: transparent;
  color: var(--gd-text-primary);
  font-size: var(--gd-font-small);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.gd-popular__chip:hover,
.gd-popular__chip:focus-visible {
  border-color: var(--gd-brand);
  color: var(--gd-brand);
}

.gd-popular__chip.is-active,
.gd-popular__chip.is-active:hover {
  background: var(--gd-brand);
  border-color: var(--gd-brand);
  color: #fff;
}

.gd-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gd-space-5);
}

.gd-popular__grid[hidden] {
  display: none !important;
}

.gd-popular__empty {
  margin: 0;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  line-height: 1.4;
}

.gd-popular__empty[hidden] {
  display: none;
}

.gd-popular__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: var(--gd-space-3);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
}

.gd-popular__photo {
  display: block;
  width: 100%;
  height: 280px;
  max-width: none;
  max-height: 280px;
  margin-bottom: var(--gd-space-3);
  overflow: hidden;
  border: none;
  border-radius: var(--gd-radius-sm);
  /* Светлая тема: тот же фон, что у карточки. Иначе contain даёт серые полосы (шаг 6; регресс шага 34). */
  background: var(--gd-bg-surface) !important;
}

.gd-popular__photo .lazy-loader {
  background: transparent;
}

.gd-popular__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gd-popular__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--gd-space-2);
  color: var(--success, #18b131);
  font-size: var(--gd-font-small);
  font-weight: 600;
  line-height: 1.3;
}

.gd-popular__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.gd-popular__name {
  margin: 0 0 var(--gd-space-1);
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h3);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.gd-popular__name:hover,
.gd-popular__name:focus-visible {
  color: var(--gd-brand);
}

.gd-popular__spec {
  margin: 0 0 var(--gd-space-3);
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  line-height: 1.35;
}

.gd-popular__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 var(--gd-space-1);
}

.gd-popular__price-val {
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h3);
  font-weight: 700;
  line-height: 1.2;
}

.gd-popular__price-unit {
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
}

.gd-popular__pallet {
  margin: 0 0 var(--gd-space-4);
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  line-height: 1.35;
}

.gd-popular__cart,
.gd-popular__cart:link,
.gd-popular__cart:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--gd-brand);
  border-radius: var(--gd-radius-sm);
  margin-top: auto;
  background: transparent;
  color: var(--gd-brand) !important;
  font-size: var(--gd-font-small);
  font-weight: 500;
  text-decoration: none;
}

.gd-popular__cart:hover,
.gd-popular__cart:focus-visible,
.gd-popular__cart:active {
  background: color-mix(in srgb, var(--gd-brand) 10%, transparent);
  color: var(--gd-brand) !important;
}

@media (max-width: 1024px) {
  .gd-popular__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gd-popular__filters {
    justify-content: flex-start;
  }

  .gd-popular__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gd-popular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gd-space-3);
  }

  .gd-popular__photo {
    height: 170px;
    max-height: 170px;
  }

  .gd-popular__name {
    font-size: 14px;
  }

  .gd-popular__price-val {
    font-size: 16px;
  }

  .gd-popular__stock {
    font-size: 12px;
  }

  .gd-popular__cart,
  .gd-popular__cart:link,
  .gd-popular__cart:visited {
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 13px;
  }
}

/* --- Шаг 5 B: маркетплейсы --- */
.gd-markets.main-page-block {
  margin-top: var(--gd-space-5);
  margin-bottom: var(--gd-space-5);
}

.gd-markets__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gd-space-5);
  padding: 12px var(--gd-space-5);
  border-radius: var(--gd-radius-lg);
  background: var(--gd-bg-soft);
}

.gd-markets__eyebrow {
  margin: 0 0 var(--gd-space-2);
  font-size: var(--gd-font-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gd-text-secondary);
}

.gd-markets__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.gd-markets__title {
  margin: 0 0 2px;
  font-size: var(--gd-font-h3);
  font-weight: 500;
  line-height: 1.25;
  color: var(--gd-text-primary);
}

.gd-markets__text {
  margin: 0;
  max-width: 46rem;
  font-size: var(--gd-font-small);
  line-height: 1.35;
  color: var(--gd-text-secondary);
}

.gd-markets__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--gd-space-4);
  margin-top: 0;
  flex: 0 0 auto;
}

.gd-mp-badge {
  box-sizing: border-box;
  width: var(--gd-mp-badge, 34px);
  height: var(--gd-mp-badge, 34px);
  flex: 0 0 var(--gd-mp-badge, 34px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.gd-mp-badge--wb {
  background-color: var(--gd-market-wb);
  background-image: url("../img/brand/wb.png");
}

.gd-mp-badge--ozon {
  background-color: var(--gd-market-ozon);
  background-image: url("../img/brand/ozon.png");
}

.gd-mp-badge--vk {
  background-color: var(--gd-market-vk);
  background-image: url("../img/brand/vk.svg");
}

.gd-markets__btn,
.gd-markets__btn:link,
.gd-markets__btn:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: var(--gd-mp-badge, 34px);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gd-text-primary) !important;
  font-size: var(--gd-font-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.gd-markets__name {
  font-weight: 600;
}

.gd-markets__arrow {
  color: var(--gd-text-secondary);
  font-weight: 500;
}

.gd-markets__btn:hover,
.gd-markets__btn:focus-visible {
  background: transparent;
  color: var(--gd-brand) !important;
}

.gd-markets__btn:hover .gd-markets__arrow,
.gd-markets__btn:focus-visible .gd-markets__arrow {
  color: var(--gd-brand);
}

.gd-markets__btn--soon,
.gd-markets__btn--soon:hover,
.gd-markets__btn--soon:focus-visible {
  color: var(--gd-text-muted) !important;
  cursor: default;
  pointer-events: none;
}

.gd-markets__btn--soon .gd-markets__name {
  font-weight: 600;
}

.gd-markets__btn--soon small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gd-text-secondary);
}

@media (max-width: 767px) {
  .gd-markets__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gd-markets__btns {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* --- Шаг 6 B: блог — фото в верхней трети, заголовок главный --- */
#BLOG .blog-small__slider-wrapper {
  position: relative;
}

#BLOG .blog-small__slider.keen-slider {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gd-space-4);
  overflow: visible !important;
  transform: none !important;
}

#BLOG .blog-small__item,
#BLOG .blog-small__item.keen-slider__slide {
  position: relative !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  background: var(--gd-bg-surface);
  transform: none !important;
}

@media (min-width: 1025px) {
  #BLOG .blog-small__item:nth-child(n + 5) {
    display: none;
  }
}

#BLOG .blog-small__image {
  position: relative !important;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

#BLOG .blog-small__image .lazy-loader {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}

#BLOG .blog-small__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#BLOG .blog-small__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  transform: none;
}

#BLOG .blog-small__text-container {
  display: flex;
  flex-direction: column;
  height: auto !important;
  padding: var(--gd-space-3);
  background: transparent;
  border-radius: 0;
  transform: none;
}

#BLOG .blog-small__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h3, 18px);
  font-weight: 600;
  line-height: 1.25;
}

#BLOG .blog-small__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small, 14px);
  line-height: 1.4;
}

#BLOG .blog-small .keen-slider__arrow {
  display: none !important;
}

@media (max-width: 1024px) {
  #BLOG .blog-small__slider.keen-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #BLOG .blog-small__slider.keen-slider {
    grid-template-columns: 1fr;
  }
}

/* --- Шаг 6 C: подвал — 4 равные колонки, контакты под логотипом --- */
.footer.footer--1.gd-footer,
.gd-footer.footer--1 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "brand buyers company privacy"
    "bottom bottom bottom bottom";
  column-gap: var(--gd-space-5, 24px);
  row-gap: var(--gd-space-5, 24px);
}

.gd-footer__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: var(--gd-text-on-footer);
}

.gd-footer__logo {
  display: block;
  width: auto;
  max-width: 180px;
}

.gd-footer__logo .footer__image-container,
.gd-footer .footer__image-container {
  min-width: 0;
  min-height: 0;
  max-width: 180px;
  max-height: 48px;
  height: 40px;
}

.gd-footer__logo img,
.gd-footer .footer__logo-image {
  width: auto;
  max-width: 180px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.gd-footer__phone,
.gd-footer__mail {
  color: var(--gd-text-on-footer) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.gd-footer__phone:hover,
.gd-footer__mail:hover {
  opacity: 0.7;
}

.gd-footer__hours {
  margin: 0;
  color: var(--gd-text-on-footer-muted);
  font-size: 13px;
  line-height: 1.4;
}

.gd-footer__markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.gd-footer__market,
.gd-footer__market:link,
.gd-footer__market:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--gd-mp-badge-footer, 28px);
  height: var(--gd-mp-badge-footer, 28px);
  min-width: var(--gd-mp-badge-footer, 28px);
  min-height: var(--gd-mp-badge-footer, 28px);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.gd-footer__market .gd-mp-badge {
  width: var(--gd-mp-badge-footer, 28px);
  height: var(--gd-mp-badge-footer, 28px);
  flex-basis: var(--gd-mp-badge-footer, 28px);
  font-size: 0;
}

.gd-footer__market:hover,
.gd-footer__market:focus-visible {
  opacity: 0.85;
}

.gd-footer__col {
  grid-area: auto;
  min-width: 0;
  color: var(--gd-text-on-footer);
}

.gd-footer__col--buyers {
  grid-area: buyers;
}

.gd-footer__col--company {
  grid-area: company;
}

.gd-footer__col--privacy {
  grid-area: privacy;
}

.gd-footer__col-title,
.gd-footer .footer__menu-title {
  display: block;
  margin: 0 0 12px;
  color: var(--gd-text-on-footer-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 1;
}

.gd-footer .footer__menu-text,
.gd-footer .footer__menu-text:link,
.gd-footer .footer__menu-text:visited {
  font-size: 15px;
  font-weight: 400 !important;
  color: var(--gd-text-on-footer) !important;
  text-decoration: none;
  opacity: 1;
}

.gd-footer .footer__menu-text:hover,
.gd-footer .footer__menu-text:focus-visible {
  text-decoration: underline;
  opacity: 1;
}

.gd-footer .footer__menu {
  max-width: none;
  margin: 0;
}

.gd-footer__bottom {
  grid-area: bottom;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--gd-text-on-footer) 16%, transparent);
  color: var(--gd-text-on-footer-muted);
}

.gd-footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gd-footer__dev {
  margin: 0;
  color: var(--gd-text-on-footer-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.gd-footer__dev-link {
  color: inherit !important;
  text-decoration: none !important;
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 1s cubic-bezier(0.19, 1, 0.22, 1),
    color 1s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (min-width: 1024px) {
  .gd-footer__dev-link:hover,
  .gd-footer__dev-link:focus-visible {
    background-position: 0 100%;
    background-size: 100% 1px;
  }
}

.gd-footer__market--soon {
  cursor: default;
  opacity: 0.85;
}

#BRANDS {
  display: none !important;
}

/* Юрлицо / ИНН: менять одной строкой content ниже. */
.gd-footer__legal {
  margin: 0;
  min-height: 1.4em;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gd-text-on-footer-muted);
}

.gd-footer__legal::before {
  content: "ООО «Торговая Компания «Гласс Декор». ИНН — будет указан";
}

@media (max-width: 1024px) {
  .footer.footer--1.gd-footer,
  .gd-footer.footer--1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand buyers"
      "company privacy"
      "bottom bottom";
  }
}

@media (max-width: 767px) {
  .footer.footer--1.gd-footer,
  .gd-footer.footer--1 {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "buyers"
      "company"
      "privacy"
      "bottom";
    row-gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-top: 32px;
  }

  .gd-footer__col-title {
    margin-bottom: 8px;
  }

  .gd-footer .footer__menu {
    row-gap: 6px;
  }

  .gd-footer__bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Шаг 6 D2: заглушка несуществующих разделов --- */
.gd-soon {
  box-sizing: border-box;
  max-width: 36rem;
  margin: 48px auto 80px;
  padding: 24px 0 48px;
}

.gd-soon__title {
  margin: 0 0 var(--gd-space-3);
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h2, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.gd-soon__text {
  margin: 0 0 var(--gd-space-5, 24px);
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-body, 16px);
  line-height: 1.5;
}

.gd-soon .gd-soon__btn.btn {
  width: fit-content;
}

/* --- Шаг 7 B: каталог --- */
.catalog-section__container,
.catalog__wrapper--sidebar .catalog-section__container {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
  .catalog-section__container,
  .catalog__wrapper--sidebar .catalog-section__container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1024px) {
  .catalog-section__container,
  .catalog__wrapper--sidebar .catalog-section__container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .catalog-section__container,
  .catalog__wrapper--sidebar .catalog-section__container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.catalog-item > .catalog-item__image-container {
  order: 1;
}

.catalog-item > .catalog-item__slider-pagination {
  order: 2;
}

.catalog-item > .catalog-item__stock {
  order: 3;
}

.catalog-item > .catalog-item__name {
  order: 4;
}

.catalog-item > .catalog-item__spec {
  order: 5;
}

.catalog-item > .catalog-item__price-container {
  order: 6;
}

.catalog-item > .catalog-item__hint {
  order: 7;
}

.catalog-item > .catalog-item__review-container {
  order: 8;
}

.catalog-item > .catalog-item__buttons-block {
  order: 9;
}

.catalog-item__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--gd-space-2);
  color: var(--success, #18b131);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-item__stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.catalog-item .catalog-item__name,
.catalog-item .catalog-item__name:link,
.catalog-item .catalog-item__name:visited {
  margin: 0 0 4px;
  color: var(--gd-text-primary) !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.catalog-item .catalog-item__name:hover,
.catalog-item .catalog-item__name:focus-visible,
.catalog-item__image-container:hover ~ .catalog-item__name {
  color: var(--gd-brand) !important;
}

.catalog-item__spec {
  margin: 0 0 var(--gd-space-3);
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small, 14px);
  font-weight: 400;
  line-height: 1.35;
}

.catalog-item .catalog-item__price-container {
  margin-bottom: 4px;
}

.catalog-item .catalog-item__price {
  color: var(--gd-text-primary);
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.2;
}

.catalog-item__hint {
  margin: 0 0 var(--gd-space-3);
  color: var(--gd-text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.catalog-item .btn.btn-primary,
.catalog-item .btn.btn-primary:link,
.catalog-item .btn.btn-primary:visited {
  background: transparent;
  border: 1px solid var(--gd-brand);
  color: var(--gd-brand) !important;
}

.catalog-item .btn.btn-primary:hover,
.catalog-item .btn.btn-primary:focus-visible,
.catalog-item .btn.btn-primary:active {
  background: color-mix(in srgb, var(--gd-brand) 10%, transparent);
  border-color: var(--gd-brand);
  color: var(--gd-brand) !important;
}

[data-theme="dark"] .catalog-item .btn.btn-primary {
  color: var(--gd-accent-text) !important;
  border-color: var(--gd-accent-text);
  background: transparent;
}

.filter .filter__item:has(> .filter__item-header) {
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 12px 14px 14px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
}

.filter .filter__item:has(> .filter__item-header) > .filter__item-header {
  margin-bottom: 8px;
}

[data-theme="dark"] .filter .filter__item:has(> .filter__item-header) {
  background: var(--gd-bg-elevated);
  border-color: var(--gd-border);
}

[data-theme="dark"] .filter .bx-ui-slider-track {
  background: var(--gd-bg-page);
}

[data-theme="dark"] .filter .bx-ui-slider-pricebar-vn {
  background: var(--gd-border);
}

/* --- Шаг 7 C: карточка товара --- */
.detail-product .gd-product-title {
  margin: 0 0 4px;
  color: var(--gd-text-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.gd-product-spec {
  margin: 0 0 12px;
  color: var(--gd-text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.detail-product .gd-sku {
  margin-bottom: 6px;
}

.gd-product-drawing {
  margin: 0 0 20px;
  color: var(--gd-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.detail-product .price-select,
.detail-product [data-entity="price2"],
.detail-product .price-table,
.detail-product .detail-product-price-wrapper {
  display: none !important;
}

.gd-price-matrix {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 0 20px;
}

.gd-price-matrix__hint {
  margin: 0 0 12px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  font-weight: 400;
  line-height: 1.35;
}

.gd-price-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.gd-price-tab {
  box-sizing: border-box;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--gd-border-strong);
  border-radius: var(--gd-radius-sm);
  background: var(--gd-bg-surface);
  color: var(--gd-text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.gd-price-tab.is-active {
  border-color: var(--gd-brand);
  background: color-mix(in srgb, var(--gd-brand) 8%, var(--gd-bg-surface));
  color: var(--gd-accent-text);
}

.gd-price-one {
  margin: 0 0 8px;
  color: var(--gd-text-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.gd-price-one__old {
  font-size: 20px;
  font-weight: 400;
}

.gd-price-acc__price {
  text-align: right;
  vertical-align: middle;
}

.gd-price-acc__price-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 8px;
  max-width: 100%;
}

.gd-price-acc__now {
  font-weight: 600;
  white-space: nowrap;
}

.gd-price-acc__price-inner .gd-cart-unit__old {
  white-space: nowrap;
}

.gd-price-acc {
  margin: 0 0 12px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-sm);
  background: var(--gd-bg-surface);
}

.gd-price-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gd-text-primary);
}

.gd-price-acc > summary::-webkit-details-marker {
  display: none;
}

.gd-price-acc > summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M2.2 4.2 6 8l3.8-3.8 1.2 1.2L6 10.4 1 5.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M2.2 4.2 6 8l3.8-3.8 1.2 1.2L6 10.4 1 5.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.gd-price-acc[open] > summary::after {
  transform: rotate(180deg);
}

.gd-price-acc[open] > summary {
  border-bottom: 1px solid var(--gd-border);
}

.gd-price-acc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gd-price-acc__table th,
.gd-price-acc__table td {
  padding: 6px 12px;
  text-align: left;
  font-weight: 400;
}

.gd-price-acc__table th {
  color: var(--gd-text-primary);
  font-weight: 500;
}

.gd-price-acc__table td:last-child,
.gd-price-acc__table th:last-child {
  text-align: right;
}

.gd-price-acc__table tr.is-active td {
  background: color-mix(in srgb, var(--gd-brand) 8%, var(--gd-bg-surface));
}

.gd-vat {
  display: inline;
  margin-left: 4px;
  color: var(--gd-text-secondary, #8f9396);
  font-size: 11px;
  font-weight: 300;
  white-space: nowrap;
}

.gd-price-matrix__caption {
  display: none;
}

.gd-price-matrix__list {
  display: none;
}

.gd-price-matrix__pallet {
  margin: 0 0 4px;
  color: var(--gd-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.gd-price-min {
  margin: 0 0 12px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
  font-weight: 400;
  line-height: 1.35;
}

.gd-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 8px;
}

.gd-qty__label {
  color: var(--gd-text-secondary);
  font-size: 13px;
}

.gd-qty__wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-sm);
  overflow: hidden;
}

.gd-qty__btn {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--gd-bg-soft, #f3f5f6);
  color: var(--gd-text-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.gd-qty__btn:hover,
.gd-qty__btn:focus-visible {
  background: color-mix(in srgb, var(--gd-brand) 10%, transparent);
}

.gd-qty__input {
  box-sizing: border-box;
  width: 88px;
  height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid var(--gd-border);
  border-right: 1px solid var(--gd-border);
  background: var(--gd-bg-surface);
  color: var(--gd-text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.detail-product .detail-buttons-container [data-entity="add-btn"].btn,
.detail-product [data-entity="add-btn"].btn {
  background: var(--gd-brand);
  border-color: var(--gd-brand);
  color: var(--gd-text-on-accent) !important;
}

@media (max-width: 767px) {
  .detail-product .gd-product-title {
    font-size: 22px;
  }

  .catalog-item .catalog-item__name {
    font-size: 16px;
  }

  .gd-price-matrix {
    max-width: none;
    margin-bottom: 12px;
  }

  .gd-price-matrix__row {
    padding: 8px 12px;
    font-size: 14px;
  }

  .gd-qty {
    margin-bottom: 0;
  }
}

/* --- Шаг 8 A: каталог, карточка, корзина --- */
.catalog-section__item-wrapper {
  min-width: 0;
  overflow: visible;
}

.catalog-item {
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
  padding: var(--gd-space-4);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
}

.catalog-item > .gd-promo-card__badge,
.product-gallery > .gd-promo-card__badge {
  z-index: 3;
}

.catalog-item__card-controls {
  top: calc(var(--gd-space-4) + 8px);
  right: calc(var(--gd-space-4) + 8px);
}

.catalog-item__image-container,
.catalog-item__slider-container,
.catalog-item__slider-container.keen-slider,
.catalog-item .keen-slider {
  overflow: hidden !important;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--gd-radius-sm);
}

.catalog-item .keen-slider__slide,
.catalog-item__slider-container .keen-slider__slide {
  min-width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

h1.catalog__breadcrumbs-title {
  font-size: var(--gd-font-h1);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gd-text-primary);
}

.catalog-item .catalog-item__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: inherit;
  font-weight: inherit;
}

.catalog-item__price-val {
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h3, 18px);
  font-weight: 600;
  line-height: 1.2;
}

.catalog-item__price-unit {
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small, 14px);
  font-weight: 400;
}

.catalog-item__spec {
  min-height: 1.35em;
}

.catalog-item .catalog-item__buttons-block {
  margin-top: var(--gd-space-3);
}

.catalog-item__review-container,
.catalog-item [data-entity="rating-container"] {
  display: none !important;
}

.gd-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--success, #18b131);
  font-size: var(--gd-font-small);
  font-weight: 600;
  line-height: 1.3;
}

.gd-product-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.detail-product .new-status,
.detail-product .d-flex.align-items-center.gap-4.mb-5:has([data-entity="rating"]),
.detail-product [data-entity="add-btn"]:not(.gd-product-cart) {
  display: none !important;
}

.gd-product-cart.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin-top: 4px;
  background: var(--gd-brand);
  border-color: var(--gd-brand);
  color: var(--gd-text-on-accent) !important;
}

.gd-price-matrix .gd-qty {
  margin-bottom: 12px;
}

@media (min-width: 1025px) {
  #basket-root.basket {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
  }
  .basket-items-container {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto;
    min-width: 0;
  }
  .basket-total {
    flex: 0 0 400px !important;
    width: 400px !important;
    max-width: 400px !important;
    margin-left: auto;
  }
}

.basket-total {
  background: var(--gd-bg-muted);
  color: var(--gd-text-primary);
}

.mainpage-webform,
.mainpage-about {
  background-color: var(--gd-bg-surface);
  color: var(--gd-text-primary);
}

.basket-total .gd-cart-pay {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.basket-total .gd-cart-pay__label {
  color: var(--gd-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.basket-total .gd-cart-pay__vat,
.gd-checkout__sum .gd-vat,
.gd-thanks .gd-vat {
  color: var(--gd-text-secondary, #8f9396);
  font-size: 11px;
  font-weight: 300;
}

.basket-total .gd-cart-pay__value {
  color: var(--gd-text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.basket-total .gd-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.basket-total .gd-cart-discount {
  font-size: 16px;
  line-height: 1.35;
}

.basket-total .gd-cart-discount__value {
  color: var(--gd-text-secondary, #8f9396);
  font-size: 16px;
  font-weight: 700;
}

.basket-total .gd-cart-discount.is-on .gd-cart-discount__value {
  color: var(--success, #18b131);
}

.gd-cart-unit__old {
  margin-right: 6px;
  color: var(--gd-text-secondary, #8f9396);
  font-weight: 400;
  text-decoration: line-through;
}

/* Тема Aspro: именованные grid-area. Сбрасываем и ставим одну строку:
   фото → название → цена за шт. → количество → сумма + иконки. */
#basket-item-table .basket-item:not(.basket-item-restore) {
  display: grid !important;
  grid-template-columns: 72px minmax(140px, 1.1fr) minmax(88px, auto) minmax(180px, 1fr) auto auto !important;
  grid-template-rows: auto !important;
  grid-template-areas: none !important;
  grid-auto-flow: row !important;
  align-items: start;
  gap: 12px 24px;
  min-height: 0;
  padding: 16px 0 !important;
}

#basket-item-table .basket-item > * {
  grid-area: auto !important;
  margin: 0 !important;
  min-width: 0;
}

#basket-item-table .basket-item-image-container,
#basket-item-table .basket-item-block-image {
  grid-column: 1 !important;
  width: 72px !important;
  height: 72px !important;
  flex: none;
  aspect-ratio: auto;
}

#basket-item-table .basket-item-image,
#basket-item-table .basket-item-image img,
#basket-item-table .gd-cart-photo {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  object-fit: contain;
}

#basket-item-table .keen-slider__pagination,
#basket-item-table .product-item-image-slider-control-container {
  display: none !important;
}

#basket-item-table .basket-item-info {
  grid-column: 2 !important;
  flex: none !important;
  width: auto !important;
}

#basket-item-table .basket-item-status {
  grid-column: 3 !important;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}

#basket-item-table .basket-item-status:empty,
#basket-item-table .basket-item-status[aria-hidden="true"]:empty {
  min-width: 0;
}

#basket-item-table .basket-item-status .gd-badge--preorder {
  margin: 0;
}

#basket-item-table .basket-item-desc {
  margin: 4px 0 0;
  color: var(--gd-text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  max-width: 28em;
}

#basket-item-table .basket-item-properties {
  display: none !important;
}

#basket-item-table .basket-item-prices {
  grid-column: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start;
  gap: 4px !important;
  width: auto !important;
  max-width: none !important;
  white-space: normal;
  text-align: left !important;
}

#basket-item-table .basket-item-quantity {
  grid-column: 5 !important;
  width: auto !important;
}

#basket-item-table .gd-cart-line-end {
  grid-column: 6 !important;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-left: 0 !important;
  width: auto !important;
}

#basket-item-table .basket-item-prices .gd-cart-unit,
#basket-item-table .basket-item-prices .gd-cart-line-hint,
#basket-item-table .basket-item-prices .gd-cart-pallet-size {
  display: block;
  width: auto;
  max-width: 260px;
  margin: 0;
  text-align: left !important;
  white-space: normal;
}

#basket-item-table .basket-item-prices .gd-cart-line-hint {
  color: var(--gd-text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

#basket-item-table .basket-item-prices .gd-cart-line-hint.is-applied {
  color: var(--success, #18b131);
  font-weight: 600;
}

#basket-item-table .basket-item-buttons {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 4px !important;
  padding: 0;
}

#basket-item-table .basket-item-buttons button:not(:last-child) {
  margin-right: 0 !important;
}

#basket-item-table .basket-item-buttons .favorite-btn,
#basket-item-table .basket-item-buttons [data-entity="basket-item-delete"] {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  #basket-item-table .basket-item:not(.basket-item-restore) {
    grid-template-columns: 72px minmax(0, 1fr) auto auto !important;
    grid-template-rows: auto auto auto !important;
  }

  #basket-item-table .basket-item-image-container {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
  }

  #basket-item-table .basket-item-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  #basket-item-table .basket-item-status {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start;
  }

  #basket-item-table .basket-item-prices {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
  }

  #basket-item-table .basket-item-quantity {
    grid-column: 2 / 4 !important;
    grid-row: 3 !important;
  }

  #basket-item-table .gd-cart-line-end {
    grid-column: 4 !important;
    grid-row: 1 / span 3 !important;
  }
}

@media (max-width: 576px) {
  #basket-item-table .basket-item:not(.basket-item-restore) {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  #basket-item-table .basket-item > * {
    grid-row: auto !important;
  }

  #basket-item-table .basket-item-image-container {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #basket-item-table .basket-item-info,
  #basket-item-table .basket-item-status,
  #basket-item-table .basket-item-prices,
  #basket-item-table .basket-item-quantity,
  #basket-item-table .gd-cart-line-end {
    grid-column: 2 !important;
  }

  #basket-item-table .basket-item-status {
    grid-row: 2 !important;
  }

  #basket-item-table .basket-item-prices {
    grid-row: 3 !important;
  }

  #basket-item-table .basket-item-quantity {
    grid-row: 4 !important;
  }

  #basket-item-table .gd-cart-line-end {
    grid-row: 5 !important;
  }

  #basket-item-table .gd-cart-line-end {
    width: 100%;
    justify-content: space-between;
  }

  #basket-item-table .basket-item-buttons {
    flex-direction: row !important;
    gap: 8px !important;
  }
}

.basket-total .gd-cart-weight {
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--gd-text-secondary);
}

.basket-total .gd-cart-hint {
  margin: 0 0 12px;
  color: var(--gd-text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.basket-total .gd-cart-hint.is-applied {
  color: var(--success, #18b131);
  font-weight: 600;
}

.gd-cart-unit,
.gd-cart-pallet-size,
.gd-cart-qty-pallets {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.gd-cart-unit {
  color: var(--gd-text-primary);
  font-weight: 500;
}

.gd-cart-unit__val {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.gd-cart-unit__val.is-flash {
  animation: gd-price-flash 0.7s ease;
}

@keyframes gd-price-flash {
  from {
    background: color-mix(in srgb, var(--gd-brand) 22%, var(--gd-bg-surface));
  }
  to {
    background: transparent;
  }
}

.gd-cart-pallet-size,
.gd-cart-qty-pallets {
  color: var(--gd-text-secondary);
}

.basket-coupon-input,
label[for="basket-coupon-input"] {
  display: none !important;
}

@media (max-width: 767px) {
  h1.catalog__breadcrumbs-title {
    font-size: 24px;
  }

  .basket-total .gd-cart-pay__value {
    font-size: 24px;
  }

  .gd-product-cart.btn {
    max-width: none;
  }
}


/* --- Шаг 10: оформление, спасибо, заказ в кабинете --- */
.gd-checkout__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}
.gd-thanks__title,
.gd-order__head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
}
.gd-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 24px;
  align-items: start;
  margin-bottom: 16px;
}
.gd-checkout__form {
  max-width: none;
  height: auto;
  align-self: start;
}
.gd-checkout__block {
  margin-bottom: 12px;
  padding-bottom: 0;
}
.gd-checkout__block h2,
.gd-checkout__aside h2,
.gd-thanks__order h2,
.gd-order-docs h2,
.gd-order-lines h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.gd-checkout__payer,
.gd-checkout__static {
  margin: 0 0 8px;
  color: var(--gd-text-secondary, #5c5c5c);
}
.gd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}
.gd-field .input-text,
.gd-field__area {
  width: 100%;
  min-height: 40px;
  height: 40px;
}
.gd-field__area {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}
.gd-checkout__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gd-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 14px;
}
.gd-checkout__leftovers {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
  margin: -1px;
}
.gd-checkout__submit { width: 100%; max-width: none; margin-top: 16px; }
.gd-checkout__note,
.gd-checkout__term,
.gd-checkout__hint {
  margin: 8px 0 0;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 13px;
  line-height: 1.4;
}
.gd-checkout__aside {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: sticky;
  top: 108px;
  align-self: start;
  height: auto;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--gd-border, #e6e6e6);
  border-radius: 16px;
  background: var(--gd-bg-muted, #f7f7f8);
}
.gd-checkout__aside .gd-checkout__sum {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.gd-checkout__lines { list-style: none; margin: 0 0 16px; padding: 0; }
.gd-checkout__aside .gd-checkout__meta {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: var(--gd-font-price-accent);
  font-weight: 700;
  line-height: 1.3;
}
.gd-checkout__aside .gd-checkout__sum + .gd-checkout__meta {
  margin-top: 36px;
}
.gd-checkout__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.gd-checkout__sum { font-size: 16px; font-weight: 700; }
.gd-checkout__meta { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; }
.gd-thanks { max-width: none; margin-bottom: 64px; }
.gd-thanks__lead { font-size: 16px; line-height: 1.5; }
.gd-thanks__phone { margin: 0 0 24px; }
.gd-thanks__actions { display: flex; flex-direction: column; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.gd-order__kicker { margin: 0 0 8px; color: var(--gd-text-secondary, #5c5c5c); font-size: 13px; }
.gd-order__head h1 span { color: var(--gd-text-secondary, #5c5c5c); font-weight: 500; font-size: 0.7em; }
.gd-order__invoice { margin: 0 0 8px; font-weight: 600; }
.gd-order__totals { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 32px; }
.gd-order__totals dt { color: var(--gd-text-secondary, #5c5c5c); font-size: 13px; font-weight: 400; }
.gd-order__totals dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.gd-order__total--meta dd {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--gd-text-primary, #2c2c2c);
}
.gd-order-status { margin-bottom: 16px; }
.gd-order-status__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0 8px;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd-order-status__step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 64px;
  padding: 0 4px 0 0;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}
.gd-order-status__step::after {
  content: "";
  display: block;
  height: 5px;
  margin-top: auto;
  padding-top: 8px;
  background: #d8d8d8;
  background-clip: content-box;
  border-radius: 2px;
}
.gd-order-status__step.is-done { color: var(--gd-text-primary, #2c2c2c); }
.gd-order-status__step.is-done::after { background: var(--gd-brand, #2f1d69); }
.gd-order-status__step.is-current { color: var(--gd-brand, #2f1d69); font-weight: 700; }
.gd-order-status__step.is-current::after { background: var(--gd-brand, #2f1d69); }
.gd-order-status__date { margin: 4px 0 0; color: var(--gd-text-secondary, #5c5c5c); font-size: 13px; }
.gd-order-docs__list { list-style: none; margin: 0 0 12px; padding: 0; }
.gd-order-docs__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gd-border, #e6e6e6);
}
.gd-order-docs__type { display: block; color: var(--gd-text-secondary, #5c5c5c); font-size: 12px; }
.gd-order-docs__empty { color: var(--gd-text-secondary, #5c5c5c); }
.gd-order-lines {
  min-width: 0;
  margin-top: 8px;
}
.gd-order-line {
  display: grid;
  grid-template-columns: 72px minmax(160px, 1.2fr) minmax(180px, 1fr) auto;
  gap: 12px 24px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gd-border, #e6e6e6);
}
.gd-order-line__photo { width: 72px; height: 72px; object-fit: contain; }
.gd-order-line__info { min-width: 0; }
.gd-order-line h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.gd-order-line__drawing { margin: 0; color: var(--gd-text-secondary, #8f9396); font-size: 13px; }
.gd-order-line__pallet {
  margin: 0;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 14px;
  line-height: 1.35;
}
.gd-order-line__sum {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.gd-order__term {
  margin: 16px 0 0;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 13px;
  line-height: 1.4;
}
.gd-order__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 48px; }
@media (max-width: 1024px) {
  .gd-checkout__layout { grid-template-columns: 1fr; }
  .gd-checkout__row { grid-template-columns: 1fr; }
  .gd-thanks__layout { grid-template-columns: 1fr; }
  .gd-checkout__aside { position: static; top: auto; }
}

.gd-cart-unit__sep {
  font-size: 0;
}

/* Шаг 11 A10: вторичные кнопки — контур, как «В корзину» в каталоге */
.gd-thanks .btn.btn-secondary,
.gd-order .btn.btn-secondary,
.gd-orders .btn.btn-secondary {
  background: var(--gd-bg-surface) !important;
  border: 1.5px solid var(--gd-brand, #2f1d69) !important;
  color: var(--gd-brand, #2f1d69) !important;
}
@media (hover: hover) {
  .gd-thanks .btn.btn-secondary:hover,
  .gd-order .btn.btn-secondary:hover,
  .gd-orders .btn.btn-secondary:hover {
    background: color-mix(in srgb, var(--gd-brand, #2f1d69) 8%, var(--gd-bg-surface)) !important;
    border-color: var(--gd-brand, #2f1d69) !important;
    color: var(--gd-brand, #2f1d69) !important;
  }
}

/* Шаг 12: чипы активного фильтра каталога (превью) */
.gd-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.gd-filter-chips[hidden] {
  display: none;
}
.gd-filter-chips__item {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--gd-brand, #2f1d69);
  border-radius: var(--gd-radius-sm);
  background: var(--gd-brand, #2f1d69);
  color: #fff;
  font-size: var(--gd-font-small);
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
}
.gd-filter-empty {
  margin: 0 0 16px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
}
.gd-filter-empty[hidden] {
  display: none;
}
.catalog-section__item-wrapper[hidden] {
  display: none !important;
}

[data-gd-empty-chrome][hidden],
.catalog-section__show-more-btn[hidden] {
  display: none !important;
}

/* Шаг 13: /promo/ и /exclusive/ */
.gd-page-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 24px;
  color: var(--gd-text-muted);
  font-size: 14px;
}
.gd-page-crumbs a {
  color: inherit;
  text-decoration: none;
}
.gd-page-crumbs a:hover {
  color: var(--gd-brand);
  text-decoration: underline;
}

.gd-promo-page {
  padding-bottom: 64px;
}
.gd-promo-page__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gd-space-4);
  margin-bottom: 8px;
}
.gd-promo-page__head h1 {
  margin: 0;
  font-size: var(--gd-font-h1);
  font-weight: 700;
}
@media (max-width: 1024px) {
  .gd-promo-page__title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.gd-promo-page__lead {
  margin: 0 0 8px;
  color: var(--gd-brand);
  font-size: var(--gd-font-h3);
  font-weight: 600;
}
.gd-promo-page__note {
  margin: 0 0 32px;
  max-width: 720px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-small);
}
.gd-promo-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.gd-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
}
.gd-promo-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--gd-radius-sm);
  background: var(--gd-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.gd-promo-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
}
.gd-promo-card__photo .lazy-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent !important;
}
.gd-promo-card__photo .lazy-loader img {
  position: static !important;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gd-promo-card__photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gd-promo-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--success, #18b131);
  font-size: var(--gd-font-small);
  font-weight: 600;
}
.gd-promo-card__name {
  margin: 0 0 4px;
  color: var(--gd-text-primary);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.gd-promo-card__spec {
  margin: 0 0 8px;
  color: var(--gd-text-secondary);
  font-size: 13px;
}
.gd-promo-card__unit {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.gd-promo-card__now {
  color: var(--gd-brand);
  font-size: var(--gd-font-price-accent);
  font-weight: 700;
}
.gd-promo-card .gd-price-matrix {
  max-width: none;
  margin-bottom: 12px;
}
/* A86: подпись «Акция складывается…» только в шапке страницы, не в карточке */
.gd-promo-card .gd-price-matrix__hint {
  display: none;
}
.gd-promo-card .gd-price-matrix__row {
  padding: 8px 12px;
  font-size: 14px;
}
.gd-promo-card .btn.btn-primary {
  width: 100%;
  margin-top: auto;
}

.gd-exclusive {
  padding-bottom: 64px;
}
.gd-exclusive__head h1,
.gd-exclusive h2 {
  margin: 0 0 12px;
  font-weight: 700;
}
.gd-exclusive__head h1 {
  font-size: var(--gd-font-h1);
}
.gd-exclusive h2 {
  font-size: var(--gd-font-h2);
}
.gd-exclusive__lead {
  margin: 0;
  max-width: 720px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-body);
  line-height: 1.45;
}
.gd-exclusive__section {
  margin-top: 40px;
}
.gd-exclusive__techs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.gd-exclusive__tech,
.gd-exclusive__why {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
  overflow: hidden;
}
.gd-exclusive__tech {
  padding-top: 0;
}
.gd-exclusive__media {
  position: relative;
  box-sizing: border-box;
  width: calc(100% + 32px);
  margin: 0 -16px 12px;
  aspect-ratio: 4 / 3;
  background: var(--gd-bg-soft);
  overflow: hidden;
}
.gd-exclusive__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gd-exclusive__icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gd-brand) 12%, var(--gd-bg-surface));
  color: var(--gd-brand);
  font-size: 13px;
  font-weight: 700;
}
[data-theme="dark"] .gd-exclusive__tech,
[data-theme="dark"] .gd-exclusive__why {
  background: var(--gd-bg-elevated);
}
[data-theme="dark"] .gd-exclusive__media {
  background: var(--gd-bg-page);
}
.gd-exclusive__tech h3,
.gd-exclusive__why h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.gd-exclusive__tech p,
.gd-exclusive__why p,
.gd-exclusive__studio p {
  margin: 0;
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.gd-exclusive__whys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gd-exclusive__cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-soft);
}
.gd-exclusive__more {
  margin: 32px 0 0;
}
.gd-exclusive__cta h2 {
  margin-bottom: 8px;
}
.gd-exclusive__cta p {
  margin: 0 0 16px;
  color: var(--gd-text-secondary);
}
.gd-exclusive__corp {
  margin: 24px 0 0;
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.gd-exclusive__corp a {
  color: var(--gd-accent-text);
  font-weight: 500;
  text-decoration: none;
}
.gd-exclusive__corp a:hover,
.gd-exclusive__corp a:focus-visible {
  color: var(--gd-accent-hover);
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .gd-promo-page__grid,
  .gd-exclusive__techs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gd-exclusive__whys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .gd-promo-page__grid,
  .gd-exclusive__techs,
  .gd-exclusive__whys {
    grid-template-columns: 1fr;
  }
}

/* --- Шаг 19 --- */
.gd-hero {
  position: relative;
  overflow: hidden;
}

.gd-hero.swiper {
  height: 100%;
  overflow: hidden;
}

.gd-hero .swiper-wrapper {
  height: 100%;
  transition-timing-function: ease-out !important;
}

.gd-hero .swiper-slide {
  height: 100%;
  box-sizing: border-box;
}

.gd-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 13, 20, 0.42);
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(-50%);
  cursor: pointer;
}

@media (min-width: 1025px) {
  .gd-hero__arrow {
    /* второе меню наезжает на верх баннера — центр стрелок в видимой полосе */
    top: calc(50% + (var(--second-menu-height, 42px) / 2));
  }
}

.gd-hero__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.gd-hero__arrow--prev { left: 16px; }
.gd-hero__arrow--next { right: 16px; }

.gd-hero__arrow:hover,
.gd-hero__arrow:focus-visible {
  background: rgba(11, 13, 20, 0.62);
}

.gd-hero-lead--stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gd-tiles__eyebrow,
.gd-popular__eyebrow,
.gd-markets__eyebrow {
  display: inline-flex;
  align-items: center;
  border-left: 3px solid var(--gd-eyebrow, #51d0d7);
  padding-left: 8px;
}

.filter__apply-btn.btn,
.filter__apply-btn {
  border-radius: var(--gd-radius-sm) !important;
}

.gd-product-drawing {
  margin: 8px 0 0;
}

.gd-cart-sum {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.gd-thanks {
  max-width: none;
}

.gd-thanks__layout {
  display: grid;
  grid-template-columns: minmax(0, 50vw) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 16px;
}

.gd-thanks__copy {
  min-width: 0;
}

.gd-thanks__side {
  min-width: 0;
}

.gd-thanks__actions .btn {
  width: 100%;
}

.gd-thanks__status {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}

.gd-thanks__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.gd-thanks__phone-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gd-thanks__im {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  vertical-align: middle;
}

.gd-thanks__im svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* A133: мобильный в шапке + WA/TG как на «Заказ принят» */
.contacts-popup__phone--mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.contacts-popup__phone--mobile .contacts-popup__item-link {
  font-weight: 500;
}

.contacts-popup__im {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contacts-popup__im-link {
  display: inline-flex;
  line-height: 0;
}

.contacts-popup__im-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.gd-thanks__order {
  margin-left: 0;
  padding: 16px;
  border: 1px solid var(--gd-border, #e6e6e6);
  border-radius: 16px;
  background: var(--gd-bg-muted, #f7f7f8);
}

.gd-thanks__order .gd-checkout__lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

.gd-thanks__order .gd-checkout__lines li,
.gd-thanks__order .gd-checkout__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name sum";
  align-items: baseline;
  gap: 8px 16px;
  width: 100%;
}

.gd-thanks__order .gd-checkout__line-name {
  grid-area: name;
  text-align: left;
  justify-self: start;
  min-width: 0;
}

.gd-thanks__order .gd-checkout__line-status:empty,
.gd-thanks__order .gd-checkout__line-status[aria-hidden="true"]:not(:has(*)) {
  display: none;
}

.gd-thanks__order .gd-checkout__line-sum,
.gd-thanks__order .gd-checkout__lines li b,
.gd-thanks__order .gd-checkout__sum b {
  grid-area: sum;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gd-thanks__order .gd-checkout__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin: 0;
  font-size: var(--gd-cabinet-body, 17px);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.gd-thanks__order .gd-checkout__sum > span {
  min-width: 0;
  text-align: left;
}

.gd-thanks__order .gd-checkout__sum b {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: calc(28px - 2pt);
  line-height: 1.2;
}

.gd-order__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 340px);
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
  margin-bottom: 8px;
}

/* A132: сайдбар с низа полосок степпера, не с заголовка заказа */
.gd-order__main {
  display: contents;
}

.gd-order-status {
  display: contents;
}

.gd-order .gd-cabinet-nav {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.gd-order__head {
  grid-column: 2 / 4;
  grid-row: 1;
  margin-bottom: 16px;
}

.gd-order-status__list {
  grid-column: 2;
  grid-row: 2;
}

.gd-order-status__date {
  grid-column: 2;
  grid-row: 3;
  margin: 8px 0 16px;
}

.gd-order-docs {
  grid-column: 2;
  grid-row: 4;
}

.gd-order-lines {
  grid-column: 2;
  grid-row: 5;
  margin-top: 16px;
}

.gd-order__aside {
  grid-column: 3;
  grid-row: 3 / span 3;
  align-self: start;
  margin-top: 0;
}

.gd-cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.gd-cabinet-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--gd-radius-sm);
  color: var(--gd-text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.gd-cabinet-nav a:hover,
.gd-cabinet-nav a:focus-visible {
  color: var(--gd-brand);
  background: var(--gd-tint-hover);
}

.gd-cabinet-nav a.is-current {
  color: var(--gd-accent-text);
  background: color-mix(in srgb, var(--gd-brand) 8%, var(--gd-bg-surface));
  box-shadow: inset 3px 0 0 var(--gd-brand);
  font-weight: 700;
}

.gd-cabinet-nav__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--gd-border, #e6e6e6);
}

.gd-cabinet-nav__group-title {
  padding: 0 10px 4px;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .gd-cabinet-nav a.is-current {
  background: color-mix(in srgb, var(--gd-brand) 18%, transparent);
}

.gd-order__aside {
  position: sticky;
  top: 108px;
  padding: 16px;
  border: 1px solid var(--gd-border, #e6e6e6);
  border-radius: 16px;
  background: var(--gd-bg-muted, #f7f7f8);
}

.gd-order__aside .gd-order__actions {
  margin: 16px 0 0;
  flex-direction: column;
}

.gd-order__aside .gd-order__actions .btn {
  width: 100%;
}

.gd-order__aside .gd-order__totals {
  margin: 8px 0 0;
  flex-direction: column;
  gap: 4px;
}

main.gd-checkout,
main.gd-thanks {
  margin-top: 48px;
}
main.gd-order {
  margin-top: 48px;
}
main.gd-orders {
  margin-top: 48px;
}

.gd-orders .gd-order__layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.gd-orders__history {
  display: inline-block;
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.gd-orders__group-title {
  margin: 20px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.gd-orders__group + .gd-orders__group {
  margin-top: 12px;
}

.gd-orders__group .gd-orders-card + .gd-orders-card {
  margin-top: 12px;
}

.gd-orders-card {
  padding: 20px;
  border: 1px solid var(--gd-border, #e6e6e6);
  border-radius: 16px;
  background: var(--gd-bg-muted, #f7f7f8);
}

.gd-orders-card__title {
  display: block;
  margin: 0 0 16px;
  color: var(--gd-text-primary);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.gd-orders-card__title:hover,
.gd-orders-card__title:focus-visible {
  color: var(--gd-brand);
}

.gd-orders-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.gd-orders-card__block h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.gd-orders-card__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
}

.gd-orders-card__name {
  font-weight: 700;
}

.gd-orders-card__label {
  color: var(--gd-text-secondary, #5c5c5c);
  font-weight: 500;
}

.gd-orders-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.gd-orders-badge--error {
  color: var(--error, #f66767);
  background: var(--error-light, #f6676719);
}

.gd-orders-badge--warn {
  color: var(--warning, #ff9935);
  background: var(--warning-light, #ff993519);
}

.gd-orders-badge--ok {
  color: var(--success, #18b131);
  background: var(--success-light, #18b13119);
}

.gd-orders-badge--brand {
  color: var(--gd-brand, #2f1d69);
  background: color-mix(in srgb, var(--gd-brand, #2f1d69) 10%, transparent);
}

.gd-orders-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.gd-orders__lede {
  margin: 6px 0 0;
  max-width: 44em;
  color: var(--gd-text-secondary, #5c5c5c);
  font-size: 14px;
  line-height: 1.45;
}

.gd-orders__empty {
  display: none;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--gd-bg-muted, #f7f7f8);
  font-size: 16px;
}

.gd-orders__empty a {
  font-weight: 600;
}

.gd-orders__main:not(:has(.gd-orders-card)) .gd-orders__empty {
  display: block;
}

.gd-orders-card--cancelled {
  border-color: color-mix(in srgb, var(--error, #f66767) 28%, var(--gd-border, #e6e6e6));
}
main.gd-checkout + .footer,
body:has(main.gd-checkout) .footer {
  margin-top: 8px;
  padding-top: 16px;
  padding-bottom: 12px;
}
main.gd-order + .footer,
body:has(main.gd-order) .footer,
main.gd-orders + .footer,
body:has(main.gd-orders) .footer {
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
.gd-checkout .breadcrumbs {
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.gd-checkout .breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}
.gd-checkout .breadcrumbs__item {
  display: inline;
  list-style: none;
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.gd-checkout .breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.45em;
  color: var(--gd-text-secondary);
}
.gd-checkout .breadcrumbs a {
  color: var(--gd-brand);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .gd-checkout__form {
    max-width: none;
  }

  .gd-order__layout,
  .gd-orders .gd-order__layout {
    grid-template-columns: 1fr;
  }

  .gd-order .gd-cabinet-nav,
  .gd-order__head,
  .gd-order-status__list,
  .gd-order-status__date,
  .gd-order-docs,
  .gd-order-lines,
  .gd-order__aside {
    grid-column: 1;
    grid-row: auto;
  }

  .gd-orders-card__grid {
    grid-template-columns: 1fr;
  }

  .gd-order__aside {
    position: static;
  }

  .gd-order-line {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .gd-order-line__pallet {
    grid-column: 2;
  }

  .gd-tiles--categories .gd-tiles__item--hero {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-hero .swiper-wrapper {
    transition: none !important;
  }
}

/* Страница «О нас» — те же токены, что на главной */
.gd-about {
  padding-bottom: 64px;
}
.gd-about__head {
  margin-bottom: 16px;
}
.gd-about__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  border-left: 3px solid var(--gd-eyebrow, #51d0d7);
  padding-left: 8px;
  color: var(--gd-text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gd-about__head h1 {
  margin: 0;
  font-size: var(--gd-font-h1);
  font-weight: 700;
  color: var(--gd-text-primary);
}
.gd-about__intro {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 28px;
}
.gd-about__intro-side {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.gd-about__copy p {
  margin: 0 0 10px;
  color: var(--gd-text-secondary);
  font-size: var(--gd-font-body);
  font-weight: 400;
  line-height: 1.5;
}
.gd-about__copy p:last-child {
  margin-bottom: 0;
}
.gd-about__copy strong {
  font-weight: 700;
  color: var(--gd-text-primary);
}
.gd-about__lead {
  color: var(--gd-text-primary) !important;
  font-size: var(--gd-font-h3) !important;
  font-weight: 400;
  line-height: 1.45 !important;
}
.gd-about__mission {
  color: var(--gd-text-secondary) !important;
  font-size: var(--gd-font-h3) !important;
  font-weight: 400;
  line-height: 1.45 !important;
}
.gd-about__mission strong {
  font-size: inherit;
  font-weight: 700;
  color: var(--gd-text-secondary);
}
.gd-about__photo {
  flex: 0 0 auto;
  margin: 0;
  width: min(32vw, 640px);
  max-width: 640px;
  align-self: flex-end;
  aspect-ratio: 5 / 3;
  border-radius: var(--gd-radius-lg);
  overflow: hidden;
  background: var(--gd-bg-soft);
}
.gd-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gd-about__highlight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  flex: 1 1 auto;
  margin: 0 0 48px;
  padding: 8px 14px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-lg);
  background: var(--gd-bg-surface);
  box-shadow: var(--gd-shadow);
  isolation: isolate;
}
.gd-about__highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../img/brand/glassdecorfavicon.svg") no-repeat right 18px bottom 4px / 136px auto;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}
.gd-about__highlight-num,
.gd-about__highlight-text {
  position: relative;
  z-index: 1;
}
.gd-about__intro .gd-about__highlight {
  margin: 0;
}
.gd-about__highlight-num {
  margin: 0;
  color: var(--gd-brand);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.gd-about__highlight-title {
  margin: 0 0 4px;
  color: var(--gd-text-primary);
  font-size: var(--gd-font-h3);
  font-weight: 600;
}
.gd-about__highlight-text p:last-child {
  margin: 0;
  color: var(--gd-text-secondary);
  font-size: 15px;
  line-height: 1.45;
}
.gd-about__section {
  margin-bottom: 48px;
}
.gd-about__section h2 {
  margin: 0 0 12px;
  font-size: var(--gd-font-h2);
  font-weight: 700;
  color: var(--gd-text-primary);
}
.gd-about__section-lead {
  margin: 0 0 12px;
  max-width: 820px;
  color: var(--gd-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}
.gd-about__section-lead:last-of-type {
  margin-bottom: 24px;
}
.gd-about__cycle-lead {
  font-size: var(--gd-font-h3);
  line-height: 1.45;
  color: var(--gd-text-secondary);
}
.gd-about__plants-copy {
  margin: 0 0 24px;
  max-width: none;
}
.gd-about__plants-lead,
.gd-about__plants-note {
  margin: 0 0 12px;
  max-width: none;
  font-size: var(--gd-font-h3);
  line-height: 1.45;
}
.gd-about__plants-lead {
  font-weight: 700;
  color: var(--gd-text-secondary);
}
.gd-about__plants-note {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--gd-text-primary);
}
.gd-about__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gd-about__card,
.gd-about__plant {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius-md);
  background: var(--gd-bg-surface);
  box-shadow: var(--gd-shadow);
}
.gd-about__card {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 0;
  padding: 32px 20px 28px;
  gap: 16px;
  cursor: default;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.gd-about__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  margin: 0;
  transition: transform 0.2s ease;
}
.gd-about__card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (hover: hover) {
  .gd-about__card:hover {
    border-color: var(--gd-brand-2);
    background: var(--gd-bg-accent-soft);
  }
  .gd-about__card:hover .gd-about__card-icon {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gd-about__card,
  .gd-about__card-icon {
    transition: none;
  }
}
.gd-about__card:not(:has(.gd-about__card-icon)) {
  justify-content: center;
}
.gd-about__card h3 {
  margin: 0;
  font-size: var(--gd-font-h3);
  font-weight: 700;
  color: var(--gd-text-primary);
}
.gd-about__cycle-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 28px;
}
.gd-about__cycle-copy p {
  margin: 0;
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.gd-about__plants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.gd-about__plant strong {
  margin-bottom: 6px;
  color: var(--gd-stat-blue);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}
.gd-about__plant span {
  color: var(--gd-text-secondary);
  font-size: 14px;
  line-height: 1.35;
}
.gd-about__plant p {
  margin: 10px 0 0;
  color: var(--gd-text-muted);
  font-size: 13px;
  line-height: 1.35;
}
.gd-about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.gd-about__closing {
  margin: 0 0 48px;
  max-width: none;
  color: var(--gd-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}
[data-theme="dark"] .gd-about__closing {
  color: var(--gd-text-primary);
}
.gd-about__shot {
  margin: 0;
  aspect-ratio: 21 / 9;
  border-radius: var(--gd-radius-lg);
  overflow: hidden;
  background: var(--gd-bg-soft);
}
.gd-about__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
[data-theme="dark"] .gd-about__highlight::before {
  opacity: 0.18;
  filter: brightness(0) invert(0.88);
}
[data-theme="dark"] .gd-about__card,
[data-theme="dark"] .gd-about__plant,
[data-theme="dark"] .gd-about__highlight {
  background: var(--gd-bg-elevated);
}
[data-theme="dark"] .gd-about__photo,
[data-theme="dark"] .gd-about__shot {
  background: var(--gd-bg-page);
}
[data-theme="dark"] .gd-about__card-icon img {
  filter: brightness(0) invert(0.93);
}
[data-theme="dark"] .gd-about__cycle-copy p {
  color: var(--gd-text-primary);
}
@media (hover: hover) {
  [data-theme="dark"] .gd-about__card:hover {
    border-color: var(--gd-accent-text);
    background: color-mix(in srgb, var(--gd-brand) 22%, var(--gd-bg-elevated));
  }
}
@media (max-width: 1024px) {
  .gd-about__intro {
    gap: 12px;
  }
  .gd-about__intro-side {
    gap: 10px;
  }
  .gd-about__cards,
  .gd-about__cycle-copy,
  .gd-about__plants {
    grid-template-columns: 1fr 1fr;
  }
  .gd-about__highlight {
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    padding: 8px 12px;
  }
  .gd-about__copy p {
    margin-bottom: 8px;
  }
}
@media (max-width: 576px) {
  .gd-about__intro {
    flex-direction: column;
    align-items: stretch;
  }
  .gd-about__intro-side {
    display: contents;
  }
  .gd-about__copy { order: 1; }
  .gd-about__photo {
    order: 2;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
  .gd-about__highlight {
    order: 3;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
  }
  .gd-about__cards,
  .gd-about__cycle-copy,
  .gd-about__plants,
  .gd-about__gallery {
    grid-template-columns: 1fr;
  }
}

/* Форма на «О нас»: как раздел страницы, поля как на оформлении заказа */
.gd-about__form {
  margin-bottom: 0;
  max-width: 820px;
}
.gd-about__form:has(.gd-form-success) > h2,
.gd-about__form:has(.gd-form-success) > .gd-about__section-lead {
  display: none;
}
.gd-about .mainpage-webform {
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.gd-about__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.gd-about__fields .gd-field {
  margin-bottom: 0;
}
.gd-about__message {
  grid-column: 1 / -1;
}
.gd-about__consent {
  margin: 0 0 16px;
  max-width: 100%;
  color: var(--gd-text-secondary);
}
.gd-about .form__submit .btn {
  width: fit-content;
}
.gd-about .gd-form-success {
  padding: 0;
}
.gd-about .gd-form-success h2 {
  margin: 0 0 8px;
  font-size: var(--gd-font-h2);
  font-weight: 700;
  color: var(--gd-text-primary);
}
.gd-about .gd-form-success p {
  margin: 0;
  color: var(--gd-text-secondary);
}
@media (min-width: 768px) {
  .gd-about__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
  }
}

/* --- Шаг 36 --- */

/* B1: один бейдж «Предзаказ» — не зелёный «в наличии» и не «нет в наличии» */
.gd-badge--preorder {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 4px 0 0;
  padding: 3px 10px;
  border-radius: 40px;
  background: color-mix(in srgb, #c45a12 16%, var(--gd-bg-surface, #fff));
  color: #c45a12;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

#basket-item-table .gd-badge--preorder {
  margin: 0;
}

.gd-checkout__line-info .gd-badge--preorder,
.gd-order-line__info .gd-badge--preorder {
  margin: 4px 0 6px;
}

.gd-orders-card__head .gd-badge--preorder {
  margin: 0;
  flex: 0 0 auto;
}

/* A109: флажок «Акция» красный и крупнее; та же красная полоса, что на главной */
.gd-promo-page__head {
  padding: 8px 0 8px 20px;
  box-shadow: inset 8px 0 0 var(--gd-sale, #e24a4a);
}
.gd-promo-card__badge {
  padding: 6px 12px;
  background: var(--gd-sale, #e24a4a);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

/* A110: сайдбар корзины — верх по списку товаров, не по заголовку «Корзина» */
@media (min-width: 1025px) {
  #basket-root.basket {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 24px;
  }
  #basket-root .basket-items-container {
    display: contents;
  }
  #basket-root .basket-items-container > .d-flex.justify-content-between.mb-4 {
    grid-column: 1;
    grid-row: 1;
  }
  #basket-root .basket-filter-container {
    grid-column: 1;
    grid-row: 2;
  }
  #basket-root .basket-warning-container {
    grid-column: 1;
  }
  #basket-root .basket-items-list-container,
  #basket-root #basket-items-list-container {
    grid-column: 1;
    grid-row: 3;
  }
  #basket-root .basket-total {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    position: sticky;
    top: 108px;
    margin-top: 0;
  }
}

/* A112–A118: оформление заказа */
.gd-checkout__form {
  display: contents;
}
.gd-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: start;
}
.gd-checkout__intro h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.gd-thanks > .gd-thanks__title {
  margin-bottom: 16px;
}
.gd-checkout__fields {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  width: 100%;
}
.gd-checkout__aside {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.gd-field {
  position: relative;
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}
.gd-field__label {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  color: var(--gd-text-secondary, #8f9396);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
}
.gd-field .input-text,
.gd-field__area {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  height: 56px;
  padding: 24px 16px 8px;
  font-size: calc(14px + 3pt);
  line-height: 1.3;
}
.gd-field__area {
  height: auto;
  min-height: 72px;
  padding-top: 26px;
  resize: vertical;
}
.gd-about .gd-about__fields textarea.gd-field__area {
  height: auto;
  min-height: 168px;
}

.gd-checkout__line-info {
  display: block;
  min-width: 0;
}
.gd-checkout__lines li b {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gd-checkout__aside .gd-checkout__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  font-size: calc(28px - 2pt);
  font-weight: 700;
  line-height: 1.2;
}
.gd-checkout__sum-label {
  min-width: 0;
  text-align: left;
}
.gd-checkout__aside .gd-checkout__sum b {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .gd-checkout__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gd-checkout__intro,
  .gd-checkout__fields,
  .gd-checkout__aside {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .gd-checkout__aside .gd-checkout__sum {
    font-size: clamp(16px, 4.6vw, calc(28px - 2pt));
  }
  .gd-checkout__aside .gd-checkout__meta {
    font-size: clamp(13px, 3.6vw, var(--gd-font-price-accent, 20px));
  }
  .gd-checkout__lines li {
    font-size: clamp(12px, 3.4vw, 14px);
  }
}

/* A119–A121: заказ принят */
.gd-thanks__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 1.15fr);
  grid-template-areas: "copy side";
  gap: 24px 32px;
  align-items: start;
}
.gd-thanks__copy {
  grid-area: copy;
}
.gd-thanks__side {
  grid-area: side;
}
.gd-thanks__lead,
.gd-thanks__status,
.gd-thanks__phone {
  font-size: calc(16px + 3pt);
  line-height: 1.5;
}
.gd-thanks__copy > :first-child {
  margin-top: 0;
}
@media (max-width: 1024px) {
  .gd-thanks__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "side";
  }
}

/* A122–A126, A129: мои заказы / история */
.gd-orders__group-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gd-orders-card__head {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gd-orders-card__title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.gd-orders-card__head .gd-orders-badge {
  margin-left: 0;
  flex: 0 0 auto;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.gd-orders-badge--brand {
  color: #fff;
  background: var(--gd-brand, #2f1d69);
}
.gd-orders-badge--warn {
  color: #fff;
  background: var(--warning, #ff9935);
}
.gd-orders-badge--ok {
  color: #fff;
  background: var(--success, #18b131);
}
.gd-orders-badge--error {
  color: #fff;
  background: var(--error, #f66767);
}
.gd-orders-card__grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.gd-orders-card__block:not(:has(.gd-orders-card__line)) {
  display: none;
}
.gd-orders--history .gd-orders-card {
  background: #e8edf4;
}
.gd-orders--history .gd-orders-card--cancelled {
  background: color-mix(in srgb, var(--error, #f66767) 8%, #e8edf4);
}

/* A127: степпер — цвет от текущего статуса */
.gd-order-status__step::after {
  height: 5px;
}
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-current {
  color: var(--gd-brand, #2f1d69);
}
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="accepted"] .gd-order-status__step.is-current::after {
  background: var(--gd-brand, #2f1d69);
}
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-current {
  color: #c45a12;
}
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="invoiced"] .gd-order-status__step.is-current::after {
  background: #e28a2a;
}
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-current {
  color: #0d7a72;
}
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="paid"] .gd-order-status__step.is-current::after {
  background: #0d9488;
}
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-current {
  color: var(--gd-brand-2, #174a9a);
}
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="ready"] .gd-order-status__step.is-current::after {
  background: var(--gd-brand-2, #174a9a);
}
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-current {
  color: #4338ca;
}
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="docs"] .gd-order-status__step.is-current::after {
  background: #6366f1;
}
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-current {
  color: #147a24;
}
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="shipped"] .gd-order-status__step.is-current::after {
  background: var(--success, #18b131);
}
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-done,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-current {
  color: #0f7a22;
}
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-done::after,
.gd-order-status[data-gd-status="done"] .gd-order-status__step.is-current::after {
  background: #0f7a22;
}
.gd-order-status__step.is-current {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .gd-order-status__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 12px;
  }
}

@media (max-width: 767px) {
  .gd-order-status__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Фон фото = фон карточки (светлая и тёмная тема). Не --gd-media-plate:
   contain даёт полосы вокруг бутылки (шаг 6; регресс шага 34). */
.gd-popular__photo,
.gd-popular__photo .lazy-loader,
.gd-promo-card__photo,
.catalog-item__image-container,
.catalog-item__slider-container {
  background: var(--gd-bg-surface) !important;
}

/* --- Шаг 37: корзина/оформление/кабинет + мобильная адаптация --- */

/* Оформление: поля ~48% экрана, состав заказа ~50% */
.gd-checkout__layout {
  grid-template-columns: minmax(0, 48fr) minmax(0, 50fr);
  column-gap: clamp(16px, 2vw, 32px);
}
.gd-checkout__fields {
  max-width: none;
  width: 100%;
}
.gd-checkout__field-grid .input-text,
.gd-checkout__fields .input-text,
.gd-checkout__fields .gd-field__area {
  max-width: none;
  width: 100%;
}

.gd-checkout__line,
.gd-checkout__lines .gd-checkout__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 10px 16px;
}
.gd-checkout__line-name {
  min-width: 0;
}
.gd-checkout__line-status {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 1px;
}
.gd-checkout__line-status .gd-badge--preorder {
  margin: 0;
}
.gd-checkout__line-sum {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gd-checkout__meta--weight {
  font-size: 12px;
  font-weight: 400;
}
.gd-checkout__term {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* Заказ принят: крупнее состав */
.gd-thanks__order--lines .gd-checkout__lines li,
.gd-thanks__order--lines .gd-checkout__line {
  font-size: 16px;
  line-height: 1.4;
}
.gd-thanks__order--lines .gd-checkout__sum {
  font-size: var(--gd-cabinet-body, 17px);
}

.gd-thanks__order--lines .gd-checkout__sum b {
  font-size: calc(28px - 2pt);
}

.gd-spec__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
}

.gd-spec__label::after {
  content: ":";
}

.gd-spec__label {
  color: var(--gd-text-secondary);
  font-weight: 400;
}

.gd-spec__value {
  color: var(--gd-text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gd-spec__value--keep,
.gd-typo-keep,
a[href^="tel:"],
a[href^="mailto:"] {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .gd-product-cart.btn {
    display: none !important;
  }
}

/* Мои заказы / история: статусы рядом с названием */
.gd-orders-card__head .gd-badge--preorder {
  margin: 0;
}

/* Мобильная шапка: поиск под логотипом */
@media (max-width: 1024px) {
  .header--2 .header__main.container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo catalog"
      "search search";
    gap: 8px 12px;
    align-items: center;
  }

  .header--2 .header__logo-wrapper {
    grid-area: logo;
  }

  .header--2 .header__catalog-button-wrapper {
    grid-area: catalog;
    justify-self: end;
  }

  .header--2 .header__search-wrapper {
    grid-area: search;
    width: 100%;
    min-width: 0;
    margin-right: 0 !important;
  }

  .header--2 .header__search,
  .header--2 .header__search .search-label {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .header--2 .header__main.container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header--2 .header__logo-wrapper,
  .header--2 .header__catalog-button-wrapper,
  .header--2 .header__search-wrapper {
    min-width: 0;
    max-width: 100%;
  }

  .header--2 .header__logo-wrapper img {
    max-width: 100%;
    height: auto;
  }
}

/* Баннеры: текст влезает на узком экране */
@media (max-width: 767px) {
  .hero.hero--compact .hero__slide--gd-client .hero__title,
  .hero.hero--compact .hero__slide--gd-client .hero__title--banner3 {
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.15;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .gd-hero-lead,
  .gd-hero-lead--stack {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1.35;
    max-width: 100%;
  }

  .gd-hero-copy {
    max-width: 100%;
    padding-right: 8px;
  }

  .gd-hero-buttons {
    gap: 8px;
  }

  .gd-hero-btn {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }
}

/* Карточка товара: фото в экран */
@media (max-width: 767px) {
  .detail-product .gallery-main,
  .detail-product .gallery-main__container,
  .detail-product .product-item-image-wrapper,
  .detail-product .product-item-image-wrapper .lazy-loader,
  .detail-product .gallery-main__slide {
    max-height: min(52vh, 420px);
  }

  .detail-product .gallery-main__slide img,
  .detail-product .product-item-image-wrapper img,
  .detail-product .product-item-image-wrapper .img-contain {
    width: 100%;
    max-height: min(52vh, 420px);
    object-fit: contain;
  }
}

/* Корзина mobile: итого не наезжает на футер, цифры в строку */
@media (max-width: 1024px) {
  #basket-root .basket-total {
    position: static !important;
    top: auto !important;
    margin-bottom: calc(var(--bottom-bar-height, 72px) + 20px);
  }

  main:has(#basket-root) {
    padding-bottom: 16px;
  }

  .basket-total .gd-cart-pay,
  .basket-total .gd-cart-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .basket-total .gd-cart-pay__label,
  .basket-total .gd-cart-row > span:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .basket-total .gd-cart-pay__value,
  .basket-total .gd-cart-row > span:last-child,
  .basket-total .gd-cart-row [data-gd-cart-total],
  .basket-total .gd-cart-row [data-gd-cart-discount],
  .basket-total .gd-cart-row [data-gd-cart-weight] {
    flex: 0 0 auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: clamp(16px, 4.4vw, 28px);
  }

  .basket-total .gd-cart-row {
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .basket-total .gd-cart-row [data-gd-cart-weight] {
    font-size: clamp(12px, 3.4vw, 14px);
  }
}

@media (max-width: 1024px) {
  .gd-checkout__layout {
    grid-template-columns: 1fr;
  }

  .gd-checkout__fields,
  .gd-checkout__field-grid .input-text,
  .gd-checkout__fields .input-text,
  .gd-checkout__fields .gd-field__area {
    max-width: none;
  }

  .gd-checkout__line,
  .gd-checkout__lines .gd-checkout__line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name sum"
      "status sum";
  }

  .gd-checkout__line-name { grid-area: name; }
  .gd-checkout__line-status { grid-area: status; }
  .gd-checkout__line-sum { grid-area: sum; align-self: start; }
}

/* --- Кабинет: единая типографика (корзина → заказ в кабинете) --- */
.gd-cabinet {
  --gd-cabinet-title: 28px;
  --gd-cabinet-section: 20px;
  --gd-cabinet-body: 17px;
  --gd-cabinet-small: 14px;
  --gd-cabinet-total: 24px;
  --gd-cabinet-label: 13px;
}

.gd-cabinet h1,
.gd-cabinet h1.fs-4,
.gd-cabinet .gd-checkout__title,
.gd-cabinet .gd-thanks__title,
.gd-cabinet .gd-order__head h1 {
  font-size: var(--gd-cabinet-title);
  line-height: 1.25;
}

.gd-cabinet .gd-checkout__block h2,
.gd-cabinet .gd-checkout__aside h2,
.gd-cabinet .gd-thanks__order h2,
.gd-cabinet .gd-orders-card__title,
.gd-cabinet .gd-orders__group-title,
.gd-cabinet .gd-orders-card__block h3,
.gd-cabinet .gd-order-lines h2 {
  font-size: var(--gd-cabinet-section);
  line-height: 1.3;
}

.gd-cabinet #basket-item-table .basket-item-info a,
.gd-cabinet #basket-item-table .basket-item-name,
.gd-cabinet .gd-cart-unit,
.gd-cabinet .gd-cart-pallet-size,
.gd-cabinet .gd-cart-qty-pallets,
.gd-cabinet .basket-item-desc,
.gd-cabinet .gd-cart-line-hint,
.gd-cabinet .basket-total .gd-cart-row,
.gd-cabinet .basket-total .gd-cart-hint,
.gd-cabinet .gd-cart-sum,
.gd-cabinet .gd-checkout__lines li,
.gd-cabinet .gd-checkout__line,
.gd-cabinet .gd-checkout__line-name,
.gd-cabinet .gd-checkout__line-sum,
.gd-cabinet .gd-thanks__order .gd-checkout__lines li,
.gd-cabinet .gd-thanks__order .gd-checkout__line,
.gd-cabinet .gd-thanks__lead,
.gd-cabinet .gd-thanks__status,
.gd-cabinet .gd-thanks__phone,
.gd-cabinet .gd-orders-card__line,
.gd-cabinet .gd-orders__lede,
.gd-cabinet .gd-order-line h3,
.gd-cabinet .gd-order-line__drawing,
.gd-cabinet .gd-order-docs__list li,
.gd-cabinet .gd-order__total--meta dd,
.gd-cabinet .gd-field,
.gd-cabinet .gd-field .input-text,
.gd-cabinet .gd-field__area,
.gd-cabinet .gd-check,
.gd-cabinet .gd-checkout__term {
  font-size: var(--gd-cabinet-body);
  line-height: 1.4;
}

.gd-cabinet .gd-field__label {
  font-size: var(--gd-cabinet-label);
}

.gd-cabinet .gd-checkout__meta,
.gd-cabinet .gd-thanks__order .gd-checkout__meta,
.gd-cabinet .gd-order__totals dt,
.gd-cabinet .gd-order-status__step,
.gd-cabinet .gd-order-status__date,
.gd-cabinet .gd-order-docs__type,
.gd-cabinet .gd-orders-card__label,
.gd-cabinet .gd-checkout__aside .gd-checkout__meta,
.gd-cabinet .gd-checkout__aside .gd-checkout__meta span,
.gd-cabinet .gd-checkout__meta--weight,
.gd-cabinet .gd-checkout__meta--weight span {
  font-size: var(--gd-cabinet-small);
  font-weight: 400;
  line-height: 1.35;
}

.gd-cabinet .basket-total .gd-cart-discount {
  font-size: 16px;
  line-height: 1.35;
}

.gd-cabinet .basket-total .gd-cart-discount__value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.gd-cabinet .basket-total .gd-cart-pay__value,
.gd-cabinet .gd-checkout__aside .gd-checkout__sum,
.gd-cabinet .gd-thanks__order .gd-checkout__sum b,
.gd-cabinet .gd-order__totals dd {
  font-size: var(--gd-cabinet-total);
  font-weight: 700;
  line-height: 1.2;
}

.gd-cabinet .gd-thanks__order .gd-checkout__sum {
  font-size: var(--gd-cabinet-body);
  font-weight: 700;
  line-height: 1.3;
}

.gd-cabinet .gd-order__total--meta dd {
  font-size: var(--gd-cabinet-body);
  font-weight: 400;
}

.gd-cabinet .gd-checkout__term {
  font-weight: 600;
}

@media (max-width: 767px) {
  .gd-cabinet {
    --gd-cabinet-title: clamp(22px, 5.8vw, 28px);
    --gd-cabinet-section: clamp(17px, 4.6vw, 20px);
    --gd-cabinet-body: clamp(14px, 3.8vw, 17px);
    --gd-cabinet-small: clamp(12px, 3.2vw, 14px);
    --gd-cabinet-total: clamp(18px, 5vw, 24px);
    --gd-cabinet-label: clamp(11px, 2.8vw, 13px);
  }
}

/* Мобильное бургер-меню: корзина и личный кабинет */
.header-mobile-menu-section--utility {
  margin-top: auto;
  border-top: 1px solid var(--gd-border, rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .header-mobile-menu-section--utility {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.header-mobile-menu-utility-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.header-mobile-menu-utility-icon {
  display: inline-flex;
  color: inherit;
}

.header-mobile-menu-utility-icon svg {
  display: block;
  cursor: inherit;
}

/* Бургер только на мобилке; на десктопе кнопка — текст «Каталог» */
@media (min-width: 1025px) {
  .catalog-btn__icon--burger,
  .catalog-btn__icon--close {
    display: none;
  }
}
