/* ===========================================
   1. КОНФИГУРАЦИЯ И ПЕРЕМЕННЫЕ
=========================================== */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Новая палитра: терракота + песочный + тёмно-коричневый */
  --color-primary: #c0392b;
  --color-primary-dark: #922b21;
  --color-primary-light: #f9ebea;
  --color-secondary: #e67e22;
  --color-secondary-dark: #ca6f1e;
  --color-price: #1a5276;
  --color-dark: #2c1810;
  --color-light: #fdf6f0;
  --color-white: #ffffff;
  --color-sand: #f5e6d3;
  --color-sand-dark: #e8d5b7;
  --color-earth: #6b3a2a;
  --color-earth-light: #8b5e52;
  --color-green-accent: #27ae60;

  --color-gray-100: #faf3ee;
  --color-gray-200: #f0e4d7;
  --color-gray-300: #dec9b5;
  --color-gray-400: #c4a882;
  --color-gray-500: #a68560;
  --color-gray-600: #7d6148;
  --color-gray-700: #5c4433;
  --color-gray-800: #3e2d22;
  --color-gray-900: #1e1410;
  --color-danger: #c0392b;
  --color-danger-dark: #922b21;
  --color-overlay: rgba(28, 14, 8, 0.75);

  --font-family-base: "Open Sans", sans-serif;
  --font-family-heading: "Merriweather", serif;

  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;
  --font-size-3xl: 24px;
  --font-size-4xl: 26px;
  --font-size-5xl: 32px;
  --font-size-hero: clamp(1.9em, 7vw, 3.2em);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
  --spacing-2xl: 25px;
  --spacing-3xl: 30px;
  --spacing-4xl: 40px;
  --spacing-5xl: 80px;

  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 28px rgba(44, 24, 16, 0.14);
  --shadow-xl: 0 16px 40px rgba(44, 24, 16, 0.22);
  --shadow-red: 0 6px 20px rgba(192, 57, 43, 0.3);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  --radius-circle: 50%;

  --container-max-width: 1200px;
  --container-padding: 15px;

  --z-index-header: 1000;
  --z-index-mobile-nav: 1100;
  --z-index-slider-controls: 10;
  --z-index-video-overlay: 3000;

  --transition-base: 0.3s ease;
  --transition-fast: 0.2s ease;

  --header-height: 66px;
}

/* ===========================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ===========================================
   3. HEADER & NAVIGATION
=========================================== */
.header {
  background: var(--color-dark);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-index-header);
  height: var(--header-height);
  width: 100%;
  border-bottom: 3px solid var(--color-primary);
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: var(--spacing-xl);
}

/* Логотип */
.logo {
  font-family: var(--font-family-heading);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 900;
  color: var(--color-sand);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-white);
}

.logo i {
  color: var(--color-green-accent);
  font-size: 1.1em;
}

.logo__accent {
  color: var(--color-secondary);
}

/* Десктопная навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav__link {
  color: rgba(245, 230, 211, 0.75);
  text-decoration: none;
  font-size: var(--font-size-md);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-sand);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Правая часть хедера */
.header__right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.13);
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-sand);
  border-radius: 2px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
  transform-origin: center;
}

.burger__line + .burger__line {
  margin-top: 5px;
}

.burger.is-active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.is-active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 14, 8, 0.65);
  z-index: var(--z-index-mobile-nav);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 290px;
  max-width: 88vw;
  height: 100%;
  background: var(--color-dark);
  border-left: 3px solid var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-sand);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-circle);
  cursor: pointer;
  font-size: var(--font-size-xl);
  color: var(--color-gray-400);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  line-height: 1;
}

.mobile-nav__close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.mobile-nav__list {
  list-style: none;
  padding: var(--spacing-md) 0;
  flex: 1;
}

.mobile-nav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  color: rgba(245, 230, 211, 0.8);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: 500;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    padding-left var(--transition-fast);
}

.mobile-nav__link i {
  width: 20px;
  color: var(--color-secondary);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.mobile-nav__link:hover {
  background: rgba(192, 57, 43, 0.15);
  color: var(--color-sand);
  padding-left: 28px;
}

/* ===========================================
   4. HERO
=========================================== */
.hero {
  background:
    linear-gradient(
      160deg,
      rgba(44, 24, 16, 0.72) 0%,
      rgba(192, 57, 43, 0.45) 100%
    ),
    url("../images/hero_background.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
  padding: clamp(3rem, 12vw, var(--spacing-5xl)) var(--spacing-xl);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  padding-bottom: clamp(4rem, 14vw, 100px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(230, 126, 34, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(192, 57, 43, 0.15) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.hero__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-hero);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: clamp(1rem, 3.5vw, var(--font-size-xl));
  margin-bottom: var(--spacing-3xl);
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ===========================================
   5. SECTION HEADER
=========================================== */
.section-header {
  font-family: var(--font-family-heading);
  text-align: center;
  font-size: clamp(1.4rem, 4.5vw, var(--font-size-4xl));
  font-weight: 700;
  margin: clamp(1.5rem, 4vw, var(--spacing-4xl)) 0
    clamp(1rem, 3vw, var(--spacing-xl));
  color: var(--color-dark);
  padding: 0 10px;
  position: relative;
}

.section-header::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===========================================
   5. PRODUCT GRID
=========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(12px, 3vw, 24px);
  padding-bottom: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
}

/* Карточка */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  border: 1px solid var(--color-gray-200);
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 1;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-300);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--color-sand);
  transition:
    transform var(--transition-base),
    opacity var(--transition-fast);
  display: block;
}

.product-card:hover .product-card__image {
  opacity: 0.92;
  transform: scale(1.03);
}

.product-card__info {
  padding: clamp(10px, 2.5vw, var(--spacing-lg));
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.product-card__title {
  font-family: var(--font-family-heading);
  font-size: clamp(0.82rem, 2.8vw, 1rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  line-height: 1.35;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card__title {
  color: var(--color-primary);
}

.product-card__short-desc {
  font-size: clamp(0.68rem, 2.2vw, var(--font-size-sm));
  color: var(--color-gray-500);
  margin-bottom: clamp(8px, 2vw, var(--spacing-lg));
  font-style: italic;
}

.product-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 6px;
}

.product-card__price {
  font-family: var(--font-family-heading);
  font-size: clamp(1.1rem, 3.5vw, var(--font-size-2xl));
  font-weight: 700;
  color: var(--color-price);
  white-space: nowrap;
  line-height: 1.2;
}

/* Кнопка "Подробнее" */
.product-card__add-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  height: clamp(32px, 8vw, 40px);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: clamp(0.75rem, 2.2vw, 0.88rem);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 0 var(--spacing-md);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.product-card__add-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.04);
  box-shadow: var(--shadow-red);
}

.product-card__add-text {
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ===========================================
   7. ADVANTAGES
=========================================== */
.advantages-section {
  padding: clamp(2rem, 5vw, var(--spacing-5xl)) 0;
  background: var(--color-sand);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.advantages-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 30%,
    var(--color-secondary) 70%,
    transparent 100%
  );
}

.advantages-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-secondary) 30%,
    var(--color-primary) 70%,
    transparent 100%
  );
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 3vw, var(--spacing-xl));
  margin-top: clamp(1rem, 3vw, var(--spacing-3xl));
}

.advantage-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, var(--spacing-2xl))
    clamp(1rem, 2.5vw, var(--spacing-xl));
  text-align: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  border: 1px solid var(--color-sand-dark);
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.advantage-card:hover::after {
  transform: scaleX(1);
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-300);
}

.advantage-card__icon {
  width: clamp(52px, 10vw, 72px);
  height: clamp(52px, 10vw, 72px);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(0.8rem, 2.5vw, var(--spacing-lg));
  font-size: clamp(1.2rem, 3.5vw, var(--font-size-3xl));
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.25);
}

.advantage-card:hover .advantage-card__icon {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  transform: rotateY(360deg);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
}

.advantage-card__title {
  font-family: var(--font-family-heading);
  font-size: clamp(0.95rem, 2.8vw, var(--font-size-xl));
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: clamp(0.5rem, 1.5vw, var(--spacing-md));
  letter-spacing: 0.3px;
}

.advantage-card__text {
  font-size: clamp(0.8rem, 2.2vw, var(--font-size-md));
  color: var(--color-gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ===========================================
   8. VIDEO SECTION
=========================================== */
.video-section {
  padding: clamp(2rem, 5vw, var(--spacing-4xl)) 0 clamp(2.5rem, 6vw, 60px);
  background: var(--color-dark);
  width: 100%;
  overflow: hidden;
  position: relative;
}

.video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary)
  );
}

.video-section .section-header {
  color: var(--color-sand);
}

.video-section .section-header::after {
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-primary)
  );
}

.video-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 44px);
}

.video-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
}

.video-grid {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: clamp(10px, 2vw, var(--spacing-xl));
}

.video-card {
  flex: 0 0 calc(33.333% - (var(--spacing-xl) * 2 / 3));
  min-width: 0;
  height: clamp(180px, 28vw, 260px);
  background: var(--color-gray-900);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 14, 8, 0.75) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.video-card:hover .video-card__overlay {
  background: linear-gradient(
    to top,
    rgba(28, 14, 8, 0.85) 0%,
    rgba(192, 57, 43, 0.25) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.video-card__play-icon {
  font-size: clamp(2.2rem, 8vw, 64px);
  color: var(--color-white);
  opacity: 0.85;
  transition: var(--transition-base);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.video-card:hover .video-card__play-icon {
  opacity: 1;
  transform: scale(1.12);
  color: var(--color-secondary);
}

.video-card__duration {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.75);
  color: var(--color-white);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: clamp(0.6rem, 1.8vw, var(--font-size-xs));
  font-weight: 700;
  letter-spacing: 0.5px;
}

.video-card__title {
  position: absolute;
  bottom: var(--spacing-sm);
  left: var(--spacing-sm);
  right: 64px;
  color: var(--color-white);
  font-weight: 600;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.7rem, 2.2vw, 0.95rem);
}

/* Стрелки слайдера */
.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  z-index: var(--z-index-slider-controls);
  box-shadow: var(--shadow-red);
}

.video-arrow:hover {
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.video-arrow--left {
  left: 0;
}
.video-arrow--right {
  right: 0;
}

/* Точки */
.video-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.video-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-circle);
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}

.video-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.video-dot--active {
  background: var(--color-secondary);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(230, 126, 34, 0.6);
}

/* Видео плеер */
.video-player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-index-video-overlay);
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  backdrop-filter: blur(6px);
}

.video-player-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--color-gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-player video,
.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: black;
}

.video-player__close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  font-size: clamp(1.4rem, 5vw, var(--font-size-3xl));
  color: var(--color-white);
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player__close:hover {
  background: var(--color-primary);
  transform: rotate(90deg);
}

@keyframes fadeInScale {
  from {
    transform: scale(0.88);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================================
   9. FOOTER
=========================================== */
.footer {
  background: var(--color-dark);
  border-top: 3px solid var(--color-primary);
  padding: var(--spacing-4xl) 0 var(--spacing-3xl);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-4xl);
  align-items: start;
}

.footer-legal {
  font-size: var(--font-size-sm);
  color: rgba(245, 230, 211, 0.6);
  line-height: 1.8;
}

.footer-legal b {
  color: var(--color-sand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-xs);
}

.footer-legal a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-sand);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links b {
  color: var(--color-sand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-xs);
  margin-bottom: 6px;
  display: block;
}

.footer-links a {
  color: rgba(245, 230, 211, 0.65);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.footer-links a:hover {
  color: var(--color-sand);
  background: rgba(192, 57, 43, 0.15);
  border-color: rgba(192, 57, 43, 0.35);
  padding-left: 18px;
}

/* ===========================================
   10. МЕДИАЗАПРОСЫ
=========================================== */
@media (min-width: 769px) {
  .burger {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .nav {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav__link {
    font-size: var(--font-size-sm);
    padding: 6px 9px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-nav {
    display: block;
  }

  .video-card {
    flex: 0 0 100%;
  }

  .video-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .video-slider-container {
    padding: 0 32px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
  }

  .footer-legal {
    order: 2;
  }
  .footer-links {
    order: 1;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card__info {
    padding: 10px;
  }
  .product-card__title {
    font-size: 0.88rem;
  }
  .product-card__short-desc {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  .product-card__price {
    font-size: 0.95rem;
  }
  .product-card__add-btn {
    height: 36px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .video-arrow {
    display: none;
  }
  .video-slider-container {
    padding: 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-card__info {
    padding: 8px;
  }
  .product-card__title {
    font-size: 0.8rem;
  }
  .product-card__short-desc {
    font-size: 0.65rem;
    margin-bottom: 5px;
  }
  .product-card__price {
    font-size: 0.82rem;
  }
  .product-card__add-btn {
    height: 28px;
    font-size: 0.7rem;
    padding: 0 6px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .advantage-card {
    padding: 16px;
  }

  .hero {
    padding: 36px 12px 64px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
  }

  .hero__title {
    font-size: 1.55rem;
  }
  .hero__subtitle {
    font-size: 0.92rem;
  }

  .section-header {
    font-size: 1.3rem;
  }

  .footer {
    padding: var(--spacing-2xl) 0;
  }
  .footer-grid {
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
}
