/* Прайс — по утверждённому фрейму PRICE (1200 px): одна панель 921 px со скруглением 50, сверху на ней
   переключатель «Арт · Риг · Чиби», заголовок над панелью меняется с вкладкой. Стрелки снаружи панели и точки
   под ней — только если у вкладки несколько форматов. Ниже — ANIMATION. */
.price { position: relative; }
.price__block + .price__block { margin-top: 82px; }
.price__block .section-head .title-xl { margin-bottom: -0.2em; }

.price__stage { position: relative; max-width: 921px; margin-inline: auto; }
/* стекло панели — общее .glass.glass--glow с рефракцией (js/core/glass.js), фон не переопределяем */
/* у всех вкладок одна высота панели (макет 794 + полоса переключателя), чтобы при переключении ничего не прыгало;
   выше становится, только если раскрыть все допы */
.price__panel { border-radius: 50px; min-height: 880px; }
.price__slide { position: relative; z-index: 1; min-height: inherit; }
/* уходящий при переключении слайд гаснет поверх нового на своём месте (js: show) */
.price__slide.is-leaving { position: absolute; inset: 0 0 auto; z-index: 2; pointer-events: none; }
.price__title { display: inline-block; }

/* Переключатель: тёмная утопленная дорожка, по ней перетекает стеклянная капля (js: moveThumb) */
.price__tabs {
  position: absolute; z-index: 4; top: 22px; left: 50%; translate: -50% 0;
  display: flex; padding: 5px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(18,8,30,.32));
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.12), 0 14px 34px -16px rgba(160,80,255,.6);
}
.price__tab {
  position: relative; z-index: 1; min-width: 104px; height: 42px; padding: 0 24px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
}
.price__tab:hover { color: rgba(255,255,255,.85); }
.price__tab[aria-selected="true"] { color: #fff; text-shadow: 0 0 14px rgba(244,129,255,.75); }
.price__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.price__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; pointer-events: none; transform-origin: center;
  background:
    radial-gradient(120% 120% at 30% -10%, rgba(255,255,255,.34), rgba(255,255,255,.06) 55%, rgba(255,255,255,0) 70%),
    linear-gradient(135deg, rgba(233,139,255,.42), rgba(150,85,255,.26) 55%, rgba(110,46,220,.32));
  -webkit-backdrop-filter: blur(6px) saturate(1.6) brightness(1.15); backdrop-filter: blur(6px) saturate(1.6) brightness(1.15);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -2px 6px rgba(255,255,255,.1), 0 0 20px rgba(233,139,255,.4), 0 6px 16px rgba(0,0,0,.35);
}
/* кант капли, как у стекла: белый сверху-слева, розовый снизу-справа */
.price__thumb::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.1) 35%, rgba(255,255,255,0) 60%, rgba(250,170,255,.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* колонка с ценами: у арта слева (x 24, ширина 612), у рига справа (x 420, ширина 486); «Базовая цена включает» — внизу колонки у обоих */
.price__info { position: relative; z-index: 2; width: 612px; max-width: 100%; padding: 104px 0 40px 24px; }
/* у рига ширина от панели (правый отступ 15), а не фиксированная — на узкой панели колонка не вылезает за край */
.price__slide--rig .price__info { width: auto; max-width: 486px; margin: 0 15px 0 420px; padding: 104px 0 40px; }

.price__base, .price__extra { border-radius: 30px; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(1,1,1,0)); }
.price__base { display: flex; align-items: center; justify-content: space-between; height: 73px; margin-bottom: 14px; padding: 0 146px 0 26px; font-family: var(--f-display); font-weight: 400; font-size: 22.5px; text-transform: uppercase; }
.price__slide--rig .price__base { padding-right: 51px; }
.price__base span { display: inline-flex; align-items: center; gap: 8px; }
/* у чиби рядом с форматом — «арт + риг»: заказывается только целиком */
.price__base small { align-self: center; margin: .15em 0 0 4px; font-size: .62em; letter-spacing: .04em; color: #f481ff; }
.price__base .sparkle { width: 18px; height: 18px; color: #f157ff; }
.price__base b { font-weight: 400; white-space: nowrap; }
.price__slide--rig .price__base b { font-size: 26px; }

.price__extra { min-height: 334px; padding: 13px 0 22px 26px; }
.price__extra-head, .price__extra ul { width: 439px; max-width: calc(100% - 26px); }
.price__slide--rig .price__extra-head, .price__slide--rig .price__extra ul { width: 431px; }
.price__extra-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1.6px solid #fff; font-family: var(--f-display); font-weight: 400; font-size: 15.6px; line-height: 23px; }
.price__extra-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.price__extra-head .sparkle { width: 11px; height: 11px; }
/* под заголовком одна белая черта, у списка своей верхней границы нет — иначе линия двоится */
.price__extra ul { list-style: none; margin: 0; padding: 0; }
.price__extra li { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: center; gap: 4px; min-height: 30px; padding: 4px 0; border-bottom: .8px solid #838383; font-family: var(--f-display); font-weight: 300; font-size: 12.6px; line-height: 13px; letter-spacing: .11em; }
.price__extra li i, .price__extra li b { font-style: normal; font-weight: 400; font-size: 14px; letter-spacing: 0; color: #f481ff; text-align: right; white-space: nowrap; }
.price__slide--rig .price__extra li b { font-weight: 300; }
.price__extra li b.is-req { color: #fff; font-size: 12px; }
.price__extra li.is-extra { display: none; }
.price__extra.is-open li.is-extra { display: grid; }
.price__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 2px; border: 0; background: none; cursor: pointer; font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #f481ff; }
.price__more svg { width: 14px; height: 14px; transition: transform .3s; }
.price__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.price__more:hover { text-shadow: var(--neon-text); }

/* «Калькулятор цен» — тёмная плашка 175×31 по центру таблицы */
.price__to-calc {
  display: flex; align-items: center; justify-content: center; width: 175px; height: 31px; margin: 21px 0 0 calc(26px + (439px - 175px) / 2);
  border-radius: 10px; background: rgba(0,0,0,.7); text-decoration: none; transition: background .2s, box-shadow .2s;
  font-family: var(--f-round); font-weight: 400; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.price__slide--rig .price__to-calc { margin-left: calc(27px + (431px - 175px) / 2); }
.price__to-calc:hover { background: rgba(0,0,0,.9); box-shadow: var(--neon-glow-soft); }

.price__includes { margin: 31px 0 0 29px; max-width: 447px; font-family: var(--f-round); font-weight: 300; font-size: 12.9px; line-height: 17px; letter-spacing: .02em; }
.price__includes p { margin: 0 0 17px; font-weight: 700; }
.price__includes ul { list-style: none; margin: 0 0 17px; padding: 0; }
.price__includes li { display: flex; gap: 6px; align-items: center; }
.price__includes .sparkle { width: 11px; height: 11px; color: #f98eff; flex: none; }
.price__includes .price__includes-note { margin: 0; font-weight: 300; }

/* медиа: арт — персонаж справа (349×714), риг — видео в белой рамке слева (347×710, скругление 45) */
.price__media { position: absolute; z-index: 1; display: grid; place-items: center; }
/* персонаж привязан и к верху, и к низу панели — высота от панели, за край не выходит */
.price__media--art { display: block; right: 16px; top: 92px; bottom: 44px; width: 349px; }   /* block, не grid: в grid-ячейке height:100% у картинки не ограничивает её высоту */
.price__media--art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
/* к низу прижат только персонаж в полный рост (ноги на месте); чиби — почти квадратная картинка, ставим по центру по высоте */
.price__media--art[data-format="chibi1"] img { object-position: center; }
/* рамка рига — лёгкое стекло поверх панели: светлый налёт и блик по верхней кромке. Без своего backdrop-filter:
   рамка внутри слайда, а слайд при смене вкладки проявляется прозрачностью — на это время Chrome отдаёт размытию
   рамки пустой фон, и в конце она рывком меняет яркость («аквариум мигает»). Панель под ней и так размыта. */
.price__media--rig {
  left: 37px; top: 92px; bottom: 50px; width: 347px; border: 1px solid rgba(255,255,255,.85); border-radius: 45px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05) 45%, rgba(255,255,255,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -20px 40px rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.25);
}
.price__media--rig video, .price__media--rig img { width: 100%; height: 100%; object-fit: cover; }
/* ролик с прозрачностью — по высоте рамки: у исходника (688×1280) поля по бокам пустые, и при «вписать целиком»
   модель занимала две трети рамки. По бокам срезается ~25 px пустого поля, руки, уши и хвост внутри */
.price__media--rig.is-alpha video, .price__media--rig.is-alpha img { object-fit: cover; filter: drop-shadow(0 14px 24px rgba(0,0,0,.35)); }
/* вкладка «Чиби»: та же рамка, но справа (слева цены). Ролик чиби почти квадратный (560×640, с запасом на наклоны
   головы) — вписан по ширине рамки целиком, чтобы уши и косы не срезались */
.price__slide--art .price__media--rig { left: auto; right: 37px; }
.price__slide--art .price__media--rig.is-alpha video, .price__slide--art .price__media--rig.is-alpha img { object-fit: contain; }
/* плашки цены и допов кончаются до рамки (24 px зазор), а не уходят под её стекло */
@media (min-width: 961px) {
  .price__slide--art:has(.price__media--rig) .price__info { width: min(612px, calc(100% - 408px)); }
}

.price__arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 45px; height: 45px; border: 0; background: none; cursor: pointer; color: #fff; display: grid; place-items: center; }
.price__arrow svg { width: 30px; height: 30px; stroke-width: 2.6; }
.price__arrow:hover { color: var(--accent); }
.price__arrow--prev { left: -66px; }
.price__arrow--next { right: -68px; }

.price__dots { display: flex; justify-content: center; gap: 26px; margin-top: 13px; }
.price__dots button { width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; background: #000; cursor: pointer; transition: background .2s, box-shadow .2s; }
.price__dots button[aria-current="true"] { background: #f98eff; box-shadow: 0 0 10px rgba(249,142,255,.6); }

/* ANIMATION: картинка 850×478, под ней вплотную тёмная плашка с ценой (на картинку не заходит,
   снизу скругление как у картинки сверху), ниже условия */
.price__panel--anim { max-width: 922px; min-height: 750px; margin-inline: auto; padding: 50px 36px 34px; }
.price__anim-media { position: relative; z-index: 1; height: 478px; border-radius: 30px 30px 0 0; overflow: hidden; }
.price__anim-media img { width: 100%; height: 100%; object-fit: cover; }
.price__anim-range { position: relative; z-index: 2; display: flex; align-items: center; height: 118px; margin: 0; padding: 0 34px; border-radius: 0 0 30px 30px; background: rgba(0,0,0,.7); font-family: var(--f-display); font-weight: 300; font-size: 32px; line-height: 30px; text-transform: uppercase; }
.price__anim-range b { margin-left: .3em; font-weight: 300; color: #f481ff; }
.price__anim-terms { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding: 29px 34px 0; font-family: var(--f-display); font-weight: 400; font-size: 16px; line-height: 24px; }
.price__anim-terms ul { list-style: none; margin: 0; padding: 0; }
.price__anim-terms li { display: flex; align-items: center; gap: 8px; }
.price__anim-terms .sparkle { width: 12px; height: 12px; color: #f481ff; flex: none; }
.price__anim-extras { width: 300px; }
.price__anim-extras i { flex: 1; align-self: center; height: 0; margin-top: 10px; border-bottom: .8px solid #fff; }
.price__anim-extras b { font-weight: 400; color: #f481ff; white-space: nowrap; }

/* 961–1060 (в т.ч. вертикальные мониторы): места снаружи панели под стрелки нет — сужаем панели на поля
   под стрелки, чтобы стрелки не ложились на цены; таблица арта сужается и не заходит под персонажа */
@media (max-width: 1060px) {
  .price__stage:has(.price__arrow:not([hidden])) { padding-inline: 42px; }
  .price__panel--anim { margin-inline: 42px; }
  .price__arrow { width: 40px; }
  .price__arrow--prev { left: 0; }
  .price__arrow--next { right: 0; }
  .price__slide--art .price__info { width: min(612px, calc(100% - 390px)); }
  .price__base { padding-right: 26px; }
}
@media (max-width: 960px) {
  .price__panel { min-height: 0; }
  /* переключатель — в потоке над ценами, а не поверх панели */
  .price__tabs { position: relative; top: auto; left: auto; translate: none; width: max-content; max-width: calc(100% - 24px); margin: 22px auto 0; }
  .price__stage { padding-inline: 0; }
  .price__panel--anim { margin-inline: auto; }
  .price__info, .price__slide--art .price__info, .price__slide--rig .price__info { width: auto; max-width: none; margin: 0; padding: 26px 20px 30px; }
  .price__media { position: relative; inset: auto; margin: 26px auto 0; }
  .price__media--art { width: min(260px, 70%); height: 520px; }
  .price__slide--art .price__media--rig { inset: auto; }
  .price__media--rig { width: min(300px, 80%); height: 540px; }
  .price__base { padding-right: 26px; }
  .price__extra-head, .price__extra ul, .price__slide--rig .price__extra-head, .price__slide--rig .price__extra ul { width: auto; max-width: none; margin-right: 26px; }
  .price__to-calc, .price__slide--rig .price__to-calc { margin-inline: auto; }

  .price__includes { margin-left: 8px; }
  /* на узком экране стрелки — внизу по бокам от точек, чтобы не закрывать цены */
  .price__arrow { top: auto; bottom: -44px; translate: none; width: 40px; height: 40px; }
  .price__arrow--prev { left: calc(50% - 100px); }
  .price__arrow--next { right: calc(50% - 100px); }
  .price__dots { margin-top: 26px; }
  .price__panel--anim { padding: 20px 16px 26px; }
  .price__anim-media { height: auto; aspect-ratio: 850 / 478; }
  .price__anim-range { height: 80px; font-size: 24px; padding-inline: 20px; }
  .price__anim-terms { flex-direction: column; padding-inline: 12px; font-size: 15px; }
  .price__anim-extras { width: auto; }
}
@media (max-width: 560px) {
  .price__tab { min-width: 0; height: 38px; padding: 0 16px; font-size: 15px; letter-spacing: .12em; }
  .price__base { font-size: 19px; }
  .price__extra li { grid-template-columns: minmax(0, 1fr) auto 64px; letter-spacing: .05em; }
}
