/* ==================== ТЕМЫ ==================== */
:root,
[data-theme="light"] {
  --bg-body: #f4f4f4;
  --bg-image: url('/images/background.jpg');
  --bg-section: rgba(255, 255, 255, 0.5);
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-footer: rgba(51, 51, 51, 0.95);
  --text-primary: #333;
  --text-secondary: #555;
  --text-heading: #2c3e50;
  --bg-card: #ffffff;
  --border-card: #eaeaea;
  --bg-sidebar: #ffffff;
  --bg-category: #f4f4f4;
  --bg-filter: #f8f9fa;
  --text-footer: #fff;
  --bg-step-card: #ffffff;
  --bg-video-text: #ffffff;
  --bg-fortune: rgba(255, 255, 255, 0.85);
  --bg-modal: #fff;
  --text-doc: #1a1a1a;
  --bg-doc: rgba(255, 255, 255, 0.85);
  --text-nav: #333;
  --bg-sort-btn: #fff;
  --border-input: #ddd;
  --shadow-card: rgba(0, 0, 0, 0.06);
  
  --burger-color: #333;
  --bg-compare-table: #fff;
  --bg-compare-th: #f8f9fa;
  --text-compare: #333;
  --border-compare: #ddd;
  --bg-notification: rgba(40, 40, 40, 0.85);
  --text-notification: #fff;
  --text-price: #e44247;
  --bg-remove-btn: rgba(0, 0, 0, 0.5);
  --bg-cart-item: #fff;
  --bg-cart-summary: rgba(255, 255, 255, 0.85);
  --bg-recently-card: #fff;
  --text-recently-name: #333;
  --bg-color-option: #fff;
  --text-color-label: #555;
  --bg-measurer-btn: #fff;
  --bg-modal-input: #fff;
  --border-modal-input: #e0e0e0;
  --text-modal: #333;
  --text-modal-label: #333;
  --bg-checkout-modal: #fff;
  --border-checkout-input: #ddd;
  --bg-floating: #e44247;
  --text-floating: #fff;
  --bg-description-sep: #fff;
}

[data-theme="dark"] {
  --bg-body: #1a1a2e;
  --bg-image: url('/images/background-dark.png');
  --bg-section: rgba(20, 20, 40, 0.7);
  --bg-header: rgba(20, 20, 40, 0.92);
  --bg-footer: rgba(10, 10, 20, 0.95);
  --text-primary: #e0e0e0;
  --text-secondary: #bbb;
  --text-heading: #e0e0e0;
  --bg-card: #252540;
  --border-card: #333355;
  --bg-sidebar: #252540;
  --bg-category: #2a2a45;
  --bg-filter: #252540;
  --text-footer: #ccc;
  --bg-step-card: #252540;
  --bg-video-text: #252540;
  --bg-fortune: rgba(20, 20, 40, 0.85);
  --bg-modal: #2a2a45;
  --text-doc: #e0e0e0;
  --bg-doc: rgba(20, 20, 40, 0.85);
  --text-nav: #ccc;
  --bg-sort-btn: #2a2a45;
  --border-input: #444;
  --shadow-card: rgba(0, 0, 0, 0.3);
  --burger-color: #ccc;
  
  --bg-compare-table: #252540;
  --bg-compare-th: #2a2a45;
  --text-compare: #e0e0e0;
  --border-compare: #333355;
  --bg-notification: rgba(30, 30, 50, 0.95);
  --text-notification: #fff;
  --text-price: #ff6b6b;
  --bg-remove-btn: rgba(255, 255, 255, 0.2);
  --bg-cart-item: #252540;
  --bg-cart-summary: rgba(20, 20, 40, 0.85);
  --bg-recently-card: #252540;
  --text-recently-name: #e0e0e0;
  --bg-color-option: #2a2a45;
  --text-color-label: #bbb;
  --bg-measurer-btn: #252540;
  --bg-modal-input: #2a2a45;
  --border-modal-input: #444;
  --text-modal: #e0e0e0;
  --text-modal-label: #bbb;
  --bg-checkout-modal: #2a2a45;
  --border-checkout-input: #444;
  --bg-floating: #c73a3e;
  --text-floating: #fff;
  --bg-description-sep: #252540;
}

/* ==================== СБРОС ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Unbounded', 'Arial', sans-serif;
  line-height: 1.6;
  background: var(--bg-body);
  background-image: var(--bg-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  min-height: 100vh;
}

button {
  font-family: inherit;
}

/* ==================== ПОДКЛЮЧЕНИЕ ШРИФТА ==================== */
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/static/Unbounded-Medium.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==================== ОБЩИЕ СТИЛИ ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 2.4em;
  color: var(--text-heading);
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

section {
  padding: 80px 10%;
  text-align: center;
  background-color: var(--bg-section) !important;
}

section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  html {
    height: 100%;
  }

  body {
    background-image: none !important;
    min-height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: -1;
    will-change: transform;
  }

  section {
    padding: 20px 10px;
  }

  section h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 1.6em;
    margin-bottom: 25px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 15px 8px;
  }

  section h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 1.4em;
  }
}

@media (min-width: 769px) {
  body {
    background-attachment: fixed !important;
  }
}

/* Переключатель темы */
.theme-switch {
  display: flex;
  background: var(--bg-category);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.theme-switch-btn {
  background: transparent;
  border: none;
  color: #999;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.theme-switch-btn:hover {
  color: #e44247;
}

.theme-switch-btn.active {
  background: #e44247;
  color: #fff;
}

/* ==================== ШАПКА ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header) !important;
  backdrop-filter: blur(10px);
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Логотип */
.logo {
  width: 300px;
  height: 40px;
  border: 2px solid black;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Поиск */
.search {
  flex: 1;
  max-width: 500px;
  position: relative;
  z-index: 1001;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--border-input);
  border-radius: 25px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #e44247;
}

.search-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #e44247;
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-submit-btn:hover {
  background: #c73a3e;
}

/* Кнопки: каталог, корзина, бургер */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-catalog-btn {
  background: #e44247;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-catalog-btn:hover {
  background: #c73a3e;
}

.cart-btn {
  background: none;
  border: 2px solid var(--border-input);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.cart-btn:hover {
  border-color: #e44247;
  color: #e44247;
}

/* Бургер */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--burger-color);
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Переключатель темы */
.theme-switch {
  display: flex;
  background: var(--bg-category);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.theme-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  padding: 0;
}

.theme-switch-btn.active {
  background: #e44247;
  color: #fff;
}

/* ==================== БУРГЕР-МОДАЛКА ==================== */
.burger-overlay {
  display: none;
}

/* ПК: скрываем мобильные блоки */
@media (min-width: 769px) {
  .burger-search,
  .burger-actions,
  .burger-theme {
    display: none;
  }
}

.burger-modal {
  position: fixed;
  top: 56px;
  right: 2.5%;
  width: 280px;
  background: var(--bg-card);
  z-index: 999;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.burger-modal.active {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.burger-nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.burger-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  border-radius: 10px;
  transition: background 0.15s;
}

.burger-nav a:hover {
  background: var(--bg-category);
}

.burger-nav .badge-count {
  margin-left: auto;
  background: #e44247;
  color: #fff;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ==================== ШАПКА — МОБИЛЬНАЯ ВЕРСИЯ ==================== */
@media (max-width: 768px) {
  .header-content {
    justify-content: center;
    position: relative;
  }

  .logo-link {
    margin: 0 auto;
  }

  /* Скрываем поиск, кнопки, тему в шапке (но не в бургере) */
  .header-content > .search,
  .header-content > .header-actions,
  .header-content > .theme-switch {
    display: none;
  }

  /* Бургер-кнопка */
  .burger-menu {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Модалка */
  .burger-modal {
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 100vh;
    border-radius: 0;
    padding: 70px 20px 20px;
    transform: scaleY(0);
    transform-origin: top center;
    overflow-y: auto;
  }

  .burger-modal.active {
    transform: scaleY(1);
  }

  /* Поиск в бургере */
  .burger-search {
    display: block;
    margin-bottom: 16px;
    position: relative;
    z-index: 1001;
  }

  .burger-search .search-input {
    width: 100%;
  }
  
  .burger-search .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1002;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  /* Кнопки каталог/корзина в бургере */
  .burger-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
  }

  .burger-actions .header-catalog-btn {
    flex: 1;
    text-align: center;
  }

  /* Переключатель темы в бургере */
  .burger-theme {
    display: flex !important;
    justify-content: center;
    margin-bottom: 16px;
  }

  .burger-theme .theme-switch {
    display: flex;
  }

  /* Навигация */
  .burger-nav a {
    font-size: 16px;
    padding: 14px 16px;
  }
}

/* ==================== БАННЕР + КОЛЕСО ФОРТУНЫ ==================== */
.banner-slider-section {
  padding: 30px 0 0 0;
  max-width: 100%;
}

.banner-slider-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.banner-fortune-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch;
  max-width: 100%;  
}

.banner-slider {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 320px;
  max-width: 100%;
}

.banner-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
}

.banner-slide-bg {
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
  text-align: center;
  box-sizing: border-box;
}

.banner-slide-red {
  background: #e44247;
  min-height: 100%;
}

.banner-slide-dark {
  background: #333;
  min-height: 100%;
}

.banner-slide-orange {
  background: #888;
  min-height: 100%;
}

.banner-slide-content {
  max-width: 700px;
  color: #fff;
}

.banner-slide-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  color: #fff;
}

.banner-slide-content p {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  color: #fff;
}

.banner-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  font-size: 36px;
  font-weight: 300;
  color: #e44247;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.4),
     1px -1px 0 rgba(0, 0, 0, 0.4),
    -1px  1px 0 rgba(0, 0, 0, 0.4),
     1px  1px 0 rgba(0, 0, 0, 0.4);
}

.banner-slider-arrow:hover {
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.7),
     1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px  1px 0 rgba(0, 0, 0, 0.7),
     1px  1px 0 rgba(0, 0, 0, 0.7);
}

.banner-slider-prev {
  left: 8px;
}

.banner-slider-next {
  right: 8px;
}

.banner-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-slider-dots span.active {
  background: #fff;
  width: 28px;
  border-radius: 6px;
}

/* Колесо фортуны */

.fortune-side {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-fortune);
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.fortune-mini-info {
  text-align: center;
  margin-top: 12px;
}

.fortune-mini-info h3 {
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.fortune-mini-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.fortune-mini-info strong {
  color: #e44247;
}
.fortune-wheel-wrapper,
.wheel-container {
  position: relative;
  display: inline-block;
}

.wheel {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  background: var(--bg-card)
}

.wheel-sector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-sector-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.sector-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 50%;
  background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.5));
  transform-origin: 0 0;
  box-shadow:
    1px 0 2px rgba(0, 0, 0, 0.1),
    -1px 0 2px rgba(0, 0, 0, 0.1);
}

.wheel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  font-weight: bold;
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  white-space: nowrap;
  transform-origin: 0 0;
  text-align: left;
  display: flex;
  align-items: center;
  height: 20px;
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ff4757;
  border: 2px solid black;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s;
}

.spin-btn:hover {
  background: #ff3742;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.spin-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-btn:disabled {
  cursor: not-allowed;
  transform: translate(-50%, -50%) scale(1);
}

.pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #ff4757;
  z-index: 20;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.fortune-stars {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  pointer-events: none;
  overflow: hidden;
  max-width: calc(100% + 60px);
  box-sizing: border-box;
}

.star {
  position: absolute;
  animation: twinkle 2s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.star-2 {
  top: 70%;
  right: 5%;
  animation-delay: 0.7s;
}

.star-3 {
  bottom: 0%;
  left: 50%;
  animation-delay: 1.4s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@media (max-width: 900px) {
  .banner-fortune-wrapper {
    flex-direction: column;
  }

  .fortune-side {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
  }

  .fortune-mini-info {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .banner-slider-section {
    padding: 20px 10px 0 10px;
  }

  .banner-slider {
    border-radius: 12px;
    height: auto;
    min-height: 200px;
  }

  .banner-slide-bg {
    padding: 20px 24px;
    min-height: 200px;
  }

  .banner-slide-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .banner-slide-content p {
    font-size: 13px;
    line-height: 1.4;
  }

  .banner-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .banner-slider-prev {
    left: 4px;
  }

  .banner-slider-next {
    right: 4px;
  }

  .wheel {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 480px) {
  .banner-slider {
    height: auto;
    min-height: 180px;
  }

  .banner-slide-bg {
    padding: 16px 20px;
    min-height: 180px;
  }

  .banner-slide-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .banner-slide-content p {
    font-size: 12px;
    line-height: 1.3;
  }

  .fortune-side {
    flex-direction: column;
  }

  .wheel {
    width: 300px;
    height: 300px;
  }

  .spin-btn {
    width: 70px;
    height: 70px;
    font-size: 11px;
  }
}

/* ==================== БЛОК ВИДЕО + НАША МЕБЕЛЬ ==================== */
#promo-video {
  background: var(--bg-section) !important;
  text-align: center;
  max-width: 100%;
}

#promo-video h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-primary);
  font-weight: 700;
}

.video-furniture-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 30px;
  align-items: stretch;
  max-width: 100%;
}

.video-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  flex: 1;
  transform: skewX(-10deg);
  border-radius: 18px;
  padding: 0 20px;
}

.video-wrapper video {
  width: 100%;
  height: 95%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  transform: skewX(10deg) scale(1.20);
  transform-origin: center center;
}

.video-side-furniture {
  flex: 1;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.video-side-furniture .furniture-slant-grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  align-items: stretch;
  -webkit-overflow-scrolling: touch;  /* ← плавный скролл на iOS */
  transform: skewX(-10deg);
}

.video-side-furniture .furniture-slant-item {
  width: 140px;
  height: 100%;
  min-height: 300px;
  position: relative;
  display: block;
  text-decoration: none;
  transform: skewX(0deg);
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 5px;
}

.video-side-furniture .furniture-slant-item:hover {
  transform: skewX(0deg) translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.video-side-furniture .furniture-slant-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  transform: skewX(10deg) scale(1.2);
  transition: transform 0.4s ease;
}

.video-side-furniture .furniture-slant-label {
  position: absolute;
  bottom: -5px;
  left: -5px;
  right: -5px;
  padding: 20px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transform: skewX(10deg);
  letter-spacing: 0.5px;
}

.video-text {
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 30px;
  background: var(--bg-video-text);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.video-text p {
  margin: 0;
}

.video-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 15px;
  text-align: center;
}

@media (max-width: 968px) {
  .video-furniture-wrapper {
    flex-direction: column;
  }

  .video-side-furniture .furniture-slant-item {
    height: 250px;
    min-height: auto;
  }

  #promo-video h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .video-side-furniture .furniture-slant-item {
    width: 120px;
    height: 200px;
  }

  .video-text {
    font-size: 15px;
    padding: 20px;
  }

  .video-subtitle {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .video-side-furniture .furniture-slant-label {
  font-size: 11px;
  }
}

/* ==================== ГАЛЕРЕЯ МЕБЕЛИ (МОДАЛЬНОЕ ОКНО) ==================== */
.furniture-gallery-content {
  max-width: 800px;
  width: 90vw;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.furniture-gallery-content .modal-header {
  flex-shrink: 0;
}

.furniture-gallery-content .modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.furniture-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.furniture-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.furniture-gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.furniture-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.furniture-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.furniture-gallery-arrow:hover {
  background: #e44247;
  color: #fff;
}

.furniture-gallery-prev {
  left: 12px;
}

.furniture-gallery-next {
  right: 12px;
}

.furniture-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.furniture-gallery-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.furniture-gallery-dots span.active {
  background: #e44247;
  width: 24px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .furniture-gallery-content {
    max-width: 95vw;
    width: 95vw;
    height: 80vh;
    max-height: 80vh;
  }

  .furniture-gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .furniture-gallery-content {
    max-width: 98vw;
    width: 98vw;
    height: 75vh;
    max-height: 75vh;
  }
}

/* ==================== МОДАЛЬНЫЕ ОКНА (ОБЩИЕ) ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-modal);
  margin: 0;
  width: 92%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Блокировка скролла body при открытом модальном окне */
body.modal-open {
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 24px;
  border-bottom: 1px solid var(--border-card);
}

.modal-header h2 {
  font-size: 20px;
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 24px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #e44247;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #c73a3e;
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
  }
}

/* ==================== МОДАЛЬНОЕ ОКНО ЗАМЕРЩИКА ==================== */
.modal-measurer {
  max-width: 520px;
}

.modal-measurer .form-group {
  margin-bottom: 16px;
}

.modal-measurer .form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.modal-measurer .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.modal-measurer .form-group input:focus {
  outline: none;
  border-color: #e44247;
}

/* ==================== ПОЧЕМУ СТОИТ ЗАКАЗАТЬ У НАС ==================== */
.why-choose-us {
  padding: 30px;
  background-color: var(--bg-section) !important;
  color: var(--text-primary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.benefit-card {
  background: var(--bg-card);
  
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  border: 1px solid #eaeaea;
  border-color: var(--border-card);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #e4424730;
}

.benefit-card h3 {
  color: var(--text-heading);
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.benefit-card h4 {
  color: #e44247;
  font-size: 1.25em;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-card h4::before {
  content: "✓";
  font-weight: bold;
  color: #e44247;
  font-size: 1.4em;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .why-choose-us {
    padding: 20px 10px;
  }
}

/* ==================== ЭТАПЫ ОФОРМЛЕНИЯ ==================== */
.order-steps {
  padding: 30px;
  background-color: var(--bg-section) !important;
  color: var(--text-primary);
}

.order-steps .section-title {
  margin-bottom: 60px;
}

.steps-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-step-card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
  border-color: var(--border-card);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #e4424730;
}

.step-icon {
  width: 60px;
  height: 60px;
  background-color: #e4424710;
  border: 2px solid #e44247;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.step-card:hover .step-icon {
  background-color: #e44247;
  transform: scale(1.1);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  color: var(--text-heading);
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 769px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .order-steps {
    padding: 30px;
  }

  .order-steps .section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    padding: 30px;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .order-steps {
    padding: 20px 10px;
  }
}

/* ==================== ДОСТАВКА ==================== */
.delivery-section {
  padding: 30px;
  background-color: var(--bg-section) !important;
  color: var(--text-primary);
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.delivery-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
  border-color: var(--border-card);
}

.delivery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: #e4424730;
  background: var(--bg-card);
}

.delivery-icon {
  width: 60px;
  height: 60px;
  background-color: #e4424710;
  border: 2px solid #e44247;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.delivery-card:hover .delivery-icon {
  background-color: #e44247;
  transform: scale(1.1);
}

.delivery-icon svg {
  width: 28px;
  height: 28px;
}

.delivery-card h3 {
  color: var(--text-heading);
  font-size: 1.35em;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.delivery-card p {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

.delivery-card strong {
  color: #e44247;
  font-weight: 600;
}

@media (min-width: 768px) {
  .delivery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .delivery-section {
    padding: 20px 10px;
  }
}

/* ==================== О НАС ==================== */
.about-section {
  padding: 30px;
  background-color: var(--bg-section) !important;
  color: var(--text-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
  border-color: var(--border-card);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: #e4424730;
}

.about-icon {
  width: 60px;
  height: 60px;
  background-color: #e4424710;
  border: 2px solid #e44247;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.about-card:hover .about-icon {
  background-color: #e44247;
  transform: scale(1.1);
}

.about-icon svg {
  width: 28px;
  height: 28px;
}

.about-card h3 {
  color: var(--text-heading);
  font-size: 1.35em;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

.about-card strong {
  color: #e44247;
  font-weight: 600;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 20px 10px;
  }
}

/* ==================== КОНТАКТЫ ==================== */
.contacts-section {
  padding: 30px;
  background-color: var(--bg-section) !important;
  color: var(--text-primary);
}

.contacts-section .section-title {
  margin-bottom: 20px;
}

.contacts-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.highlight-text {
  font-size: 1.3em;
  color: #e44247;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.sub-text {
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.contact-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-card);
  width: 100%;
  max-width: 250px;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: #e4424730;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: #e4424710;
  border: 2px solid #e44247;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background-color: #e44247;
  transform: scale(1.1);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  color: var(--text-heading);
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

.contact-card a {
  color: #e44247;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: normal;
  word-break: break-all;
  font-size: 0.9em;
}

.contact-card a:hover {
  color: #b32a33;
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
  .contacts-section {
    padding: 20px 10px;
  }

  .contacts-section .section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .contacts-intro {
    margin: 0 auto 30px;
    max-width: 100%;
    padding: 0 10px;
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
  }

  .contact-card {
    padding: 16px 12px;
    max-width: none;
  }

  .contact-card p {
    font-size: 0.85em;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
  }

  .contact-card a {
    font-size: 0.8em;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }

  .contact-card h3 {
    font-size: 1.1em;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .contacts-section {
    padding: 15px 8px;
  }

  .contact-card {
    padding: 12px 8px;
  }

  .contact-card p {
    font-size: 0.8em;
  }

  .contact-card a {
    font-size: 0.75em;
  }
}

/* ==================== ПОДВАЛ ==================== */
footer {
  background: var(--bg-footer) !important;
  color: var(--text-footer);
  text-align: center;
  padding: 30px;
  font-size: 14px;
}

.privacy-link {
  color: var(--text-footer);
  text-decoration: none;
}

.privacy-link:hover {
  color: #e44247;
  text-decoration: underline;
}

/* ==================== КОРЗИНА ==================== */
.cart-page {
  background-color: transparent !important;
}

.cart-items,
.cart-summary {
  background-color: var(--bg-doc) !important;
}

/* ==================== ДОКУМЕНТЫ (PRIVACY, TERMS) ==================== */
.doc-page {
  background-color: var(--bg-doc) !important;
  color: var(--text-primary);
  border-radius: 12px;
  margin: 30px auto;
  padding: 30px !important;
  max-width: 900px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.doc-page h1 {
  color: var(--text-doc);
  font-size: 28px;
}

.doc-page h2 {
  font-size: 20px;
  margin-top: 24px;
  color: var(--text-heading);
}

.doc-page p,
.doc-page li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.doc-page ul {
  padding-left: 20px;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .doc-page {
    margin: 20px 10px;
    padding: 20px 16px !important;
    max-width: 100%;
    border-radius: 8px;
  }

  .doc-page h1 {
    font-size: 22px;
  }

  .doc-page h2 {
    font-size: 17px;
  }

  .doc-page p,
  .doc-page li {
    font-size: 14px;
  }
}

/* таблица сранения */
#compare-table table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-compare);
}

#compare-table table tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

#compare-table table tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

#compare-table table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

#compare-table table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}