/* StandyGold.fun — Стиль Standoff 2 (жёлтый/золотой, светлая тема) */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
:root {
  --so2-gold: #e6a800;
  --so2-gold-dark: #c99400;
  --so2-yellow: #ffc107;
  --so2-amber: #d4a012;
  /* Обводки и рамки — тёплый песочный */
  --so2-stroke: #b8956e;
  /* Подсветки, тени, hover — медовый */
  --so2-glow: #d4a84b;
  /* Мягкий кремовый акцент */
  --so2-cream: #e8dcb8;
  /* Бронза — тёплый акцент */
  --so2-bronze: #a67c52;
  --so2-bronze-light: #c4a35a;
  --so2-coral: #e07a5f;
  --so2-sage: #7dae94;
  --so2-sky: #6b9dc3;
  /* Плашки в общей тёплой гамме: медовый золотой + мягкая бронза/песок */
  --badge-gold-bg: rgba(232, 208, 160, 0.4);
  --badge-gold-text: #6b5210;
  --badge-sand-bg: rgba(224, 122, 95, 0.18);
  --badge-sand-text: #8b5045;
  --reviews-badge-bg: #d9c9a0;
  --reviews-badge-text: #6b4a2a;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1d2123;
  background-color: #f5f1e8;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(230,168,0,0.05) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(166,124,82,0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(224,122,95,0.02) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 15v22l-30 15L0 37V15L30 0z' fill='none' stroke='rgba(230,168,0,0.16)' stroke-width='0.9'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 100% 100%, 60px 52px;
  overflow-x: hidden;
}

/* Layout — всё по центру */
.site-header + main { flex: 1 0 auto; }
.container {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 15px;
}
.purchase-section h1,
.section-title,
.availability-section,
.buttons-section,
.nav-wrapper { text-align: center; }
.grid-container, .form-block-input { justify-content: center; }

/* Header — по центру, логотип и меню всегда в одну строку */
.site-header {
  width: 100%;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 24px;
}
.site-header .logo {
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.site-header .logo img {
  max-height: 70px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-header nav {
  flex-shrink: 0;
  min-width: 0;
}
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: flex;
  background: #f5f3ef;
  border-radius: 16px;
  gap: 2px;
}
.site-header nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  height: 38px;
  border-radius: 14px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.site-header nav a:hover { background: rgba(166,124,82,0.12); color: #1d2123; }
.site-header nav a.active { background: rgba(230,168,0,0.18); color: #1d2123; }
.site-header nav a img { width: 16px; height: 16px; }
.site-header .social {
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #95a0a7;
  text-decoration: none;
}
.site-header .social:hover { color: #424242; }

@media (max-width: 960px) {
  .site-header { padding: 15px; }
  .site-header .logo img { max-height: 70px; max-width: 120px; }
}

/* Main — без лишнего пространства */
.site-main { max-width: calc(660px + 32px); margin: 0 auto; padding: 40px 15px; width: 100%; }
@media (max-width: 600px) { .site-main { max-width: 100%; padding: 20px 15px; } }

/* Section headings */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title img { width: 16px; height: 16px; }
.section-title h2 { margin: 0; font-size: inherit; }

/* Purchase Form (classes kept for JS) */
.purchase-section { margin-bottom: 40px; }
.purchase-section h1 { font-size: 1.5rem; margin: 0 0 24px; white-space: nowrap; }
.badge-row-mobile { display: flex; justify-content: center; margin-bottom: 20px; gap: 8px; }
.form-of-payment-robux { position: relative; }

.main-container, .nav-wrapper { height: 100%; position: relative; }
.nav-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid rgba(166,124,82,0.12);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.nav-section { flex-grow: 1; margin: 15px; }
.block-step { display: flex; flex-direction: column; gap: 30px; }

/* Form blocks — Ты платишь | Ты получаешь */
.form-blocks {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}
.form-block {
  flex: 1;
  min-width: 0;
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.15);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-block:hover {
  border-color: rgba(166,124,82,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.form-block-pay {
  border-left: 4px solid var(--so2-gold);
  background: linear-gradient(135deg, #fff 0%, rgba(230,168,0,0.06) 100%);
  position: relative;
}
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9e00, #0ab000);
  color: #fff;
}
.discount-badge.hide {
  display: none;
}
.savings-icon {
  margin-right: 4px;
}
.form-block-receive {
  border-left: 4px solid var(--so2-bronze);
  background: linear-gradient(135deg, #fff 0%, rgba(166,124,82,0.06) 100%);
  position: relative;
}
.promo-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9e00, #0ab000);
  color: #fff;
}
.input-container.amount-with-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.input-container.amount-with-gold .input-field {
  width: 70px;
  min-width: 50px;
}
.input-container.amount-with-gold .gold-label {
  color: #95a0a7;
  font-size: 16px;
  white-space: nowrap;
}
.promo-bonus {
  color: #0d9e00;
  font-weight: 700;
  white-space: nowrap;
}

/* Лёгкий "выстрел" цифры голды */
@keyframes goldBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-3px) scale(1.08);
  }
  70% {
    transform: translateY(1px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.robuy-slider-thumb .amount.gold-bounce {
  animation: goldBounce 0.25s ease-out;
}
.promo-block-below-btn {
  width: 100%;
  margin: 0;
}
.promo-line-above-btn {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.promo-line-active {
  color: #0d9e00;
  background: rgba(17,208,0,0.12);
}
.promo-line-reminder {
  color: #fff;
  background: #c00;
  margin-bottom: 6px;
}

/* Анимация красивого применения промокода */
@keyframes promoApplyGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(17,208,0,0);
  }
  30% {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(17,208,0,0.4);
  }
  60% {
    transform: scale(1.015);
    box-shadow: 0 0 16px rgba(17,208,0,0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(17,208,0,0.0);
  }
}

.form-of-payment-robux .main-container.promo-applied-anim .form-block-receive,
.form-of-payment-robux .main-container.promo-applied-anim .promo-block-below-btn,
.form-of-payment-robux .main-container.promo-applied-anim .promo-badge,
.form-of-payment-robux .main-container.promo-applied-anim .promo-line-active {
  animation: promoApplyGlow 0.8s ease-out;
}
.form-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}
.form-block-pay .form-block-label { color: var(--so2-gold-dark); }
.form-block-receive .form-block-label { color: var(--so2-bronze); }
.form-block-label .label-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}
.form-block-label img { flex-shrink: 0; }
.form-block-input { display: flex; justify-content: center; }
.receive-amount { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.bonus-amount { color: gray; }

/* Legacy */
.grid-container { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; font-weight: 600; }
.grid-item-half { flex: 1 1 calc(50% - 6px); min-width: 200px; }

/* Form inputs — цифры по центру, РУБ/Gold рядом со значением */
.input-wrapper, .form-block-input { text-align: center; }
.input-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.4);
  border-radius: 12px;
  padding: 16px 20px;
  height: 56px;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-container:focus-within {
  border-color: var(--so2-bronze);
  box-shadow: 0 0 0 3px rgba(166,124,82,0.15);
}
.input-container.input-price { min-width: 140px; }
.input-container.input-amount.amount-with-gold { min-width: 220px; }
.input-field {
  border: 0; background: none;
  font: inherit; color: inherit;
  padding: 4px 0 5px;
  min-width: 50px;
  width: 80px;
  text-align: center;
}
.input-field:focus { outline: 0; }
.input-adornment { color: #95a0a7; font-size: 16px; white-space: nowrap; }

/* Quick gold buttons — под блоками "Ты платишь" и "Ты получаешь" */
.quick-gold-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}
.quick-gold-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 2px solid rgba(166,124,82,0.4);
  border-radius: 12px;
  background: rgba(166,124,82,0.06);
  color: var(--so2-gold-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}
.quick-gold-btn:hover {
  background: rgba(166,124,82,0.1);
  border-color: rgba(166,124,82,0.55);
  transform: scale(1.02);
}
.quick-gold-btn img { flex-shrink: 0; width: 14px; height: 14px; }

/* Buttons */
.button-standard, .button-receive-1000, .button-receive-2000, .button-receive-4000, .button-receive-10000 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  height: 35px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}
.button-standard:hover, .button-receive-1000:hover, .button-receive-2000:hover, .button-receive-4000:hover, .button-receive-10000:hover {
  transform: scale(1.03);
}
.button-standard {
  background: rgba(230,168,0,.12);
  color: var(--so2-gold-dark);
}
.button-standard:hover { background: rgba(230,168,0,.2); }
.button-receive-1000, .button-receive-2000, .button-receive-4000, .button-receive-10000 {
  background: rgba(166,124,82,.12);
  color: var(--so2-bronze);
}
.button-receive-1000:hover, .button-receive-2000:hover, .button-receive-4000:hover, .button-receive-10000:hover { background: rgba(166,124,82,.2); }

.button-buy-robux {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 0;
  border-radius: 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #1d2123;
  background: linear-gradient(90deg, #ffc107, #e6a800, #d4a012);
  background-size: 200% 100%;
  box-shadow: 0 4px 15px rgba(212,168,75,.4);
  transition: background-position .4s;
}
.button-buy-robux:hover { background-position: 100% 0; transform: scale(1.02); }
.button-buy-robux { transition: all 0.3s ease; }
.button-buy-robux.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Badge row — Лучший курс + Быстрая доставка с анимацией */
.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 16px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  animation: badgePulse 4s ease-in-out infinite;
  transition: box-shadow 0.4s, transform 0.4s;
}
.badge-pill-1 {
  background: var(--badge-gold-bg);
  color: var(--badge-gold-text);
  animation-delay: 0s;
}
.badge-pill-2 {
  background: var(--badge-sand-bg);
  color: var(--badge-sand-text);
  animation: badgePulse2 4s ease-in-out infinite;
  animation-delay: 2s;
}
.badge-pill img { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes badgePulse {
  0%, 40%, 60%, 100% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: scale(1);
    filter: brightness(0.98);
  }
  50% {
    box-shadow: 0 0 18px rgba(230,168,0,0.25), 0 0 0 2px rgba(212,168,74,0.2);
    transform: scale(1.05);
    filter: brightness(1);
  }
}
@keyframes badgePulse2 {
  0%, 40%, 60%, 100% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transform: scale(1);
    filter: brightness(0.98);
  }
  50% {
    box-shadow: 0 0 18px rgba(224,122,95,0.25), 0 0 0 2px rgba(224,122,95,0.18);
    transform: scale(1.05);
    filter: brightness(1);
  }
}
.robuy-slider {
  --thumb-width: 75px;
  --thumb-height: 24px;
  --shadow: 0 0 0 7px rgba(166,124,82,.12);
  height: var(--thumb-height);
  width: 100%;
}
.robuy-slider-input { height: var(--thumb-height); position: relative; }
.robuy-slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  background: linear-gradient(to right, #e6a800 calc(1%*var(--progress)), #e8e4dc calc(1%*var(--progress)));
  border-radius: 15px;
  cursor: pointer;
  outline: none;
}
.robuy-slider-thumb {
  position: absolute;
  top: 50%;
  left: calc(1%*var(--progress) - var(--thumb-width)*var(--progress)/100);
  transform: translateY(calc(var(--thumb-height)/-2 + 3px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--thumb-width);
  height: var(--thumb-height);
  background: #faf5f3;
  border-radius: 100px;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.robuy-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb-width);
  height: var(--thumb-height);
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
.robuy-slider input[type=range]::-moz-range-thumb {
  appearance: none;
  width: var(--thumb-width);
  height: var(--thumb-height);
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

/* Buttons section */
.buttons-section { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 24px; margin-bottom: 20px; }
.promo-code-trigger, .promo-code-section {
  background: none;
  border: none;
  color: var(--so2-gold-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}
.promo-code-trigger:hover, .promo-code-section:hover { color: var(--so2-bronze); }


/* Popup промокода */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.promo-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.promo-popup-content {
  opacity: 0;
  transform: scale(0.92) translateY(-15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.promo-popup.is-open .promo-popup-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.promo-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.promo-popup-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.promo-popup-content h3 { margin: 0 0 16px; font-size: 1.2rem; }
.promo-popup-input {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.45);
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.promo-popup-input:focus { outline: 0; border-color: var(--so2-bronze); box-shadow: 0 0 0 3px rgba(166,124,82,0.15); }
.promo-popup-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.promo-popup-apply { margin: 0; }
.promo-popup-close {
  background: #eaeef0;
  color: #666;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.promo-popup-close:hover { background: #d7dbdd; }
.promocode-message-inline {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0d9e00;
  min-height: 22px;
  text-align: center;
}

/* Toast ошибки калькулятора */
.gold-calc-error-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 16px 18px;
  max-width: 90%;
  width: 380px;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
  border: 2px solid #c9a9a9;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(166,124,82,0.15);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
}
.gold-calc-error-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.gold-calc-error-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(201, 169, 169, 0.3);
  border-radius: 10px;
  color: #8b6b6b;
}
.gold-calc-error-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1d2123;
  line-height: 1.45;
}
.gold-calc-error-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: #5c5c5c;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gold-calc-error-close:hover {
  background: rgba(224, 68, 68, 0.12);
  color: #c53030;
}

/* Popup чекаута (ввод ID) */
.checkout-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.checkout-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.checkout-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
}
.checkout-popup-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 0 0 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 56px rgba(0,0,0,0.2), 0 0 0 1px rgba(230,168,0,0.08);
  opacity: 0;
  transform: scale(0.96) translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.checkout-popup.is-open .checkout-popup-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.checkout-popup--payment-step .checkout-trust-row {
  display: none;
}

/* Шапка попапа */
.checkout-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, rgba(230,168,0,0.12) 0%, rgba(232,220,184,0.25) 50%, rgba(166,124,82,0.08) 100%);
  border-bottom: 1px solid rgba(166,124,82,0.15);
}
.checkout-popup-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.checkout-popup-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-popup-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d2123;
}
.checkout-popup-subtitle {
  font-size: 13px;
  color: #5c5c5c;
}

/* Сводка заказа */
.checkout-order-summary {
  margin: 16px 24px 0;
  padding: 16px 18px;
  background: #f8f6f1;
  border-radius: 14px;
  border: 1px solid rgba(166,124,82,0.18);
}
.checkout-summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.checkout-summary-total-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1d2123;
}
.checkout-summary-total-row .checkout-summary-label {
  color: #4a4a4a;
  font-weight: 600;
  font-size: 14px;
}
.checkout-summary-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(166,124,82,0.25);
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.checkout-summary-row + .checkout-summary-row { margin-top: 6px; }
.checkout-summary-label {
  color: #5c5c5c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkout-summary-label img { opacity: 0.9; }
.checkout-summary-value {
  font-weight: 600;
  color: #1d2123;
  font-size: 14px;
}
.checkout-summary-promo-row .checkout-summary-promo-value {
  color: #0d8a3a;
  font-weight: 700;
}
.checkout-summary-pay-row {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed rgba(166,124,82,0.3);
}
.checkout-summary-pay-row .checkout-summary-label {
  font-weight: 600;
  color: #1d2123;
  font-size: 14px;
}
/* Сумма к оплате — цифры намеренно меньше, чем голда (психологический акцент на выгоде) */
.checkout-summary-price {
  font-weight: 600;
  font-size: 0.92rem;
  color: #6b6b6b;
}

/* Блок доверия — только два пункта, выделены */
.checkout-trust-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 24px 0;
}
.checkout-trust-item {
  flex: 1;
  min-width: 0;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2d3a36;
  padding: 12px 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,246,241,0.95) 100%);
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.22);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.checkout-trust-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.checkout-trust-icon {
  font-size: 18px;
  line-height: 1;
}

/* Мобильная адаптация попапа: плашки и голда не расползаются */
@media (max-width: 480px) {
  .checkout-popup-content {
    max-width: 360px;
    width: 94%;
  }

  .checkout-order-summary {
    margin: 12px 16px 0;
    padding: 12px 14px;
  }

  .checkout-summary-total-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .checkout-summary-total-row .checkout-summary-label {
    font-size: 13px;
  }

  .checkout-summary-total-value {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .checkout-trust-row {
    margin: 12px 16px 0;
    gap: 8px;
  }

  .checkout-trust-item {
    padding: 8px 10px;
    font-size: 12px;
    max-width: none;
    flex: 1 1 0;
  }

  .checkout-form-block {
    padding: 14px 16px 0;
  }
  .checkout-step {
    padding: 0 16px 14px;
  }
  .checkout-popup-input {
    padding: 12px 14px;
    font-size: 16px;
  }
  .checkout-id-error {
    font-size: 12px;
    margin: -6px 0 10px 0;
  }
  .checkout-payment-methods {
    margin-bottom: 14px;
  }
  .checkout-payment-option {
    padding: 12px 14px;
  }
  .checkout-payment-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  .checkout-payment-title {
    font-size: 13px;
  }
  .checkout-payment-fee {
    font-size: 11px;
  }
  .checkout-btn-main {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .checkout-verify-warning {
    font-size: 12px;
    padding: 0 4px;
  }
}

/* Форма ввода ID */
.checkout-form-block {
  padding: 18px 24px 0;
}
.checkout-step .checkout-form-block {
  padding-left: 0;
  padding-right: 0;
}
.checkout-input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 8px;
}
.checkout-popup-input {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.4);
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-popup-input:focus {
  outline: 0;
  border-color: var(--so2-bronze);
  box-shadow: 0 0 0 3px rgba(166,124,82,0.18);
}
.checkout-popup-input::placeholder {
  color: #999;
}
.checkout-popup-input.is-error {
  border-color: #b85450;
  box-shadow: 0 0 0 2px rgba(160,80,76,0.15);
}
.checkout-popup-input.is-error:focus {
  border-color: #b85450;
  box-shadow: 0 0 0 3px rgba(160,80,76,0.2);
}
.checkout-id-error {
  display: block;
  font-size: 13px;
  color: #8b6b69;
  margin: -8px 0 12px 0;
  min-height: 1.2em;
  text-align: center;
}
.checkout-btn-main {
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
}
.checkout-btn-hint {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(166,124,82,0.5);
  color: var(--so2-bronze);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.checkout-btn-hint:hover {
  background: rgba(166,124,82,0.08);
  color: #8b6914;
}
.checkout-hint-block {
  margin: 14px 24px 0;
  padding: 16px;
  background: rgba(232,220,184,0.35);
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.2);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}
.checkout-hint-block.is-visible {
  max-height: 400px;
  opacity: 1;
}
.checkout-hint-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a4a;
}
.checkout-hint-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.checkout-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #666;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.checkout-popup-close:hover {
  background: rgba(0,0,0,0.1);
  color: #1d2123;
}

/* Шаги внутри попапа чекаута */
.checkout-step {
  padding: 0 24px 18px;
}
.checkout-step-pay {
  padding-top: 4px;
}
.checkout-id-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #f8f6f1;
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.15);
}
.checkout-id-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
  flex-shrink: 0;
}
.checkout-id-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d2123;
  letter-spacing: 0.04em;
  word-break: normal;
  white-space: nowrap; /* не переносим ID на новую строку */
}
.checkout-delivery-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #f8f6f1;
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.15);
}
.checkout-delivery-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
}
.checkout-delivery-value {
  font-size: 13px;
  font-weight: 600;
  color: #1d2123;
}
.checkout-verify-warning {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #8b6914;
  background: rgba(230,168,0,0.12);
  border-radius: 10px;
  border: 1px solid rgba(166,124,82,0.25);
  text-align: center;
}

/* Анимация "ищем аккаунт" и появления ID в чекауте */
@keyframes checkoutSearchSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes checkoutIdAppear {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.checkout-popup.checkout-popup--searching #checkout-step-id {
  position: relative;
  min-height: 140px;
}

.checkout-popup.checkout-popup--searching #checkout-step-id .checkout-form-block {
  opacity: 0.15;
  filter: blur(1px);
  pointer-events: none;
}

.checkout-popup.checkout-popup--searching #checkout-step-id::after {
  content: 'Ищем ваш аккаунт...';
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
}

.checkout-popup.checkout-popup--searching #checkout-step-id::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -40px;
  margin-left: -15px;
  border-radius: 50%;
  border: 3px solid rgba(166,124,82,0.25);
  border-top-color: var(--so2-gold);
  animation: checkoutSearchSpinner 0.8s linear infinite;
}

.checkout-id-value.checkout-id-appear {
  animation: checkoutIdAppear 0.5s ease-out;
}
.checkout-payment-methods {
  margin-bottom: 16px;
}
.checkout-payment-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 10px;
}
.checkout-payment-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.35);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.checkout-payment-option:last-of-type {
  margin-bottom: 0;
}
.checkout-payment-option input {
  margin: 0;
  accent-color: var(--so2-bronze);
}
.checkout-payment-option:hover {
  border-color: rgba(166,124,82,0.5);
  background: rgba(248,246,241,0.6);
}
.checkout-payment-option:has(input:checked) {
  border-color: var(--so2-bronze);
  background: rgba(230,168,0,0.08);
  box-shadow: 0 0 0 1px rgba(166,124,82,0.2);
}
.checkout-payment-title {
  font-weight: 600;
  color: #1d2123;
  font-size: 14px;
}
.checkout-payment-fee {
  font-size: 12px;
  color: #6b6b6b;
  white-space: nowrap;
  flex-shrink: 0;
}
.checkout-payment-option--preferred {
  border-color: rgba(166,124,82,0.6);
  background: linear-gradient(135deg, rgba(230,168,0,0.1) 0%, rgba(248,246,241,0.8) 100%);
  box-shadow: 0 0 0 1px rgba(166,124,82,0.25);
}
.checkout-payment-option--preferred:has(input:checked) {
  border-color: var(--so2-bronze);
  background: linear-gradient(135deg, rgba(230,168,0,0.15) 0%, rgba(248,246,241,0.9) 100%);
  box-shadow: 0 0 0 2px rgba(166,124,82,0.3);
}
.checkout-payment-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--so2-bronze);
  background: rgba(230,168,0,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.checkout-payment-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
  border-color: #ddd;
}
.checkout-payment-unavailable {
  color: #999;
  font-style: italic;
}
.checkout-step-pay .checkout-btn-main {
  margin-bottom: 10px;
}
.checkout-step-pay .checkout-btn-hint {
  margin-bottom: 0;
}

/* Step3 payment options (legacy) */
.css-payment-preferred { border-color: rgba(166,124,82,0.6) !important; background: linear-gradient(135deg, rgba(230,168,0,0.1) 0%, #fff 100%) !important; }
.css-payment-badge { font-size: 10px; color: var(--so2-bronze); background: rgba(230,168,0,0.15); padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.css-payment-disabled { opacity: 0.5; pointer-events: none; background: #f5f5f5 !important; }
.css-payment-unavailable { font-size: 12px; color: #999; font-style: italic; margin-left: 6px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Recent purchases ticker — бегущая строка */
.recent-ticker-section {
  margin: 0 -23px;
  padding: 20px 0 0;
  border-top: 2px solid rgba(166,124,82,0.2);
}
.recent-ticker-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
  color: #1d2123;
}
.recent-ticker-wrap {
  overflow: hidden;
  width: 100%;
}
.recent-ticker-track {
  display: inline-flex;
  gap: 12px;
  animation: tickerScroll 100s linear infinite;
  will-change: transform;
}
.recent-ticker-track:hover { animation-play-state: paused; }
.recent-ticker-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #faf9f7;
  border-radius: 10px;
  white-space: nowrap;
}
.recent-ticker-item.ticker-item-featured {
  background: linear-gradient(135deg, rgba(17,208,0,0.08), rgba(17,208,0,0.04));
  border: 1px solid rgba(17,208,0,0.2);
}
.recent-ticker-item.ticker-item-featured .ticker-gold {
  color: #0d9e00;
}
.recent-ticker-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.ticker-name { font-size: 12px; color: #666; }
.ticker-gold { font-size: 13px; font-weight: 700; color: var(--so2-bronze); }
@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Trust block (steps 2, 3) */
.availability-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -23px;
  padding: 16px 23px 0;
  border-top: 2px solid rgba(166,124,82,0.2);
}
.availability-label { font-size: 16px; font-weight: 600; margin: 0; }
.availability-amount { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 16px; }
.availability-amount a { color: #1d2123; text-decoration: underline dotted; }
.availability-amount a.button {
  background: var(--so2-gold);
  color: #1d2123;
  padding: 10px 15px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.availability-amount a.button:hover { background: var(--so2-gold-dark); color: #fff; }
.stars { display: inline-flex; gap: 1px; }
.stars span { margin-left: 4px; }

@media (max-width: 600px) {
  .grid-item-half { flex-basis: 100%; max-width: 100%; }
  .input-wrapper { text-align: center; }
  .recent-ticker-section { margin: 0 -16px; padding: 16px 0 0; }
  .recent-ticker-title { font-size: 14px; margin-bottom: 12px; }
  .recent-ticker-item { padding: 8px 12px; gap: 8px; }
  .recent-ticker-item img { width: 28px; height: 28px; }
  .ticker-name { font-size: 12px; }
  .ticker-gold { font-size: 13px; }
  .availability-section { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 768px) {
  /* Безопасные отступы для вырезов экрана */
  body { padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  /* Фон: тот же тактический паттерн (гексагоны), как на десктопе */
  body {
    background-image:
      radial-gradient(circle at 20% 80%, rgba(230,168,0,0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(166,124,82,0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(224,122,95,0.04) 0%, transparent 45%),
      url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 15v22l-30 15L0 37V15L30 0z' fill='none' stroke='rgba(230,168,0,0.16)' stroke-width='0.9'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 100% 100%, 60px 52px;
  }
  .site-main { padding-bottom: env(safe-area-inset-bottom); }

  /* Header — компактнее, всё по центру, но лого не микроскопическое */
  .site-header {
    padding: 12px 16px;
    gap: 12px;
    justify-content: center;     /* центрируем всю группу лого+меню */
  }
  .site-header .logo {
    flex-shrink: 0;             /* лого не даём сжимать слишком сильно */
  }
  .site-header nav {
    flex-shrink: 1;             /* меню можно сжимать */
  }
  .site-header .logo img {
    max-height: 44px;
    height: auto;
    max-width: 100%;
  }
  .site-header nav a {
    padding: 0 10px;
    height: 36px;
    font-size: 12px;
  }
  .site-header nav a img { display: none; } /* Убираем иконки в меню на мобиле */
  .site-header nav ul { padding: 3px; }

  /* Секции — единообразие */
  .container { padding: 0 16px; }
  .site-main { padding: 16px 0 24px; }

  /* Заголовки секций — без иконок, аккуратный вид */
  .section-title {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(166, 124, 82, 0.4);
  }
  .section-title img { display: none; }
  .section-title h2 { font-size: 17px; font-weight: 600; }

  /* Заголовок страницы */
  .purchase-section h1 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  /* Форма — ровные блоки, приятные отступы */
  .purchase-section { margin-bottom: 32px; }
  .nav-wrapper {
    padding: 20px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  .nav-section { margin: 0; }
  .block-step { gap: 24px; }
  .badge-row {
    margin-bottom: 20px;
    gap: 8px;
  }
  .badge-pill {
    padding: 8px 10px;
    font-size: 12px;
  }
  .badge-pill img { display: inline-block; } /* Иконка видна и на мобиле */
  .form-blocks {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .form-block {
    padding: 16px 14px;
  }
  .form-block-label { font-size: 0.95rem; margin-bottom: 10px; }
  .quick-gold-buttons {
    gap: 6px;
    margin-bottom: 16px;
  }
  .quick-gold-btn {
    padding: 8px 4px;
    font-size: 12px;
  }
  .quick-gold-btn img { width: 12px; height: 12px; }
  .grid-container { gap: 20px; }
  .input-container {
    width: 100%;
    padding: 14px 16px;
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
    gap: 4px;
  }
  .input-container.amount-with-gold {
    gap: 4px;
  }
  .payment-section { margin-top: 12px; }
  .button-standard, .button-receive-1000, .button-receive-2000, .button-receive-4000, .button-receive-10000 {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
  }
  .buttons-section {
    margin-top: 20px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .promo-block-below-btn {
    order: 1;
  }
  .buttons-section .add-robux { order: 0; }
  .buttons-section .promo-code-trigger { order: 2; }
  .button-buy-robux {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 16px;
  }
  .recent-ticker-section { margin: 0 -16px; }
  .availability-section {
    margin: 0 -16px;
    padding: 20px 16px 0;
    margin-top: 20px;
    gap: 12px;
  }
  .availability-amount { flex-wrap: wrap; gap: 10px; }
  .availability-amount a.button {
    padding: 12px 18px;
    font-size: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* Слайдер — больше область нажатия */
  .robuy-slider { --thumb-width: 80px; --thumb-height: 28px; margin: 8px 0; }
  .robuy-slider-thumb { font-size: 15px; }

  /* Отзывы — карточки ровнее */
  .reviews-section { margin-bottom: 32px; }
  .review__wrapper { padding: 16px 0; }
  .review__slide {
    padding: 20px 18px;
    border-radius: 18px;
    margin: 0 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
  .review__slider-wrapper { gap: 16px; padding: 0 4px; }
  .review__slide .review-author img { width: 44px; height: 44px; }
  .review__slide .review-text { font-size: 15px; line-height: 1.55; }
  .review__slide .btn-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
  }
  .slider-nav {
    width: 36px;
    height: 36px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .slider-nav-next { right: 4px; }
  .slider-nav:first-of-type { left: 4px; }

  /* Последние покупки — карточный стиль */
  .recent-section { margin-bottom: 32px; }
  .recent-purchases-container {
    padding: 4px;
    gap: 8px;
  }
  .recent-purchase-item {
    min-width: 130px;
    padding: 14px 12px;
    background: #fff;
    border-radius: 14px;
    border: none !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  }
  .recent-purchase-info img { width: 36px; height: 36px; }

  /* Промо — без лишнего, ровный блок */
  .promo-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
  .promo-section img {
    width: 100px;
    height: 100px;
  }
  .promo-amount {
    justify-content: center;
    margin-bottom: 18px;
  }
  .promo-amount img { display: none; } /* Убираем мелкую иконку */
  .promo-amount span {
    background: linear-gradient(135deg, rgba(252,96,118,0.15), rgba(255,154,68,0.15));
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 1.4rem;
  }
  .promo-section .button-buy-robux { width: 100%; }

  /* Статистика — мобильная версия (как блоки Ты платишь / Ты получаешь) */
  .stats-section { margin-bottom: 32px; }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 20px 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    border: 2px solid #f2f4f4;
  }
  .stat-card .stat-icon {
    margin: 0;
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
  }
  .stat-card .stat-content { margin: 0; }
  .stat-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
  }
  .stat-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
  }

  /* FAQ — мобильная версия */
  .faq-section { margin-bottom: 32px; }
  .faq-question { padding: 16px 16px; font-size: 14px; }
  .faq-answer p { padding: 0 16px 16px 16px; font-size: 14px; }

  /* CTA — ровный блок */
  .cta-section {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  }
  .cta-section img { display: none; } /* Убираем лого в CTA */
  .cta-section .btn { width: 100%; justify-content: center; padding: 14px 24px; }

  /* Footer — компактный */
  .site-footer { padding: 20px 0 16px; }
}

/* Очень узкие экраны (типа iPhone mini / 16e в портрете) —
   ещё немного уменьшаем меню, но логотип остаётся читаемым */
@media (max-width: 430px) {
  .site-header {
    padding: 10px 10px;
    gap: 8px;
  }

  .site-header .logo img {
    max-height: 40px;
  }

  .site-header nav a {
    padding: 0 8px;
    height: 34px;
    font-size: 11px;
  }

  /* Чекаут: ID всегда в одну строку — уменьшаем шрифт на очень узких экранах */
  .checkout-id-label {
    font-size: 12px;
  }
  .checkout-id-value {
    font-size: 0.85rem;
  }
  .checkout-popup-content {
    width: 96%;
    max-width: 340px;
  }
  .checkout-step {
    padding: 0 12px 12px;
  }
  .checkout-payment-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* Reviews — карточки без ссылок, ровно */
.reviews-section { margin-bottom: 40px; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: fadeInUp 0.5s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
  overflow: hidden;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.15s; }
.review-card:nth-child(3) { animation-delay: 0.25s; }
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.review-header img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.review-header > div { flex: 1; min-width: 0; overflow: hidden; }
.review-name { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-date { color: #95a0a7; font-size: 13px; }
.review-emoji { font-size: 20px; }
.review-gold {
  font-size: 11px;
  font-weight: 600;
  color: #0d9e00;
  background: rgba(17,208,0,0.1);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}
.review-text {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  flex: 1;
  min-height: 0;
}

/* Reviews block: обёртка, анимация, VIP, аватарки, кнопки, модалка */
.reviews-grid-wrapper {
  position: relative;
  min-height: 520px;
  min-width: 0;
}
.reviews-grid {
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}
.reviews-grid.animate-out {
  opacity: 0;
  transform: translateY(-20px) scale(0.97);
  filter: blur(3px);
  pointer-events: none;
}
.reviews-grid.animate-in .review-card {
  animation: reviewCardSlideIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  opacity: 0;
}
.reviews-grid.animate-in .review-card:nth-child(1) { animation-delay: 0.05s; }
.reviews-grid.animate-in .review-card:nth-child(2) { animation-delay: 0.12s; }
.reviews-grid.animate-in .review-card:nth-child(3) { animation-delay: 0.19s; }
.reviews-grid.animate-in .review-card:nth-child(4) { animation-delay: 0.26s; }
.reviews-grid.animate-in .review-card:nth-child(5) { animation-delay: 0.33s; }
@keyframes reviewCardSlideIn {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.review-card.review-card-vip {
  border: 2px solid rgba(230,168,0,0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(230,168,0,0.2);
  background: linear-gradient(135deg, #fff 0%, rgba(255,220,150,0.08) 100%);
}
.review-card.review-card-vip:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 20px rgba(230,168,0,0.15);
}
.review-header .avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-self: flex-start;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.review-header .avatar span {
  display: block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
}
.review-header .avatar-wrap {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}
.review-header .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}
.review-header .avatar-fallback {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
}
.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  min-width: 0;
  padding: 0 4px;
}
.reviews-actions .reviews-btn { flex-shrink: 1; min-width: 0; }
.reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  min-height: 40px;
  border: 2px solid var(--so2-bronze);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: #f2ede6;
  color: var(--so2-gold-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.reviews-btn:hover {
  background: #e6dfd4;
  border-color: var(--so2-gold);
  box-shadow: 0 4px 12px rgba(230, 168, 0, 0.2);
  transform: translateY(-1px);
}
.reviews-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.reviews-btn .btn-emoji { font-size: 1em; line-height: 1; }
.reviews-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,33,35,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.reviews-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.reviews-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(166,124,82,0.1);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.reviews-modal-overlay.is-open .reviews-modal {
  transform: scale(1);
  opacity: 1;
}
.reviews-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(230,168,0,0.2), rgba(212,168,75,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.reviews-modal h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: #1d2123; text-align: center; }
.reviews-modal p { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: #555; text-align: center; }
.reviews-modal-close {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ffc107, #e6a800);
  color: #1d2123;
  box-shadow: 0 2px 12px rgba(230,168,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reviews-modal-close:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(230,168,0,0.4);
}

@media (max-width: 600px) {
  .review-card { padding: 16px; }
  .reviews-grid { gap: 12px; }
  .reviews-grid-wrapper { min-height: 480px; }
  .review-header { gap: 10px; }
  .review-header > div { min-width: 0; }
  .reviews-actions { gap: 6px; margin-top: 20px; padding: 0; }
  .reviews-btn { padding: 8px 10px; min-height: 36px; font-size: 13px; }
}

/* Legacy slider (если используется) */
.review__wrapper { padding: 24px 0; }
.review__slide figure, .review__slide .btn-link { display: none !important; }

/* Recent Purchases */
.recent-section { margin-bottom: 40px; }
.recent-purchases-container {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  padding: 2px;
}
.recent-purchases-container::-webkit-scrollbar { display: none; }
.recent-purchase-item {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 17px;
  border-left: 2px solid #f2f4f4;
}
.recent-purchase-item:first-child { border-left: none; }
.recent-purchase-info { display: flex; align-items: center; gap: 12px; }
.recent-purchase-info img { width: 32px; height: 32px; border-radius: 50%; }
.recent-purchase-name { color: #95a0a7; font-size: 12px; margin: 0; }
.recent-purchase-price { color: #1d2123; font-size: 14px; font-weight: 600; margin: 2px 0 0; }

/* Promo block */
.promo-section {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 40px;
}
.promo-section img { width: 150px; height: 150px; flex-shrink: 0; }
.promo-section h3 { margin: 0 0 8px; font-size: 1.25rem; }
.promo-section p { color: #95a0a7; margin: 0 0 16px; font-size: 14px; }
.promo-amount { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.promo-amount img { width: 16px; height: 16px; }
.promo-amount span { font-size: 1.5rem; font-weight: 600; }

/* Stats — дизайнерский, мотивирующий блок */
.stats-section { margin-bottom: 40px; }
.stats-section .section-title {
  margin-bottom: 24px;
  justify-content: center;
}
.reviews-section .section-title,
.faq-section .section-title {
  justify-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(145deg, #fff 0%, #fafbfc 100%);
  border-radius: 20px;
  border: 2px solid rgba(166,124,82,0.15);
  border-left: 4px solid var(--so2-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s;
}
.stat-card-1 { border-left-color: var(--so2-gold); background: linear-gradient(135deg, #fff 0%, rgba(230,168,0,0.06) 100%); }
.stat-card-2 { border-left-color: var(--so2-bronze); background: linear-gradient(135deg, #fff 0%, rgba(166,124,82,0.07) 100%); }
.stat-card-3 { border-left-color: var(--so2-sage); background: linear-gradient(135deg, #fff 0%, rgba(125,174,148,0.06) 100%); }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(166,124,82,0.15);
}
.stat-card .stat-icon { display: block; margin: 0 auto 16px; font-size: 32px; line-height: 1; }
.stat-card .stat-content { flex: 1; min-width: 0; }
.stat-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d2123;
}
.stat-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-section { margin-bottom: 40px; }
.faq-list { border-top: 2px solid #f2f4f4; }
.faq-item {
  border-bottom: 2px solid #f2f4f4;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-question svg { flex-shrink: 0; transition: transform .2s; }
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { margin: 0 0 16px; color: #666; line-height: 1.6; padding-bottom: 16px; }

/* FAQ — аккордеон */
.faq-accordion {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid rgba(166,124,82,0.2);
}
.faq-item {
  border-bottom: 1px solid #f2f4f4;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: #1d2123;
  transition: background 0.2s;
}
.faq-question:hover {
  background: rgba(224,122,95,0.06);
}
.faq-question .faq-emoji {
  flex-shrink: 0;
  font-size: 20px;
}
.faq-question .faq-text {
  text-align: center;
}
.faq-question .faq-icon,
.faq-question .faq-icon-open {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(166,124,82,0.12);
  color: var(--so2-bronze);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 400;
}
.faq-question .faq-icon-open { display: none; }
.faq-item-open .faq-question .faq-icon { display: none; }
.faq-item-open .faq-question .faq-icon-open { display: flex; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item-open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 20px 18px;
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 15px;
  text-align: center;
}

/* CTA block */
.cta-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 40px;
  border: 1px solid rgba(166,124,82,0.15);
}
.cta-section img { width: 80px; height: 80px; }
.cta-section h3 { margin: 0 0 8px; }
.cta-section p { color: #95a0a7; margin: 0 0 16px; font-size: 14px; }
.cta-section .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; background: var(--so2-gold); color: #1d2123; border-radius: 32px; text-decoration: none; font-weight: 600; }
.cta-section .btn:hover { background: var(--so2-gold-dark); color: #fff; }

/* Footer — компактный, без пустых пространств */
.site-footer {
  padding: 20px 0 16px;
  background: linear-gradient(180deg, #fff 0%, #f8f6f0 100%);
  border-top: 2px solid rgba(166,124,82,0.3);
  margin-top: 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px 28px;
}
.footer__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  text-align: left;
}
.footer__logo {
  flex-shrink: 0;
}
.footer__logo img {
  width: 40px;
  height: 40px;
  display: block;
}
.footer__tagline {
  margin: 0;
  color: #95a0a7;
  font-size: 13px;
  line-height: 1.35;
  max-width: 220px;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 0;
  justify-content: center;
  align-items: flex-start;
}
.footer__block {
  text-align: left;
  min-width: 0;
}
.footer__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2123;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li {
  margin-bottom: 4px;
}
.footer__list li:last-child {
  margin-bottom: 0;
}
.footer__list a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer__list a:hover {
  color: var(--so2-bronze);
}
.footer__bottom {
  width: 100%;
  flex: 0 0 100%;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid #eaeef0;
  text-align: center;
}
.footer__copyright {
  margin: 0;
  font-size: 12px;
  color: #95a0a7;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .site-footer { padding: 16px 0 14px; }
  .site-footer .container { flex-direction: column; align-items: center; gap: 16px; }
  .footer__top { flex-direction: column; text-align: center; }
  .footer__tagline { max-width: none; text-align: center; }
  .footer__grid { flex-direction: column; align-items: center; gap: 12px; }
  .footer__block { text-align: center; }
  .footer__bottom { padding-top: 12px; margin-top: 0; }
}

/* Legal pages (privacy, agreement) */
.legal-page {
  padding: 40px 0 60px;
}
.legal-page h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
}
.legal-date,
.legal-tagline {
  text-align: center;
  color: #95a0a7;
  font-size: 14px;
  margin: 0 0 32px;
}
.legal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f2f4f4;
}
.legal-content h2 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: #1d2123;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: #555;
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-content a {
  color: var(--so2-bronze);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-back {
  text-align: center;
  margin: 32px 0 0;
}
.legal-back a {
  color: var(--so2-bronze);
  font-weight: 600;
  text-decoration: none;
}
.legal-back a:hover { text-decoration: underline; }

/* Legal pages — декоративные элементы и CTA */
.legal-highlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(230,168,0,0.06);
  border: 1px solid rgba(230,168,0,0.22);
  margin: 0 0 16px;
  font-size: 14px;
}
.legal-highlight-emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.legal-highlight strong {
  display: block;
  margin-bottom: 2px;
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 8px 0 4px;
}
.legal-card {
  background: #fffdf6;
  border-radius: 14px;
  border: 1px solid rgba(166,124,82,0.2);
  padding: 12px 12px 11px;
}
.legal-card-emoji {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.legal-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.legal-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.discount-chart {
  margin: 10px 0 4px;
}
.discount-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.discount-chart-label {
  width: 56px;
  font-weight: 600;
  color: #555;
}
.discount-chart-bar-wrap {
  flex: 1;
  background: #f1e6d0;
  border-radius: 999px;
  overflow: hidden;
}
.discount-chart-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--so2-amber), var(--so2-gold));
}
.discount-chart-value {
  width: 42px;
  text-align: right;
  font-size: 12px;
  color: #555;
  font-variant-numeric: tabular-nums;
}
.discount-chart-caption {
  margin: 0 0 10px;
  font-size: 12px;
  color: #999;
}

.promo-code-inline {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1d2123;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.legal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--so2-bronze);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  margin-top: 8px;
}
.legal-cta-btn:hover {
  background: none;
  color: var(--so2-bronze);
  text-decoration: underline;
}

/* How to buy — пошаговая инструкция с картинками */
.howto-content { padding: 24px 28px 32px; }
.howto-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
  align-items: center;
  text-align: center;
}
.howto-step:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.howto-text {
  max-width: 600px;
  width: 100%;
}
.howto-text h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.howto-text p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.howto-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: block;
  margin: 0 auto;
}
.howto-faq {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.howto-faq h2 { margin: 0 0 8px; }
.howto-faq p { margin: 0; }

/* My Orders page */
.orders-page {
  padding: 40px 0 60px;
}
.orders-page h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
}
.orders-desc-box {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(166,124,82,0.25);
  background: linear-gradient(135deg, rgba(248,246,241,0.95), rgba(232,220,184,0.35));
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.orders-desc-text {
  margin: 0;
  text-align: center;
  color: #5c4835;
  font-size: 14px;
  line-height: 1.5;
}
.orders-form-block {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid rgba(166,124,82,0.2);
}
.orders-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d2123;
}
.orders-input-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.orders-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid rgba(166,124,82,0.45);
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.orders-input:focus {
  outline: none;
  border-color: var(--so2-bronze);
  box-shadow: 0 0 0 3px rgba(166,124,82,0.15);
}
.orders-btn {
  flex-shrink: 0;
}
.orders-result {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid rgba(166,124,82,0.2);
  display: none;
}
.orders-empty {
  margin: 0;
  color: #95a0a7;
  font-size: 15px;
}
@media (max-width: 500px) {
  .orders-input-wrap { flex-direction: column; }
  .orders-input { min-width: 100%; }
  .orders-btn { width: 100%; }
}

/* Form steps 2 & 3 — compatibility */
.main-container[data-step="2"], .main-container[data-step="3"] { display: none; }
.css-70qvj9 { display: flex; align-items: center; }
.css-14xdbal { cursor: pointer; }
.css-g5ybp2 { font-size: 20px; font-weight: 600; margin-left: 17px; }
.css-1vdrcln { color: #95a0a7; font-size: 14px; margin-top: 8px; }
.css-12jxtrp { display: inline-flex; align-items: center; background: #f2f4f5; border-radius: 12px; padding: 16px; width: 100%; }
.display_name { border: 0; background: none; font: inherit; width: 100%; }
.css-1iyauxu { padding: 15px 30px; border: 1px solid #eff1f2; border-radius: 16px; cursor: pointer; margin-bottom: 12px; }
.css-1iyauxu:hover { border-color: #838e95; }
.css-1jc1f8x { background: #eff1f2; }
.css-c19noc, .css-42eztr { display: flex; align-items: center; background: #f2f4f5; border-radius: 16px; padding: 16px; }
.css-1n9damh { color: #95a0a7; font-size: 14px; margin-top: 24px; }
.css-1rjn7uz { font-size: 20px; font-weight: 600; margin-top: 8px; }
.payment_box p { margin: 5px 0; }
.hide { display: none !important; }

/* Fancybox placeholder */
#fancybox-tmp, #fancybox-loading, #fancybox-overlay, #fancybox-wrap { display: none; }

/* Orders Loader Popup — лоадер поиска заказов */
.orders-loader-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.orders-loader-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.orders-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.orders-loader-content {
  position: relative;
  background: linear-gradient(145deg, #fff 0%, #faf9f7 100%);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(230, 168, 0, 0.1);
  text-align: center;
  opacity: 0;
  transform: scale(0.95) translateY(-15px);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(166, 124, 82, 0.2);
}
.orders-loader-popup.is-open .orders-loader-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.orders-loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}
.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--so2-gold);
  border-radius: 50%;
  animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.loader-ring:nth-child(1) {
  animation-delay: -0.45s;
  border-top-color: var(--so2-gold);
  border-width: 4px;
}
.loader-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-top-color: var(--so2-bronze);
  border-width: 3px;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}
.loader-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-top-color: var(--so2-gold-dark);
  border-width: 2px;
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
}
@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.orders-loader-text {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2123;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
.orders-loader-id {
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(230, 168, 0, 0.08) 0%, rgba(232, 220, 184, 0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(166, 124, 82, 0.2);
}
.orders-loader-id-value {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--so2-gold-dark);
  word-break: break-all;
  letter-spacing: 0.02em;
}
@media (max-width: 500px) {
  .orders-loader-content {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .orders-loader-spinner {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  .orders-loader-text {
    font-size: 15px;
    margin-bottom: 14px;
  }
}

/* Orders Alert Popup — красивое уведомление о отсутствии заказов */
.orders-alert-popup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.orders-alert-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.orders-alert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.orders-alert-content {
  position: relative;
  background: linear-gradient(145deg, #fff 0%, #faf9f7 100%);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(230, 168, 0, 0.1);
  text-align: center;
  opacity: 0;
  transform: scale(0.92) translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(166, 124, 82, 0.2);
}
.orders-alert-popup.is-open .orders-alert-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.orders-alert-icon {
  font-size: 64px;
  line-height: 1;
  margin: 0 0 16px;
  animation: alertIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  filter: drop-shadow(0 4px 12px rgba(230, 168, 0, 0.3));
}
@keyframes alertIconBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  70% {
    transform: scale(0.95) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.orders-alert-title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d2123;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.orders-alert-id {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(230, 168, 0, 0.1) 0%, rgba(232, 220, 184, 0.2) 100%);
  border-radius: 14px;
  border: 2px solid rgba(166, 124, 82, 0.25);
  animation: fadeInUp 0.5s ease 0.4s both;
}
.orders-alert-id-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b5210;
  margin-bottom: 6px;
}
.orders-alert-id-value {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--so2-gold-dark);
  word-break: break-all;
  letter-spacing: 0.02em;
}
.orders-alert-message {
  margin: 0 0 24px;
  font-size: 16px;
  color: #5c5c5c;
  line-height: 1.6;
  animation: fadeInUp 0.5s ease 0.5s both;
}
.orders-alert-close {
  width: 100%;
  margin: 0;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  animation: fadeInUp 0.5s ease 0.6s both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 500px) {
  .orders-alert-content {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .orders-alert-icon {
    font-size: 56px;
    margin-bottom: 14px;
  }
  .orders-alert-title {
    font-size: 1.25rem;
    margin-bottom: 18px;
  }
  .orders-alert-id {
    padding: 12px 16px;
    margin-bottom: 18px;
  }
  .orders-alert-id-value {
    font-size: 1rem;
  }
  .orders-alert-message {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* Payment success page */
.success-page {
  padding: 40px 0 60px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}
.success-flow-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 22px 30px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(166,124,82,0.38);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.success-loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
}
.success-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--so2-gold);
  border-right-color: rgba(230,168,0,0.6);
  animation: successLoaderSpin 1.2s linear infinite;
}
.success-loader-ring-inner {
  inset: 10px;
  border-top-color: var(--so2-bronze);
  border-right-color: rgba(166,124,82,0.5);
  animation-duration: 1.7s;
  animation-direction: reverse;
}
.success-loader-core {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff, #f8e6b5 40%, #e6a800 100%);
  box-shadow: 0 0 0 4px rgba(230,168,0,0.15), 0 8px 18px rgba(0,0,0,0.18);
  animation: successLoaderPulse 1.4s ease-in-out infinite;
}
@keyframes successLoaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes successLoaderPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(230,168,0,0.1), 0 8px 18px rgba(0,0,0,0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(230,168,0,0.2), 0 10px 22px rgba(0,0,0,0.22);
  }
}
.success-flow-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}
.success-flow-text {
  margin: 0 0 18px;
  font-size: 14px;
  color: #555;
}
.success-flow-progress {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(166,124,82,0.18);
  overflow: hidden;
}
.success-flow-progress-bar {
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, #ffc107, #e6a800, #d4a012);
  border-radius: inherit;
  animation: successFlowProgress 1.8s ease-in-out infinite;
}
@keyframes successFlowProgress {
  0% { transform: translateX(-70%); opacity: 0.4; }
  20% { opacity: 1; }
  100% { transform: translateX(140%); opacity: 0.9; }
}
.success-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 22px 26px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(166,124,82,0.3);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.success-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.success-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.success-text {
  margin: 0 0 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.success-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 12px;
}
.success-back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--so2-bronze);
  text-decoration: none;
}
.success-back-link:hover {
  text-decoration: underline;
}
.success-flow-hide {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.success-card-final {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -40%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.success-final-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
@media (max-width: 600px) {
  .success-page {
    padding: 28px 0 40px;
  }
  .success-flow-card,
  .success-card {
    padding: 22px 16px 26px;
    border-radius: 18px;
  }
}

/* Анимированная коробка с подарком */
.gift-box {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 100px;
  height: 100px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: giftBoxFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.gift-box:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.gift-box:active {
  transform: scale(0.95);
}

.gift-box-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(230, 168, 0, 0.4));
  /* Убрали тряску для более спокойной анимации */
}

.gift-box-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(230, 168, 0, 0.5);
  animation: giftBoxFloat 3s ease-in-out infinite;
}

/* Блики отключены для более спокойного визуала */
.gift-box-shine {
  display: none;
}

@keyframes giftBoxFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

/* Модальное окно подарка */
.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  pointer-events: none;
}

.gift-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gift-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-modal.is-open .gift-modal-overlay {
  opacity: 1;
}

.gift-modal-content {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 0;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(230, 168, 0, 0.1);
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.gift-modal.is-open .gift-modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gift-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1d2123;
  transform: rotate(90deg);
}

.gift-modal-header {
  padding: 32px 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(230, 168, 0, 0.15) 0%, rgba(232, 220, 184, 0.3) 50%, rgba(166, 124, 82, 0.1) 100%);
  border-bottom: 1px solid rgba(166, 124, 82, 0.15);
}

.gift-modal-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: giftModalIconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center bottom;
}

.gift-modal.is-open .gift-modal-icon {
  animation: giftModalIconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}

@keyframes giftModalIconBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.gift-modal-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d2123;
  animation: giftModalFadeInUp 0.5s ease-out 0.3s both;
}

.gift-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
  animation: giftModalFadeInUp 0.5s ease-out 0.4s both;
}

@keyframes giftModalFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gift-modal-body {
  padding: 24px 28px;
  text-align: center;
}

.gift-modal-text {
  margin: 0 0 20px;
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.5;
  animation: giftModalFadeInUp 0.5s ease-out 0.5s both;
}

.gift-modal-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(230, 168, 0, 0.1) 0%, rgba(232, 220, 184, 0.2) 100%);
  border-radius: 16px;
  border: 2px solid rgba(230, 168, 0, 0.3);
  animation: giftModalFadeInUp 0.5s ease-out 0.6s both;
}

.gift-modal-code-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(230, 168, 0, 0.08) 0%, rgba(232, 220, 184, 0.18) 100%);
  border-radius: 16px;
  border: 1px solid rgba(166,124,82,0.25);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  animation: giftModalFadeInUp 0.5s ease-out 0.6s both;
}

.gift-modal-code {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(230, 168, 0, 0.55);
  color: #1d2123;
  text-align: center;
  user-select: all;
}

.gift-modal-copy {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #1d2123;
  background: linear-gradient(135deg, #ffc107, #e6a800);
  box-shadow: 0 10px 22px rgba(230,168,0,0.20);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.gift-modal-copy:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(230,168,0,0.24);
}

.gift-modal-copy:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(230,168,0,0.18);
}

.gift-modal-copy:disabled {
  opacity: 0.75;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.gift-modal-copy-status {
  min-height: 0;
  margin: 4px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #0d9e00;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gift-modal-copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gift-modal-instruction {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: center;
  animation: giftModalFadeInUp 0.5s ease-out 0.7s both;
}

.gift-modal-offer-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.gift-modal-offer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--so2-gold);
  text-shadow: 0 2px 4px rgba(230, 168, 0, 0.2);
}

.gift-modal-conditions {
  margin: 0;
  font-size: 12px;
  color: #999;
  animation: giftModalFadeInUp 0.5s ease-out 0.7s both;
}

.gift-modal-actions {
  padding: 0 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: giftModalFadeInUp 0.5s ease-out 0.8s both;
}

.gift-modal-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.gift-modal-skip {
  background: transparent;
  border: none;
  color: #999;
  font-size: 14px;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.gift-modal-skip:hover {
  color: #666;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
  .gift-box {
    width: 80px;
    height: 80px;
    left: 15px;
    bottom: 15px;
  }

  .gift-modal-content {
    max-width: 360px;
    width: 94%;
    border-radius: 24px;
  }

  .gift-modal-header {
    padding: 28px 20px 20px;
  }

  .gift-modal-icon {
    font-size: 56px;
  }

  .gift-modal-title {
    font-size: 1.3rem;
  }

  .gift-modal-body {
    padding: 20px;
  }

  .gift-modal-offer {
    padding: 16px;
  }

  .gift-modal-code-wrap {
    grid-template-columns: 1fr;
  }

  .gift-modal-copy {
    width: 100%;
  }

  .gift-modal-offer-value {
    font-size: 1.3rem;
  }

  .gift-modal-actions {
    padding: 0 20px 20px;
  }
}

@media (max-width: 400px) {
  .gift-box {
    width: 70px;
    height: 70px;
    left: 10px;
    bottom: 10px;
  }
}
