/* ==========================================================================
   БДК САМАРА — ДИЗАЙН-СИСТЕМА И СТИЛИ САЙТА
   Разработано строго по MASTER-инструкции и Design Spec (Фаза 4)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS-ПЕРЕМЕННЫЕ И ТОКЕНЫ
   -------------------------------------------------------------------------- */
:root {
  /* Цветовая палитра (на основе визуальной ДНК логотипа БДК) */
  --color-bg-white: #FFFFFF;
  --color-bg-warm: #F6F5EF;
  --color-bg-card: #FFFFFF;
  --color-text-main: #1C1C1A;
  --color-text-muted: #676760;
  --color-text-subtle: #8E8D86;
  --color-border: #E6E5DE;
  --color-border-hover: #CBC9BE;
  --color-border-light: #F0EFEA;
  
  /* Фирменный оливковый акцент (5-10% интерфейса) */
  --color-olive: #B6AC54;
  --color-olive-hover: #9E9540;
  --color-olive-active: #8A8235;
  --color-olive-tint: rgba(182, 172, 84, 0.12);
  --color-olive-light: #F7F5E4;
  --color-olive-text: #1C1C1A;

  /* Типографика */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Сетка и отступы */
  --container-max-width: 1320px;
  --container-padding: clamp(20px, 4vw, 64px);
  --section-spacing-desktop: clamp(80px, 9vw, 136px);
  --section-spacing-mobile: 64px;
  --gutter: 24px;
  
  /* Скругления (мягкая геометрия) */
  --radius-card: 20px;
  --radius-button: 16px;
  --radius-input: 12px;
  --radius-badge: 8px;
  --radius-pill: 9999px;

  /* Переходы и тени */
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-smooth: 0.35s cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 0.6s cubic-bezier(0.2, 0, 0, 1);
  --shadow-soft: 0 4px 20px rgba(28, 28, 26, 0.04);
  --shadow-hover: 0 12px 32px rgba(28, 28, 26, 0.08);
}

/* --------------------------------------------------------------------------
   1. СБРОС И БАЗОВЫЕ ПРАВИЛА
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg-white);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Доступность: Focus-видимость */
:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. ТИПОГРАФИКА И ИЕРАРХИЯ
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-spacing-desktop);
  padding-bottom: var(--section-spacing-desktop);
  position: relative;
}

.section-warm {
  background-color: var(--color-bg-warm);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  padding-left: 0;
  margin-left: 0;
}

.eyebrow-dot {
  display: none !important;
}

.h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

.h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
}

.subtitle {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 680px;
}

.section-header {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-header--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .section-header--split {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   3. КНОПКИ И ДЕЙСТВИЯ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--color-olive);
  color: var(--color-text-main);
  box-shadow: 0 2px 8px rgba(182, 172, 84, 0.2);
}

.btn--primary:hover {
  background-color: var(--color-olive-hover);
  color: var(--color-text-main);
  box-shadow: 0 4px 14px rgba(182, 172, 84, 0.3);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-main);
  background-color: rgba(28, 28, 26, 0.02);
  transform: translateY(-1px);
}

.btn--white {
  background-color: var(--color-bg-white);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn--white:hover {
  border-color: var(--color-text-main);
  box-shadow: var(--shadow-soft);
}

.btn--sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 12px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--color-olive-hover);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. HEADER И НАВИГАЦИЯ
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 16px rgba(28, 28, 26, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.header__logo:hover {
  opacity: 0.9;
  transform: translateY(-4px) scale(1.02);
}

.header__logo img {
  height: clamp(44px, 5vw, 52px);
  width: auto;
  object-fit: contain;
  display: block;
}

.header__nav {
  display: none;
  align-items: center;
  gap: clamp(14px, 1.8vw, 32px);
  white-space: nowrap;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--color-text-main);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-olive);
  transition: width var(--transition-fast);
}

.header__nav-link:hover::after,
.header__nav-link.is-active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  padding: 0;
}

.header__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--color-text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 992px) {
  .header__nav {
    display: flex;
  }
  .header__burger {
    display: none;
  }
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 32px var(--container-padding);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  border-top: 1px solid var(--color-border);
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.mobile-menu__link {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__contacts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu__phone {
  font-size: 18px;
  font-weight: 600;
}

.mobile-menu__address {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. СЕКЦИЯ 1: HERO (ПЕРВЫЙ ЭКРАН)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(100px, 12vw, 140px) !important;
  padding-bottom: var(--section-spacing-desktop);
  background-color: var(--color-bg-white);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 5vw, 64px);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__title {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  max-width: 680px;
}

.hero__subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-warm);
  box-shadow: 0 16px 44px rgba(28, 28, 26, 0.08);
  border: 1px solid var(--color-border);
}

@media (min-width: 992px) {
  .hero__visual {
    aspect-ratio: 4 / 3;
    height: 100%;
    min-height: 420px;
  }
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition-slow);
}

.hero__visual:hover img {
  transform: scale(1.03);
}

.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .hero__facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-fact__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
}

.hero-fact__desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   6. СЕКЦИЯ 2: НАПРАВЛЕНИЯ (7/12 и 5/12 АСИММЕТРИЯ)
   -------------------------------------------------------------------------- */
.directions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 48px);
}

@media (min-width: 992px) {
  .directions__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.direction-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: transform var(--transition-smooth);
}

.direction-card:hover {
  transform: translateY(-3px);
}

.direction-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  margin-bottom: 24px;
  background-color: var(--color-bg-warm);
}

.direction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.direction-card:hover .direction-card__image img {
  transform: scale(1.03);
}

.direction-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.direction-card__title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--color-text-main);
}

.direction-card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.direction-card__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-warm);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   7. СЕКЦИЯ 3: РЕАЛЬНЫЕ ОБЪЕКТЫ (ФОТОМОЗАИКА 3 КЕЙСОВ)
   -------------------------------------------------------------------------- */
.cases-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .cases-mosaic {
    grid-template-columns: 12fr;
  }
}

.case-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.case-item:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-hover);
}

.case-item--featured {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .case-item--featured {
    grid-template-columns: 7fr 5fr;
  }
}

.case-gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-warm);
}

.case-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition-slow);
}

.case-item:hover .case-gallery-main img {
  transform: scale(1.02);
}

.case-item__content {
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.case-item__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  margin-bottom: 8px;
}

.case-item__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.case-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.case-thumb {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.case-thumb.is-active,
.case-thumb:hover {
  opacity: 1;
  border-color: var(--color-olive);
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases-secondary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  margin-top: var(--gutter);
}

@media (min-width: 768px) {
  .cases-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-card-compact {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.case-card-compact:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.case-card-compact__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-warm);
}

.case-card-compact__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition-slow);
}

.case-card-compact:hover .case-card-compact__image img {
  transform: scale(1.03);
}

.case-card-compact__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cases-action {
  text-align: center;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   8. СЕКЦИЯ 4: ТОВАРЫ (ИНТЕРАКТИВНЫЙ КАТАЛОГ С ФИЛЬТРАМИ И МОДАЛКОЙ)
   -------------------------------------------------------------------------- */
.catalog-hero {
  padding-top: clamp(96px, 11vw, 120px) !important;
  padding-bottom: var(--section-spacing-desktop);
  background-color: var(--color-bg-warm);
}

.catalog-hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.catalog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.catalog-back-link:hover {
  border-color: var(--color-olive);
  transform: translateX(-2px);
}

.catalog-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.catalog-hero__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 48px);
}

.catalog-hero__title {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.catalog-hero__subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.catalog-filter-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text-main);
  background-color: var(--color-bg-warm);
}

.catalog-filter-btn.is-active {
  background-color: var(--color-olive-tint);
  border-color: var(--color-olive);
  color: var(--color-text-main);
  font-weight: 600;
}

.catalog-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(28, 28, 26, 0.03);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card.is-hidden {
  display: none !important;
}

.product-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(28, 28, 26, 0.08);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  display: block;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-main);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

img.mirror-image {
  transform: scaleX(-1);
}

.product-card:hover .product-card__image img.mirror-image {
  transform: scaleX(-1.04) scaleY(1.04);
}

.product-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive-hover);
  margin-bottom: 6px;
}

.product-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-card__specs {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
}

.product-card__price--custom {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.product-card__action {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-olive-hover);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card__action {
  transform: translateX(3px);
}

.products-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* --------------------------------------------------------------------------
   7. МОДАЛЬНОЕ ОКНО ТОВАРА (ДЕТАЛИЗАЦИЯ)
   -------------------------------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background-color: rgba(28, 28, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal__dialog {
  background-color: var(--color-bg-white);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .product-modal__dialog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    max-height: 86vh;
    overflow: hidden;
  }
}

.product-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-text-main);
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.product-modal__close:hover {
  transform: scale(1.1);
  background-color: #FFFFFF;
}

.product-modal__media {
  background-color: #F7F5F0;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-bottom: 1px solid var(--color-border-light);
}

@media (min-width: 768px) {
  .product-modal__media {
    border-bottom: none;
    border-right: 1px solid var(--color-border-light);
    height: 100%;
    min-height: 100%;
    padding: 32px;
  }
}

.product-modal__main-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-modal__main-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.06));
}

.product-modal__thumbs {
  display: none !important;
}

.product-modal__content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--color-bg-white);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .product-modal__content {
    padding: 32px 36px;
  }
}

.product-modal__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.product-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-modal__summary {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-modal__specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}

.product-modal__spec-item {
  font-size: 13px;
  color: var(--color-text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.product-modal__spec-item::before {
  content: '—';
  color: var(--color-olive);
  font-weight: 700;
  flex-shrink: 0;
}

.product-modal__pricing {
  padding: 12px 18px;
  border-radius: 12px;
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-modal__price-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.product-modal__price-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
}

.product-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.product-modal__footnote {
  font-size: 12px;
  color: var(--color-text-subtle);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. СЕКЦИЯ 5: МАСШТАБ ЗАКАЗА / ПАРТИЯ (45 ПРЕДМЕТОВ)
   -------------------------------------------------------------------------- */
.scale-wrapper {
  background-color: var(--color-bg-warm);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--color-border);
}

.scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 992px) {
  .scale-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.scale-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-soft);
}

.scale-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scale-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scale-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scale-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.scale-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-stat__num {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-olive);
}

.scale-stat__label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.scale-total {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-total__title {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--color-text-main);
}

.scale-total__desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. СЕКЦИЯ 6: АДАПТАЦИЯ МЕБЕЛИ
   -------------------------------------------------------------------------- */
.adaptation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .adaptation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.adaptation-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.adaptation-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.adaptation-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--color-bg-warm);
}

.adaptation-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.adaptation-card:hover .adaptation-card__media img {
  transform: scale(1.03);
}

.adaptation-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.adaptation-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.adaptation-footer-note {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 16px 24px;
  border-radius: var(--radius-input);
  background-color: var(--color-bg-warm);
  display: inline-block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   11. СЕКЦИЯ 7: ПРОИЗВОДСТВО (АСИММЕТРИЧНАЯ ФОТОСЕТКА)
   -------------------------------------------------------------------------- */
.production-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .production-mosaic {
    grid-template-columns: repeat(12, 1fr);
  }
}


.prod-item {
  position: relative;
  border-radius: 24px; /* Larger radius for bento feel */
  overflow: hidden;
  background-color: var(--color-bg-warm);
  min-height: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
@media (min-width: 768px) {
  .prod-item {
    min-height: 380px;
  }
}


.prod-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--transition-slow);
}

.prod-item:hover img {
  transform: scale(1.03);
}


.prod-item__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  max-width: calc(100% - 48px);
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}


@media (min-width: 768px) {
  .prod-item--col-7 {
    grid-column: span 7;
    height: 380px;
  }
  .prod-item--col-5 {
    grid-column: span 5;
    height: 380px;
  }
  .prod-item--col-4 {
    grid-column: span 4;
    height: 280px;
  }
  .prod-item--col-8 {
    grid-column: span 8;
    height: 280px;
  }
}

/* --------------------------------------------------------------------------
   12. СЕКЦИЯ 8: МАТЕРИАЛЫ
   -------------------------------------------------------------------------- */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.material-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.material-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.material-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-warm);
}

.material-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.material-card:hover .material-card__image img {
  transform: scale(1.04);
}

.material-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-card__title {
  font-size: 20px;
  font-weight: 600;
}

.material-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.material-stat-box {
  margin-top: 36px;
  padding: 24px 32px;
  border-radius: var(--radius-card);
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-stat-box__highlight {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.material-stat-box__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--color-olive-tint);
  color: var(--color-olive-hover);
  font-size: 14px;
  font-weight: 700;
}

.material-stat-box__footnote {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. СЕКЦИЯ 9: СТОИМОСТЬ (КОМПАКТНЫЙ ОРИЕНТИР)
   -------------------------------------------------------------------------- */
.pricing-strip {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}

.pricing-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .pricing-strip__inner {
    grid-template-columns: 5.5fr 6.5fr;
    align-items: center;
    gap: 48px;
  }
}

.pricing-strip__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .pricing-anchors {
    grid-template-columns: 1fr;
  }
}

.price-anchor-box {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.price-anchor-box:hover {
  border-color: var(--color-olive);
  transform: translateY(-2px);
}

.price-anchor-box__value {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--color-text-main);
}

.price-anchor-box__name {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pricing-strip__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
}

.pricing-strip__note {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 460px;
}

/* --------------------------------------------------------------------------
   13.1 СЕКЦИЯ: С ЧЕГО НАЧАТЬ (ВХОДНЫЕ СЦЕНАРИИ К РАСЧЁТУ)
   -------------------------------------------------------------------------- */
.entry-steps {
  background-color: var(--color-bg-white);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.entry-steps__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

@media (min-width: 992px) {
  .entry-steps__header {
    grid-template-columns: 6.5fr 5.5fr;
    align-items: end;
    gap: 48px;
  }
}

.entry-steps__title {
  max-width: 600px;
}

.entry-steps__subtitle {
  margin: 0;
  max-width: 520px;
}

.entry-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .entry-steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.entry-step-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .entry-step-item {
    padding: 40px 32px 32px;
    border-bottom: none;
    border-left: 1px solid var(--color-border-light);
  }
  
  .entry-step-item:first-child {
    padding-left: 0;
    border-left: none;
  }

  .entry-step-item:last-child {
    padding-right: 0;
  }
}

.entry-step-item__num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-olive);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.entry-step-item__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.entry-step-item__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.entry-steps__footer {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.entry-steps__note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  background-color: var(--color-bg-warm);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.entry-steps__note svg {
  color: var(--color-olive);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. СЕКЦИЯ 10: ФИНАЛЬНЫЙ РАСЧЁТ И КОНТАКТЫ
   -------------------------------------------------------------------------- */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
}

@media (min-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 4.5fr 7.5fr;
  }
}

.calc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-info-card {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-contact-item__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-muted);
}

.calc-contact-item__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-main);
}

.calc-form-container {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.step-wizard {
  display: flex;
  flex-direction: column;
}

.wizard-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wizard-step-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-olive-hover);
  background-color: var(--color-olive-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.wizard-step-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.wizard-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--color-bg-warm);
  border-radius: 99px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background-color: var(--color-olive);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step {
  display: none;
  animation: fadeInStep 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.is-active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step-title {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  line-height: 1.25;
}

.wizard-step-desc {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 500px) {
  .wizard-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wizard-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  min-height: 84px;
  background-color: var(--color-bg-warm);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  user-select: none;
}

.wizard-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-card:hover {
  background-color: #efede7;
  transform: translateY(-2px);
}

.wizard-card.is-selected {
  background-color: var(--color-bg-white);
  border-color: var(--color-olive);
  box-shadow: 0 4px 16px rgba(182, 172, 84, 0.16);
}

.wizard-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.wizard-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.wizard-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--color-bg-warm);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.wizard-guarantee svg {
  color: var(--color-olive);
  flex-shrink: 0;
}

.wizard-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-light);
}

.wizard-btn-next,
.wizard-btn-submit {
  margin-left: auto;
  min-width: 170px;
}

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.form-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-chip:hover {
  border-color: var(--color-border-hover);
  background-color: #EFEFE8;
}

.form-chip.is-selected {
  background-color: var(--color-olive-tint);
  border-color: var(--color-olive);
  color: var(--color-text-main);
  font-weight: 600;
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  font-size: 15px;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-olive);
  box-shadow: 0 0 0 3px var(--color-olive-tint);
}

textarea.form-control {
  height: auto;
  min-height: 100px;
  padding: 14px 16px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-file-upload {
  position: relative;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-input);
  padding: 16px;
  text-align: center;
  background-color: var(--color-bg-warm);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-file-upload:hover {
  border-color: var(--color-olive);
  background-color: var(--color-olive-light);
}

.form-file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-file-text {
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .form-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.form-privacy {
  font-size: 12px;
  color: var(--color-text-subtle);
  line-height: 1.4;
}

.form-success-message {
  display: none;
  background-color: var(--color-olive-light);
  border: 1px solid var(--color-olive);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}

.form-success-message.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-text-main);
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
  padding-bottom: 40px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 4fr 3fr 3fr 2fr;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand img {
  height: clamp(44px, 5vw, 56px);
  width: auto;
  object-fit: contain;
}

.footer__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-bg-white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-bg-white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  font-size: 13px;
  color: var(--color-text-subtle);
}

@media (min-width: 600px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   16. STICKY MOBILE CTA
   -------------------------------------------------------------------------- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  justify-content: center;
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.sticky-mobile-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-mobile-cta .btn {
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .sticky-mobile-cta {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. МОДАЛЬНОЕ ОКНО LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(28, 28, 26, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__dialog {
  max-width: 1100px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox__caption {
  margin-top: 14px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 28px;
  transition: transform var(--transition-fast);
}

.lightbox__close:hover {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   18. АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. БЛОК КОНТАКТОВ С ЯНДЕКС КАРТОЙ (РЕФЕРЕНС «ВЕЩЬ»)
   -------------------------------------------------------------------------- */
.contacts-section {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border-light);
}

.contacts-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-text-main);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

@media (min-width: 960px) {
  .contacts-grid {
    grid-template-columns: 320px 1fr 280px;
    min-height: 440px;
  }
}

/* 1. Левая плашка: реквизиты */
.contacts-card-info {
  background-color: var(--color-bg-warm);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
}

@media (min-width: 960px) {
  .contacts-card-info {
    border-bottom: none;
    border-right: 1px solid var(--color-border-light);
  }
}

.contacts-info-group {
  margin-bottom: 24px;
}

.contacts-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contacts-info-value {
  color: var(--color-text-main);
  text-decoration: none;
  display: block;
}

.contacts-info-value--address {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.contacts-info-value--phone {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.contacts-info-value--phone:hover {
  color: var(--color-olive);
}

.contacts-social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-social-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.contacts-social-link:hover {
  color: var(--color-olive);
}

/* 2. Карта */
.contacts-map-wrap {
  position: relative;
  width: 100%;
  min-height: 340px;
  background-color: #E8E5DD;
}

.contacts-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 3. Правая колонка: Список действий */
.contacts-actions-list {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border-light);
}

@media (min-width: 960px) {
  .contacts-actions-list {
    border-top: none;
    border-left: 1px solid var(--color-border-light);
  }
}

.contacts-action-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.contacts-action-item:last-child {
  border-bottom: none;
}

.contacts-action-item svg {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contacts-action-item:hover {
  background-color: var(--color-bg-warm);
  color: var(--color-olive);
}

.contacts-action-item:hover svg {
  color: var(--color-olive);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   20. МЕДИА-ЗАПРОСЫ И СПЕЦИАЛЬНЫЕ НАСТРОЙКИ
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .section {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
  }
}
/* B2T Form Styles */
.b2b-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.b2b-form-header {
  text-align: center;
  margin-bottom: 32px;
}
.b2b-form-header .h2 {
  margin-bottom: 12px;
}
.b2b-form-header .subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.b2b-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media(min-width: 768px) {
  .b2b-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.input-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.form-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background-color: #f9f9f9;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
}
.file-upload-box {
  margin-bottom: 32px;
}
.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  background-color: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.file-upload-label:hover {
  border-color: var(--color-primary);
  background-color: rgba(193, 169, 93, 0.05);
}
.file-upload-label svg {
  color: var(--color-text-muted);
}
.file-upload-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.b2b-form-footer {
  text-align: center;
}
.b2b-form-policy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.b2b-form-policy a {
  color: var(--color-text);
  text-decoration: underline;
}
.btn--outline-primary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-olive);
  box-shadow: 0 2px 8px rgba(182, 172, 84, 0.05);
  transition: all 0.3s ease;
}
.btn--outline-primary:hover {
  background-color: var(--color-olive);
  color: var(--color-text-main);
  box-shadow: 0 4px 14px rgba(182, 172, 84, 0.3);
  transform: translateY(-1px);
}

/* MOBILE FIXES */
@media (max-width: 767px) {
  /* Hide header CTA button on mobile to save space, let the user use the burger menu */
  .header__cta {
    display: none !important;
  }
  
  /* Reduce form padding on mobile */
  .b2b-form-wrapper {
    padding: 24px;
    border-radius: 16px;
  }
  
  /* Adjust hero image padding/margins on mobile */
  .hero__visual {
    min-height: 280px; /* Instead of 420px */
  }
}

/* MOBILE SWIPE GRIDS */
@media (max-width: 767px) {
  .products-grid,
  .adaptation-grid,
  .production-mosaic,
  .entry-steps__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    padding-bottom: 24px;
    gap: 16px;
    
    scrollbar-width: none; /* Firefox */
  }
  
  .products-grid::-webkit-scrollbar,
  .adaptation-grid::-webkit-scrollbar,
  .production-mosaic::-webkit-scrollbar,
  .entry-steps__grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .products-grid > *,
  .adaptation-grid > *,
  .production-mosaic > *,
  .entry-steps__grid > * {
    flex: 0 0 85% !important;
    scroll-snap-align: center; /* Since we don't bleed edge to edge, snap to center or start is fine */
    min-width: 280px;
  }
  

  /* Make scale block more compact on mobile */
  .scale-wrapper {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .scale-grid {
    gap: 20px;
  }
  .scale-visual {
    aspect-ratio: 21 / 9; /* Ultra-wide aspect ratio to save vertical space */
  }

  /* Remove border top on mobile */
  .entry-steps__grid {
    border-top: none !important;
  }
  
  .entry-step-item {
    background: var(--color-bg-white);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
  }
}
/* FLOATING CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-olive);
  color: var(--color-text-main) !important;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(182, 172, 84, 0.4);
  z-index: 90;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(182, 172, 84, 0.5);
  background-color: #a49a42; /* Slightly darker olive */
}
.floating-cta__text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.floating-cta svg {
  flex-shrink: 0;
}

/* Mobile sticky bottom bar */
@media (max-width: 767px) {
  .floating-cta {
    bottom: 16px;
    left: 16px;
    right: 16px;
    justify-content: center;
    border-radius: 12px;
    padding: 14px;
  }
}
