/* css/style.css */

/* ================= 1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ================= */

:root {
  /* Базовый текст сайта для мобилок */
  --text-base-size: 16px;
  --text-base-line: 1.6;

  /* Разметка: узкая колонка текста + общий каркас секций */
  --container-max: 1080px;
  --content-max: 560px;

  /* ===== КРУТИЛКИ ПОЗИЦИИ (десктоп подхватит сильнее) ===== */
  --cover-title-shift-y: -0.82em; /* Обложка Meetka: вверх = больше минус (напр. -0.9em) */
  --eco-logo-size: 38px;          /* Высота логотипа Eco */
  --eco-logo-shift-x: 0px;        /* Сдвиг логотипа Eco по X */
  --eco-logo-shift-y: 0px;        /* Сдвиг логотипа Eco по Y */

  /* Настройки мобильной обложки */
  --image-height-mobile: 48vh; 
  --title-size-mobile: clamp(80px, 23.5vw, 160px);
  --slogan-size-mobile: 30px;
  --desc-size-mobile: var(--text-base-size);

  /* Цветовая палитра */
  --bg-black: #000000;
  --bg-img-fill: #c5b4a0;
  --bg-eco: #1a1a1a;
  --text-main: #ffffff;
  --text-copper: #c48c66;
  --text-gray: #a3a3a3;
  --btn-brick: #8c2a0b;

  /* ===== Единые поля и текст блоков cover / eco / usage ===== */
  --section-pad-x: 24px;
  --section-text-size: 16px;
  --section-text-line: 1.55;
  --section-text-tracking: 0em;

  /* ===== USAGE-КАРТОЧКИ ===== */
  --usage-card-side: var(--section-pad-x);
  --usage-card-gap: 12px;
  --usage-card-pad-x: 20px;
  --usage-card-pad-top: 16px;
  --usage-card-pad-bottom: 40px;
  --usage-card-head-mb: 10px;
  --usage-card-icon: 44px;
  --usage-card-title-size: 25px;
  --usage-card-title-line: 1.1;
  --usage-card-title-tracking: 0em;
  --usage-card-text-size: 16px;
  --usage-card-text-line: 1.35;
  --usage-card-text-tracking: -0.01em;
  }

/* ================= 2. БАЗОВЫЕ СТИЛИ ================= */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html {
  font-family: 'Roboto', -apple-system, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-main);
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--section-pad-x);
  box-sizing: border-box;
}

/* Якоря под фиксированную шапку */
.cover-section,
.eco-section,
.usage-section,
.gallery-section,
.stories-section,
#shop,
#gallery,
#stories,
#faq {
  scroll-margin-top: 72px;
}

/* ================= 3. ШАПКА САЙТА (HEADER) ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 16px 0 36px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.42) 42%,
    rgba(0, 0, 0, 0) 100%
  );
  border-bottom: none;
  transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 48%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: none;
  padding: 12px 0 32px;
  border-bottom: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  padding: 0 16px !important;
}

.logo img { 
  height: 28px; 
  width: auto; 
  filter: invert(1) brightness(100); 
}

.desktop-nav {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px; 
  font-weight: 300; 
  text-transform: uppercase; 
  letter-spacing: 1.5px;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}

.desktop-nav a:hover { 
  opacity: 1; 
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-btn, .mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn img, .mobile-menu-btn img {
  width: auto;
  filter: invert(1) brightness(100);
}

.cart-btn img { height: 20px; }
.mobile-menu-btn img { height: 10px; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--btn-brick);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.cart-badge.hidden { display: none; }
.cart-badge.bump { transform: scale(1.3); }

.mobile-menu-btn { display: none; }

/* ================= 4. ОБЛОЖКА (COVER) ================= */
.cover-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cover-visual {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: var(--image-height-mobile);
  z-index: 1;
}

.cover-image-wrapper {
  background-color: var(--bg-img-fill);
  width: 100%; 
  height: 100%;
  position: relative;
}

.hero-img.slide {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover;
  object-position: 1% top;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-img.slide.active { 
  opacity: 1; 
}

.scanlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 50%, transparent 50%);
  background-size: 100% 4px;
  pointer-events: none !important;
  user-select: none;
  z-index: 2;
}

.cover-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  margin-top: var(--image-height-mobile);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cover-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: var(--title-size-mobile);
  letter-spacing: -2px;
  line-height: 0.75;
  margin-top: var(--cover-title-shift-y); /* крути --cover-title-shift-y в :root */
  margin-bottom: 14px;
}

.cover-subtitle {
  font-size: var(--slogan-size-mobile);
  font-weight: 500;
  color: var(--text-copper);
  text-transform: none;      /* ВМЕСТО uppercase ставим none */
  letter-spacing: 0.1px;    /* Уменьшаем межбуквенный интервал (было 1.5px, для строчных это слишком широко) */
  line-height: 1.05;        /* Чуть свободнее строку для строчных выносных элементов */
  margin-bottom: 24px;
}

.cover-desc {
  font-size: var(--section-text-size);
  color: var(--text-gray);
  font-weight: 300;
  line-height: var(--section-text-line);
  letter-spacing: var(--section-text-tracking);
  max-width: var(--content-max);
  margin-bottom: 36px;
}

.btn-round {
  width: 104px; 
  height: 104px;
  border-radius: 50%;
  background: var(--btn-brick);
  color: #fff;
  border: none;
  position: relative;
  display: inline-flex;
  align-items: center; 
  justify-content: center;
  font-size: 13px; 
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  align-self: center;
  margin-bottom: 30px;
}

.btn-round::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.45);
  pointer-events: none;
}

.btn-round:hover {
  background: #a3320d;
  transform: translateY(-4px);
}

/* ================= 5. БЛОК ЭКОСИСТЕМЫ (02_ECO) ================= */
.eco-section {
  position: relative;
  background-color: var(--bg-eco);
  padding-bottom: 60px;
  overflow: hidden;
}

/* Волна-разделитель */
.eco-wave-top {
  position: relative;
  width: 100%;
  height: 25px;         /* <-- КРУТИ ЗДЕСЬ: 70px, 90px, 110px. Волна растет вниз, стык не шевелится */
  margin-top: 0px;     /* Наплыв на 2px наверх, чтобы не было микрощели */
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background-color: transparent;
}
.eco-wave-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: ecoWaveScroll 16s linear infinite;
  will-change: transform;
}

.eco-wave-img {
  width: 50%;
  height: 100%;
  object-fit: cover;           /* Пропорциональный масштаб без сплющивания */
  object-position: top center; /* Жесткий якорь по верхнему краю */
  display: block;
  flex-shrink: 0;
}

@keyframes ecoWaveScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Логотип ECO SYSTEM */
.eco-header-container {
  padding-top: 24px;
  padding-bottom: 12px;
}

.eco-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.eco-logo-img {
  height: var(--eco-logo-size);
  width: auto;
  display: block;
  transform: translate(var(--eco-logo-shift-x), var(--eco-logo-shift-y));
}

.eco-logo-meetka {
  height: 22px;
  width: auto;
  filter: invert(65%) sepia(35%) saturate(550%) hue-rotate(345deg) brightness(95%);
}

.eco-logo-eco {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.eco-logo-system {
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 300;
  color: var(--text-copper);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Картинка на весь экран */
.eco-illustration-wrap {
  width: 100%;
  margin: 10px 0 24px;
  display: flex;
  justify-content: center;
  background-color: transparent;
}

.eco-illustration {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Текстовый блок */
.eco-content-container {
  display: flex;
  flex-direction: column;
}

.eco-description {
  font-size: var(--section-text-size);
  line-height: var(--section-text-line);
  letter-spacing: var(--section-text-tracking);
  color: #b5b5b5;
  font-weight: 300;
  max-width: var(--content-max);
  margin-bottom: 24px;
}

.eco-link {
  color: var(--text-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.eco-link:hover {
  opacity: 0.8;
}

/* Карточка предупреждения */
.eco-warning-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 32px;
  max-width: var(--content-max);
}

.eco-warning-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.eco-warning-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.eco-warning-text {
  font-size: 12px;
  line-height: 1.55;
  color: #929292;
  font-weight: 300;
}

.eco-bold-text {
  color: var(--text-copper);
  font-weight: 500;
}

/* Кнопка-пилюля со строчкой */
.eco-actions {
  display: flex;
  justify-content: center;
}

.btn-pill-stitched {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-brick);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-pill-stitched::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.btn-pill-stitched:hover {
  background-color: #a3320d;
  transform: translateY(-2px);
}

/* ================= 6. ДЕСКТОПНАЯ ВЕРСИЯ (МЕДИА-ЗАПРОСЫ) ================= */
.desktop-nav { 
  display: none !important; 
}

/* Показываем бургер всегда (и на мобилках, и на десктопе) */
.mobile-menu-btn { 
  display: flex !important; 
}
@media (min-width: 992px) {
  :root {
    --text-base-size: 16px;
    --text-base-line: 1.6;
    --section-pad-x: 120px; /* единое левое поле как на референсе */
    --section-text-size: 16px;
    --section-text-line: 1.6;
    --content-max: 560px;
    --rail-max: 900px; /* ряд карточек без «огрызка» справа */

    --cover-title-shift-y: -0.7em; /* крути здесь: -0.55em выше, -0.25em ниже */
    --eco-logo-size: 58px;
    --eco-logo-shift-x: 0px;
    --eco-logo-shift-y: 0px;

    --image-height-desktop: 52vh;
    --title-size-desk: 132px;
    --slogan-size-desk: 30px;
    --desc-size-desk: var(--text-base-size);

    --usage-card-gap: 18px;
    --usage-card-pad-x: 24px;
    --usage-card-pad-top: 24px;
    --usage-card-pad-bottom: 36px;
    --usage-card-icon: 46px;
    --usage-card-title-size: 22px;
    --usage-card-text-size: 15px;
    --usage-card-text-line: 1.4;
  }

  /* Шапка и контент — влево, поля растут с экраном */
  .header-inner {
    max-width: none !important;
    padding: 0 var(--section-pad-x) !important;
    margin: 0 !important;
  }

  /* Обложка: фото в левый угол с мягким растворением вправо */
  .cover-visual {
    width: 100%;
    max-width: 100%;
    height: var(--image-height-desktop);
    background-color: var(--bg-img-fill);
    left: 0;
    transform: none;
    overflow: hidden;
  }

  .cover-image-wrapper {
    background-color: var(--bg-img-fill);
    width: 100%;
    height: 100%;
  }

  .hero-img.slide {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    height: 100%;
    width: auto;
    max-width: min(720px, 58vw);
    object-fit: cover;
    object-position: left top;
    -webkit-mask-image: linear-gradient(to right, black 68%, transparent 100%);
    mask-image: linear-gradient(to right, black 68%, transparent 100%);
  }

  .scanlines {
    width: 100%;
    height: 100%;
  }

  .cover-content {
    margin-top: var(--image-height-desktop);
    padding: 0 var(--section-pad-x);
    max-width: none;
    align-items: flex-start;
  }

  .cover-title {
    font-size: var(--title-size-desk) !important;
    line-height: 0.72;
    margin-top: var(--cover-title-shift-y);
    margin-bottom: 18px;
  }

  .cover-subtitle {
    font-size: var(--slogan-size-desk);
    letter-spacing: 0.2px;
    margin-bottom: 24px;
  }

  .cover-desc {
    font-size: var(--section-text-size);
    line-height: var(--section-text-line);
    max-width: var(--content-max);
    margin-bottom: 40px;
  }

  .btn-round {
    align-self: flex-start;
    margin-left: 0;
  }

  .eco-wave-top,
  .usage-wave-top,
  .gallery-wave-top,
  .stories-wave-top {
    height: 10px;
  }

  /* Eco: иллюстрация и текст влево */
  .eco-header-container,
  .eco-content-container {
    max-width: none;
    margin: 0;
    align-items: flex-start;
  }

  .eco-brand {
    justify-content: flex-start;
  }

  .eco-illustration-wrap {
    justify-content: flex-start;
    padding: 0 var(--section-pad-x);
    margin: 10px 0 28px;
  }

  .eco-illustration {
    max-width: 560px;
    width: 100%;
  }

  .eco-description,
  .eco-warning-card {
    max-width: var(--content-max);
  }

  .eco-actions {
    justify-content: flex-start;
  }

  .eco-section {
    padding-bottom: 72px;
  }

  /* ===== Применение: слайдер, видно ~3 карточки ===== */
  .usage-section {
    padding-bottom: 72px;
  }

  .usage-container {
    max-width: none;
    margin: 0;
  }

  .usage-header {
    padding: 24px var(--section-pad-x) 36px;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  .usage-title {
    font-size: 48px;
  }

  .usage-intro {
    max-width: var(--content-max);
  }

  .usage-slider-wrap {
    position: relative;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  .usage-slider {
    display: flex;
    gap: var(--usage-card-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px var(--section-pad-x) 24px;
    scrollbar-width: none;
  }

  .usage-slider::-webkit-scrollbar { display: none; }

  .usage-card {
    /* Ровно 2 карточки в окне — без огрызка третьей */
    flex: 0 0 calc((var(--rail-max) - var(--usage-card-gap)) / 2);
    width: auto;
    max-width: calc((var(--rail-max) - var(--usage-card-gap)) / 2);
    aspect-ratio: 3 / 3.4;
    scroll-snap-align: start;
  }

  .usage-progress {
    display: flex;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  /* ===== Галерея: крупный круг слева ===== */
  .gallery-container {
    max-width: none;
    margin: 0;
    padding: 0 var(--section-pad-x);
    align-items: flex-start;
  }

  .gallery-circle-wrap {
    max-width: 720px;
    width: min(720px, 56vw);
    align-items: flex-start;
  }

  .gallery-text-wrap {
    max-width: var(--content-max);
    margin: 0;
    padding: 36px 0 44px;
    text-align: left;
    align-self: flex-start;
  }

  .gallery-video-wrap {
    max-width: var(--rail-max);
    width: 100%;
    margin: 0 0 0 var(--section-pad-x);
    padding: 0;
    box-sizing: border-box;
  }

  /* ===== Истории: слайдер, видно ~3 ===== */
  .stories-section {
    padding-bottom: 72px;
  }

  .stories-container {
    max-width: none;
    margin: 0;
  }

  .stories-header {
    padding: 16px var(--section-pad-x) 36px;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  .stories-title {
    font-size: 48px;
  }

  .stories-slider-wrap {
    position: relative;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  .stories-slider {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px var(--section-pad-x) 28px;
    scrollbar-width: none;
  }

  .stories-slider::-webkit-scrollbar { display: none; }

  .story-slide {
    flex: 0 0 calc((var(--rail-max) - 28px) / 2);
    width: auto;
    max-width: calc((var(--rail-max) - 28px) / 2);
    scroll-snap-align: start;
  }

  .stories-progress {
    display: flex;
    max-width: calc(var(--rail-max) + 2 * var(--section-pad-x));
  }

  .story-avatar-wrap {
    width: 140px;
    height: 140px;
  }

  .frosted-menu {
    width: 420px;
    height: 420px;
    top: -110px;
    right: -160px;
    padding: 150px 200px 0 0;
  }
}

/* Ещё шире — просто больше боковые поля */
@media (min-width: 1280px) {
  :root {
    --section-pad-x: 160px;
    --rail-max: 980px;
  }

  .gallery-circle-wrap {
    max-width: 780px;
    width: min(780px, 52vw);
  }
}

@media (min-width: 1600px) {
  :root {
    --section-pad-x: 200px;
    --rail-max: 1040px;
  }

  .gallery-circle-wrap {
    max-width: 860px;
    width: min(860px, 48vw);
  }
}
/* ================= ВСПЛЫВАЮЩЕЕ МЕНЮ (FROSTED GLASS) ================= */
.mobile-menu-btn {
  position: relative;
  z-index: 100 !important;
}

/* Круглое меню: утоплено вправо и вверх */
.frosted-menu {
  position: fixed;
  top: -100px;            /* Утопили еще выше за пределы экрана */
  right: -150px;          /* Утопили существенно правее */
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Отступ справа уменьшен со 115px до 150px-155px компенсацией сдвига, сверху 150px */
  padding: 140px 190px 0 0;
  
  transform-origin: top right;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.frosted-menu.is-active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.frosted-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;               /* Плотные аккуратные строки */
}

.frosted-nav a {
  font-family: 'Roboto', sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.frosted-cart-wrap {
  margin-top: 14px;
  margin-right: 2px;
}

.frosted-cart-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--btn-brick);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(140, 42, 11, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.frosted-cart-mini:hover {
  transform: scale(1.08);
  background-color: #a3320d;
}
/* ================= БЛОК 3: ОСОБЕННОСТИ (USAGE) ================= */
.usage-section {
  position: relative;
  background-color: #EAE0D5;
  color: #3b3532;
  padding: 0 0 60px 0;
  overflow: hidden;
}

/* Волна цвета eco (#1a1a1a) поверх бежевого фона — та же анимация, что в 02_eco */
.usage-wave-top {
  position: relative;
  width: 100%;
  height: 25px;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background-color: transparent;
  line-height: 0;
}

.usage-wave-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: ecoWaveScroll 16s linear infinite;
  will-change: transform;
}

.usage-wave-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
  /* SVG заливка чёрная → подгоняем под фон eco-блока */
  filter: brightness(0) saturate(100%) invert(7%);
}

.usage-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.usage-header {
  padding: 10px var(--section-pad-x) 28px;
}

.usage-brand {
  position: relative;
  margin-bottom: 24px;
}

.usage-logo {
  position: relative;
  z-index: 1;
  height: 54px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Гарантированно белый логотип */
  pointer-events: none;
}

.usage-title {
  position: relative;
  z-index: 2; /* Заголовок поверх росчерка Meetka */
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 100;
  line-height: 1.05;
  color: var(--btn-brick);
  margin: -22px 0 0 0; /* Лёгкий нахлёст надписи на логотип */
  letter-spacing: 0.5px;
}

.usage-intro {
  font-size: var(--section-text-size);
  line-height: var(--section-text-line);
  letter-spacing: var(--section-text-tracking);
  font-weight: 300;
  color: #4a4542;
  margin: 0;
  max-width: var(--content-max);
}

/* Карусель карточек — одна карточка на ширину окна */
.usage-slider-wrap {
  position: relative;
  width: 100%;
}

.usage-slider {
  display: flex;
  gap: var(--usage-card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px var(--usage-card-side) 24px;
  scroll-padding-inline: var(--usage-card-side);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.usage-slider::-webkit-scrollbar {
  display: none;
}

.usage-card {
  flex: 0 0 100%; /* Ровно одна карточка в кадре */
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 1120 / 1000;
  min-height: 0;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  border-radius: 22px;
  padding: var(--usage-card-pad-top) var(--usage-card-pad-x) var(--usage-card-pad-bottom);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(140, 42, 11, 0.12);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.usage-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--usage-card-head-mb);
  flex-shrink: 0;
}

.usage-icon {
  flex: 0 0 var(--usage-card-icon);
  width: var(--usage-card-icon);
  height: var(--usage-card-icon);
  background: linear-gradient(45deg, #8c2a0b 0%, #d99b66 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.usage-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: var(--usage-card-title-size);
  font-weight: 500;
  line-height: var(--usage-card-title-line);
  letter-spacing: var(--usage-card-title-tracking);
  color: var(--btn-brick);
  margin: 0;
}

.usage-card-text {
  font-size: var(--usage-card-text-size);
  line-height: var(--usage-card-text-line);
  letter-spacing: var(--usage-card-text-tracking);
  font-weight: 400;
  color: #1f1f1f;
  margin: 0;
}

/* Нижняя полоса-индикатор из 6 сегментов */
.usage-progress {
  display: flex;
  gap: 8px;
  padding: 0 var(--usage-card-side);
  margin-top: 4px;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.85); /* как в Историях */
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.progress-bar.active {
  background-color: #c86428;
}

@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --section-pad-x: 40px;
    --usage-card-pad-x: 28px;
    --usage-card-pad-top: 28px;
    --usage-card-pad-bottom: 48px;
    --usage-card-icon: 48px;
  }

  .usage-header {
    padding: 20px var(--section-pad-x) 36px;
  }

  .usage-title {
    font-size: 52px;
  }

  .usage-card {
    flex: 0 0 100%;
  }

  .usage-wave-top {
    height: 8px;
  }
}
/* ================= БЛОК 4: ГАЛЕРЕЯ И ВИДЕО ================= */
.gallery-section {
  position: relative;
  background-color: #161616;
  color: #b5b5b5;
  padding: 0 0 48px 0; /* отступ перед блоком историй */
  overflow: hidden;
}

/* Волна цвета предыдущего блока (#EAE0D5) — как eco/usage, прижата к верху */
.gallery-wave-top {
  position: relative;
  width: 100%;
  height: 25px;
  margin-top: 0;
  margin-bottom: 24px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background-color: transparent;
  line-height: 0;
}

.gallery-wave-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: ecoWaveScroll 16s linear infinite;
  will-change: transform;
}

.gallery-wave-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
  /* Чёрный SVG → бежевый #EAE0D5 (фон блока usage) */
  filter: invert(93%) sepia(6%) saturate(420%) hue-rotate(340deg) brightness(102%) contrast(92%);
}

.gallery-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Круглый иллюминатор */
.gallery-circle-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding-bottom: 36px; /* место под градусник ниже круга */
}

.gallery-circle-frame {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Наружный стежок вокруг круга */
.gallery-circle-ring {
  position: absolute;
  inset: -10px; /* снаружи фото */
  pointer-events: none;
  z-index: 3;
  animation: storyRingSpin 64s linear infinite; /* медленное вращение */
}

.gallery-circle-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gallery-circle-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateZ(0); /* Фикс обрезки углов при свайпе в Safari/iOS */
}

.gallery-slider {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0; /* Стыкуются вплотную друг к другу */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Вписывает прямоугольное фото в круг без полей */
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Градусник — по центру под кругом */
.gallery-progress {
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  bottom: auto;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 4px;
  width: 56%;
  max-width: 260px;
  margin: 0;
  pointer-events: auto;
}

.gallery-bar {
  flex: 1;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-bar.active {
  background-color: var(--text-copper, #c59b76);
  transform: scaleY(1.5);
}

/* Текст под кругом */
.gallery-text-wrap {
  width: 100%;
  max-width: 440px;
  padding: 36px 16px 44px 16px;
  box-sizing: border-box;
}

.gallery-text {
  font-size: var(--section-text-size);
  line-height: var(--section-text-line);
  letter-spacing: var(--section-text-tracking);
  font-weight: 300;
  color: #b5b5b5;
  margin: 0;
}

@media (min-width: 768px) and (max-width: 991px) {
  .gallery-wave-top {
    height: 8px; /* как eco/usage на десктопе */
  }

  .gallery-container {
    padding: 0 var(--section-pad-x);
  }

  .gallery-text-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Видео-блок */
.gallery-video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  line-height: 0;
  cursor: pointer;
}

.gallery-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Минималистичная панель управления (таблетка) */
.video-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  max-width: 360px;
  height: 40px;
  background: rgba(215, 215, 215, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.v-btn {
  background: none;
  border: none;
  padding: 4px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.v-fs-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-color: currentColor;
  -webkit-mask-image: url('/icon/full.svg');
  mask-image: url('/icon/full.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Полноэкранный режим обёртки плеера */
.gallery-video-wrap:fullscreen,
.gallery-video-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-video-wrap:fullscreen .gallery-video,
.gallery-video-wrap:-webkit-full-screen .gallery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-video-wrap:fullscreen .video-controls,
.gallery-video-wrap:-webkit-full-screen .video-controls {
  opacity: 1;
  pointer-events: auto;
  bottom: 28px;
  max-width: 420px;
}

/* Линия прогресса видео */
.v-seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.v-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a1a1a;
  cursor: pointer;
}

.v-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
}
/* ================= БЛОК 5: ИСТОРИИ (STORIES) ================= */
.stories-section {
  position: relative;
  background-color: #EAE0D5; /* светлый фон */
  color: #3b3532;
  padding: 0 0 50px 0;
  overflow: hidden;
}

/* Чёрная волна (цвет галереи #161616), как eco/usage */
.stories-wave-top {
  position: relative;
  width: 100%;
  height: 25px;
  margin-top: 0;
  margin-bottom: 20px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background-color: transparent;
  line-height: 0;
}

.stories-wave-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: ecoWaveScroll 16s linear infinite;
  will-change: transform;
}

.stories-wave-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  flex-shrink: 0;
  /* Чёрный SVG → цвет галереи #161616 */
  filter: brightness(0) saturate(100%) invert(7%);
}

.stories-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.stories-header {
  padding: 0 var(--section-pad-x) 28px;
}

.stories-brand {
  position: relative;
  margin-bottom: 8px;
}

.stories-logo {
  position: relative;
  z-index: 1;
  height: 54px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.stories-title {
  position: relative;
  z-index: 2;
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 100;
  line-height: 1.05;
  color: var(--btn-brick);
  margin: -22px 0 0 0;
  letter-spacing: 0.5px;
}

/* Слайдер историй */
.stories-slider-wrap {
  position: relative;
  width: 100%;
}

.stories-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px var(--section-pad-x) 28px;
  scroll-padding-inline: var(--section-pad-x);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stories-slider::-webkit-scrollbar {
  display: none;
}

.story-slide {
  flex: 0 0 88%; /* видно кусочек следующей */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Аватар: фото крупнее, стежок внутри круга поверх фото */
.story-avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden; /* фото и стежок в одном круге */
}

.story-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.story-avatar-ring {
  position: absolute;
  inset: 4px; /* +~6px к диаметру относительно inset:7px */
  border-radius: 50%;
  border: 1.5px dashed #d99b66;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
  animation: storyRingSpin 18s linear infinite;
}

@keyframes storyRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); } /* по часовой */
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-name {
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--btn-brick);
  margin: 0;
}

.story-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  line-height: 1.3;
  margin: 0;
}

.story-text {
  font-size: var(--section-text-size);
  line-height: var(--section-text-line);
  letter-spacing: var(--section-text-tracking);
  font-weight: 300;
  color: #3b3532;
  margin: 0;
}

/* Градусник — как в usage */
.stories-progress {
  display: flex;
  gap: 8px;
  padding: 0 var(--section-pad-x);
  margin-top: 4px;
}

@media (min-width: 768px) and (max-width: 991px) {
  .stories-wave-top {
    height: 8px;
  }

  .stories-header {
    padding: 12px var(--section-pad-x) 36px;
  }

  .stories-title {
    font-size: 52px;
  }

  .stories-slider {
    gap: 40px;
    padding: 10px var(--section-pad-x) 36px;
  }

  .story-slide {
    flex: 0 0 calc(50% - 20px);
  }

  .stories-progress {
    padding: 0 var(--section-pad-x);
  }

  .story-avatar-wrap {
    width: 168px;
    height: 168px;
  }

  .story-avatar-ring {
    inset: 5px;
  }
}

/* ===== Стрелки слайдеров (только десктоп) ===== */
.slider-arrow {
  display: none;
}

@media (min-width: 992px) {
  .slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(140, 42, 11, 0.25);
    background: rgba(255, 255, 255, 0.92);
    color: #8c2a0b;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
  }

  .slider-arrow::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: block;
  }

  .slider-arrow--prev {
    left: calc(var(--section-pad-x) - 8px);
  }

  .slider-arrow--prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
  }

  .slider-arrow--next {
    right: calc(var(--section-pad-x) - 8px);
  }

  .slider-arrow--next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
  }

  /* На тёмных/светлых фонах стрелки читаемы */
  .stories-slider-wrap .slider-arrow {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* =========================================================
   MOBILE GUARD — поля cover/eco, круг не гигантский, стрелки скрыты
   ========================================================= */
@media (max-width: 991px) {
  :root {
    --section-pad-x: 24px;
    --cover-title-shift-y: -0.72em; /* Meetka на границе фото */
    --gallery-circle-size: 440px;
  }

  .container,
  .cover-content {
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .eco-header-container.container,
  .eco-content-container.container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .gallery-circle-wrap {
    width: 100% !important;
    max-width: 440px !important;
  }

  .slider-arrow {
    display: none !important;
  }

  /* кольца строчки должны крутиться */
  .gallery-circle-ring,
  .story-avatar-ring {
    animation: storyRingSpin 18s linear infinite !important;
  }
  .gallery-circle-ring {
    animation-duration: 64s !important;
  }
}

/* =========================================================
   DESKTOP FINAL OVERRIDE — всегда в самом конце
   ========================================================= */
@media (min-width: 992px) {
  :root {
    /* Левое поле растёт с шириной экрана */
    --section-pad-x: clamp(110px, 11vw, 420px);
    /* Ровно 2 карточки + небольшой peek третьей */
    --rail-max: 880px;
    --slider-peek: 72px;
    --slider-view: calc(var(--rail-max) + var(--slider-peek));
    --stories-gap: 52px;
    --stories-card-w: 360px;
    --content-max: 560px;
    --cover-title-shift-y: -0.82em;
    --usage-logo-shift-y: 12px; /* опускаем Meetka/заголовок от волны */
    --eco-logo-size: 64px;
    --eco-logo-shift-x: 0px;
    --eco-logo-shift-y: 0px;
    --gallery-circle-size: 520px;
  }

  .container,
  .cover-content,
  .header-inner {
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
  }

  .eco-header-container,
  .eco-content-container {
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
    align-items: flex-start !important;
  }

  .eco-brand { justify-content: flex-start !important; }

  .eco-logo-img {
    height: var(--eco-logo-size) !important;
    transform: translate(var(--eco-logo-shift-x), var(--eco-logo-shift-y));
  }

  .eco-illustration-wrap {
    justify-content: flex-start !important;
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
  }

  .eco-illustration { max-width: 560px !important; }

  .eco-description,
  .eco-warning-card,
  .cover-desc,
  .usage-intro,
  .gallery-text {
    max-width: var(--content-max) !important;
  }

  .eco-actions { justify-content: flex-start !important; }

  .cover-title {
    margin-top: var(--cover-title-shift-y) !important;
  }

  .usage-container,
  .stories-container,
  .gallery-container {
    max-width: none !important;
    margin: 0 !important;
    align-items: flex-start !important;
  }

  .usage-wave-top {
    height: 16px !important;
    margin-bottom: 0 !important;
  }

  .usage-header {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
  }

  .stories-wave-top {
    height: 16px !important;
    margin-bottom: 0 !important;
  }

  .stories-header {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
  }

  .usage-logo,
  .stories-logo {
    height: 64px !important;
    margin-top: var(--usage-logo-shift-y) !important;
  }

  /* Окно слайдера: 2 карточки + кусочек третьей, левый край = текст */
  .usage-slider-wrap,
  .stories-slider-wrap {
    position: relative !important;
    width: min(var(--slider-view), calc(100vw - var(--section-pad-x))) !important;
    max-width: var(--slider-view) !important;
    margin-left: var(--section-pad-x) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .usage-slider,
  .stories-slider {
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-left: 0 !important;
    overflow-x: auto !important;
  }

  .stories-slider {
    gap: var(--stories-gap) !important;
  }

  .usage-card {
    flex: 0 0 calc((var(--rail-max) - var(--usage-card-gap)) / 2) !important;
    width: calc((var(--rail-max) - var(--usage-card-gap)) / 2) !important;
    max-width: calc((var(--rail-max) - var(--usage-card-gap)) / 2) !important;
  }

  .story-slide {
    flex: 0 0 var(--stories-card-w) !important;
    width: var(--stories-card-w) !important;
    max-width: var(--stories-card-w) !important;
  }

  .usage-progress,
  .stories-progress {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: var(--rail-max) !important;
    max-width: 100% !important;
  }

  .slider-arrow { display: flex !important; }

  .usage-slider-wrap .slider-arrow--prev,
  .stories-slider-wrap .slider-arrow--prev {
    left: -52px !important;
  }

  .usage-slider-wrap .slider-arrow--next,
  .stories-slider-wrap .slider-arrow--next {
    right: 8px !important;
  }

  .gallery-container {
    padding-left: var(--section-pad-x) !important;
    padding-right: var(--section-pad-x) !important;
  }

  .gallery-circle-wrap {
    width: var(--gallery-circle-size) !important;
    max-width: min(var(--gallery-circle-size), calc(100vw - 2 * var(--section-pad-x))) !important;
    align-items: flex-start !important;
    overflow: visible !important;
  }

  .gallery-circle-frame {
    position: relative !important;
    overflow: visible !important;
  }

  .gallery-arrow {
    z-index: 6 !important;
    width: 46px !important;
    height: 46px !important;
    background: rgba(22, 22, 22, 0.72) !important;
    border: 1px solid rgba(197, 155, 118, 0.45) !important;
    color: #eae0d5 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
    top: 50% !important;
  }

  .gallery-arrow:hover {
    background: rgba(22, 22, 22, 0.9) !important;
  }

  /* Стрелки снаружи круга */
  .gallery-arrow.slider-arrow--prev {
    left: auto !important;
    right: calc(100% + 14px) !important;
  }

  .gallery-arrow.slider-arrow--next {
    right: auto !important;
    left: calc(100% + 14px) !important;
  }

  .gallery-progress {
    top: calc(100% + 20px) !important;
    bottom: auto !important;
    width: 52% !important;
    max-width: 280px !important;
  }

  .gallery-text-wrap {
    max-width: var(--content-max) !important;
    margin: 36px 0 0 !important;
    padding-top: 28px !important;
    align-self: flex-start !important;
  }

  .gallery-video-wrap {
    margin-left: var(--section-pad-x) !important;
    max-width: var(--rail-max) !important;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-pad-x: clamp(140px, 12vw, 480px);
    --rail-max: 920px;
    --slider-peek: 80px;
    --stories-card-w: 380px;
    --stories-gap: 56px;
    --gallery-circle-size: 560px;
  }
}

@media (min-width: 1600px) {
  :root {
    --section-pad-x: clamp(180px, 13vw, 560px);
    --rail-max: 960px;
    --slider-peek: 88px;
    --stories-card-w: 400px;
    --stories-gap: 60px;
    --gallery-circle-size: 600px;
  }
}

@media (min-width: 1920px) {
  :root {
    --section-pad-x: clamp(220px, 14vw, 640px);
    --rail-max: 1000px;
    --slider-peek: 96px;
    --stories-card-w: 420px;
    --stories-gap: 64px;
  }
}

@media (min-width: 2560px) {
  :root {
    --section-pad-x: clamp(280px, 15vw, 720px);
    --rail-max: 1040px;
    --stories-card-w: 440px;
  }
}
/* ================= БЛОК 6: КОРЗИНА (DRAWER) ================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.cart-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: 100%;
  max-width: 440px;
  background: #1c1c1c;
  border-radius: 28px 28px 0 0;
  padding: 14px 22px 28px;
  box-sizing: border-box;
  position: relative;
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  color: #b5b5b5;
  max-height: 94vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.cart-drawer::-webkit-scrollbar { display: none; }

.cart-overlay.is-active .cart-drawer {
  transform: translateY(0);
}

.cart-drag-handle {
  width: 42px;
  height: 4px;
  background: #4a4a4a;
  border-radius: 2px;
  margin: 2px auto 14px;
}

.cart-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  line-height: 0;
  opacity: 0.9;
}

.cart-close:hover { opacity: 1; }

.cart-title {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--text-copper);
  text-align: center;
  margin: 4px 0 8px;
  letter-spacing: 0.2px;
}

/* Брелоки: лёгкий нахлёст, активный впереди */
.cart-products {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 210px;
  margin: 0 0 18px;
  padding: 8px 0 0;
}

.cart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 46%;
  max-width: 168px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), z-index 0s;
}

.cart-item--black { margin-right: -18px; }
.cart-item--beige { margin-left: -18px; }

.cart-item.is-front {
  z-index: 3;
  transform: translateY(-6px) scale(1.06);
}

.cart-item-hit {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  line-height: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cart-item-hit:focus,
.cart-item-hit:focus-visible {
  outline: none;
}

.cart-item-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: filter 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.cart-item.is-front .cart-item-img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65));
}

.cart-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 34px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 26px;
  font-weight: 300;
  color: #6a6a6a;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
  line-height: 1;
}

.qty-btn:hover { color: var(--text-copper); }

.qty-val { min-width: 1.2em; text-align: center; }

/* Форма */
.cart-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cart-input-group label {
  font-size: 13px;
  color: #6a6a6a;
}

.cart-input-group input,
.cart-promo-group input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.cart-input-group input::placeholder,
.cart-promo-group input::placeholder {
  color: #666;
}

.cart-input-group input:focus,
.cart-promo-group input:focus {
  border-color: var(--text-copper);
}

.cart-promo-group {
  position: relative;
  margin-bottom: 16px;
}

.promo-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}

.cart-ozon-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid #2f2f2f;
  margin-bottom: 18px;
  cursor: pointer;
}

.ozon-link {
  color: var(--text-copper);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ozon-status {
  color: #666;
  font-size: 13px;
  text-align: right;
  flex-shrink: 0;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-lines p {
  margin: 0 0 5px;
  font-size: 14px;
  color: #888;
}

.summary-lines .discount-line { color: var(--text-copper); }

.summary-total-wrap {
  text-align: right;
}

.summary-total-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}

.summary-total {
  font-family: 'Roboto', sans-serif;
  font-size: 46px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.summary-total .currency {
  font-size: 22px;
  margin-left: 3px;
}

.cart-submit-btn {
  position: relative;
  width: 100%;
  background: var(--btn-brick);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 6px 18px rgba(140, 42, 11, 0.4);
}

.cart-submit-btn::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.cart-submit-btn:hover {
  background: #a3320d;
  transform: translateY(-1px);
}

.cart-policy {
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: #555;
  margin: 12px 0 0;
}

@media (min-width: 768px) {
  .cart-overlay {
    align-items: center;
    padding: 24px;
  }

  .cart-drawer {
    border-radius: 28px;
    max-width: 460px;
  }

  .cart-drag-handle { display: none; }

  .cart-products { min-height: 230px; }

  .cart-item { max-width: 180px; }
}