/* ===== БАЗА (если не было) ===== */
:root{
  --accent:#7b2cbf;
  --accent-2:#d63384;
  --gold:#f1c232;
  --radius:20px;
  --shadow:0 6px 20px rgba(0,0,0,.12);
  --max:1280px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;color:#222;background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

:root {
  /* Основные параметры сториз */
  --story-width: 430px;            /* ширина активной карточки */
  --story-ratio: 9 / 16;           /* соотношение сторон */
  --story-max-height: 88vh;        /* максимальная высота */
  --story-radius: 28px;            /* скругление углов */
  --story-shadow: 0 20px 80px rgba(0,0,0,.6); /* тень */
  --story-side-width: 270px;
  --story-progress-top: 14px;
  --story-cta-bottom: 22px;
}

/* ===== HERO (full-bleed) ===== */
.hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);overflow:hidden;
      height:90dvh;min-height:420px;max-height:none}
.hero .slider{display:flex;height:100%;transition:transform .6s ease}
.hero .slide{min-width:100%;height:100%;position:relative}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .gradient{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.15),rgba(0,0,0,.55))}


.hero .caption {
  position: absolute;
  /* Отодвигаем от левого края, чтобы не попадать в зону кнопки 'Назад' */
  left: 12%; 
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 560px;
  /* Устанавливаем самый высокий приоритет над всеми слоями */
  z-index: 100; 
  /* Разрешаем клики по всему контейнеру капшена */
  pointer-events: auto; 
}

.hero .kicker{letter-spacing:.18em;text-transform:uppercase;font-size:12px;opacity:.9;margin-bottom:6px}
.hero .title{font-family:"Playfair Display",serif;font-weight:700;font-size:48px;line-height:1.05;margin:0 0 14px}
.hero .subtitle{opacity:.95;margin-bottom:18px}

.hero .cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(270deg, #d63384, #7b2cbf, #d63384);
  background-size: 400% 400%;
  animation: gradientFlow 6s ease infinite;
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.5);
  transition: transform 0.3s ease;
  
  /* Важно: Удаляем старые z-index 11 и 25, ставим один четкий */
  position: relative;
  z-index: 110; 
  pointer-events: auto;
  cursor: pointer;
}

.hero .cta:hover {
  transform: scale(1.06);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero .nav-zones {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  /* Контейнер полностью игнорирует клики, пропуская их к кнопке */
  pointer-events: none; 
  z-index: 50; 
}

.hero .nav-zones button {
  appearance: none;
  background: transparent;
  border: 0;
  /* Уменьшаем ширину до 10%, чтобы зоны переключения были только по самым краям */
  width: 10%; 
  height: 100%;
  cursor: pointer;
  /* Сами кнопки перехватывают клик только в своих 10% */
  pointer-events: auto; 
}


.hero .dots{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:8px}
.hero .dots button{width:10px;height:10px;border-radius:50%;border:0;background:#ffffff55}
.hero .dots button.active{background:#fff}

@media (max-width: 600px) {
  .hero .caption {
    left: 5%;
    max-width: 90%;
  }
  .hero .nav-zones button {
    width: 8%;
  }
}

/* ===== STORIES (центр + «кольца») ===== */
.stories{background:#fff;padding:18px 0 6px;border-bottom:1px solid #eee}
/* Внеси правки в .stories .track */
.stories .track {
  display: flex;
  gap: 26px;
  overflow-x: auto; /* Позволяет листать */
  padding: 10px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Плавность на iOS */
  justify-content: center;
}
/* Скрой полосу прокрутки, чтобы было чисто */
.stories .track::-webkit-scrollbar {
  display: none;
}

.story {
  flex: 0 0 auto;
  display: flex;         /* Добавлено */
  flex-direction: column; /* Добавлено */
  align-items: center;    /* Добавлено: центрирует всё внутри кнопки по горизонтали */
  text-align: center;
  color: #555;
  font-size: 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;             /* Убираем дефолтные отступы кнопки */
}

.story .ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, #ff8bd1, #7b2cbf, #ff8bd1);
}

.story.is-viewed .ring {
  background: linear-gradient(135deg, #d7d7d7, #a7a7a7);
}

.story .circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.story .inner {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
}

.story .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.story .label {
  margin-top: 8px;
  width: 100%;           /* Чтобы текст мог занимать всю ширину кнопки */
  line-height: 1.2;
}

.story:hover .inner{transform:scale(1.03);transition:.2s}

/* ===== Stories modal (lightbox) ===== */
.stories-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1000;
}

.stories-modal[aria-hidden="false"]{
  display:block;
}

.stories-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7, 7, 7, .88);
  backdrop-filter: blur(6px);
}

.stories-viewer{
  position:relative;
  z-index:1;
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 72px;
}

.stories-rail{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  max-width:1400px;
  overflow:hidden;
}

.stories-card{
  position:relative;
  flex:0 0 var(--story-side-width);
  width:var(--story-side-width);
  aspect-ratio:var(--story-ratio);
  border:0;
  border-radius:var(--story-radius);
  overflow:hidden;
  background:#111;
  cursor:pointer;
  padding:0;
  color:#fff;
  box-shadow:0 20px 50px rgba(0,0,0,.28);
  transform:scale(.9);
  opacity:.35;
  transition:transform .25s ease, opacity .25s ease, filter .25s ease;
}

.stories-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 42%, rgba(0,0,0,.72) 100%);
  pointer-events:none;
}

.stories-card.is-active{
  flex-basis:min(var(--story-width), calc(var(--story-max-height) * var(--story-ratio)));
  width:min(var(--story-width), calc(var(--story-max-height) * var(--story-ratio)));
  max-height:var(--story-max-height);
  opacity:1;
  transform:scale(1);
  filter:none;
  box-shadow:var(--story-shadow);
}

.stories-card:not(.is-active):hover{
  opacity:.58;
  transform:scale(.94);
}

.stories-card.is-hidden{
  display:none;
}

.stories-media{
  position:absolute;
  inset:0;
  background:#121212;
}

.stories-media > video,
.stories-media > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#111;
}

.stories-card:not(.is-active) .stories-media > video,
.stories-card:not(.is-active) .stories-media > img{
  filter:grayscale(.08) brightness(.72);
}

.stories-progress{
  position:absolute;
  top:var(--story-progress-top);
  left:14px;
  right:14px;
  display:flex;
  gap:6px;
  pointer-events:none;
  z-index:4;
}

.stories-progress .seg{
  flex:1;
  height:3px;
  background:rgba(255,255,255,.28);
  border-radius:999px;
  overflow:hidden;
}

.stories-progress .seg .bar{
  width:0;
  height:100%;
  background:#fff;
}

.stories-card-head{
  position:absolute;
  top:28px;
  left:16px;
  right:16px;
  display:flex;
  align-items:center;
  gap:10px;
  z-index:4;
  pointer-events:none;
}

.stories-card-head img{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.45);
}

.stories-card-meta{
  min-width:0;
}

.stories-card-title,
.stories-card-label{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stories-card-title{
  font-size:14px;
  font-weight:700;
  color:#fff;
}

.stories-card-label{
  font-size:12px;
  color:rgba(255,255,255,.82);
  margin-top:2px;
}

.stories-card-copy{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:4;
  pointer-events:none;
}

.stories-card-copy .stories-card-title{
  font-size:clamp(15px, 2vw, 18px);
}

.stories-card-copy .stories-card-label{
  font-size:clamp(12px, 1.6vw, 14px);
  margin-top:6px;
}

.stories-card.is-active .stories-card-copy{
  bottom:24px;
}

.stories-card.is-active .stories-card-copy .stories-card-title{
  font-size:22px;
}

.stories-card.is-active .stories-card-copy .stories-card-label{
  font-size:15px;
}

.stories-card.is-active.has-cta .stories-card-copy{
  bottom:84px;
}

.stories-media .cta-button{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#141414;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 14px 30px rgba(0,0,0,.24);
  z-index:5;
}

.stories-zone{
  position:absolute;
  top:0;
  bottom:0;
  width:50%;
  background:transparent;
  border:0;
  cursor:pointer;
  z-index:5;
}

.stories-zone.left{
  left:0;
}

.stories-zone.right{
  right:0;
}

.stories-close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  z-index:2;
  backdrop-filter:blur(10px);
}

@media (max-width: 980px){
  .stories-viewer{
    padding:20px 16px;
  }

  .stories-rail{
    gap:12px;
  }

  .stories-card{
    flex-basis:220px;
    width:220px;
  }
}

@media (max-width: 700px){
  :root{
    --story-width: min(100vw - 24px, 420px);
    --story-max-height: min(100dvh - 24px, 820px);
  }

  .stories-viewer{
    padding:12px;
    align-items:stretch;
  }

  .stories-rail{
    max-width:none;
  }

  .stories-card{
    display:none;
  }

  .stories-card.is-active{
    display:block;
    width:100%;
    flex-basis:100%;
    max-height:none;
  }

  .stories-close{
    top:14px;
    right:14px;
  }
}

/* превью-круги чуть кликабельнее */
.story{ background:transparent; border:0; cursor:pointer; }
.story:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }

/* ===== СЕкция/заголовок ===== */
.section-head{display:flex;justify-content:space-between;align-items:end;margin:34px 0 18px}
.section-head h2{margin:0;font-size:26px;font-family:"Playfair Display",serif;color:var(--accent)}
.section-head a{color:#333;opacity:.7}
.section-head a:hover{opacity:1}

/* ===== Карточки товаров ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}
.product{background:#faf6fb;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.product:hover{transform:translateY(-4px)}
.product img{aspect-ratio:1/1;object-fit:cover}
.product .body{padding:14px}
.product .brand{font-size:12px;color:#888;text-transform:uppercase}
.product .name{margin:6px 0;font-weight:600;font-family:"Playfair Display",serif;font-size:18px;color:#333}
.product .price{font-weight:700;font-size:16px;margin-top:8px;color:var(--gold)}

/* ===== Баннер ===== */
.banner{margin:36px 0;border-radius:var(--radius);overflow:hidden;position:relative;box-shadow:var(--shadow)}
.banner img{width:100%;height:320px;object-fit:cover;display:block}
.banner .inner{position:absolute;left:1%;top:50%;transform:translateY(-50%);color:#fff}
.banner .inner h3{font-size:34px;margin:0 0 12px;font-weight:700;font-family:"Playfair Display",serif}
.banner .cta{display:inline-block;padding:10px 20px;border-radius:999px;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));font-weight:600}
.banner {
  max-width: 900px;   /* выбери ширину под макет, например 900px */
  margin: 36px auto;  /* сверху/снизу 36px, по бокам авто → центр */
}
.banner img {
  width: 100%;        /* пусть картинка подгоняется под блок */
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ===== Футер ===== */
footer{margin-top:40px;background:#faf6fb;border-top:1px solid #eee;color:#555}
.foot{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:20px;padding:30px 0}
.foot h4{margin:0 0 10px;color:var(--accent);font-family:"Playfair Display",serif}
.foot ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.copyright{border-top:1px solid #eee;padding:14px 0;text-align:center;font-size:13px;color:#777}

@media (max-width:920px){
  .foot{grid-template-columns:1fr 1fr}
}


/* ===== Floating Contact Button ===== */
.floating-consult {
  position: fixed;
  right: 28px;
  bottom: 32px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  z-index: 999;
  cursor: pointer;

  background: linear-gradient(270deg, #d63384, #7b2cbf, #d63384);
  background-size: 320% 320%;
  animation: consultGradient 5s ease infinite;

  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.45),
              0 3px 10px rgba(0,0,0,0.2);

  transition: transform .25s ease, box-shadow .25s ease;
}

.floating-consult:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(123, 44, 191, 0.55),
              0 5px 14px rgba(0,0,0,0.25);
}

@keyframes consultGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* MOBILE — уменьшим немного */
@media (max-width: 600px) {
  .floating-consult {
    padding: 14px 26px;
    font-size: 14px;
    right: 20px;
    bottom: 22px;
  }
}
