.theme-v8 {
  --v8-ink: #243140;
  --v8-muted: #5d6b7a;
  --v8-line: rgba(36, 49, 64, 0.12);
  --v8-card: #fffdf9;
  --v8-navy: #243140;
  --v8-teal: #2f7f9a;
  --v8-mint: #e7f6ee;
  --v8-mint-ink: #1f7a45;
  --v8-max: 920px;
  padding-bottom: calc(5.6rem + env(safe-area-inset-bottom));
  background: #f6f1e8;
}

.theme-v8 .shell {
  width: min(var(--v8-max), calc(100% - 2rem));
  max-width: var(--v8-max);
  margin-inline: auto;
}

.theme-v8 .topbar .shell {
  width: 100%;
  max-width: var(--v8-max);
}

.theme-v8 .topbar {
  z-index: 30;
}

.theme-v8 .topbar__row {
  position: relative;
}

/* Меню поверх страницы — без сдвига контента вниз */
.theme-v8 .topnav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 35;
  margin: 0;
}

.theme-v8.nav-open .topbar {
  z-index: 50;
}

.v8-topbar {
  background: transparent;
  box-shadow: none;
}

.v8-intro {
  padding: 0.4rem 0 0.2rem;
}

.v8-kicker {
  margin: 0 0 0.35rem;
  color: var(--v8-teal);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.v8-kicker i,
.v8-now__label i,
.v8-tag__how i {
  margin-right: 0.3rem;
}

.v8-ico {
  color: var(--v8-teal);
  margin-right: 0.4rem;
  font-size: 0.85em;
}

.v8-title {
  margin: 0;
  font-family: Poppins, Nunito, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
  color: var(--v8-ink);
}

.v8-title--s {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.v8-lead {
  margin: 0.7rem 0 0;
  max-width: 38rem;
  color: var(--v8-muted);
  font-size: 1.05rem;
}

.v8-stage {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 800px) {
  .v8-stage {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.v8-now {
  position: relative;
  overflow: hidden;
  background: var(--v8-navy);
  color: #fff;
  border-radius: 24px;
  padding: 1.2rem 1.25rem 1.3rem;
}

.v8-now__mark {
  position: absolute;
  right: -0.4rem;
  bottom: -0.8rem;
  font-size: 7.5rem;
  color: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
  pointer-events: none;
}

.v8-now__label,
.v8-now__meta,
.v8-now__deposit {
  margin: 0;
}

.v8-now__label {
  opacity: 0.75;
  font-weight: 700;
}

.v8-now__sum {
  margin: 0.15rem 0 0.2rem;
}

.v8-now__sum strong,
.v8-tag__now,
.v8-sticky strong {
  font-family: Poppins, Nunito, sans-serif;
  font-variant-numeric: tabular-nums;
}

.v8-now__sum strong {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
}

.v8-now__meta {
  color: rgba(255, 255, 255, 0.78);
}

.v8-now__deposit {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3d7a1;
  font-weight: 700;
}

.v8-bottle {
  position: relative;
  margin: 0;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.v8-bottle img {
  width: min(230px, 58vw);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(36, 49, 64, 0.16));
}

.v8-tag {
  position: absolute;
  z-index: 2;
  right: 0.2rem;
  top: 14%;
  width: max-content;
  max-width: calc(100% + 1.25rem);
  margin: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 18px;
  background: var(--v8-card);
  box-shadow: 0 16px 36px rgba(36, 49, 64, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.v8-tag.is-drop {
  animation: v8-tag-pop 0.42s ease;
}

@keyframes v8-tag-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.v8-tag__was {
  color: var(--v8-muted);
  text-decoration: line-through;
  font-weight: 700;
}

.v8-tag__note {
  color: var(--v8-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.v8-tag__now {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--v8-ink);
  letter-spacing: -0.03em;
}

.v8-tag__unit {
  color: var(--v8-muted);
  font-size: 0.92rem;
}

.v8-tag__how {
  margin-top: 0.45rem;
  color: var(--v8-teal);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.v8-tag__how:hover {
  text-decoration: underline;
}

.v8-block {
  margin-top: 1.4rem;
}

.v8-label {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.v8-hint {
  margin: 0 0 0.7rem;
  color: var(--v8-muted);
}

.v8-volumes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.v8-volumes__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.v8-volumes__tail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

#v8-save,
#v8-checkout {
  scroll-margin-top: 5.5rem;
}

.v8-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--v8-line);
  border-radius: 14px;
  padding: 0.2rem;
}

.v8-step {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 10px;
  background: #f3f0ea;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--v8-ink);
}

.v8-step:disabled {
  opacity: 0.35;
  cursor: default;
}

.v8-step__count {
  width: 2.6rem;
  min-width: 2.6rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 800;
  color: var(--v8-ink);
  appearance: textfield;
  -moz-appearance: textfield;
}

.v8-step__count::-webkit-outer-spin-button,
.v8-step__count::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.v8-step__count:focus {
  outline: 2px solid color-mix(in srgb, var(--v8-teal) 45%, transparent);
  outline-offset: 1px;
  border-radius: 8px;
}

.v8-next {
  margin-top: 1.8rem;
}

.v8-steps {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.v8-steps li {
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.v8-steps .v8-steps__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: #f3f0ea;
  color: var(--v8-teal);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.v8-steps li > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.v8-steps span,
.v8-more a {
  color: var(--v8-muted);
}

.v8-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.v8-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
}

.v8-facts strong {
  font-family: Poppins, Nunito, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--v8-ink);
  white-space: nowrap;
}

.v8-facts span {
  color: var(--v8-muted);
  font-size: 0.95rem;
}

.v8-more {
  margin: 0.7rem 0 0;
}

.v8-more i {
  margin-left: 0.3rem;
  font-size: 0.85em;
}

.v8-more a,
.v8-more__open {
  border: 0;
  padding: 0;
  background: none;
  color: var(--v8-teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.v8-dialog {
  width: min(32rem, calc(100% - 1.5rem));
  max-height: min(85vh, 40rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fffdf9;
  color: var(--v8-ink);
  box-shadow: 0 24px 60px rgba(36, 49, 64, 0.22);
}

.v8-dialog::backdrop {
  background: rgba(36, 49, 64, 0.46);
}

body:has(.v8-dialog[open]) .v8-sticky {
  visibility: hidden;
}

.v8-dialog .v8-title {
  padding-right: 2.4rem;
}

.v8-dialog__panel {
  position: relative;
  padding: 1.25rem 1.15rem 1.15rem;
  overflow: auto;
  max-height: min(85vh, 40rem);
}

.v8-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f0ea;
  color: var(--v8-ink);
  cursor: pointer;
}

.v8-dialog__note,
.v8-dialog__foot {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.v8-spec {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}

.v8-spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  background: #f6f1e8;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.v8-spec dt {
  color: var(--v8-muted);
  font-weight: 700;
}

.v8-spec dd {
  margin: 0;
  font-weight: 800;
  white-space: nowrap;
}

.v8-faq details {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.v8-faq summary {
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.v8-faq summary .v8-ico {
  margin-right: 0.45rem;
}

.v8-faq p {
  margin: 0.45rem 0 0;
  color: var(--v8-muted);
}

.v8-vol,
.v8-lever,
.v8-slot,
.v8-submit,
.v8-sticky__go {
  font: inherit;
  cursor: pointer;
}

.v8-vol {
  min-width: 3rem;
  border: 1px solid var(--v8-line);
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font-weight: 800;
  color: var(--v8-ink);
}

.v8-vol.is-on {
  background: var(--v8-navy);
  color: #fff;
  border-color: var(--v8-navy);
}

@media (max-width: 420px) {
  .v8-volumes,
  .v8-volumes__presets {
    flex-wrap: nowrap;
  }

  .v8-vol[data-volume="3"],
  .v8-vol[data-volume="5"],
  #v8-ten {
    display: none;
  }

  .v8-volumes {
    gap: 0.4rem;
  }

  .v8-volumes__presets {
    gap: 0.35rem;
  }

  .v8-vol {
    min-width: 2.65rem;
    padding: 0.65rem 0.45rem;
  }
}

.v8-levers {
  display: grid;
  gap: 0;
}

.v8-levers-group {
  display: grid;
  gap: 0.55rem;
  padding: 0.15rem 0 2.15rem;
}

.v8-levers-group + .v8-levers-group {
  padding-top: 1.85rem;
  border-top: 1px solid color-mix(in srgb, var(--v8-ink) 18%, transparent);
}

.v8-levers-group .v8-label {
  margin: 0;
  font-family: Poppins, Nunito, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.v8-levers-group .v8-hint {
  margin: 0 0 0.35rem;
}

.v8-levers-grid {
  display: grid;
  gap: 0.55rem;
}

.v8-lever-block {
  display: grid;
  gap: 0;
}

.v8-lever-block--qty.is-on {
  border: 1px solid #8ec9b0;
  background: #f3fbf6;
  border-radius: 18px;
}

.v8-lever-block--qty.is-on .v8-lever {
  border-color: transparent;
  background: transparent;
}

.v8-lever {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  text-align: left;
  border: 1px solid var(--v8-line);
  background: #fff;
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  color: var(--v8-ink);
  cursor: pointer;
}

.v8-lever:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v8-teal) 50%, transparent);
  outline-offset: 2px;
}

.v8-lever__body {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.v8-lever__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.v8-lever__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.95rem 0.85rem 3.7rem;
}

.v8-lever__qty[hidden] {
  display: none !important;
}

.v8-lever__qty-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--v8-line);
  background: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.v8-lever__qty-val {
  width: 2.4rem;
  min-width: 2.4rem;
  border: 1px solid var(--v8-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font: inherit;
  font-weight: 800;
  color: var(--v8-ink);
  appearance: textfield;
  -moz-appearance: textfield;
}

.v8-lever__qty-val::-webkit-outer-spin-button,
.v8-lever__qty-val::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.v8-lever__qty-val:focus {
  outline: 2px solid color-mix(in srgb, var(--v8-teal) 45%, transparent);
  outline-offset: 1px;
}

.v8-lever.is-on {
  border-color: #8ec9b0;
  background: #f3fbf6;
}

.v8-lever__mark {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: #f3f0ea;
  color: var(--v8-teal);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.v8-lever__tick {
  display: none;
  position: absolute;
  right: -0.28rem;
  bottom: -0.22rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--v8-mint-ink);
  color: #fff;
  font-size: 0.55rem;
  place-items: center;
}

.v8-lever.is-on .v8-lever__mark {
  background: var(--v8-mint);
  color: var(--v8-mint-ink);
}

.v8-lever.is-on .v8-lever__tick {
  display: grid;
}

.v8-lever__title {
  display: block;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
}

.v8-lever__hint {
  display: block;
  color: var(--v8-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.v8-lever__save {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--v8-mint-ink);
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.25;
}

.v8-checkout {
  margin-top: 1.6rem;
  padding-bottom: 1rem;
}

.v8-field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.v8-field input {
  border: 1px solid var(--v8-line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  font-weight: 600;
}

.v8-field input.is-invalid,
.v8-slots.is-invalid {
  border-color: #c45b4a;
  box-shadow: 0 0 0 3px rgba(196, 91, 74, 0.15);
}

.v8-zone {
  margin: 0 0 0.7rem;
  color: var(--v8-muted);
}

.v8-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.v8-slot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--v8-line);
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.v8-slot > i {
  width: 1.2rem;
  color: var(--v8-teal);
  flex: 0 0 auto;
}

.v8-slot.is-on > i {
  color: #fff;
}

.v8-slot.is-on {
  border-color: var(--v8-navy);
  background: var(--v8-navy);
  color: #fff;
}

.v8-slot small {
  display: block;
  font-weight: 700;
  opacity: 0.8;
}

.v8-error {
  color: #a33b2c;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.v8-submit,
.v8-sticky__go {
  border: 0;
  border-radius: 14px;
  background: #e37b32;
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 1.1rem;
}

.v8-submit {
  width: 100%;
}

.v8-submit:disabled {
  opacity: 0.6;
}

.v8-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid var(--v8-line);
  box-shadow: 0 -8px 24px rgba(36, 49, 64, 0.06);
}

@media (min-width: 800px) {
  .v8-sticky {
    width: min(var(--v8-max), calc(100% - 2rem));
    max-width: var(--v8-max);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
  }
}

.v8-sticky__prices {
  display: grid;
  gap: 0.1rem;
  font-size: 0.92rem;
  color: var(--v8-muted);
  min-width: 0;
}

.v8-sticky__prices strong {
  color: var(--v8-ink);
}

.v8-sticky__meta {
  color: var(--v8-muted);
  font-weight: 600;
  font-size: 0.84em;
}

.v8-sticky.is-flash-up #v8-sticky-now,
.v8-sticky.is-flash-down #v8-sticky-now,
.v8-sticky.is-flash-up #v8-sticky-later,
.v8-sticky.is-flash-down #v8-sticky-later {
  display: inline-block;
  animation: v8-sticky-pulse 0.7s ease;
}

.v8-sticky.is-flash-up #v8-sticky-now,
.v8-sticky.is-flash-up #v8-sticky-later {
  color: #b45309;
}

.v8-sticky.is-flash-down #v8-sticky-now,
.v8-sticky.is-flash-down #v8-sticky-later {
  color: #15803d;
}

@keyframes v8-sticky-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.theme-v8 {
  --sticky-h: 5.4rem;
}

.theme-v8 .price-flash {
  bottom: calc(var(--sticky-h) + 0.85rem + env(safe-area-inset-bottom, 0px));
}

.v8-spin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--v8-line);
  border-radius: 18px;
  background: #fffdf9;
}

.v8-spin__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v8-muted);
}

.v8-spin__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--v8-ink);
}

.v8-spin__lead {
  margin: 0;
  color: var(--v8-muted);
  font-size: 0.95rem;
}

.v8-spin__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 14px;
  background: #243140;
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
}

.v8-spin__btn:hover {
  background: #1a242f;
}

.theme-v8 .spin-bonus-chip {
  margin-top: 0.85rem;
}

.theme-v8 .spin-bonus-chip.is-applied {
  display: flex;
}
