/**
 * VVS — инфо-страницы: визуал как на главной (legit / index)
 * delivery · packaging · returns · size-guide
 */

/* ——— База страницы ——— */
body[data-page] {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body[data-page]::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  opacity: 1;
  z-index: 0;
}

body[data-page] .container {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  body[data-page] {
    font-size: 16px;
  }

  body[data-page] .page__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  body[data-page] .returns-section__title,
  body[data-page] .info-block__title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }
}

/* ——— Шапка (фиксированная, как на главной) ——— */
body[data-page] .header,
body[data-page] .header.header--solid {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9990 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
}

body[data-page] .header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
}

body[data-page] .header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

@media (max-width: 768px) {
  body[data-page] .header {
    padding: 0 !important;
  }
}

body[data-page] .nav__link {
  color: #ffffff !important;
  font-weight: 500;
}

@media (hover: hover) {
  body[data-page] .nav__link:hover {
    color: #aaaaaa !important;
  }
}

@media (max-width: 768px) {
  body[data-page] .nav {
    display: none !important;
  }
}

body[data-page] .header__actions {
  position: relative;
  z-index: 10001;
}

body[data-page] .vvs-burger {
  position: relative;
  z-index: 10002;
  pointer-events: auto !important;
  cursor: pointer;
  flex-shrink: 0;
}

body[data-page] .vvs-menu-panel.is-open {
  z-index: 10050 !important;
}

body[data-page] .vvs-menu-overlay.is-active {
  z-index: 10040 !important;
}

/* ——— Переключатель языка (пилюли как на главной) ——— */
body[data-page] .lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 40px;
}

body[data-page] .lang-switch__btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: #888;
  background: transparent;
  border: none;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}

body[data-page] .lang-switch__btn:hover {
  color: #ccc;
}

body[data-page] .lang-switch__btn--active {
  background: #ffffff;
  color: #000;
}

@media (max-width: 768px) {
  body[data-page] .lang-switch__btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}

/* ——— Мобильное меню ——— */
.vvs-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000 !important;
  padding: 0;
  transition: background 0.2s;
}

.vvs-burger span {
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.vvs-burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.vvs-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.vvs-burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.vvs-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background: #080808;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 30px;
  padding-top: 56px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}

.vvs-menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.vvs-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}

.vvs-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vvs-menu-panel__link {
  font-family: var(--font-main);
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  width: 100%;
  text-align: center;
  transition: opacity 0.2s;
}

.vvs-menu-panel__link:active {
  opacity: 0.6;
}

.vvs-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.vvs-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .vvs-burger {
    display: flex !important;
  }

  body[data-page] .burger {
    display: none !important;
  }
}

/* ——— Контент страницы ——— */
body[data-page] .page {
  padding-top: 5.5rem;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

@media (max-width: 768px) {
  body[data-page] .page {
    padding-top: 4.75rem;
  }
}

body[data-page] .page__title {
  font-family: 'Space Grotesk', var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

body[data-page] .page__lead,
body[data-page] .info-block__text,
body[data-page] .returns-intro {
  color: #aaa;
}

body[data-page] .page__back {
  color: #888;
  border-radius: 8px;
  padding: 4px 0;
}

body[data-page] .page__back:hover {
  color: #fff;
}

/* ——— Блоки и карточки (скругление 12px) ——— */
body[data-page] .info-block__icon {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body[data-page] .delivery-option,
body[data-page] .payment-method {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-page] .delivery-option__tag {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

body[data-page] .info-cta {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page] .info-cta .btn--primary {
  border-radius: 40px;
}

body[data-page] .info-divider {
  background: rgba(255, 255, 255, 0.1);
}

body[data-page] .returns-section__title,
body[data-page] .info-block__title {
  font-family: 'Space Grotesk', var(--font-display);
  color: #fff;
}

body[data-page] .page__crosslink a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page] .page__crosslink a:hover {
  color: #ccc;
}

/* ——— Фото упаковки ——— */
body[data-page] .packaging-hero {
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 40vw, 420px);
  padding: clamp(16px, 4vw, 32px);
}

body[data-page] .packaging-hero img {
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: min(480px, 65vh);
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

body[data-page] .packaging-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  align-items: stretch;
}

body[data-page] .packaging-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body[data-page] .packaging-figure .packaging-figure__img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: clamp(12px, 3vw, 24px);
  background: #0a0a0a;
}

body[data-page] .packaging-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

body[data-page] .packaging-figure--wide .packaging-figure__img {
  min-height: 220px;
}

body[data-page] .packaging-figure--wide img {
  max-height: 380px;
}

body[data-page] .packaging-figure figcaption {
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #888;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  body[data-page] .packaging-grid {
    grid-template-columns: 1fr;
  }

  body[data-page] .packaging-hero {
    min-height: 200px;
    padding: 12px;
  }

  body[data-page] .packaging-hero img {
    max-height: min(320px, 50vh);
  }

  body[data-page] .packaging-figure .packaging-figure__img {
    min-height: 160px;
    padding: 12px;
  }

  body[data-page] .packaging-figure img {
    max-height: 240px;
  }

  body[data-page] .packaging-figure--wide img {
    max-height: 260px;
  }
}

/* ——— Мобильная вёрстка текстовых блоков ——— */
@media (max-width: 768px) {
  body[data-page] .info-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  body[data-page] .page__title {
    word-break: break-word;
    hyphens: auto;
  }

  body[data-page] .delivery-option {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body[data-page] .delivery-option__name {
    flex: 1 1 100%;
  }

  body[data-page] .payment-methods {
    flex-direction: column;
  }

  body[data-page] .payment-method {
    width: 100%;
    text-align: center;
  }

  body[data-page] .info-cta {
    padding: 1.5rem 1rem;
  }

  body[data-page] .info-cta .btn--primary {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Пример чека об оплате ——— */
body[data-page] .receipt-example-btn {
  margin-top: 1rem;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

body[data-page] .receipt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body[data-page] .receipt-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body[data-page] .receipt-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

body[data-page] .receipt-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1rem 1rem;
}

body[data-page] .receipt-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

body[data-page] .receipt-lightbox__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 2rem 0.5rem 0;
}

body[data-page] .receipt-lightbox__hint {
  font-size: 0.82rem;
  color: #888;
  margin: 0 0 1rem;
  line-height: 1.45;
}

body[data-page] .receipt-lightbox__img-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}

body[data-page] .receipt-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 768px) {
  body[data-page] .receipt-example-btn {
    max-width: none;
  }

  body[data-page] .receipt-lightbox__dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: 12px 12px 0 0;
    align-self: flex-end;
  }

  body[data-page] .receipt-lightbox {
    align-items: flex-end;
    padding: 0;
  }
}
