/* Блок сторис: полоса с кружками и просмотр на весь экран */
/* фон продолжает картинку первого экрана: её низ отражён зеркально, стыка не видно */
.vs-band {
  position: relative;
  overflow: hidden;
  background: #f1c232;
  padding: 18px 16px 14px;
  margin-top: -2px; /* прячем светлую последнюю строку картинки первого экрана */
}
.vs-band::before {
  content: "";
  position: absolute;
  inset: 0;
  /* телефон и планшет: внизу картинки пачки, поэтому градиент в цветах первого экрана */
  background:
    repeating-conic-gradient(from 0deg at 50% -60%, rgba(255, 255, 255, .16) 0deg 2deg, transparent 2deg 7deg),
    radial-gradient(ellipse 70% 140% at 50% 0%, #fff7b8 0%, #fae58a 35%, #f2c94a 75%, #e9b42e 100%);
}
/* компьютер: низ картинки первого экрана отражён зеркально, лучи продолжаются без шва */
.vs-band.vs-band--mirror::before {
  /* элемент перевёрнут: «to bottom» здесь гасит нижний край полосы, где в отражении начинаются пачки */
  background:
    linear-gradient(to bottom, #f0c445 0%, rgba(240, 196, 69, 0) 45%),
    var(--vs-hero, none) center bottom / 100% auto no-repeat;
  transform: scaleY(-1);
}
.vs-band__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.vs-band__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: #6b2a12;
  text-transform: uppercase;
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.vs-band__title small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  color: #8a5a3c;
  letter-spacing: 0;
  margin-top: 4px;
}
.vs-list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.vs-list::-webkit-scrollbar { display: none; }

.vs-item {
  flex: 0 0 auto;
  width: 92px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: center;
  color: #4a1f0c;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}
.vs-ring {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 6px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(#d8232a, #f39200, #ffd23f, #d8232a);
  transition: transform .15s;
}
.vs-item:hover .vs-ring,
.vs-item:focus-visible .vs-ring { transform: scale(1.05); }
.vs-item:focus-visible { outline: none; }
.vs-item:focus-visible .vs-ring { box-shadow: 0 0 0 3px #6b2a12; }
.vs-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #fbf3e0;
  overflow: hidden;
  background: #3a1a0c;
}
.vs-thumb video,
.vs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vs-item.is-seen .vs-ring { background: #cbb89a; }
.vs-item.is-soon { cursor: default; }
.vs-item.is-soon .vs-ring { background: #d9cbb3; }
.vs-item.is-soon .vs-thumb img { filter: grayscale(1); opacity: .6; }
.vs-item.is-soon .vs-label::after {
  content: "скоро";
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #9a7d62;
}

/* Просмотр */
.vs-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: none;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.vs-viewer.is-open { display: block; }
.vs-viewer__bg {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) brightness(.55) saturate(1.2);
  transform: scale(1.1);
}
.vs-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, calc((100vh - 140px) * 16 / 9), 1280px);
  aspect-ratio: 16 / 9;
}
.vs-stage video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  background: #000;
}
@media (max-width: 700px) {
  .vs-stage video { border-radius: 0; }
}

.vs-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 12px 14px 0;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
}
.vs-progress {
  display: flex;
  gap: 4px;
}
.vs-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.vs-progress span i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.vs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #fff;
  font: 600 14px/1.2 Arial, sans-serif;
}
.vs-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd23f;
}
.vs-head small {
  display: block;
  font-weight: 400;
  opacity: .75;
}
.vs-btn {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  cursor: pointer;
}
.vs-btn + .vs-btn { margin-left: 6px; }

.vs-tap {
  position: absolute;
  top: 90px;
  bottom: 110px;
  width: 35%;
  z-index: 2;
}
.vs-tap--prev { left: 0; }
.vs-tap--next { right: 0; }

.vs-cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  display: flex;
  gap: 10px;
  transition: opacity .3s, transform .3s;
}
.vs-cta.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.vs-cta a,
.vs-cta button {
  border: 0;
  border-radius: 28px;
  padding: 14px 26px;
  font: 700 16px/1 Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.vs-cta a {
  background: #d8232a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(216, 35, 42, .45);
}
.vs-cta button {
  background: rgba(255, 255, 255, .9);
  color: #4a1f0c;
}

.vs-paused {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  font: 600 14px Arial, sans-serif;
  background: rgba(0, 0, 0, .5);
  padding: 8px 14px;
  border-radius: 16px;
  display: none;
}
.vs-viewer.is-held .vs-paused { display: block; }

/* Метка макета */
.vs-mock-tag {
  position: fixed;
  right: 12px;
  top: 12px;
  cursor: pointer;
  z-index: 9999;
  background: #4a1f0c;
  color: #fff;
  font: 600 12px/1.3 Arial, sans-serif;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  max-width: 230px;
}
.vs-mock-tag.is-hidden { display: none; }

@media (max-width: 700px) {
  .vs-band { padding: 14px 0 10px; }
  .vs-band__inner { display: block; }
  .vs-band__title { font-size: 17px; padding: 0 16px 10px; }
  .vs-band__title small { display: inline; margin-left: 6px; }
  .vs-list { padding: 2px 16px; gap: 14px; }
  .vs-item { width: 76px; font-size: 12px; }
  .vs-ring { width: 72px; height: 72px; }
  .vs-cta { bottom: 22px; }
  .vs-cta a, .vs-cta button { padding: 13px 20px; font-size: 15px; }
}

@media (min-width: 1000px) {
  .vs-band { padding: 24px 16px 18px; }
  .vs-band__title { font-size: 26px; }
  .vs-band__title small { font-size: 14px; }
  .vs-item { width: 112px; font-size: 14px; }
  .vs-ring { width: 104px; height: 104px; }
  .vs-list { gap: 24px; }
}

/* Второй этаж шапки (компьютер, планшет): строка кругов под меню */
.vs-hdr {
  position: absolute;
  z-index: 5;
  display: none;
  width: max-content;
  transform: translate(-50%, -50%);   /* left/top задают центр блока */
}
.vs-in-head .vs-hdr { display: block; }
.vs-in-head .vs-band { display: none; }
.vs-hdr .vs-list {
  gap: 44px;
  padding: 0;
  overflow: visible;
  width: max-content;
}
.vs-hdr { color: #4a1f0c; }
.vs-hdr .vs-item {
  width: 132px;
  font-size: 28px;
  line-height: 1.1;
  color: inherit;
}
.vs-hdr .vs-ring {
  width: 120px;
  height: 120px;
  padding: 4px;
  margin-bottom: 6px;
}
.vs-hdr .vs-thumb { border-color: #fff4c8; }
.vs-hdr .vs-item.is-soon .vs-label::after { font: 400 15px/1.2 Arial, sans-serif; color: inherit; opacity: .75; }

/* Телефон: один кружок в шапке, кольцо из сегментов по числу роликов */
.vs-one {
  position: absolute;
  z-index: 5;
  display: none;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);   /* left/top задают центр */
}
.vs-in-head-one .vs-one { display: block; }
.vs-in-head-one .vs-band { display: none; }
.vs-one__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vs-one__ring path {
  fill: none;
  stroke: #d8232a;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.vs-one__ring path.is-seen { stroke: #b9a27e; }
.vs-one__img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.vs-one:focus-visible { outline: 3px solid #6b2a12; outline-offset: 2px; border-radius: 50%; }
@media (max-width: 700px) {
  .vs-mock-tag { top: auto; bottom: 12px; }
}
.vs-one__img { object-position: 52% 45%; }

/* Заливка над сдвинутой картинкой первого экрана: её верх, отражённый зеркально */
.vs-topfill {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--vs-hero, #f6d64a) center top / 100% auto no-repeat;
  transform: scaleY(-1);
  pointer-events: none;
}

/* Меню крупнее (компьютер; на узких экранах у сайта свои размеры) */
@media (min-width: 1100px) {
  .vs-two .wrapper_header .header_menu > ul > li > a { font-size: 32px; }
  .vs-two .wrapper_header .header_menu > ul > li { margin-left: 52px; }
  .vs-two .wrapper_header .lang_header .item_lang,
  .vs-two .wrapper_header .lang_header .sep_lang { font-size: 20px; }
}

/* Большие мониторы: шапка сайта фиксированной ширины, поэтому меню и круги ещё на ступень крупнее */
@media (min-width: 1600px) {
  .vs-two .wrapper_header .header_menu > ul > li > a { font-size: 38px; }
  .vs-two .wrapper_header .header_menu > ul > li { margin-left: 56px; }
  .vs-two .wrapper_header .lang_header .item_lang,
  .vs-two .wrapper_header .lang_header .sep_lang { font-size: 22px; }
  .vs-hdr .vs-list { gap: 56px; }
  .vs-hdr .vs-item { width: 152px; font-size: 32px; }
  .vs-hdr .vs-ring { width: 140px; height: 140px; }
  .vs-hdr .vs-item.is-soon .vs-label::after { font-size: 17px; }
}

/* Внутренние страницы: строка кругов в потоке под шапкой */
.vs-row { display: none; }
.vs-in-head .vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-hdr.vs-hdr--flow {
  position: static;
  transform: none;
  z-index: auto;   /* во flex-строке z-index работал бы и поднимал круги над выпадающим меню */
}

/* Выпадающее меню «Продукты» поверх строки кругов */
.vs-two .wrapper_header .header_menu {
  position: relative;
  z-index: 10;
}
.vs-two .wrapper_header .header_menu > ul > li > ul { width: auto; min-width: 100%; }
.vs-two .wrapper_header .header_menu > ul > li > ul a { white-space: nowrap; }

/* Плавающая шапка (при прокрутке): маленькие круги без подписей */
.vs-hdr.vs-hdr--fix { display: none; }
.vs-fix-three .vs-hdr.vs-hdr--fix { display: block; }
.vs-hdr.vs-hdr--fix .vs-list { gap: 16px; }
.vs-hdr.vs-hdr--fix .vs-item { width: 60px; }
.vs-hdr.vs-hdr--fix .vs-ring {
  width: 60px;
  height: 60px;
  padding: 3px;
  margin: 0;
}
.vs-hdr.vs-hdr--fix .vs-thumb { border-width: 2px; }
.vs-hdr.vs-hdr--fix .vs-label { display: none; }
.vs-one.vs-one--fix {
  display: none;
  width: 48px;
  height: 48px;
}
.vs-fix-one .vs-one.vs-one--fix { display: block; }
.vs-one.vs-one--fix .vs-one__img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
