@font-face {
  font-family: 'Waverly CF';
  src: url('/fonts/WaverlyCF-Medium.woff2') format('woff2'),
       url('/fonts/WaverlyCF-Medium.woff') format('woff'),
       url('/fonts/WaverlyCF-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('/fonts/Nexa-Regular.woff2') format('woff2'),
       url('/fonts/Nexa-Regular.woff') format('woff'),
       url('/fonts/Nexa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa Thin';
  src: local('Nexa Thin'),
       local('Nexa-Thin'),
       url('/fonts/Nexa-Thin.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Nexa Thin', 'Nexa', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mini-app (Telegram): use Nexa Regular + heavier weight so it reads bolder than site skin */
body.telegram-mode,
body.telegram-mode button,
body.telegram-mode input,
body.telegram-mode select,
body.telegram-mode textarea {
  font-family: 'Nexa', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* Сайт (не Telegram): без Nexa Thin — иначе текст выглядит слишком тонким */
body.web-mode {
  font-family: 'Nexa', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.profile-admin-entry {
  margin: 14px 0 6px;
  text-align: center;
}

.profile-admin-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-admin-link:hover {
  color: #333;
}

.profile-admin-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #888;
}

a {
  color: #000;
  text-decoration: none;
}

button, select {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Header */
#header {
  padding: 16px 0 8px;
  border-bottom: none;
  background: #fff;
  text-align: center;
}

#logo {
  width: 60%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.03);
}

#logo-link {
  display: block;
  text-decoration: none;
  color: #000;
}

#logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

#logo-text:hover {
  transform: scale(1.03);
}

.logo-arka {
  font-family: 'Waverly CF', 'Playfair Display', 'Georgia', serif;
  font-weight: 500;
  font-size: 72px;
  letter-spacing: 12px;
  text-transform: uppercase;
  line-height: 1;
  color: #000;
}

.logo-sub {
  font-family: 'Nexa', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
  margin-top: 8px;
}

/* Tab bar */
#tab-bar {
  display: flex;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 99;
}

.tab-btn {
  flex: 1;
  padding: 12px 4px;
  background: #fff;
  color: #aaa;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.tab-btn.active {
  color: #000;
  border-bottom-color: #000;
  font-weight: 700;
}

.tab-btn:active {
  transform: scale(0.95);
}

.tab-btn.tab-btn--bell {
  flex: 0 0 auto;
  min-width: 44px;
  max-width: 52px;
  padding: 10px 6px;
  font-size: 0;
  letter-spacing: 0;
  color: #000;
}

.tab-btn.tab-btn--bell:hover {
  transform: none;
}

.tab-btn.tab-btn--bell:hover .ark-bell-icon {
  animation: ark-bell-ring 0.58s ease-in-out 1;
}

.ark-bell-icon {
  display: block;
  margin: 0 auto;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: #000000;
  -webkit-mask-image: var(--ark-bell-mask);
  mask-image: var(--ark-bell-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform-origin: 50% 12%;
}

.web-toolbar-bell-icon {
  width: 24px;
  height: 24px;
}

.tab-badge--overlay {
  position: absolute;
  top: 6px;
  right: 2px;
  margin: 0;
}

.tab-badge {
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
  outline: none;
}

/* Main */
#app {
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

body.web-mode {
  --web-marquee-offset: 42px;
  --web-safe-top: env(safe-area-inset-top, 0px);
  --web-toolbar-fixed-height: 176px;
}

body.site-hero-lock {
  overflow: hidden;
}

body.site-cover-active #home-catalog,
body.site-cover-active .web-store-info,
body.site-cover-active #web-quick-nav,
body.site-cover-active #footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Пока грузится веб-главная: не показывать футер (отзывы), иначе при обновлении они мелькают до заставки */
body.web-splash-pending #footer {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.web-splash-pending #header,
body.web-splash-pending #tab-bar,
body.web-splash-pending #web-quick-nav {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.web-splash-pending #app {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#site-hero.site-hero--inline-bootstrap {
  display: none;
}

body.web-splash-pending #site-hero.site-hero--inline-bootstrap {
  display: block;
}

/* Keep marquee + toolbar rendered from the start; intro covers them as a separate layer */
.site-hero--desktop-slides,
.site-hero--desktop-script {
  z-index: 2400;
}

/* Website preloader + hero (non-Telegram web) */
.site-preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(150% 110% at 50% 38%, #151a2b 0%, #0d101b 54%, #090b12 100%);
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  /* Failsafe: never keep user on black screen forever. */
  animation: preloaderAutoHide 4.8s ease forwards;
}

.site-preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 52% at 50% 48%, rgba(255, 255, 255, 0.035), transparent 72%),
    radial-gradient(120% 90% at 50% 100%, rgba(0, 0, 0, 0.32), transparent 58%);
  pointer-events: none;
}

.site-preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

body.site-preloader-active .site-hero {
  opacity: 0;
  transform: scale(1.002);
}

.site-hero {
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1), transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-preloader-logo {
  width: min(220px, 56vw);
  height: auto;
  filter: invert(1) brightness(1.08) contrast(1.02) drop-shadow(0 6px 28px rgba(255, 255, 255, 0.08));
  opacity: 0.985;
}

.site-preloader-title {
  margin-top: 14px;
  letter-spacing: 0.28em;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.site-hero {
  --hero-intro-progress: 0;
  --hero-title-progress: 0;
  --hero-subtitle-progress: 0;
  --hero-section-progress: 0;
  --hero-image-progress: 0;
  --hero-progress: var(--hero-title-progress);
  --hero-cta-progress: var(--hero-subtitle-progress);
  margin: 0 0 26px;
  min-height: 118vh;
  position: relative;
}

.site-hero--desktop-slides {
  min-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 2400;
  margin: 0;
}

.site-hero--desktop-script {
  min-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 2400;
  margin: 0;
}

.site-hero--desktop-slides .site-hero-stage {
  position: relative;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
}

.site-hero--desktop-script .site-hero-stage {
  position: relative;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -8%, rgba(255, 255, 255, 0.92) 0%, rgba(247, 248, 253, 0.9) 42%, rgba(237, 240, 248, 0.95) 100%),
    linear-gradient(180deg, #fafbfe 0%, #eef2fa 100%);
}

.site-hero--desktop-slides .site-hero-stage::before {
  content: none;
}

.site-hero--desktop-script .site-hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 52% at 50% 50%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.site-hero-script-slides {
  position: relative;
  z-index: 2;
  width: min(92vw, 1200px);
  min-height: min(42vh, 460px);
}

.site-hero-script-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px) scale(0.998);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-hero-script-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-hero-script-lead {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  font-size: clamp(44px, 6vw, 96px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10131f;
  text-align: center;
  text-shadow: 0 12px 38px rgba(17, 20, 34, 0.12);
}

.site-hero-script-layer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  text-align: center;
}

.site-hero-script-line {
  display: block;
  min-height: 1.2em;
  white-space: nowrap;
}

.site-hero-script-line--lead {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  font-size: clamp(40px, 5.8vw, 92px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0f1014;
}

.site-hero-script-line--brand {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  font-size: clamp(42px, 6.1vw, 98px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #141827;
  text-shadow: 0 12px 42px rgba(20, 24, 39, 0.11);
}

.site-hero-script-line--sub {
  font-size: clamp(14px, 1.4vw, 22px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 22, 34, 0.76);
}

.site-hero-script-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  animation: none;
  will-change: transform, opacity;
}

.site-hero--desktop-script.site-hero--ready .site-hero-script-char {
  animation: scriptCharIn var(--intro-char-anim, 760ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-hero-script-char-spacer {
  display: inline-block;
  width: 0.16em;
}

.site-hero-script-sub-fade {
  opacity: 0;
  transform: translateY(8px);
  animation: none;
  font-size: clamp(14px, 1.4vw, 22px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 24, 39, 0.74);
  will-change: transform, opacity;
}

.site-hero--desktop-script.site-hero--ready .site-hero-script-sub-fade {
  animation: scriptSubIn var(--intro-sub-anim, 820ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--intro-sub-delay, 1780ms);
}

.site-hero--script-end .site-hero-script-layer {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--intro-fade-out, 560ms) ease, transform var(--intro-fade-out, 560ms) ease;
}

@keyframes scriptCharIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.site-hero-desktop-slides {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.site-hero-desktop-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(6px) scale(0.998);
  transition:
    opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  border-radius: 0;
  will-change: opacity, transform;
}

.site-hero-desktop-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.site-opening-after-cover .web-marquee,
body.site-opening-after-cover .web-shop-toolbar,
body.site-opening-after-cover #home-catalog,
body.site-opening-after-cover .web-store-info,
body.site-opening-after-cover #web-quick-nav {
  animation: coverContentFadeIn 0.42s ease-out forwards;
}

@keyframes coverContentFadeIn {
  from {
    opacity: 0;
  }
  to { opacity: 1; }
}

.site-hero-desktop-slide--dark {
  background: #0d0d11;
  color: #fff;
}

.site-hero-desktop-logo {
  width: min(640px, 72vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: invert(1) brightness(1.18) contrast(1.04);
}

.site-hero-desktop-title {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 96px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1014;
  text-align: center;
  line-height: 1.06;
}

.site-hero-desktop-subtitle {
  font-size: clamp(14px, 1.5vw, 22px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 16, 20, 0.72);
  text-align: center;
}

.site-hero--done {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.site-hero-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 20px 34px;
}

.site-hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  pointer-events: none;
  opacity: calc(1 - (1.15 * var(--hero-intro-progress)));
  transform: translateY(calc(-22px * var(--hero-intro-progress)));
  transition: opacity 0.25s linear, transform 0.25s linear;
}

.site-hero-intro-title {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  font-size: clamp(26px, 5.3vw, 64px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0e0e11;
}

.site-hero-intro-arrow {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: rgba(14, 14, 17, 0.76);
  animation: heroArrowFloat 1.9s ease-in-out infinite;
}

.site-hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 90% at calc(8% + (32% * var(--hero-section-progress))) calc(10% + (20% * var(--hero-section-progress))),
      rgba(0, 0, 0, 0.055) 0%,
      rgba(0, 0, 0, 0.02) 45%,
      transparent 70%
    );
  opacity: calc(0.06 + (0.14 * var(--hero-section-progress)));
  pointer-events: none;
  z-index: 0;
}

.site-hero-top {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.site-hero-city {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: calc(0.82 - (0.4 * var(--hero-progress)));
}

.site-hero-bouquet {
  position: relative;
  margin: 10vh auto 0;
  width: min(360px, 84vw);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: transparent;
  transform:
    rotate(calc(-24deg + (42deg * var(--hero-progress))))
    scale(calc(0.78 + (0.22 * var(--hero-progress))));
  filter:
    saturate(calc(0.38 + (0.72 * var(--hero-progress))))
    brightness(calc(0.72 + (0.28 * var(--hero-progress))))
    blur(calc((1 - var(--hero-progress)) * 1.7px));
  transition: transform 0.25s linear, filter 0.25s linear;
  box-shadow: none;
  z-index: 2;
}

.site-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  image-rendering: auto;
}

.site-hero-bouquet::after {
  content: none;
}

.site-hero-bouquet-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.2s linear;
  image-rendering: auto;
}

.site-hero-bouquet.site-hero-bouquet--fallback {
  background:
    radial-gradient(circle at 36% 35%, #ffe9f2 0 22%, transparent 23%),
    radial-gradient(circle at 68% 30%, #ffd9ea 0 22%, transparent 23%),
    radial-gradient(circle at 49% 56%, #fff5fa 0 28%, transparent 29%),
    radial-gradient(circle at 38% 67%, #ffffff 0 16%, transparent 17%),
    radial-gradient(circle at 67% 66%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #f8dce8 0%, #f6eef4 55%, #ece7ef 100%);
}

.site-hero-bouquet.site-hero-bouquet--fallback .site-hero-bouquet-img {
  opacity: 1;
}

.site-hero-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: auto 0;
  opacity: calc(0.02 + (0.98 * var(--hero-title-progress)));
  transform: translateY(calc(18px - (18px * var(--hero-title-progress))));
  transition: opacity 0.2s linear, transform 0.2s linear;
}

.site-hero-brand--textonly {
  max-width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-hero-brand-logo {
  width: min(280px, 76vw);
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.site-hero-title {
  font-family: 'Waverly CF', 'Playfair Display', serif;
  letter-spacing: 0.08em;
  font-size: clamp(28px, 6.5vw, 84px);
  margin-bottom: 12px;
  color: #0e0e11;
  text-transform: uppercase;
  opacity: calc(0.02 + (0.98 * var(--hero-title-progress)));
  transform: translateX(calc(-52px + (52px * var(--hero-title-progress))));
  clip-path: inset(0 calc((1 - var(--hero-title-progress)) * 100%) 0 0);
  transition: opacity 0.22s linear, transform 0.22s linear, clip-path 0.22s linear;
  line-height: 1.08;
}

.site-hero-subtitle {
  font-size: clamp(12px, 1.3vw, 18px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 14, 17, 0.74);
  margin-bottom: 0;
  opacity: calc(var(--hero-subtitle-progress));
  transform: translateX(calc(-30px + (30px * var(--hero-subtitle-progress))));
  transition: opacity 0.22s linear, transform 0.22s linear;
}

.site-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #17151d;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  opacity: calc(var(--hero-cta-progress));
  transform: translateY(calc(10px - (10px * var(--hero-cta-progress))));
}

.site-hero-cta:active {
  transform: scale(0.97) translateY(calc(10px - (10px * var(--hero-cta-progress))));
}

.site-hero-hint {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #8b8a90;
  letter-spacing: 0.08em;
  opacity: calc(1 - (0.72 * var(--hero-title-progress)));
}

.home-catalog-block {
  scroll-margin-top: 90px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  background: #fff;
}

body.web-mode .home-catalog-block {
  padding-top: 12px;
  scroll-margin-top: calc(90px + var(--web-marquee-offset));
}

/* Mobile web landing: hero + search/categories visible; sheet chrome hidden */
body.web-mode.web-home-static-open .web-marquee {
  display: flex;
}

body.web-mode.web-home-static-open .web-shop-toolbar--no-hero {
  top: calc(var(--web-marquee-offset) + var(--web-safe-top));
  margin-top: calc(var(--web-marquee-offset) + var(--web-safe-top));
}

body.web-mode.web-home-static-open .web-catalog-sheet {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  background: #fff;
}

body.web-mode.web-home-static-open .web-catalog-sheet-overlay,
body.web-mode.web-home-static-open .web-catalog-sheet-head {
  display: none !important;
}

body.web-mode.web-home-static-open .web-catalog-sheet-scroll {
  overflow: visible;
}

.web-catalog-sheet {
  position: relative;
}

.web-catalog-sheet-overlay {
  display: none;
}

.web-catalog-sheet-head,
.web-catalog-sheet-title-row,
.web-catalog-sheet-title,
.web-catalog-sheet-close,
.web-catalog-sheet-scroll {
  display: none;
}

body.web-mode .web-catalog-sheet-scroll {
  display: block;
}

.web-catalog-sheet-handle {
  display: none;
}

/* Search + categories should scroll away with page */
body.web-mode .web-shop-toolbar {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  margin: 10px auto 18px;
  z-index: 80;
}

.web-category-section {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(18px);
  animation: sectionReveal 0.5s ease forwards;
  animation-delay: var(--section-delay, 0ms);
}

@media (min-width: 900px) {
  /* Только блок «магазин» внизу — у каталога убрали content-visibility: иначе на ПК новые секции/категории могли не отрисовываться */
  body.web-mode .web-store-info {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

/* ПК: крупнее бегущая строка; чипы категорий в несколько рядов — все категории видны без горизонтального скролла */
@media (min-width: 901px) {
  body.web-mode {
    --web-marquee-offset: 50px;
  }
  body.web-mode .web-marquee-item {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.11em;
    padding: 0 26px;
  }
  body.web-mode .web-marquee-sep {
    font-size: 18px;
    width: 34px;
  }
  body.web-mode .web-quick-cats {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    overflow-y: visible;
    row-gap: 12px;
    column-gap: 10px;
    padding: 14px 24px 18px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  body.web-mode .web-quick-cat-chip {
    font-size: 15px;
    padding: 9px 17px;
    max-width: min(320px, 100%);
  }
}

.web-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.web-category-title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  line-height: 1.15;
}

.web-category-link {
  border: 1px solid #22242a;
  background: #fff;
  color: #111;
  padding: 10px 20px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.web-category-link:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.web-category-link:active {
  transform: translateY(1px);
}

.web-marquee {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #12131a 0%, #1a1c25 52%, #12131a 100%);
  color: #f8f8fa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18) inset;
  min-height: var(--web-marquee-offset);
  display: flex;
  align-items: center;
}

body.web-mode .web-marquee {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  width: auto;
  z-index: 130;
}

@media (max-width: 900px) and (pointer: coarse) {
  body.web-mode .web-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    padding-top: var(--web-safe-top);
    min-height: calc(var(--web-marquee-offset) + var(--web-safe-top));
    border-radius: 0;
    z-index: 240;
  }
  body.web-mode .web-shop-toolbar--no-hero {
    margin-top: calc(var(--web-marquee-offset) + var(--web-safe-top) + 8px);
    top: calc(var(--web-marquee-offset) + var(--web-safe-top));
  }
}

.web-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: webMarqueeMove var(--marquee-duration, 18s) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.web-marquee-track--right {
  animation-direction: reverse;
}


.web-marquee-group {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.web-marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  min-height: var(--web-marquee-offset);
  padding: 0 20px;
  opacity: 0.95;
}

.web-marquee--mini {
  border-radius: 0;
  margin-bottom: 0;
}

body.telegram-mode .web-marquee--mini,
html[data-runtime="telegram"] .web-marquee--mini {
  position: relative;
  top: auto;
  z-index: 2;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 36px;
}

body.telegram-mode .web-marquee--mini .web-marquee-item,
html[data-runtime="telegram"] .web-marquee--mini .web-marquee-item {
  min-height: 36px;
  font-size: 11px;
  padding: 0 14px;
}

.web-marquee-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  font-size: 15px;
  line-height: 1;
  opacity: 0.78;
  transform: translateY(-0.5px);
}

@keyframes webMarqueeMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.web-shop-toolbar {
  max-width: 1280px;
  margin: 10px auto 18px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #eff0f3;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
  position: sticky;
  top: var(--web-marquee-offset);
  z-index: 80;
  backdrop-filter: saturate(1.05) blur(6px);
  -webkit-backdrop-filter: saturate(1.05) blur(6px);
}

body.web-mode .web-shop-toolbar,
body.web-mode .web-shop-toolbar--no-hero {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  margin: 10px auto 18px;
  z-index: 80;
}

body.web-mode .web-shop-toolbar--no-hero {
  position: sticky;
  top: var(--web-marquee-offset);
  z-index: 125;
}

body.web-mode .web-shop-toolbar--filters {
  position: relative;
  top: auto;
  z-index: 80;
}

.web-shop-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 10px;
  min-width: 0;
}

.web-shop-topline--header {
  display: grid;
  grid-template-columns: 168px 1fr 168px;
  gap: 10px;
  padding: 10px 0 8px;
  align-items: center;
}

.web-shop-topline--search {
  padding: 6px 0 8px;
}

.web-call-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 168px;
  justify-content: flex-start;
}

.web-call-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #dfe1e8;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.web-call-btn svg {
  width: 22px;
  height: 22px;
  fill: #101114;
}

.web-call-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  border: 1px solid #e5e7ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 10px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 85;
}

.web-call-wrap.open .web-call-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.web-call-panel-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.web-header-logo {
  border: none;
  background: transparent;
  padding: 0;
  width: min(100%, 640px);
  height: 94px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.web-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.web-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.web-header-city-wrap {
  display: flex;
  justify-content: center;
}

.web-header-city.city-current,
.web-sheet-city.city-current {
  border: none;
  font-family: inherit;
}

.web-catalog-sheet-title-row .city-current {
  margin: 0 8px 0 auto;
  flex-shrink: 0;
}

.web-toolbar-actions--header {
  width: 168px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.web-quick-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #ececf0;
  margin-bottom: 8px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.web-quick-cats::-webkit-scrollbar {
  display: none;
}

.web-promo-cat-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--web-promo-cat-bar-top, 108px);
  z-index: 124;
  margin: 0;
  padding: 11px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #e4e6ec;
  box-shadow: 0 6px 16px rgba(16, 18, 24, 0.07);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #11131a;
  text-align: center;
}

body.web-promo-cat-bar-active.web-mode .web-shop-toolbar--filters {
  scroll-margin-top: calc(var(--web-promo-cat-bar-height, 46px) + 8px);
}

body.web-promo-cat-bar-active.web-mode #web-quick-cats {
  scroll-margin-top: calc(var(--web-promo-cat-bar-height, 46px) + 8px);
}

#active-cat-title.active-cat-title--promo {
  display: block !important;
  font-size: clamp(20px, 5.8vw, 28px);
  font-weight: 600;
  margin: 0 0 16px;
  padding: 10px 0 4px;
  text-align: center;
}

.web-quick-search {
  display: none;
  padding: 6px 12px 2px;
}

.web-quick-search.open {
  display: block;
}

/* iOS Safari: font-size < 16px в поле ввода вызывает зум — не отпускает после blur */
@media (max-width: 900px) {
  body.web-mode input,
  body.web-mode select,
  body.web-mode textarea {
    font-size: 16px;
  }
}

.web-quick-cat-chip--accessory {
  font-weight: 700;
  border-color: #d9c8ec;
  background: #faf7fd;
}

.web-quick-cat-chip--accessory-bundle,
.cat-chip--accessory-bundle {
  max-width: none;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 8px 14px;
  letter-spacing: 0;
  text-transform: none;
}

body.web-mode .web-quick-cat-chip--accessory-bundle {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

body.telegram-mode .cat-chip--accessory-bundle {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.web-quick-cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.web-quick-cat-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-quick-cat-chip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.web-quick-cat-chip--search {
  min-width: 52px;
  padding-left: 10px;
  padding-right: 10px;
}

.web-quick-cat-chip:hover {
  background: #f0f0f0;
}

.web-quick-cat-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.web-shop-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.web-shop-search {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #d4d6dc;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  background: #fefefe;
  text-transform: lowercase;
  -webkit-text-size-adjust: 100%;
}

.web-shop-search:focus {
  border-color: #111;
}

.web-shop-search-btn {
  width: 58px;
  height: 46px;
  border: 1px solid #1d1f24;
  border-radius: 0 8px 8px 0;
  background: #1d1f24;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.web-shop-search-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.web-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.web-toolbar-action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}

.web-toolbar-action-btn svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

.web-toolbar-action-btn.web-toolbar-action-btn--bell:hover .ark-bell-icon {
  animation: ark-bell-ring 0.58s ease-in-out 1;
}

.web-toolbar-action-btn:hover,
.web-toolbar-action-btn.active {
  background: #f1f2f5;
}

.web-toolbar-action-btn:active {
  transform: scale(0.96);
}

.web-toolbar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff2f4d;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.web-store-info {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 24px 20px 8px;
}

.web-store-info-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.28;
  text-transform: none;
  text-align: center;
  letter-spacing: 0.01em;
  max-width: 22em;
  margin: 0 auto 28px;
  text-wrap: balance;
  color: #111;
}

.web-store-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.web-store-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.web-store-info-head {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.25;
  font-weight: 600;
  color: #111;
}

.web-store-info-line {
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.55;
  color: #333;
  word-break: break-word;
}

.web-store-info-link {
  margin-top: 4px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #222;
  text-decoration: underline;
  line-height: 1.45;
}

.web-store-call-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 40px;
  background: #22242a;
  color: #fff;
  border-radius: 3px;
  font-size: 16px;
}

.web-store-socials {
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

.web-store-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #121212;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.web-mode #app {
  max-width: none;
  padding: 0 0 24px;
  background: #fff;
  overflow-x: clip;
}

body.web-mode .web-flow-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 24px 12px;
}

body.web-mode .web-flow-shell--checkout {
  width: min(100%, 980px);
}

body.web-mode .web-flow-shell > .back-link,
body.web-mode .web-flow-shell > .section-title,
body.web-mode .web-flow-shell--checkout .checkout-steps,
body.telegram-mode .web-flow-shell > .back-link,
body.telegram-mode .web-flow-shell > .section-title,
html[data-runtime="telegram"] .web-flow-shell > .back-link,
html[data-runtime="telegram"] .web-flow-shell > .section-title,
html[data-runtime="telegram"] .web-flow-shell--checkout .checkout-steps {
  scroll-margin-top: calc(var(--web-marquee-offset, 42px) + var(--web-safe-top, 0px) + 84px);
}

body.web-mode .web-flow-shell--payment {
  width: min(100%, 860px);
}

body.web-mode .web-flow-shell--favorites {
  width: min(100%, 1180px);
}

body.web-mode .web-flow-shell--profile {
  width: min(100%, 980px);
}

body.web-mode .web-centered-page-card {
  max-width: 880px;
  margin: 8px auto 0;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 24px rgba(16, 18, 24, 0.04);
}

body.web-mode .web-flow-shell--favorites .web-centered-page-card {
  max-width: 1160px;
}

body.web-mode #header {
  display: none;
}

body.web-mode #tab-bar {
  display: none !important;
}

body.web-mode .tab-btn {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.58);
}

body.web-mode .tab-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

.web-quick-nav {
  display: none;
}

body.web-mode .web-quick-nav {
  display: none !important;
}

body.telegram-mode .web-quick-nav {
  display: none !important;
}

.web-quick-toggle {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: rgba(18, 18, 24, 0.9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.web-quick-toggle:active {
  transform: scale(0.96);
}

.web-quick-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.web-mode .web-quick-nav.web-quick-nav--open .web-quick-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.web-mode .web-quick-nav.web-quick-nav--open .web-quick-toggle span:nth-child(2) {
  opacity: 0;
}

body.web-mode .web-quick-nav.web-quick-nav--open .web-quick-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.web-quick-nav-panel {
  position: absolute;
  top: 58px;
  right: 0;
  min-width: 228px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(18, 18, 24, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.web-mode .web-quick-nav.web-quick-nav--open .web-quick-nav-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.web-quick-nav-btn {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 14px;
  line-height: 1;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.web-quick-nav-btn:hover {
  color: #fff;
}

.web-quick-nav-btn:active {
  transform: scale(0.97);
}

.web-quick-nav-btn.active {
  background: #fff;
  color: #0f0f13;
  font-weight: 600;
}

.web-quick-badge {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff2f4d;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

body.web-mode #footer {
  margin-top: 56px;
}

body.web-mode .footer-inner {
  max-width: 1280px;
  padding: 24px clamp(16px, 3vw, 28px);
}

body.web-mode .footer-section:first-child {
  max-width: 32rem;
}

body.web-mode .footer-section:first-child .footer-title {
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

body.web-mode #info-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.web-mode #info-links a {
  line-height: 1.35;
  padding: 4px 0;
}

body.web-mode .product-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px;
}

@media (max-width: 1200px) {
  body.web-mode .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .web-catalog-sheet-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s linear;
    z-index: 96;
  }
  body.web-mode.web-sheet-open .web-catalog-sheet-overlay {
    pointer-events: auto;
  }
  .site-hero {
    min-height: 98vh;
    margin: 0 0 8px;
  }
  .site-hero--mobile-static {
    min-height: auto;
    margin: 0 0 6px;
  }
  .site-hero-stage {
    min-height: 78vh;
    position: sticky;
    top: calc(var(--web-marquee-offset) + var(--web-safe-top));
    justify-content: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .site-hero--mobile-static .site-hero-stage {
    position: relative;
    top: auto;
    min-height: 64vh;
    justify-content: center;
    gap: 0;
    padding: 10px 14px 6px;
    background: #f3f4f7;
  }
  .site-hero--mobile-static .site-hero-stage::before {
    content: none;
  }
  .site-hero-intro {
    transform: none;
    z-index: 220;
  }
  .site-hero-brand {
    transform: none;
    margin: 18vh 0 0;
    position: sticky;
    top: 8px;
    z-index: 220;
  }
  .site-hero--mobile-static .site-hero-brand {
    margin: 0;
    position: relative;
    top: auto;
    opacity: 1;
    transform: none;
  }
  .site-hero-hint {
    transform: none;
    margin-top: 10px;
    z-index: 220;
  }
  .site-hero-title,
  .site-hero-subtitle,
  .site-hero-intro-title {
    transform: none !important;
  }

  /* Full-screen script intro on phones: do not apply generic sticky/short hero rules */
  .site-hero.site-hero--desktop-script,
  .site-hero.site-hero--desktop-slides {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    position: fixed;
    inset: 0;
    z-index: 2400;
  }

  .site-hero--desktop-script .site-hero-stage,
  .site-hero--desktop-slides .site-hero-stage {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    top: auto;
    justify-content: center;
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .site-hero--desktop-script .site-hero-script-slides {
    width: 100%;
    max-width: 100%;
    min-height: min(48vh, 380px);
    box-sizing: border-box;
    padding: 0 4px;
  }

  .site-hero--desktop-script .site-hero-script-line {
    white-space: normal;
  }

  .site-hero--desktop-script .site-hero-script-line--brand {
    line-height: 1.06;
  }

  .site-hero--desktop-script .site-hero-script-lead {
    font-size: clamp(26px, 8vw, 44px);
    letter-spacing: 0.06em;
    padding: 0 10px;
  }

  .site-hero--desktop-script .site-hero-script-line--brand {
    font-size: clamp(22px, 6.9vw, 40px);
    letter-spacing: 0.06em;
  }

  .site-hero--desktop-script .site-hero-script-sub-fade {
    font-size: clamp(11px, 3.1vw, 16px);
    letter-spacing: 0.14em;
    padding: 0 12px;
  }

  .web-catalog-sheet {
    --web-sheet-progress: 0;
    --web-sheet-top-offset: 15%;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--web-sheet-top-offset);
    bottom: 0;
    margin-top: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 18px rgba(16, 18, 24, 0.06);
    z-index: 101;
    transform: translateY(calc((1 - var(--web-sheet-progress)) * 100%));
    transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .web-catalog-sheet.web-catalog-sheet--closed {
    --web-sheet-progress: 0;
  }
  .web-catalog-sheet.web-catalog-sheet--open {
    --web-sheet-progress: 1;
  }
  .web-catalog-sheet-head {
    display: block;
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #f0f1f4;
  }
  .web-catalog-sheet-handle {
    display: flex;
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0 4px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .web-catalog-sheet-handle-bar {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: #d5d8df;
    display: block;
  }
  .web-catalog-sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
  }
  .web-catalog-sheet-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #11131a;
  }
  .web-catalog-sheet-close {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #e2e4ea;
    background: #fff;
    color: #343844;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
  }
  .web-catalog-sheet-scroll {
    display: block;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  body.web-mode.web-sheet-open {
    overflow: hidden;
  }
  body.web-mode .web-shop-toolbar--filters {
    margin-top: 0;
    position: relative;
    z-index: 100;
    border-radius: 0;
    box-shadow: none;
  }
  body.web-mode.web-home-static-open .web-call-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #d9dde5;
    border-radius: 10px;
    background: #fff;
  }
  body.web-mode.web-home-static-open .web-home-btn {
    transform: none;
  }
  body.web-mode.web-home-static-open .web-call-wrap .web-call-btn:not(.web-home-btn) {
    margin-left: 6px;
  }
  body.web-mode .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  body.web-mode #app {
    padding-bottom: 14px;
  }
  body.web-mode .web-flow-shell,
  body.web-mode .web-flow-shell--checkout,
  body.web-mode .web-flow-shell--payment,
  body.web-mode .web-flow-shell--favorites,
  body.web-mode .web-flow-shell--profile {
    width: 100%;
    padding: 0 14px 10px;
  }
  body.web-mode .web-centered-page-card {
    max-width: 100%;
    padding: 12px 12px 10px;
    border-radius: 10px;
  }
  body.web-mode .product-detail {
    gap: 18px;
  }
  body.web-mode .product-detail-page {
    padding: 0 14px;
  }
  body.web-mode .product-detail-media {
    position: relative;
    top: auto;
    max-width: none;
  }

  body.web-mode .web-shop-topline--header {
    display: grid;
    grid-template-columns: minmax(82px, 92px) minmax(0, 1fr) minmax(150px, 168px);
    gap: 6px;
    align-items: center;
    min-height: 52px;
  }
  body.web-mode .web-shop-topline--header .web-call-wrap {
    display: flex !important;
    grid-column: 1;
    justify-self: start;
    width: auto;
    max-width: none;
    gap: 6px;
  }
  body.web-mode .web-header-center {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }
  body.web-mode .web-header-city-wrap {
    display: none;
  }
  body.web-mode .web-header-logo {
    justify-self: center;
    width: min(42vw, 200px);
    height: 48px;
    margin: 0 auto;
  }
  body.web-mode .web-toolbar-actions--header {
    grid-column: 3;
    width: auto;
    justify-self: end;
    gap: 6px;
  }

  body.web-mode .web-quick-cats {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    overflow-y: visible;
    row-gap: 10px;
    column-gap: 8px;
    padding: 12px 10px 14px;
  }
}

@media (max-width: 560px) {
  body.web-mode {
    --web-marquee-offset: 36px;
    --web-safe-top: env(safe-area-inset-top, 0px);
  }
  body.web-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: max(52px, calc(var(--web-safe-top) + 2px));
    background: linear-gradient(90deg, #12131a 0%, #1a1c25 52%, #12131a 100%);
    z-index: 239;
    pointer-events: none;
  }
  body.web-mode .web-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    padding-top: var(--web-safe-top);
    min-height: calc(var(--web-marquee-offset) + var(--web-safe-top));
    z-index: 240;
    border-radius: 0;
  }
  body.web-mode.web-home-static-open::before {
    display: none;
  }
  body.web-mode.web-home-static-open .web-shop-toolbar--no-hero {
    top: calc(var(--web-marquee-offset) + var(--web-safe-top));
    margin: calc(var(--web-marquee-offset) + var(--web-safe-top)) 0 8px;
    border-radius: 0 0 10px 10px;
  }
  .web-catalog-sheet {
    --web-sheet-top-offset: 15%;
    border-radius: 16px 16px 0 0;
    top: var(--web-sheet-top-offset);
  }
  .web-catalog-sheet.web-catalog-sheet--open {
    --web-sheet-progress: 1;
  }
  body.web-mode .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .site-hero {
    min-height: 124vh;
  }
  .site-hero-stage {
    padding: 18px 14px 24px;
  }
  .home-catalog-block {
    padding: 0 18px;
  }
  .web-category-section {
    margin-bottom: 30px;
  }
  .web-category-head {
    margin-bottom: 10px;
  }
  .web-category-title {
    font-size: clamp(20px, 6.6vw, 28px);
    letter-spacing: 0.01em;
  }
  .web-category-link {
    font-size: 10px;
    padding: 8px 12px;
  }
  .site-hero-brand--textonly {
    max-width: min(96vw, 1100px);
  }
  .web-shop-toolbar {
    margin: 8px auto 12px;
    padding: 0 12px;
  }
  .web-shop-toolbar--no-hero {
    margin: calc(var(--web-marquee-offset) + var(--web-safe-top) + 8px) auto 12px;
  }
  body.web-mode .web-shop-toolbar:not(.web-shop-toolbar--no-hero) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: auto;
    margin: 8px auto 12px;
    z-index: 110;
  }
  body.web-mode .web-shop-toolbar--no-hero {
    position: sticky;
    top: calc(var(--web-marquee-offset) + var(--web-safe-top));
    margin: calc(var(--web-marquee-offset) + var(--web-safe-top) + 8px) auto 12px;
    z-index: 118;
  }
  body.web-mode .web-shop-toolbar--filters {
    position: relative;
    top: auto;
    z-index: 110;
  }
  .web-marquee-item {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 0 14px;
  }
  .web-marquee-sep {
    width: 24px;
    font-size: 13px;
  }
  body.web-mode .product-card-name {
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 700;
  }
  body.web-mode .product-card-desc {
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 500;
  }
  body.web-mode .product-card-price {
    font-size: clamp(18px, 4.7vw, 22px);
  }
  body.web-mode .card-cart-btn {
    min-height: 38px;
    font-size: clamp(12px, 3.2vw, 14px);
  }
  .web-shop-topline {
    gap: 6px;
    padding: 8px 0 6px;
  }
  .web-shop-topline--header {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding: 8px 0 6px;
  }
  .web-call-wrap {
    width: auto;
    max-width: none;
    justify-self: start;
    gap: 6px;
  }
  .web-call-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .web-call-btn svg {
    width: 20px;
    height: 20px;
  }
  .web-call-panel {
    min-width: 190px;
    padding: 8px;
  }
  body.web-mode .web-shop-toolbar--no-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }

  .web-shop-topline--header {
    display: grid;
    grid-template-columns: minmax(82px, 92px) minmax(0, 1fr) minmax(150px, 168px);
    gap: 4px;
    align-items: center;
    min-height: 52px;
    padding: 8px 0 6px;
  }

  .web-shop-topline--header .web-call-wrap {
    display: flex !important;
    grid-column: 1;
    justify-self: start;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .web-shop-topline--header .web-call-wrap .web-call-btn {
    flex: 0 0 38px;
  }

  .web-header-center {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  .web-header-city-wrap {
    display: none;
  }

  .web-header-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: auto;
    justify-self: center;
    width: min(42vw, 176px);
    height: 44px;
    margin: 0 auto;
    z-index: 1;
  }

  .web-header-logo img {
    transform: none;
    object-position: center center;
  }

  .web-toolbar-actions--header {
    grid-column: 3;
    justify-self: end;
    width: 100%;
    max-width: none;
    gap: 4px;
  }
  .web-toolbar-actions {
    gap: 4px;
  }
  .web-toolbar-action-btn {
    width: 40px;
    height: 40px;
  }
  .web-toolbar-action-btn svg {
    width: 21px;
    height: 21px;
  }
  .web-quick-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    row-gap: 10px;
    overflow-x: visible;
    overflow-y: visible;
  }
  .web-quick-cats::-webkit-scrollbar {
    display: none;
  }
  .web-quick-cat-chip {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    flex: 0 0 auto;
    max-width: min(42vw, 190px);
  }
  .web-quick-cat-chip.active {
    background: #000;
    color: #fff;
    border-color: #000;
  }
  .web-store-info {
    padding: 18px 14px 8px;
  }
  .web-store-info-title {
    font-size: clamp(18px, 5.2vw, 24px);
    margin-bottom: 20px;
    max-width: 100%;
  }
  .web-store-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .web-store-info-head {
    font-size: 17px;
  }
  .web-store-info-line,
  .web-store-info-link {
    font-size: 15px;
  }
  .web-store-call-btn {
    width: 116px;
    height: 36px;
    font-size: 14px;
  }
  body.web-mode #header {
    padding: 14px 14px 8px;
  }
  .site-hero-title {
    font-size: clamp(24px, 9vw, 44px);
    letter-spacing: 0.05em;
  }
  .site-hero-subtitle {
    letter-spacing: 0.1em;
    font-size: 11px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes heroArrowFloat {
  0% { transform: translateY(0); opacity: 0.82; }
  50% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.82; }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .web-marquee-track {
    animation: none;
  }
  .product-card.reveal-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .web-category-section {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .promo-popup-overlay,
  .promo-popup-overlay--no-dim,
  .promo-popup-overlay--dock-left,
  .promo-popup-overlay--dock-right,
  .promo-popup-overlay--dock-bottom,
  .promo-popup-overlay--fullwidth-bottom,
  .promo-popup-overlay--skyscraper,
  .promo-popup-card,
  .promo-popup-card[class*='promo-anim-'] {
    animation: none !important;
    transition: none !important;
  }
}

/* Рекламный баннер (настройки в админке) */
html.promo-popup-scroll-lock body {
  overflow: hidden;
  touch-action: none;
}

.promo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(12, 10, 22, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.promo-popup-overlay.promo-popup--visible {
  opacity: 1;
}

.promo-popup-overlay.promo-popup--out {
  opacity: 0;
  pointer-events: none;
}

/* Слайд/зум: без затемнения и без размытия — только плавное появление карточки. По центру — как раньше (blur + dim). */
.promo-popup-overlay.promo-popup-overlay--no-dim {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
  opacity: 1;
}

.promo-popup-overlay.promo-popup-overlay--no-dim .promo-popup-card {
  pointer-events: auto;
}

.promo-popup-overlay.promo-popup-overlay--no-dim.promo-popup--out {
  opacity: 0;
}

.promo-popup-overlay--dock-left {
  justify-content: flex-start;
}

.promo-popup-overlay--dock-right {
  justify-content: flex-end;
}

.promo-popup-overlay--dock-bottom {
  align-items: flex-end;
  justify-content: center;
}

/* Горизонтальные форматы (728×90 и т.п.): полоса на всю ширину экрана снизу */
.promo-popup-overlay--fullwidth-bottom {
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 max(0px, env(safe-area-inset-bottom)) 0;
}

.promo-popup-overlay--fullwidth-bottom .promo-popup-card {
  width: 100vw !important;
  max-width: none !important;
  height: var(--promo-h) !important;
  max-height: var(--promo-h) !important;
  border-radius: 14px 14px 0 0;
  margin: 0;
}

/* Высокие «небоскрёбы» у левого края на всю высоту окна */
.promo-popup-overlay--skyscraper {
  justify-content: flex-start;
  align-items: stretch;
  padding: 12px 12px 12px max(12px, env(safe-area-inset-left));
}

.promo-popup-overlay--skyscraper .promo-popup-card {
  align-self: center;
  height: min(var(--promo-h), calc(100vh - 24px)) !important;
  max-height: min(var(--promo-h), calc(100vh - 24px)) !important;
}

.promo-popup-card {
  position: relative;
  box-sizing: border-box;
  --promo-w: 304px;
  --promo-h: 520px;
  --promo-hero-max: 148px;
  width: min(var(--promo-w), calc(100vw - 28px));
  max-width: min(var(--promo-w), calc(100vw - 28px));
  height: min(var(--promo-h), 85vh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #2e2e32;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease;
  will-change: transform, opacity;
}

.promo-popup-card[class*='promo-anim-slide'] {
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.32, 1),
    opacity 0.5s ease;
}

.promo-popup-card--clickable {
  cursor: pointer;
}

.promo-popup-card--leaderboard .promo-popup-hero {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.promo-popup-card--leaderboard .promo-popup-hero img {
  max-height: none;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.promo-popup-card--leaderboard .promo-popup-content {
  flex: 0 0 auto;
  padding: 6px 12px 8px;
  max-height: 42%;
  overflow: hidden;
}

.promo-popup-card--skyscraper .promo-popup-content {
  min-height: 0;
}

.promo-popup-card--theme-light {
  background: #f7f7f8;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.promo-popup-card--theme-light .promo-popup-title {
  color: #141418;
}

.promo-popup-card--theme-light .promo-popup-body {
  color: rgba(20, 20, 24, 0.88);
}

.promo-popup-card--theme-light .promo-popup-hero,
.promo-popup-card--theme-light .promo-popup-hero-cta-img-wrap {
  background: #eaeaea;
}

.promo-popup-card--theme-light .promo-popup-close {
  background: #2a2a2e;
  color: #fff;
}

.promo-popup-card--theme-light .promo-popup-close:hover {
  background: #1a1a1e;
}

.promo-popup-card--theme-light .promo-popup-cta {
  background: #2a2a2e;
  color: #fff;
}

.promo-popup-card--theme-light .promo-popup-hero-cta-bar {
  background: linear-gradient(180deg, transparent 0%, rgba(247, 247, 248, 0.92) 28%, #f7f7f8 100%);
}

.promo-popup-card--hero-cta {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.promo-popup-hero-cta-img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #242428;
}

.promo-popup-hero-cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-popup-hero-cta-bar {
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 30, 34, 0.88) 32%, #2e2e32 100%);
}

.promo-popup-card--theme-light .promo-popup-hero-cta-bar .promo-popup-title,
.promo-popup-card--theme-light .promo-popup-hero-cta-bar .promo-popup-body {
  color: #141418;
}

.promo-popup-cta-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-popup-card--theme-light .promo-popup-cta-link {
  color: #2a2a2e;
}

.promo-popup-card.promo-anim-center {
  transform: translateY(18px) scale(0.94);
  opacity: 0;
}

.promo-popup-overlay.promo-popup--visible .promo-popup-card.promo-anim-center {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.promo-popup-card.promo-anim-slide-left {
  transform: translateX(calc(-1 * (100% + 28px))) translateY(0);
  opacity: 0;
}

.promo-popup-overlay.promo-popup--visible .promo-popup-card.promo-anim-slide-left {
  transform: translateX(0) translateY(0);
  opacity: 1;
}

.promo-popup-card.promo-anim-slide-right {
  transform: translateX(calc(100% + 28px)) translateY(0);
  opacity: 0;
}

.promo-popup-overlay.promo-popup--visible .promo-popup-card.promo-anim-slide-right {
  transform: translateX(0) translateY(0);
  opacity: 1;
}

.promo-popup-card.promo-anim-slide-bottom {
  transform: translateY(calc(100% + 20px));
  opacity: 0;
}

.promo-popup-overlay.promo-popup--visible .promo-popup-card.promo-anim-slide-bottom {
  transform: translateY(0);
  opacity: 1;
}

.promo-popup-card.promo-anim-zoom-in {
  transform: scale(0.78);
  opacity: 0;
}

.promo-popup-overlay.promo-popup--visible .promo-popup-card.promo-anim-zoom-in {
  transform: scale(1);
  opacity: 1;
}

.promo-popup-overlay.promo-popup--out .promo-popup-card {
  opacity: 0;
  transform: translateY(14px) scale(0.97) !important;
  transition: opacity 0.3s ease, transform 0.32s ease;
}

.promo-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #2a2a2e;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}

.promo-popup-close:hover {
  transform: scale(1.06);
  background: #f4f4f6;
}

.promo-popup-hero {
  position: relative;
  flex-shrink: 0;
  max-height: var(--promo-hero-max, 148px);
  overflow: hidden;
  background: #242428;
}

.promo-popup-hero img {
  width: 100%;
  height: 100%;
  max-height: var(--promo-hero-max, 148px);
  object-fit: cover;
  display: block;
}

.promo-popup-card--sm .promo-popup-content {
  padding: 10px 12px 12px;
}

.promo-popup-card--sm .promo-popup-title {
  font-size: 0.95rem;
}

.promo-popup-card--sm .promo-popup-body {
  font-size: 0.76rem;
}

.promo-popup-card--sm .promo-popup-cta {
  padding: 9px 12px;
  font-size: 0.78rem;
}

.promo-popup-card--xs .promo-popup-close {
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.promo-popup-card--xs .promo-popup-content {
  padding: 6px 8px 8px;
}

.promo-popup-card--xs .promo-popup-title {
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.promo-popup-card--xs .promo-popup-body {
  font-size: 0.65rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.promo-popup-card--xs .promo-popup-cta {
  padding: 6px 10px;
  font-size: 0.68rem;
}

.promo-popup-content {
  padding: 14px 16px 16px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-popup-title {
  margin: 0 0 8px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  letter-spacing: 0.01em;
}

.promo-popup-body {
  margin: 0 0 12px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.promo-popup-cta {
  width: 100%;
  margin: 0;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #2a2a2e;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.promo-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
  .promo-popup-overlay {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .promo-popup-card {
    width: min(var(--promo-w), calc(100vw - 28px));
    max-width: min(var(--promo-w), calc(100vw - 28px));
    height: min(var(--promo-h), 78vh);
    border-radius: 16px;
    background: #2a2a2e;
  }

  .promo-popup-hero,
  .promo-popup-hero img {
    max-height: min(var(--promo-hero-max, 128px), 40vh);
  }

  .promo-popup-close {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .promo-popup-content {
    padding: 12px 14px 14px;
  }

  .promo-popup-title {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }

  .promo-popup-body {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .promo-popup-cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20000;
  background: rgba(20, 20, 22, 0.92);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 12px 12px 12px 14px;
  max-width: min(420px, calc(100vw - 20px));
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.cookie-consent--visible {
  display: flex !important;
}

.cookie-consent-text {
  font-size: 12px;
  line-height: 1.35;
}

.cookie-consent-btn {
  border: none;
  background: #fff;
  color: #111;
  min-width: 46px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
    padding: 10px;
  }
  .cookie-consent-text {
    font-size: 11px;
  }
}

/* Footer */
#footer {
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.footer-section {
  margin-bottom: 16px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-section a {
  display: block;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s, transform 0.2s;
}

.footer-section a:hover {
  border-bottom-color: #000;
  transform: translateX(4px);
}

#social-links {
  display: flex;
  gap: 16px;
}

#social-links a {
  display: inline;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  color: #333;
}

.footer-reviews {
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.footer-reviews-summary {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
  color: #333;
}

.footer-reviews-stars {
  color: #e6b400;
  letter-spacing: 1px;
  font-size: 14px;
}

.footer-review-quote {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fafafa;
  border-left: 3px solid #1a1a2e;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #222;
}

.footer-review-quote p {
  margin: 0 0 8px;
}

.footer-review-quote footer {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.nav-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:active {
  transform: scale(0.97);
}

.nav-btn:hover {
  background: #000;
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.nav-btn:disabled:hover {
  background: #333;
}

.nav-btn--filled {
  background: #000;
  color: #fff;
}

.nav-btn--filled:hover {
  background: #333;
}

.nav-btn--small {
  padding: 10px 16px;
  font-size: 12px;
}

/* Delivery info */
.delivery-info {
  margin-top: 24px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  transition: transform 0.2s ease;
}

.delivery-info p {
  margin-bottom: 4px;
}

.delivery-info p:last-child {
  margin-bottom: 0;
}

/* Section title */
.section-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: none;
}

/* Category dropdown */
.category-select-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 4px;
  justify-content: center;
}

.cat-chip {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 1;
  min-width: 0;
  flex-shrink: 0;
}

.cat-chip:hover {
  background: #f0f0f0;
}

.cat-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Category chips (hidden, kept for reference) */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-item {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.category-item:active {
  transform: scale(0.95);
}

.category-item:hover,
.category-item:active {
  background: #000;
  color: #fff;
}

.category-item.active {
  background: #000;
  color: #fff;
}

/* Product list — OPTIMIZATION ACT 1: stable grid rows, responsive columns */
.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-auto-rows: auto;
}

@media (min-width: 600px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@keyframes catalogSkeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.product-list--skeleton {
  pointer-events: none;
}

.product-card-skeleton {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  cursor: default;
}

.product-card-skeleton-img,
.product-card-skeleton-line {
  background: linear-gradient(90deg, #eceff3 0%, #f5f7fa 45%, #eceff3 100%);
  background-size: 200% 100%;
  animation: catalogSkeletonPulse 1.4s ease-in-out infinite;
  border-radius: 4px;
}

.product-card-skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 180px;
}

.product-card-skeleton-line {
  height: 14px;
  margin-top: 10px;
}

.product-card-skeleton-line--title {
  width: 78%;
  height: 16px;
}

.product-card-skeleton-line--price {
  width: 42%;
  margin-top: 12px;
}

body.web-mode .product-card-skeleton {
  border-color: rgba(0, 0, 0, 0.05);
}

body.web-splash-pending #home-catalog-bootstrap {
  padding: 24px 16px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

body.web-splash-pending.site-cover-active #home-catalog-bootstrap {
  visibility: visible;
  opacity: 1;
}

.home-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-load-more-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-load-more-btn {
  min-width: 240px;
  border: 2px dashed rgba(0, 0, 0, 0.45);
  background: transparent;
  color: #111;
  border-radius: 4px;
  padding: 12px 18px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-load-more-btn:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.home-load-more-text {
  font-size: 13px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.home-load-more-arrow {
  display: inline-block;
  width: 11px;
  height: 11px;
  animation: loadMoreArrowFloat 1.1s ease-in-out infinite;
}

.home-load-more-arrow::before {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center center;
}

@keyframes loadMoreArrowFloat {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(3px); opacity: 1; }
}

.product-card {
  border: none;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.26s ease, box-shadow 0.26s ease, filter 0.26s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.product-card.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: cardReveal 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--card-reveal-delay, 0ms);
}

body.web-mode .product-card,
body.web-mode .product-card.reveal-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1);
  transition: transform 0.45s ease, box-shadow 0.26s ease, filter 0.26s ease;
  animation: none !important;
}

body.web-mode .product-card.card-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.web-mode .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

body.web-mode .product-card-img-wrap {
  margin-bottom: 0;
}

body.web-mode .product-card-body {
  align-items: stretch;
  text-align: left;
  padding: 10px 10px 12px;
}

body.web-mode .product-card-name {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
  line-height: 1.35;
}

body.web-mode .product-card-price {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  letter-spacing: 0.01em;
}

.product-card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
  aspect-ratio: 1 / 1;
  background: #f8f9fb;
  cursor: pointer;
  transition: box-shadow 0.22s ease;
  flex-shrink: 0;
}

.product-card-img-wrap > .product-card-img,
.product-card-img-wrap > .no-image,
.product-card-img-wrap > .card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.product-card-img-wrap > .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrap:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background: #f8f9fb;
  transition: opacity 0.22s ease-out;
}

.product-card:hover .product-card-img {
  transform: none;
}

/* Card multi-image slides */
.card-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.22s ease-out;
  pointer-events: none;
}

.card-slide.card-slide-active {
  opacity: 1;
  pointer-events: auto;
}

body.web-mode .product-card-img-wrap img.product-card-img,
body.web-mode .product-card-img-wrap img.card-slide,
body.web-mode .product-card-img-wrap img.card-slide-active {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s, transform 0.3s;
}

.card-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  z-index: 6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fav-btn:active {
  transform: scale(0.85);
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: fill 0.2s, stroke 0.2s;
}

.fav-btn .heart-outline {
  fill: none;
  stroke: #000;
  stroke-width: 2;
}

.fav-btn.favorited .heart-outline {
  fill: #000;
  stroke: #000;
}

/* Cart icon button on card */
.cart-icon-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
}

.cart-icon-btn:hover {
  background: #000;
}

.cart-icon-btn:active {
  transform: scale(0.8);
}

.cart-icon-btn svg {
  width: 18px;
  height: 18px;
}

.cart-icon-btn .cart-icon-path {
  fill: #000;
  transition: fill 0.2s;
}

.cart-icon-btn:hover .cart-icon-path {
  fill: #fff;
}

.product-card-body {
  padding: 10px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-height: 0;
}

.product-related {
  margin-top: 60px;
  padding-top: 12px;
}

.product-related-title {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* «Смотрите также»: на странице товара выходим за узкую колонку — сетка шире, фото выше, зазоры меньше */
body.web-mode .product-detail-page > #product-related {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

body.web-mode .product-detail-page > #product-related .product-related {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

body.web-mode .product-list--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.1vw, 14px);
}

body.web-mode .product-list--related .product-card-img-wrap {
  aspect-ratio: 3 / 4;
}

body.web-mode .product-list--related .product-card-body {
  padding: 8px 8px 10px;
}

body.web-mode .product-list--related .product-card-img:not(.card-slide) {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
}

@media (max-width: 1100px) {
  body.web-mode .product-list--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
}

@media (max-width: 900px) {
  body.web-mode .product-list--related {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  body.web-mode .product-list--related {
    gap: 9px;
  }
  body.web-mode .product-related {
    margin-top: 48px;
    padding-top: 8px;
  }
  body.web-mode .product-related-title {
    margin-bottom: 16px;
    font-size: clamp(22px, 5.8vw, 30px);
  }
}

@media (max-width: 390px) {
  body.web-mode .product-list--related {
    gap: 8px;
  }
}

/* Related section cards must be visible immediately */
body.web-mode .product-related .product-card {
  opacity: 1 !important;
  transform: none !important;
}

.product-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  color: #111;
}

.product-card-price {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  letter-spacing: 0.01em;
}

.product-card-desc {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stock badge тАФ top-left corner on the image */
.stock-badge--in {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  line-height: 1.3;
}

.card-dims-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 5;
  background: rgba(255,255,255,0.65);
  color: #888;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1.3;
}

.card-size-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-card .card-size-row {
  margin-top: 2px;
}

.card-size-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 0;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.2px;
}
.card-size-btn:hover {
  border-color: #888;
  color: #444;
}
.card-size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 600;
}

/* Out of stock — faded blurred photo + overlay on whole card */
.product-card--soon {
  position: relative;
  opacity: 1;
  filter: none;
}

.product-card-img-wrap--soon .product-card-img,
.product-card-img-wrap--soon .card-slide {
  filter: blur(5px) grayscale(0.5);
  opacity: 0.65;
  transform: scale(1.04);
  transition: filter 0.25s, opacity 0.25s;
}

.product-card--soon .product-card-body {
  opacity: 0.55;
}

.stock-overlay--card {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  border-radius: inherit;
}

.product-card--soon:hover .product-card-img-wrap--soon .product-card-img,
.product-card--soon:hover .product-card-img-wrap--soon .card-slide {
  opacity: 0.75;
}
/* Product detail тАФ coming soon */
.product-detail--soon .product-detail-img-wrap,
.product-detail--soon .product-gallery {
  opacity: 0.5;
  filter: grayscale(0.3);
}
.detail-soon-badge {
  text-align: center;
  padding: 14px 20px;
  background: #f5f5f5;
  border: 1.5px dashed #bbb;
  border-radius: 12px;
  color: #777;
  font-size: 15px;
  font-weight: 500;
}

.card-cart-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.card-cart-btn:hover {
  background: #000;
}

.card-cart-btn:active {
  transform: scale(0.96);
}

/* Product detail */
.product-detail {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.35s ease;
  gap: 10px;
}

.product-detail-page {
  max-width: 1080px;
  margin: 0 auto;
}

.product-detail-media {
  position: relative;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
}

.product-detail-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
}

.product-detail-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 16px;
  background: #f5f5f5;
}

.fav-btn--detail {
  width: 44px;
  height: 44px;
  top: 14px;
  right: 14px;
}

.fav-btn--detail svg {
  width: 22px;
  height: 22px;
}

.product-detail-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-detail-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
  min-width: 0;
}

.product-detail-desc-text {
  margin: 0;
}

.product-detail-desc-list {
  margin: 0;
  padding-left: 1.15em;
  list-style: disc;
}

.product-detail-desc-list li {
  margin-bottom: 0.35em;
}

.product-detail-desc-list li:last-child {
  margin-bottom: 0;
}

.product-detail-warning {
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 14px;
  background: #f9f9f9;
  border-left: 3px solid #ccc;
  border-radius: 6px;
  color: #666;
  margin-bottom: 16px;
}

/* Product gallery */
.product-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  width: 100%;
  padding-bottom: 100%;
  height: 0;
}

.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
}

.gallery-slide .product-detail-img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
  background: #fff;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-prev::after,
.gallery-next::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

.gallery-prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.gallery-next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Size selector */
.size-selector {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
}

.size-selector-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #444;
}

.size-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #aaa;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: #aaa;
  color: #555;
}

.size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 600;
}

.size-btn:active {
  transform: scale(0.95);
}

.size-info {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

/* Cart size selector */
.cart-size-selector {
  margin: 6px 0 8px;
}

.cart-size-selector .size-btn-row {
  gap: 4px;
}

.cart-size-selector .size-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 15px;
}

.cart-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.cart-img-size-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  pointer-events: none;
}
.cart-size-fc {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* Legacy flower selector (kept for backward compat) */
.flower-selector {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
}

.flower-selector-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #444;
}

.flower-select {
  width: 100%;
  padding: 12px 14px;
  padding-right: 40px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='white'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: background 0.2s;
}

.flower-select:focus {
  outline: none;
  background: #000;
}

.card-add-btn {
  width: 100%;
  padding: 11px 12px;
  margin-top: auto;
  box-sizing: border-box;
  border: none;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
}

body.web-mode .cart-icon-btn {
  display: none;
}

.card-add-btn:active {
  transform: scale(0.96);
}

.card-add-btn:hover {
  background: #000;
  box-shadow: none;
}

/* Cart flower selector */
.cart-flower-selector {
  margin: 6px 0 8px;
}

.cart-flower-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.cart-flower-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.cart-flower-btn {
  width: 30px;
  height: 28px;
  border: none;
  background: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.cart-flower-btn:active {
  background: #ddd;
}

.cart-flower-val {
  min-width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  background: #fff;
}

.product-detail-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-cart-btn--catalog {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

.card-cart-btn--catalog:hover {
  background: #111;
  color: #fff;
}

body.web-mode .product-detail-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 18px 0;
}

body.web-mode .product-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

body.web-mode .product-detail-media {
  position: relative;
  top: auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

body.web-mode .product-detail-desc {
  margin-top: 6px;
}

body.web-mode .product-detail-content {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-cart-btn--large {
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 12px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.back-link::before {
  content: '\2190 ';
}

.back-link:hover {
  opacity: 0.6;
  transform: translateX(-3px);
}

/* Cart */
.cart-items {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.cart-items .cart-item {
  margin-bottom: 14px;
}

.cart-items .cart-item:last-child {
  margin-bottom: 0;
}


.cart-item {
  display: flex;
  gap: 18px;
  background: #f9f9f9;
  border-radius: 18px;
  padding: 16px;
  min-height: 220px;
  align-items: flex-start;
  contain: layout style;
}

.cart-item-img,
.cart-item .no-image {
  width: 195px;
  height: 195px;
  min-width: 195px;
  min-height: 195px;
  max-width: 100%;
  max-height: 195px;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  border-radius: 16px;
  background: #eee;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #e0e0e0;
  color: #000;
  font-size: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}

.qty-btn:active {
  transform: scale(0.85);
}

.qty-btn:hover {
  background: #333;
  color: #fff;
}

.qty-value {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 12px;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
}

.remove-btn:hover {
  opacity: 0.6;
}

/* Cart total */
/* Cart recommendations */
.cart-rec-section {
  margin: 20px 0 8px;
}
.cart-rec-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.cart-rec-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.cart-rec-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  background: #fff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  padding: 0;
  transition: opacity 0.15s, border-color 0.15s;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
.cart-rec-arrow:hover {
  border-color: #888;
  color: #333;
}
.cart-rec-arrow:active {
  opacity: 0.6;
}
.cart-rec-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.cart-rec-scroll::-webkit-scrollbar {
  display: none;
}
.cart-rec-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.cart-rec-card:active {
  transform: scale(0.97);
}
.cart-rec-img {
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: cover;
  display: block;
  background: #eee;
}
.cart-rec-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
}
.cart-rec-name {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 8px 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-rec-price {
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px 8px;
  color: #333;
}
.cart-rec-add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #333;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
}
.cart-rec-add:active {
  background: #000;
  color: #fff;
}
.cart-rec-in-cart {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255,255,255,0.92);
  color: #333;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.cart-total {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  text-align: right;
}

/* Order summary row */
.order-summary {
  font-size: 13px;
  margin-bottom: 4px;
  text-align: right;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

/* Form */
/* Checkout steps */
.checkout-steps {
  margin-bottom: 24px;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ddd;
  background: #fff;
  color: #bbb;
}

.step-dot.active {
  border-color: #000;
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

.step-dot.done {
  border-color: #000;
  background: #fff;
  color: #000;
}

.step-dot.locked {
  border-color: #ddd;
  background: #f5f5f5;
  color: #ccc;
}

.step-num {
  line-height: 1;
}

.step-line {
  flex: 1;
  height: 2px;
  max-width: 60px;
  background: #ddd;
  transition: background 0.3s ease;
}

.step-line.done {
  background: #000;
}

.step-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.step-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #bbb;
  text-align: center;
  flex: 1;
  transition: color 0.3s ease;
}

.step-label.active {
  color: #000;
  font-weight: 600;
}

.step-label.done {
  color: #666;
}

.checkout-panels {
  position: relative;
}

.checkout-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.checkout-panel.active {
  display: flex;
  animation: stepFadeIn 0.35s ease forwards;
}

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

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.checkout-guest-hint {
  margin: 8px 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f6f7;
  border: 1px solid #ececef;
}

.checkout-guest-hint-text {
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  margin-bottom: 10px;
}

.step-next-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 8px;
}

.step-next-btn:active {
  transform: scale(0.97);
}

.step-back-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.step-back-btn:active {
  transform: scale(0.97);
}

.step-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.step-btn-row .step-next-btn {
  flex: 2;
  margin-top: 0;
}

.step-submit-btn {
  background: #000;
  color: #fff;
}

.step-next-btn.btn-dimmed {
  background: #ccc;
  color: #888;
  cursor: default;
}
.step-next-btn.btn-dimmed:active {
  transform: none;
}

/* Account email OTP flow (profile guest state) */
.account-auth-steps {
  margin-bottom: 14px;
}

.account-auth-panel {
  animation: stepFadeIn 0.28s ease both;
}

.account-auth-panel .form-group {
  margin-bottom: 12px;
}

.account-auth-panel input[type="email"],
.account-auth-panel input[inputmode="numeric"] {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  background: #fff;
}

.account-auth-panel input[inputmode="numeric"] {
  letter-spacing: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
}

.profile-edit-card {
  max-width: 720px;
  margin: 0 auto;
}

.profile-edit-form {
  margin-top: 8px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-edit-form input[readonly] {
  background: #f7f7f7;
  color: #666;
  cursor: not-allowed;
}

.profile-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.profile-edit-actions .step-back-btn,
.profile-edit-actions .step-next-btn {
  margin-top: 0;
}

@media (max-width: 720px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.checkout-self-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.checkout-self-btn:active {
  background: #eee;
}

.checkout-self-btn input {
  display: none;
}

.checkout-self-btn.checked {
  background: #e8e8e8;
}

.checkout-self-btn.checked .check-box {
  background: #fff;
  border-color: #000;
  position: relative;
}

.checkout-self-btn.checked .check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nearest-delivery-hint {
  background: #f3f3f3;
  color: #333;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.consent-check {
  margin: 16px 0 8px;
}
.consent-check .checkout-self-btn {
  padding: 12px 14px;
  font-size: 13px;
  background: #fafafa;
}
.consent-check a {
  color: inherit;
}

.cutoff-notice {
  background: #f5f0e0;
  color: #6b5c00;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.cutoff-hint {
  font-size: 13px;
  color: #888;
  padding: 8px 0;
}

.exact-time-section,
.recipient-schedule-section {
  margin: 4px 0 14px;
}

.form-input-date {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
}

.form-input-date:focus {
  outline: none;
  border-color: #000;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border-radius: 10px;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.radio-option:active {
  transform: scale(0.98);
}

.radio-option:hover {
  border-color: #000;
}

.radio-option.selected {
  background: #333;
  color: #fff;
  border-color: #333;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.radio-option.selected .radio-dot {
  background: #fff;
}

.night-delivery-btn {
  display: block;
  width: 100%;
  margin: 14px 0 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2c2c3a;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}
.night-delivery-btn:active {
  transform: scale(0.98);
}
.night-delivery-btn.active {
  background: #444460;
}

.radio-option.radio-option-night .night-date-badge {
  display: inline-block;
  background: #555;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}
.radio-option.radio-option-night.selected .night-date-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Checkbox option */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.checkbox-option:hover {
  border-color: #000;
}

.checkbox-option input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-option.checked .check-box {
  background: #000;
  border-color: #000;
}

/* Success message */
.success-message {
  text-align: center;
  padding: 40px 0;
}

.success-message p {
  font-size: 14px;
  margin-bottom: 8px;
}

.success-message .order-number {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Account */
.account-section {
  font-size: 14px;
  line-height: 1.6;
}

.telegram-auth-stack {
  margin-top: 12px;
}

.telegram-auth-stack .telegram-auth-item {
  margin-top: 10px;
}

.telegram-auth-stack .telegram-auth-item:first-child {
  margin-top: 0;
}

.account-greeting {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #eee;
}

.profile-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-crown svg {
  display: block;
}

.admin-badge {
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.admin-panel-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.admin-panel-btn:active {
  opacity: 0.7;
}

#admin-panel-btn-wrap {
  margin-bottom: 20px;
}

.profile-username {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.profile-menu-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  align-self: flex-start;
  position: relative;
  letter-spacing: 2px;
}

.profile-menu {
  position: absolute;
  right: 16px;
  top: 52px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 50;
  min-width: 160px;
  overflow: hidden;
}

.profile-menu button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-menu button:hover {
  background: #f5f5f5;
}

.profile-header {
  position: relative;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-tracking-section {
  background: #f5f5f5;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 24px;
}

.profile-bonus-section {
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

#profile-bonus-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Карта лояльности: по центру */
.profile-bonus-section .ark-bonus-flip-wrap,
#profile-bonus-flip,
.checkout-bonus-panel .checkout-bonus-arka-wrap {
  position: relative;
  left: auto;
  right: auto;
  transform: translateX(var(--arka-bonus-card-nudge, 0px));
  width: min(100%, 360px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 16px;
  box-sizing: border-box;
  overflow: visible;
}

.profile-bonus-section .ark-bonus-card,
#profile-bonus-card,
.checkout-bonus-panel .checkout-bonus-arka-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  border-radius: 16px;
}

.profile-bonus-section .ark-bonus-card__scene,
#profile-bonus-card .ark-bonus-card__scene,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__scene {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1.586 / 1;
  margin-inline: auto;
  transform-origin: center center;
  overflow: visible;
}

.profile-bonus-section .ark-bonus-card__face,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__face {
  border-radius: 16px;
  left: 0;
  right: 0;
}

body.web-mode .profile-bonus-section .ark-bonus-card__lineart,
body.web-mode .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__lineart {
  background-size: cover;
  background-position: center center;
}

body.web-mode .profile-bonus-section .ark-bonus-card__inner,
body.web-mode .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__inner {
  padding: 13px 15px 50px;
}

body.web-mode .profile-bonus-section .ark-bonus-card__brand,
body.web-mode .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__brand {
  left: 16px;
  right: auto;
  bottom: 12px;
  font-size: clamp(22px, 5.8vw, 32px);
}

body.web-mode .profile-bonus-section .ark-bonus-card__flip-zone {
  bottom: 4px;
}

/* Телефон + Mini App: компактнее, строго по центру, без обрезки */
@media (max-width: 900px) {
  .profile-bonus-section,
  body.telegram-mode .profile-bonus-section,
  html[data-runtime="telegram"] .profile-bonus-section {
    overflow: visible;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .profile-bonus-section .ark-bonus-flip-wrap,
  #profile-bonus-flip,
  .checkout-bonus-panel .checkout-bonus-arka-wrap {
    --arka-bonus-card-nudge: -3px;
    width: min(100%, 320px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 14px;
    overflow: visible;
  }

  .profile-bonus-section .ark-bonus-card__head,
  .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .profile-bonus-section .ark-bonus-card__discount-group,
  .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__discount-group {
    margin-left: 0;
    flex: 0 1 auto;
    max-width: 48%;
  }

  .profile-bonus-section .ark-bonus-card__chip--balance,
  .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--balance {
    flex: 0 1 auto;
    max-width: 48%;
  }

  .profile-bonus-section .ark-bonus-card__chip--discount,
  .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--discount {
    max-width: 100%;
    overflow: visible;
  }

  .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__chip-label,
  .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__amount--discount {
    overflow: visible;
    text-overflow: unset;
  }

  .ark-bonus-card__lineart {
    filter: invert(1);
    opacity: 0.38;
  }
}

.profile-bonus-muted {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  background: #f3f3f3;
  border-radius: 12px;
}

:root {
  --ark-bell-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22a2 2 0 0 0 2-2h-4a2 2 0 0 0 2 2zm6-6V11c0-3.07-1.63-5.64-4.5-6.32V4a1.5 1.5 0 0 0-3 0v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E");
}

.ark-bonus-flip-wrap > .ark-bonus-card__skin-picker,
#profile-bonus-flip > .ark-bonus-card__skin-picker,
#profile-bonus-flip > #bonus-skin-picker {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 60;
}

.ark-bonus-card--skin-open {
  z-index: 2;
}

.ark-bonus-flip-wrap {
  position: relative;
  perspective: 1280px;
  -webkit-perspective: 1280px;
  overflow: visible;
}

@media (max-width: 900px) {
  .profile-bonus-section .ark-bonus-flip-wrap,
  #profile-bonus-flip {
    perspective: none;
    -webkit-perspective: none;
  }
}

.ark-bonus-card {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.ark-bonus-card--3d {
  width: 100%;
}

.ark-bonus-card__scene {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.ark-bonus-card--flipping .ark-bonus-card__scene {
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.ark-bonus-card--flipped .ark-bonus-card__scene {
  transform: rotateY(180deg);
}

.ark-bonus-card--flipping {
  animation: ark-bonus-card-glow 0.78s ease-out 1;
}

@keyframes ark-bonus-card-glow {
  0%,
  100% {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  }
}

.ark-bonus-card__face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ark-bonus-card__face--front {
  overflow: hidden;
  transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

.ark-bonus-card__face--front .ark-bonus-card__bg,
.ark-bonus-card__face--front .ark-bonus-card__skin-art,
.ark-bonus-card__face--front .ark-bonus-card__lineart,
.ark-bonus-card__face--front .ark-bonus-card__sheen,
.ark-bonus-card__face--front .ark-bonus-card__sweep {
  border-radius: inherit;
  overflow: hidden;
}

.ark-bonus-card__face--back {
  transform: rotateY(180deg) translateZ(1px);
  z-index: 1;
}

.ark-bonus-card__face--back .ark-bonus-card__bg,
.ark-bonus-card__face--back .ark-bonus-card__skin-art,
.ark-bonus-card__face--back .ark-bonus-card__lineart,
.ark-bonus-card__face--back .ark-bonus-card__sheen,
.ark-bonus-card__face--back .ark-bonus-card__sweep {
  border-radius: inherit;
  overflow: hidden;
}

/* Telegram / iOS: backface скрывает обратную сторону без рывка при возврате */
.ark-bonus-card--flipped .ark-bonus-card__face--front {
  pointer-events: none;
}

.ark-bonus-card:not(.ark-bonus-card--flipped) .ark-bonus-card__face--back {
  pointer-events: none;
}

.ark-bonus-card--flipped .ark-bonus-card__skin-picker,
.ark-bonus-card--flipped #bonus-skin-picker,
#profile-bonus-card.ark-bonus-card--flipped ~ .ark-bonus-card__skin-picker,
#profile-bonus-card.ark-bonus-card--flipped ~ #bonus-skin-picker {
  display: none !important;
}

/* Кнопка переворота на обороте — не вверх ногами */
.ark-bonus-card__face--back .ark-bonus-card__flip-zone {
  transform: rotateY(180deg);
  z-index: 12;
}

.ark-bonus-card--skin-noir .ark-bonus-card__face--back .ark-bonus-card__bg,
.ark-bonus-card--skin-pearl .ark-bonus-card__face--back .ark-bonus-card__bg {
  background-image: none;
}

.ark-bonus-card--skin-noir .ark-bonus-card__face--back .ark-bonus-card__skin-art,
.ark-bonus-card--skin-pearl .ark-bonus-card__face--back .ark-bonus-card__skin-art {
  opacity: 1;
}

.ark-bonus-card--skin-noir .ark-bonus-card__face--back .ark-bonus-card__lineart {
  opacity: 0.14;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__face--back .ark-bonus-card__lineart {
  opacity: 0.12;
  filter:
    invert(0.15)
    drop-shadow(0.55px 0 0 rgba(40, 40, 40, 0.35))
    drop-shadow(-0.55px 0 0 rgba(40, 40, 40, 0.35));
}

.ark-bonus-card__sweep {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 28%,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(190, 190, 190, 0.2) 50%,
    rgba(255, 255, 255, 0.07) 58%,
    transparent 72%
  );
  background-size: 220% 100%;
  background-position: 130% 0;
  opacity: 0;
}

.ark-bonus-card--sweep .ark-bonus-card__sweep {
  animation: ark-bonus-sweep 0.85s ease-out forwards;
}

@keyframes ark-bonus-sweep {
  0% {
    background-position: 130% 0;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    background-position: -35% 0;
    opacity: 0;
  }
}

.ark-bonus-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #070708;
  background-image:
    repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(255, 255, 255, 0.028) 5px, rgba(255, 255, 255, 0.028) 6px),
    repeating-linear-gradient(-135deg, transparent, transparent 5px, rgba(255, 255, 255, 0.022) 5px, rgba(255, 255, 255, 0.022) 6px);
}

.ark-bonus-card__skin-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ark-bonus-card--skin-noir .ark-bonus-card__skin-art,
.ark-bonus-card--skin-pearl .ark-bonus-card__skin-art {
  opacity: 1;
}

.ark-bonus-card--skin-noir .ark-bonus-card__skin-art {
  background-image: url(/images/bonus-card-skin-noir.png);
}

.ark-bonus-card--skin-pearl .ark-bonus-card__skin-art {
  background-image: url(/images/bonus-card-skin-pearl.png);
}

.ark-bonus-card--skin-noir .ark-bonus-card__bg,
.ark-bonus-card--skin-pearl .ark-bonus-card__bg {
  background-image: none;
}

.ark-bonus-card--skin-noir .ark-bonus-card__lineart {
  opacity: 0.14;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__lineart {
  opacity: 0.12;
  filter:
    invert(0.15)
    drop-shadow(0.55px 0 0 rgba(40, 40, 40, 0.35))
    drop-shadow(-0.55px 0 0 rgba(40, 40, 40, 0.35));
}

.ark-bonus-card--skin-pearl {
  color: #1c1c1c;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__chip {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.1);
}

.ark-bonus-card--skin-pearl .ark-bonus-card__chip-icon {
  filter: none;
  opacity: 0.88;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__hint-btn,
.ark-bonus-card--skin-pearl .ark-bonus-card__flip-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  color: #1a1a1a;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__hint-icon,
.ark-bonus-card--skin-pearl .ark-bonus-card__tap-icon {
  filter: brightness(0) saturate(100%);
  opacity: 0.82;
}

.ark-bonus-card--skin-pearl .ark-bonus-card__brand {
  background-image: linear-gradient(
    108deg,
    rgba(30, 30, 30, 0.55) 0%,
    rgba(20, 20, 20, 0.75) 45%,
    rgba(10, 10, 10, 0.85) 55%,
    rgba(30, 30, 30, 0.55) 100%
  );
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35));
}

.ark-bonus-card__skin-picker {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 40;
  min-width: 168px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ark-bonus-card__skin-picker[hidden] {
  display: none !important;
}

.ark-bonus-card__skin-picker-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.ark-bonus-card__skin-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ark-bonus-card__skin-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ark-bonus-card__skin-opt:hover,
.ark-bonus-card__skin-opt:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.ark-bonus-card__skin-opt--active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.ark-bonus-card__skin-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 28px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ark-bonus-card__skin-thumb--classic {
  background:
    linear-gradient(135deg, #101012 0%, #1a1a1e 55%, #0a0a0c 100%),
    repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(255, 255, 255, 0.05) 4px, rgba(255, 255, 255, 0.05) 5px);
}

.ark-bonus-card__skin-opt-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes ark-bell-ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(11deg);
  }
  60% {
    transform: rotate(-8deg);
  }
  80% {
    transform: rotate(5deg);
  }
}

/* PNG: на всю плашку, без сплющивания и без выхода за скругления */
.ark-bonus-card__lineart {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: url(/images/bonus-card-flowers.png) center center / cover no-repeat;
  opacity: 0.4;
  filter:
    invert(1)
    drop-shadow(0.55px 0 0 rgba(255, 255, 255, 0.9))
    drop-shadow(-0.55px 0 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 0.55px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 -0.55px 0 rgba(255, 255, 255, 0.9));
}

.ark-bonus-card__face--back .ark-bonus-card__lineart {
  opacity: 0.22;
}

.ark-bonus-card__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 85% 65% at 14% 8%, rgba(255, 255, 255, 0.14), transparent 52%);
  pointer-events: none;
}

.ark-bonus-card__brand {
  position: absolute;
  left: 16px;
  right: auto;
  bottom: 24px;
  top: auto;
  transform: none;
  z-index: 3;
  font-size: clamp(22px, 5.8vw, 32px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.88) 32%,
    #ffffff 48%,
    rgba(255, 255, 255, 0.92) 58%,
    rgba(255, 255, 255, 0.7) 100%
  );
  background-size: 220% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  animation: ark-bonus-brand-shimmer 3.4s ease-in-out infinite;
}

@keyframes ark-bonus-brand-shimmer {
  0%,
  100% {
    background-position: 130% 0;
  }
  50% {
    background-position: -35% 0;
  }
}

.ark-bonus-card__brand--back {
  left: 16px;
  right: auto;
  bottom: 24px;
  top: auto;
  font-size: clamp(20px, 5.2vw, 28px);
}

.ark-bonus-card__inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  padding: 11px 12px 36px;
  box-sizing: border-box;
}

.ark-bonus-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 12px;
  width: 100%;
}

.ark-bonus-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ark-bonus-card__chip--balance {
  padding: 5px 10px;
  gap: 6px;
  align-items: center;
}

.ark-bonus-card__chip--balance .ark-bonus-card__balance {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.ark-bonus-card__chip--balance .ark-bonus-card__amount {
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ark-bonus-card__chip--balance .ark-bonus-card__unit {
  font-size: clamp(9px, 2.3vw, 11px);
  font-weight: 600;
  text-transform: lowercase;
  opacity: 0.86;
  line-height: 1;
  white-space: nowrap;
}

.profile-bonus-section .ark-bonus-card__chip--balance,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--balance {
  padding: 5px 9px;
  gap: 5px;
}

.profile-bonus-section .ark-bonus-card__chip--balance .ark-bonus-card__amount,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--balance .ark-bonus-card__amount {
  font-size: clamp(13px, 3.5vw, 16px);
}

.profile-bonus-section .ark-bonus-card__chip--balance .ark-bonus-card__unit,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--balance .ark-bonus-card__unit {
  font-size: clamp(8px, 2.1vw, 10px);
}

.ark-bonus-card__chip--discount {
  align-items: center;
  padding: 8px 12px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__amount--discount,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip--discount .ark-bonus-card__amount--discount {
  font-size: clamp(10px, 2.8vw, 17px);
  white-space: nowrap;
}

.ark-bonus-card__chip-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.ark-bonus-card__chip-label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  text-transform: lowercase;
  opacity: 0.82;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.ark-bonus-card__chip-value-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  max-width: 100%;
}

.ark-bonus-card__chip-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(11px, 3.2vw, 18px);
  height: clamp(11px, 3.2vw, 18px);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.profile-bonus-section .ark-bonus-card__chip-icon,
.checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__chip-icon {
  width: clamp(10px, 2.9vw, 16px);
  height: clamp(10px, 2.9vw, 16px);
}

.ark-bonus-card__amount {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.ark-bonus-card__amount--discount {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.ark-bonus-card__unit {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

.ark-bonus-card__inner--back {
  display: block;
  height: 100%;
  padding: 11px 12px 36px;
  box-sizing: border-box;
  position: relative;
}

.ark-bonus-card__back-foot {
  position: absolute;
  right: 10px;
  bottom: 34px;
  left: auto;
  top: auto;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  width: auto;
  max-width: 54%;
  pointer-events: none;
}

.ark-bonus-card__chip--back-compact {
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 3px 7px;
  gap: 3px;
}

.ark-bonus-card__chip--back-compact .ark-bonus-card__chip-stack {
  align-items: flex-end;
  gap: 1px;
}

.ark-bonus-card__chip--back-compact .ark-bonus-card__chip-label {
  font-size: 6px;
  line-height: 1.1;
  text-align: right;
  letter-spacing: 0.02em;
}

.ark-bonus-card__chip--back-compact .ark-bonus-card__chip-note {
  font-size: 5.5px;
  line-height: 1.15;
  max-width: 88px;
  text-align: right;
  opacity: 0.9;
}

.ark-bonus-card__chip--back-compact .ark-bonus-card__amount--discount {
  font-size: 9px;
  line-height: 1.05;
  font-weight: 700;
}

.ark-bonus-card__chip--back-compact .ark-bonus-card__chip-icon {
  width: 8px;
  height: 8px;
}

.ark-bonus-card__chip--back-info {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  gap: 5px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ark-bonus-card__chip--back-info .ark-bonus-card__chip-stack {
  align-items: flex-end;
  gap: 0;
}

.ark-bonus-card__chip--back-info .ark-bonus-card__chip-label {
  font-size: clamp(7px, 1.9vw, 8px);
  text-align: right;
  line-height: 1.15;
}

.ark-bonus-card__chip--back-info .ark-bonus-card__chip-note,
.ark-bonus-card__chip--back-info .ark-bonus-card__amount--back {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.ark-bonus-card__chip--back-info .ark-bonus-card__chip-icon {
  width: clamp(9px, 2.5vw, 13px);
  height: clamp(9px, 2.5vw, 13px);
}

.ark-bonus-card__discount-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 20;
}

.ark-bonus-card__hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0.95;
  line-height: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ark-bonus-card__hint-btn:hover,
.ark-bonus-card__hint-btn:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.ark-bonus-card__chip--plaque {
  width: auto;
  max-width: 148px;
  min-height: 0;
  padding: 3px 7px;
  box-sizing: border-box;
  align-items: center;
  border-radius: 999px;
}

.ark-bonus-card__chip--plaque .ark-bonus-card__chip-stack {
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.ark-bonus-card__chip--plaque .ark-bonus-card__chip-label,
.ark-bonus-card__chip--plaque .ark-bonus-card__chip-note {
  text-align: left;
  max-width: none;
}

.ark-bonus-card__chip--plaque .ark-bonus-card__chip-icon {
  width: clamp(9px, 2.5vw, 14px);
  height: clamp(9px, 2.5vw, 14px);
}

.ark-bonus-card__chip--plaque .ark-bonus-card__amount--discount {
  font-size: 20px;
  line-height: 1.05;
}

.ark-bonus-card__chip-note {
  display: block;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.82;
  text-align: right;
  max-width: 130px;
  white-space: normal;
}

.ark-bonus-card__hint-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.ark-bonus-card__flip-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  z-index: 12;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  transition: bottom 0.78s cubic-bezier(0.34, 1.12, 0.38, 1);
}

.ark-bonus-card--flipped .ark-bonus-card__flip-zone,
.ark-bonus-card--flipping .ark-bonus-card__flip-zone {
  bottom: 0;
}

.ark-bonus-card__flip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 8px;
  min-width: 40px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0.95;
  line-height: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ark-bonus-card__tap-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transform-origin: 50% 85%;
  animation: ark-bonus-tap-press 2.6s cubic-bezier(0.42, 0.08, 0.28, 1) infinite;
}

@keyframes ark-bonus-tap-press {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  32% {
    transform: translateY(2px) scale(0.97);
    opacity: 1;
  }
  52% {
    transform: translateY(2px) scale(0.97);
    opacity: 1;
  }
  78% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ark-bonus-card__brand {
    animation: none;
    background-position: 50% 0;
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  }

  .ark-bonus-card__tap-icon {
    animation: none;
  }
}

.ark-bonus-card__flip-btn:hover,
.ark-bonus-card__flip-btn:focus-visible {
  opacity: 1;
  transform: scale(1.08);
}


.ark-bonus-card__details-panel {
  position: relative;
  z-index: 6;
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 2px 0;
}

.ark-bonus-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px 14px;
  width: 100%;
  align-content: center;
}

.ark-bonus-card__details--back {
  grid-template-rows: auto auto;
  gap: 10px 8px;
  align-content: start;
}

.ark-bonus-card__detail {
  min-width: 0;
  text-align: left;
}

.ark-bonus-card__detail--tr,
.ark-bonus-card__detail--br {
  text-align: right;
}

.ark-bonus-card__detail--tl .ark-bonus-card__detail-pill-row {
  justify-content: flex-start;
}

.ark-bonus-card__detail--tr .ark-bonus-card__detail-pill-row,
.ark-bonus-card__detail--br .ark-bonus-card__detail-pill {
  justify-content: flex-end;
}

.ark-bonus-card__detail-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.ark-bonus-card__detail-pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ark-bonus-card__detail-pill--rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
}

.ark-bonus-card__detail-mini {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ark-bonus-card__detail-mini svg {
  flex-shrink: 0;
}

.ark-bonus-card__detail-text {
  margin: 4px 0 0;
  font-size: 8px;
  line-height: 1.35;
  font-weight: 500;
  opacity: 0.88;
  max-width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.ark-bonus-card__detail--tr .ark-bonus-card__detail-text,
.ark-bonus-card__detail--br .ark-bonus-card__detail-text {
  margin-left: auto;
}

.web-flow-shell--notifications .notifications-empty {
  text-align: center;
  padding: 28px 12px 20px;
}

.notifications-empty-icon {
  color: #000;
  opacity: 0.28;
  margin-bottom: 14px;
}

.notifications-empty-icon svg {
  display: inline-block;
  vertical-align: top;
}

.notifications-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.notifications-empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notifications-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.notifications-item:last-child {
  border-bottom: none;
}

.notifications-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.notifications-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.notifications-item-time {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.notifications-item-body {
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}

.tracking-title {
  font-size: 17px !important;
  font-weight: 800 !important;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-add-btn {
  background: none;
  border: 1px solid #000;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-add-btn:hover {
  background: #000;
  color: #fff;
}

.track-card-mini {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

.track-order-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
}
.track-detail-row {
  margin-bottom: 4px;
  color: #333;
}
.track-detail-label {
  font-weight: 600;
  color: #000;
}
.track-detail-items-title {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  color: #000;
}
.track-order-item {
  padding: 3px 0;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.track-order-item:last-child {
  border-bottom: none;
}

.track-card-mini .track-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.track-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.track-status-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-total {
  font-size: 16px;
  font-weight: 700;
}

.order-card-mini {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.order-card-mini .order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card-mini .order-card-date {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.order-card-mini .order-card-total {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.saved-addr-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.saved-addr-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.saved-addr-del {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.saved-addr-del:hover {
  color: #f00;
}

.add-addr-form {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
}

.saved-addr-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-addr-chip {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.saved-addr-chip:hover,
.saved-addr-chip.active {
  background: #000;
  color: #fff;
}

/* Order history */
.order-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.order-card-id {
  font-weight: 700;
}

.order-card-status {
  font-weight: 600;
}

.order-card-date {
  font-size: 12px;
  margin-bottom: 6px;
}

.order-card-total {
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}

.order-card-items {
  font-size: 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e0e0e0;
}

.order-card-items div {
  margin-bottom: 2px;
}

/* Image placeholder */
.no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: var(--toast-stack-offset, calc(16px + env(safe-area-inset-bottom, 0px)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  transition: bottom 0.2s ease;
}

body:has(#cart-float-bar:not([hidden])) #toast-container {
  bottom: var(--toast-stack-offset, calc(62px + env(safe-area-inset-bottom, 0px)));
}

.toast {
  background: #000;
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
  pointer-events: auto;
  animation: toastIn 0.2s ease, toastOut 0.2s ease 2.3s;
  animation-fill-mode: forwards;
}

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

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Static pages (Информация: доставка, оплата, оферта и т.д.) */
.static-page {
  font-size: 15px;
  line-height: 1.52;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: #222;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.static-page h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 10px;
  text-wrap: balance;
  color: #111;
}

.static-page h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 1.1rem 0 0.45rem;
  color: #111;
}

.static-page p {
  margin: 0 0 9px;
}

.static-page ul,
.static-page ol {
  margin: 0 0 10px;
  padding-left: 1.2em;
}

.static-page li {
  margin-bottom: 5px;
  line-height: 1.48;
}

.static-page li:last-child {
  margin-bottom: 0;
}

body.web-mode .static-page {
  font-size: clamp(14px, 0.95vw, 15px);
  line-height: 1.52;
  padding: 0 clamp(4px, 2.5vw, 12px) 8px;
  box-sizing: border-box;
}

/* Delivery tracking timeline */
.track-card {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.track-card:hover {
  transform: translateY(-2px);
}


.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.track-id {
  font-size: 14px;
  font-weight: 700;
}

.track-date {
  font-size: 11px;
  color: #666;
}

.track-amount {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.timeline {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 48px;
  position: relative;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.timeline-step.done .timeline-dot {
  background: #000;
  border-color: #000;
}

.timeline-step.current .timeline-dot {
  background: #000;
  border-color: #000;
  transform: scale(1.3);
}

.timeline-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  color: #bbb;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s;
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
  color: #000;
  font-weight: 600;
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  min-width: 6px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: background 0.3s;
}

.timeline-line.filled {
  background: #000;
}

.track-items {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
}

.track-items div {
  margin-bottom: 2px;
}

.track-delivery-info {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
}

.track-type-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.track-time-info {
  font-size: 12px;
  color: #444;
  margin: 6px 0 2px;
  font-weight: 500;
}

.orders-split-section {
  margin-bottom: 20px;
}

.orders-split-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orders-split-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
}

/* City overlay */
#city-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-overlay-inner {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 32px 24px;
  animation: overlayCardIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@keyframes overlayCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.city-overlay-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 28px;
}

.city-overlay-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.city-card {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: #f5f5f5;
  color: #000;
  border: none;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.15s, color 0.15s;
}

.city-card:hover {
  background: #333;
  color: #fff;
  transform: scale(1.03);
}

.city-card:active {
  transform: scale(1.01);
  background: #000;
  color: #fff;
}

/* Current city indicator */
.city-current {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: #666;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.city-current:hover {
  background: #eee;
}

/* Responsive */
/* ---- Medium phones (up to 480px) ---- */
@media (max-width: 480px) {
  #app {
    padding: 16px;
  }
  .footer-inner {
    padding: 16px;
  }
  .city-overlay-inner {
    padding: 24px 16px;
  }
  .city-card {
    font-size: 15px;
    padding: 16px 14px;
  }
  .product-list {
    gap: 10px;
  }
  body.web-mode .product-card-body {
    padding: 8px 8px 10px;
  }
  body.web-mode .product-card-name {
    font-size: 12px;
    margin-bottom: 4px;
  }
  body.web-mode .product-card-price {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .product-card-name {
    font-size: 13px;
    font-weight: 700;
  }
  .product-card-desc {
    font-size: 12px;
    font-weight: 500;
  }
  .product-card-price {
    font-size: 13px;
  }
  .cart-icon-btn {
    width: 32px;
    height: 32px;
  }
  .cart-icon-btn svg {
    width: 16px;
    height: 16px;
  }
  .card-add-btn {
    padding: 10px 10px;
    font-size: 11px;
  }
  .cat-chip {
    padding: 6px 12px;
    font-size: 12px;
  }
  .category-select-wrap {
    gap: 5px;
  }
  .tab-btn {
    font-size: 10px;
    padding: 10px 2px;
    letter-spacing: 0.3px;
  }
  .cart-item {
    gap: 14px;
    padding: 14px;
    min-height: 160px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    max-width: 140px;
    max-height: 140px;
  }
  .cart-item-info {
    min-height: 140px;
  }
  .cart-item-name {
    font-size: 15px;
  }
  .cart-item-price {
    font-size: 15px;
  }
}

/* ---- Small phones (up to 390px, e.g. iPhone 11, older Android) ---- */
@media (max-width: 390px) {
  #app {
    padding: 12px;
  }
  .cat-chip {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 16px;
  }
  .category-select-wrap {
    gap: 4px;
  }
  .tab-btn {
    font-size: 9px;
    padding: 9px 2px;
    letter-spacing: 0.2px;
  }
  .tab-badge {
    font-size: 8px;
    line-height: 12px;
    min-width: 12px;
    height: 12px;
    padding: 0 3px;
    border-radius: 6px;
  }
  .product-list {
    gap: 10px;
  }
  .product-card-name {
    font-size: 12px;
    font-weight: 700;
  }
  .product-card-desc {
    font-size: 11px;
    font-weight: 500;
  }
  .product-card-price {
    font-size: 12px;
  }
  .cart-item {
    gap: 12px;
    padding: 12px;
    min-height: 130px;
    border-radius: 14px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
    border-radius: 12px;
  }
  .cart-item-info {
    min-height: 110px;
  }
  .cart-item-name {
    font-size: 14px;
  }
  .cart-item-price {
    font-size: 14px;
  }
  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .section-title {
    font-size: 18px;
  }
  .category-title {
    font-size: 18px;
    font-weight: 700;
  }
  .track-card-mini {
    padding: 14px;
  }
}

/* ---- Very small phones (up to 340px, e.g. old Android, iPhone SE) ---- */
@media (max-width: 340px) {
  #app {
    padding: 10px;
  }
  .cat-chip {
    padding: 4px 8px;
    font-size: 10px;
  }
  .tab-btn {
    font-size: 8px;
    padding: 8px 1px;
  }
  .cart-item {
    gap: 10px;
    padding: 10px;
    min-height: 110px;
  }
  .cart-item-img,
  .cart-item .no-image {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    max-width: 90px;
    max-height: 90px;
  }
  .cart-item-info {
    min-height: 90px;
  }
  .cart-item-name {
    font-size: 13px;
  }
  .cart-item-price {
    font-size: 13px;
  }
  .product-list {
    gap: 8px;
  }
}

/* Mobile: breathing room + no horizontal spill (avoid “сжато”) */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.web-mode #app,
  body.web-mode .web-flow-shell,
  body.web-mode .web-flow-shell--checkout,
  body.web-mode .web-flow-shell--payment,
  body.web-mode .web-flow-shell--favorites,
  body.web-mode .web-flow-shell--profile {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  body.web-mode .web-flow-shell,
  body.web-mode .web-flow-shell--checkout,
  body.web-mode .web-flow-shell--payment,
  body.web-mode .web-flow-shell--favorites,
  body.web-mode .web-flow-shell--profile {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  body.web-mode .web-flow-shell--profile,
  body.web-mode .web-flow-shell--profile .web-centered-page-card {
    overflow-x: visible;
    overflow: visible;
  }

  body.web-mode .form-group input,
  body.web-mode .form-group textarea,
  body.web-mode .form-group select,
  body.web-mode .form-input-date {
    min-height: 48px;
    font-size: 16px;
  }

  body.web-mode .step-next-btn,
  body.web-mode .step-back-btn,
  body.web-mode .nav-btn {
    min-height: 48px;
  }

  body.web-mode img,
  body.web-mode svg,
  body.web-mode video {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  body.web-mode .cart-item {
    gap: 10px;
    min-height: 0;
    align-items: stretch;
  }

  body.web-mode .cart-item-img,
  body.web-mode .cart-item .no-image {
    width: clamp(90px, 34vw, 128px);
    height: clamp(90px, 34vw, 128px);
    min-width: clamp(90px, 34vw, 128px);
    min-height: clamp(90px, 34vw, 128px);
    max-width: clamp(90px, 34vw, 128px);
    max-height: clamp(90px, 34vw, 128px);
  }

  body.web-mode .cart-item-info {
    min-height: 0;
    min-width: 0;
  }

  body.web-mode .cart-item-name {
    font-size: clamp(13px, 4vw, 15px);
    line-height: 1.25;
    word-break: break-word;
  }

  body.web-mode .cart-item-price {
    font-size: clamp(14px, 4.2vw, 16px);
  }

  body.web-mode .profile-header {
    align-items: center;
    gap: 10px;
  }

  body.web-mode .profile-name,
  body.web-mode .profile-username {
    word-break: break-word;
  }
}

.checkout-discount-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}
.checkout-discount-actions--solo {
  display: block;
}
.checkout-discount-actions--solo .checkout-discount-btn {
  width: 100%;
}
.checkout-discount-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.checkout-discount-btn--outline {
  background: #f7f7f7;
  border-color: #ddd;
}
.checkout-discount-btn--active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
.checkout-discount-btn:active {
  transform: scale(0.98);
}
.checkout-bonus-panel {
  margin: 0 0 16px;
  animation: stepFadeIn 0.25s ease both;
}
.checkout-bonus-panel .checkout-bonus-arka-wrap {
  margin-bottom: 14px;
}
/* flip на чекауте — через rotateY на .ark-bonus-card__scene (не блокировать transform) */
.checkout-bonus-arka-card .ark-bonus-card__flip-zone,
.checkout-bonus-arka-card .ark-bonus-card__hint-btn {
  display: none !important;
}
.checkout-bonus-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.checkout-bonus-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.checkout-bonus-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 600;
  min-width: 0;
}
.checkout-bonus-input:focus {
  outline: none;
}
.checkout-bonus-input-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #f5f5f5;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid #eee;
}
.checkout-bonus-input-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.checkout-bonus-range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.checkout-bonus-range {
  flex: 1;
  min-width: 0;
  height: 28px;
  margin: 0;
  accent-color: #111;
  cursor: pointer;
}

.checkout-bonus-range-value {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.order-summary.checkout-bonus-line {
  color: #5b2d8e;
}
.order-summary.checkout-promo-line {
  color: #1a5c4a;
}

/* Промокод — билет (как в референсе, стиль ARKA) */
.checkout-promo-panel {
  margin: 0 0 16px;
  animation: stepFadeIn 0.25s ease both;
}
.checkout-promo-ticket-wrap {
  width: min(86%, 440px);
  max-width: 440px;
  margin-inline: auto;
  box-sizing: border-box;
}
.checkout-promo-ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 118px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background-color: #070708;
  background-image:
    repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(255, 255, 255, 0.028) 5px, rgba(255, 255, 255, 0.028) 6px),
    repeating-linear-gradient(-135deg, transparent, transparent 5px, rgba(255, 255, 255, 0.022) 5px, rgba(255, 255, 255, 0.022) 6px);
  box-shadow: none;
  filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.22));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 118' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='t'%3E%3Crect width='440' height='118' fill='white' rx='16'/%3E%3Ccircle cx='0' cy='59' r='6.5' fill='black'/%3E%3Ccircle cx='440' cy='59' r='6.5' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='440' height='118' fill='white' mask='url(%23t)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 118' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='t'%3E%3Crect width='440' height='118' fill='white' rx='16'/%3E%3Ccircle cx='0' cy='59' r='6.5' fill='black'/%3E%3Ccircle cx='440' cy='59' r='6.5' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='440' height='118' fill='white' mask='url(%23t)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Лёгкий намёк на перфорацию по краю (без белых «пятен») */
.checkout-promo-ticket::before,
.checkout-promo-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.28);
}
.checkout-promo-ticket::before {
  left: -1px;
}
.checkout-promo-ticket::after {
  right: -1px;
}
.checkout-promo-ticket__notch {
  display: none;
}
.checkout-promo-ticket__left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-align: center;
  gap: 2px;
}
.checkout-promo-ticket__arka {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  background-image: linear-gradient(
    108deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.88) 32%,
    #ffffff 48%,
    rgba(255, 255, 255, 0.92) 58%,
    rgba(255, 255, 255, 0.7) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.checkout-promo-ticket__promo {
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 600;
  text-transform: lowercase;
  opacity: 0.88;
  letter-spacing: 0.06em;
}
.checkout-promo-ticket__divider {
  flex: 0 0 0;
  width: 0;
  align-self: stretch;
  margin: 14px 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
}
.checkout-promo-ticket__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 14px 12px;
  min-width: 0;
}
.checkout-promo-ticket__code {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.checkout-promo-ticket__code::placeholder {
  color: rgba(255, 255, 255, 0.45);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}
.checkout-promo-ticket__code:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}
.checkout-promo-ticket__code:disabled {
  opacity: 0.65;
}
.checkout-promo-ticket__btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #111;
  transition: transform 0.12s, opacity 0.12s;
}
.checkout-promo-ticket__btn:hover:not(:disabled) {
  transform: scale(1.02);
}
.checkout-promo-ticket__btn:active:not(:disabled) {
  transform: scale(0.98);
}
.checkout-promo-ticket__btn:disabled,
.checkout-promo-ticket__btn--applied {
  opacity: 0.72;
  cursor: default;
}
.checkout-promo-ticket__status {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  text-align: center;
  min-height: 1.2em;
}

.checkout-delivery-cost-hint {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.checkout-delivery-cost-hint--warn {
  font-weight: 500;
  color: #b42318;
}

.checkout-step2-delivery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.checkout-step2-delivery-bar__lbl {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-step2-delivery-bar__lbl--muted {
  font-weight: 500;
  opacity: 0.85;
}

.checkout-step2-delivery-bar__price {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-delivery-preview {
  margin: 12px 0 16px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.checkout-delivery-preview__map {
  width: 100%;
  height: 180px;
  display: block;
  border: none;
  border-radius: 0;
  margin: 0;
}

.checkout-delivery-preview__info {
  padding: 12px 14px;
  background: #f7f7f7;
  border-top: 1px solid #ececec;
  font-size: 13px;
  color: #222;
  line-height: 1.45;
}

.checkout-delivery-preview__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 8px;
}

.checkout-delivery-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.checkout-delivery-preview__row:last-child {
  margin-bottom: 0;
}

.checkout-delivery-preview__row--cost {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
}

.checkout-delivery-preview__label {
  font-size: 12px;
  color: #777;
}

.checkout-delivery-preview__value {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.checkout-delivery-preview__price {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.checkout-delivery-preview__loading {
  font-size: 12px;
  color: #888;
}

.checkout-delivery-preview__warn {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b42318;
  line-height: 1.4;
}

#delivery-distance-info {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #333;
}

#ymaps-minimap {
  border: none;
}
[class*="ymaps"][class*="suggest"] {
  z-index: 9999 !important;
}
[class*="ymaps"][class*="suggest-panel"] {
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
  font-family: inherit !important;
}
[class*="ymaps"][class*="suggest-item"] {
  padding: 11px 16px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #222 !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f5f5f5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: background 0.12s !important;
  font-family: inherit !important;
}
[class*="ymaps"][class*="suggest-item"]:last-child {
  border-bottom: none !important;
}
[class*="ymaps"][class*="suggest-item"]:hover,
[class*="ymaps"][class*="suggest-item"][class*="active"],
[class*="ymaps"][class*="suggest-item"][class*="selected"] {
  background: #f5f5f5 !important;
}
[class*="ymaps"][class*="suggest-item"] [class*="highlight"] {
  font-weight: 600 !important;
  color: #000 !important;
}

/* ==================== iOS / Safari Fixes ==================== */
@supports (-webkit-touch-callout: none) {
  html, body {
    min-height: -webkit-fill-available;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .form-input-date {
    font-size: 16px;
  }

  .modal-overlay {
    -webkit-backdrop-filter: blur(6px);
  }

  #tab-bar {
    position: -webkit-sticky;
    position: sticky;
  }

  button, a {
    -webkit-tap-highlight-color: transparent;
  }

  .product-card,
  .radio-option,
  .checkbox-option {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Mini App (Telegram): те же правила центрирования, без обрезки */
body.telegram-mode .profile-bonus-section,
html[data-runtime="telegram"] .profile-bonus-section {
  overflow: visible;
}

body.telegram-mode #profile-bonus-flip,
body.telegram-mode .profile-bonus-section .ark-bonus-flip-wrap,
html[data-runtime="telegram"] #profile-bonus-flip,
html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-flip-wrap {
  overflow: visible;
  perspective: none;
  -webkit-perspective: none;
}

body.telegram-mode .profile-bonus-section .ark-bonus-card,
body.telegram-mode #profile-bonus-card,
html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card,
html[data-runtime="telegram"] #profile-bonus-card {
  overflow: visible;
}

body.telegram-mode #profile-bonus-card .ark-bonus-card__scene,
body.telegram-mode .profile-bonus-section .ark-bonus-card__scene,
html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__scene {
  aspect-ratio: 1.586 / 1;
}

/* ==================== MOBILE: Telegram mini-app + phone browser ==================== */

body.telegram-mode {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

body.telegram-mode #header,
html[data-runtime="telegram"] #header {
  display: none !important;
}

body.telegram-mode #tab-bar,
html[data-runtime="telegram"] #tab-bar {
  display: none !important;
}

body.telegram-mode .category-select-wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

body.telegram-mode .cat-chip {
  max-width: 100%;
  box-sizing: border-box;
}

body.telegram-mode .cat-chip--accessory-bundle {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 10px;
}

body.telegram-mode .tg-app-toolbar {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(82px, 92px) minmax(0, 1fr) minmax(150px, 168px);
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px));
  background: #fff;
  border-bottom: 1px solid #eee;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  overflow: visible;
}

.tg-app-toolbar__left {
  position: relative;
  z-index: 3;
  grid-column: 1;
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.tg-app-toolbar__left .web-call-btn,
.tg-app-toolbar__left .tg-toolbar-back-btn,
.tg-app-toolbar__left .tg-toolbar-phone-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #dfe1e8;
  border-radius: 10px;
  background: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  visibility: visible;
  opacity: 1;
}

.tg-app-toolbar__left .web-call-btn svg {
  width: 20px;
  height: 20px;
  fill: #101114;
  display: block;
}

.tg-app-toolbar__left .web-call-panel {
  z-index: 130;
}

.tg-app-toolbar__logo {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0;
  width: min(42vw, 176px);
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.tg-app-toolbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.tg-app-toolbar__actions {
  grid-column: 3;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
  margin-left: 0;
}

.tg-app-toolbar .web-toolbar-action-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

body.telegram-mode .tg-app-toolbar .web-toolbar-action-btn,
html[data-runtime="telegram"] .tg-app-toolbar .web-toolbar-action-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

body.telegram-mode .tg-app-toolbar__actions,
html[data-runtime="telegram"] .tg-app-toolbar__actions {
  gap: 4px;
  justify-content: flex-end;
}

body.telegram-mode #app {
  padding-top: max(4px, env(safe-area-inset-top, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: max(80px, calc(16px + env(safe-area-inset-bottom, 0px)));
  max-width: 100%;
  box-sizing: border-box;
}

body.telegram-mode,
html[data-runtime="telegram"] body {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.telegram-mode #app,
html[data-runtime="telegram"] #app {
  height: auto;
  overflow: visible;
  overflow-y: visible;
}

body.telegram-mode .web-flow-shell--profile,
html[data-runtime="telegram"] .web-flow-shell--profile {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 12px;
  box-sizing: border-box;
}

body.telegram-mode .web-flow-shell--profile .web-centered-page-card,
html[data-runtime="telegram"] .web-flow-shell--profile .web-centered-page-card {
  max-width: 100%;
  margin: 0;
  padding: 8px 12px 16px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  box-sizing: border-box;
}

body.telegram-mode .web-flow-shell--profile .profile-header,
html[data-runtime="telegram"] .web-flow-shell--profile .profile-header {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 12px;
}

body.telegram-mode #app > .web-marquee--mini {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  border-radius: 0;
  margin-bottom: 0;
}

/* Mini App: шапка (бегущая строка + плашка) уезжает при прокрутке, без sticky-заставки */
body.telegram-mode .site-hero:not(.site-hero--desktop-script),
html[data-runtime="telegram"] .site-hero:not(.site-hero--desktop-script) {
  min-height: auto;
  margin: 0 0 6px;
}

body.telegram-mode .site-hero--desktop-script,
html[data-runtime="telegram"] .site-hero--desktop-script {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  z-index: 2400;
}

body.telegram-mode .site-hero--desktop-script .site-hero-stage,
html[data-runtime="telegram"] .site-hero--desktop-script .site-hero-stage {
  position: relative;
  top: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body.site-hero-lock.telegram-mode #app > .web-marquee--mini,
body.site-hero-lock.telegram-mode #app > .tg-app-toolbar,
html[data-runtime="telegram"] body.site-hero-lock #app > .web-marquee--mini,
html[data-runtime="telegram"] body.site-hero-lock #app > .tg-app-toolbar {
  visibility: hidden;
  pointer-events: none;
}

body.telegram-mode .site-hero:not(.site-hero--desktop-script) .site-hero-stage,
html[data-runtime="telegram"] .site-hero:not(.site-hero--desktop-script) .site-hero-stage {
  position: relative;
  top: auto;
  min-height: 0;
  padding: 12px 0 8px;
  justify-content: center;
  overflow: visible;
}

body.telegram-mode .site-hero-brand,
html[data-runtime="telegram"] .site-hero-brand {
  position: relative;
  top: auto;
  margin: 0;
  transform: none;
}

body.telegram-mode .site-hero-hint,
html[data-runtime="telegram"] .site-hero-hint {
  display: none;
}

body.telegram-mode .web-flow-shell--cart,
body.telegram-mode .web-flow-shell--checkout,
html[data-runtime="telegram"] .web-flow-shell--cart,
html[data-runtime="telegram"] .web-flow-shell--checkout {
  padding-top: 4px;
}

html[data-runtime="telegram"] #app > .web-marquee--mini,
html[data-runtime="telegram"] #app > .tg-app-toolbar {
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
  body.telegram-mode .site-hero-stage,
  html[data-runtime="telegram"] .site-hero-stage {
    position: relative;
    top: auto;
    min-height: 0;
  }

  body.telegram-mode .site-hero-brand,
  html[data-runtime="telegram"] .site-hero-brand {
    position: relative;
    top: auto;
    margin: 0;
  }

  body.telegram-mode #app,
  body.telegram-mode .web-flow-shell,
  body.telegram-mode .checkout-bonus-panel {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.telegram-mode .web-flow-shell--profile,
  html[data-runtime="telegram"] .web-flow-shell--profile,
  body.telegram-mode .web-flow-shell--profile .web-centered-page-card,
  html[data-runtime="telegram"] .web-flow-shell--profile .web-centered-page-card {
    overflow-x: visible;
    overflow: visible;
  }

  body.telegram-mode .profile-bonus-section,
  html[data-runtime="telegram"] .profile-bonus-section {
    overflow: visible;
    max-width: 100%;
    min-width: 0;
  }

  body.telegram-mode .form-group input,
  body.telegram-mode .form-group textarea,
  body.telegram-mode .form-group select,
  body.telegram-mode .form-input-date {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Бонусная карта на узком экране — читаемые чипы, без обрезки */
@media (max-width: 520px) {
  body.telegram-mode .profile-bonus-section .ark-bonus-card__inner,
  body.telegram-mode .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__inner,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__inner {
    padding: 10px 12px 40px;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__inner--back,
  body.telegram-mode .checkout-bonus-panel .checkout-bonus-arka-card .ark-bonus-card__inner--back,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__inner--back {
    padding: 8px 10px 36px;
  }

  body.telegram-mode .ark-bonus-card__back-foot,
  html[data-runtime="telegram"] .ark-bonus-card__back-foot {
    right: 10px;
    bottom: 40px;
    max-width: 55%;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--discount,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--discount {
    padding: 4px 8px;
    max-width: 100%;
    overflow: visible;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__chip-label,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__chip-label {
    font-size: 7px;
    line-height: 1.1;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__amount--discount,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--discount .ark-bonus-card__amount--discount {
    font-size: clamp(9px, 2.6vw, 12px);
    overflow: visible;
    text-overflow: unset;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--balance,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--balance {
    padding: 4px 8px;
    max-width: 48%;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--balance .ark-bonus-card__amount {
    font-size: clamp(11px, 3vw, 14px);
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--balance .ark-bonus-card__unit {
    font-size: 7px;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__brand,
  body.telegram-mode .profile-bonus-section .ark-bonus-card__brand--back {
    bottom: 20px;
    left: 14px;
    right: auto;
    top: auto;
    font-size: clamp(19px, 5.2vw, 26px);
    letter-spacing: 0.16em;
    line-height: 1;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__brand--back {
    bottom: 20px;
    font-size: clamp(19px, 5.2vw, 26px);
    animation: ark-bonus-brand-shimmer 3.4s ease-in-out infinite;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__back-foot,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__back-foot {
    right: 8px;
    left: auto;
    bottom: 30px;
    max-width: 56%;
    width: auto;
    align-items: flex-end;
    gap: 4px;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact {
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    gap: 3px;
    align-items: center;
    box-sizing: border-box;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-stack,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-stack {
    align-items: flex-end;
    gap: 1px;
    width: auto;
    flex: 0 1 auto;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-label,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-label {
    font-size: 6.5px;
    line-height: 1.15;
    white-space: nowrap;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-note,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-note {
    font-size: 6px;
    line-height: 1.2;
    max-width: none;
    text-align: right;
    white-space: nowrap;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__amount--discount,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__amount--discount {
    font-size: clamp(8px, 2.2vw, 10px);
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-icon,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-icon {
    width: 8px;
    height: 8px;
  }

  body.telegram-mode .profile-bonus-section .ark-bonus-card__chip--plaque.ark-bonus-card__chip--back-compact,
  html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-card__chip--plaque.ark-bonus-card__chip--back-compact {
    max-width: 100%;
    width: fit-content;
  }

  .ark-bonus-flip-wrap > .ark-bonus-card__skin-picker,
  #profile-bonus-flip > .ark-bonus-card__skin-picker {
    top: 4px;
    right: 0;
    left: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Сайт (не Mini App): карта и текст на обороте чуть крупнее */
body.web-mode .profile-bonus-section .ark-bonus-flip-wrap,
body.web-mode #profile-bonus-flip,
body.web-mode .checkout-bonus-panel .checkout-bonus-arka-wrap {
  width: min(100%, 360px) !important;
  max-width: calc(100% - 12px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: translateX(-3px) !important;
}

body.web-mode .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-label {
  font-size: 7px;
}

body.web-mode .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-note {
  font-size: 6.5px;
  max-width: 100px;
}

body.web-mode .ark-bonus-card__chip--back-compact .ark-bonus-card__amount--discount {
  font-size: 10px;
}

body.web-mode .ark-bonus-card__chip--back-compact .ark-bonus-card__chip-icon {
  width: 9px;
  height: 9px;
}

body.web-mode .ark-bonus-card__chip--back-info .ark-bonus-card__chip-label {
  font-size: clamp(8px, 2vw, 9px);
}

body.web-mode .ark-bonus-card__chip--back-info .ark-bonus-card__chip-note,
body.web-mode .ark-bonus-card__chip--back-info .ark-bonus-card__amount--back {
  font-size: clamp(12px, 3.2vw, 15px);
}


/* === UI refresh: cart float, points, delivery badge, chips === */
.stock-badge--delivery {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 4;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.telegram-mode .stock-badge--delivery,
html[data-runtime="telegram"] .stock-badge--delivery {
  top: 6px;
  left: 6px;
  right: auto;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  max-width: calc(100% - 12px);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.15;
  text-align: left;
  border-radius: 8px;
}

@media (max-width: 480px) {
  body.web-mode .stock-badge--delivery,
  body.telegram-mode .stock-badge--delivery,
  html[data-runtime="telegram"] .stock-badge--delivery {
    font-size: 9px;
    padding: 3px 6px;
    max-width: calc(100% - 10px);
    white-space: normal;
    line-height: 1.15;
  }
}

.cat-chip {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-width: 1px;
  border-radius: 999px;
}

.web-quick-cat-chip {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-width: 1px;
  border-radius: 999px;
  max-width: 200px;
}

.cart-discount-block {
  margin: 16px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-points-label { font-size: 15px; font-weight: 700; }
.cart-points-sub { font-size: 12px; color: #888; margin-top: 2px; }

.cart-toggle {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.cart-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cart-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 999px;
  transition: 0.2s;
}
.cart-toggle-slider:before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cart-toggle input:checked + .cart-toggle-slider { background: #111; }
.cart-toggle input:checked + .cart-toggle-slider:before { transform: translateX(20px); }

.cart-promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cart-promo-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
}
.cart-promo-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.cart-promo-status { font-size: 12px; color: #2e7d32; }

.cart-summary-block { margin: 8px 0 16px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 4px 0;
}
.cart-summary-row--muted { color: #888; font-size: 13px; }
.cart-summary-row--minus span:last-child { color: #c62828; }
.cart-summary-row--earn span:last-child { color: #1b7a3a; font-weight: 600; }
.cart-discount-hint {
  font-size: 12px;
  color: #888;
  margin: 6px 0 0;
  line-height: 1.35;
}
.cart-points-row--disabled { opacity: 0.55; }
.cart-promo-bonus-mode {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid #e8ebf2;
}
.cart-promo-bonus-mode__title { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.cart-promo-bonus-mode__sub { font-size: 12px; color: #888; margin: 0 0 10px; }
.cart-promo-bonus-mode__btns { display: flex; flex-direction: column; gap: 8px; }
.cart-promo-bonus-mode__btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #10131f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cart-promo-bonus-mode__btn--outline {
  background: #fff;
  color: #10131f;
  border: 1px solid #d5dae6;
}
.cart-promo-mode-switch {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cart-promo-row__inner {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.cart-promo-row__inner .cart-promo-input { flex: 1; min-width: 0; }
.cart-promo-clear {
  flex-shrink: 0;
  width: 40px;
  padding: 0;
  border: 1px solid #d5dae6;
  border-radius: 10px;
  background: #fff;
  color: #10131f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cart-promo-pick { margin-top: 10px; }
.cart-promo-pick--loading {
  padding: 10px 0;
  font-size: 13px;
  color: var(--tg-theme-hint-color, #888);
}
.cart-promo-pick__title {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
}
.cart-promo-pick__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid #e8ebf0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.arka-addr-field {
  position: relative;
}
.arka-addr-suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5000;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
}
.arka-addr-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  color: #111;
  cursor: pointer;
}
.arka-addr-suggest-item:hover,
.arka-addr-suggest-item:focus {
  background: #f3f5f8;
}

.cart-promo-pick__item--suggest {
  border-color: #10131f;
  box-shadow: inset 0 0 0 1px #10131f;
}
.cart-promo-pick__code { font-weight: 700; letter-spacing: 0.04em; }
.cart-promo-pick__benefit { color: #2e7d32; font-weight: 600; white-space: nowrap; }
.profile-promos-list { display: flex; flex-direction: column; gap: 8px; }
.profile-promo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: #fff;
}
.profile-promo-card__main { flex: 1; min-width: 0; }
.profile-promo-card__code { font-weight: 800; letter-spacing: 0.05em; }
.profile-promo-card__meta { font-size: 12px; color: #666; margin-top: 2px; }
.profile-promo-card__benefit { font-weight: 700; color: #2e7d32; margin-top: 4px; font-size: 13px; }
.profile-promo-card__copy { flex-shrink: 0; white-space: nowrap; }
.cart-promo-mode-switch__btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #d5dae6;
  background: #fff;
  color: #10131f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.cart-promo-mode-switch__btn.is-active {
  background: #fff;
  color: #10131f;
  border-color: #10131f;
  box-shadow: inset 0 0 0 1.5px #10131f;
}
.checkout-earn-line { color: #1b7a3a; }
.cart-summary-hint {
  font-size: 11px;
  line-height: 1.35;
  padding: 2px 0 0;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.cart-float-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #111;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  cursor: pointer;
}
body.telegram-mode .cart-float-bar {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.cart-float-bar[hidden] { display: none !important; }
.cart-float-bar__count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}
.cart-float-bar__label { flex: 1; font-weight: 600; font-size: 14px; }
.cart-float-bar__total { font-weight: 800; font-size: 14px; white-space: nowrap; }

.checkout-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 4px;
}
.addr-detail-errors {
  color: #c62828;
  font-size: 12px;
  margin: 4px 0 8px;
  line-height: 1.35;
}
.form-group input.input-error {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 1px rgba(198,40,40,0.15);
}

@media (max-width: 900px) {
  .checkout-promo-ticket-wrap,
  .checkout-bonus-arka-wrap,
  .checkout-discount-actions {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .checkout-promo-ticket {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .checkout-promo-ticket__right {
    min-width: 0;
    flex: 1;
  }
  #app {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mini App vs сайт — центрирование карты (приоритет над кэшем) */
html[data-runtime="telegram"] #profile-bonus-flip,
html[data-runtime="telegram"] .profile-bonus-section .ark-bonus-flip-wrap,
html[data-runtime="telegram"] .checkout-bonus-panel .checkout-bonus-arka-wrap {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: translateX(-3px) !important;
  width: min(100%, 320px) !important;
  max-width: calc(100% - 12px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 0 14px !important;
  box-sizing: border-box;
  overflow: visible;
}

html[data-runtime="web"] #profile-bonus-flip,
html[data-runtime="web"] .profile-bonus-section .ark-bonus-flip-wrap,
html[data-runtime="web"] .checkout-bonus-panel .checkout-bonus-arka-wrap {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: translateX(-3px) !important;
  width: min(100%, 360px) !important;
  max-width: calc(100% - 12px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 0 16px !important;
  box-sizing: border-box;
  overflow: visible;
}

html[data-runtime="telegram"] .cart-float-bar {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

html[data-runtime="web"] .cart-float-bar,
body.web-mode .cart-float-bar {
  left: 50%;
  right: auto;
  width: min(260px, calc(100vw - 32px));
  max-width: 260px;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 8px 12px;
  gap: 8px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

body.web-mode .cart-float-bar__count {
  min-width: 24px;
  height: 24px;
  font-size: 12px;
}

body.web-mode .cart-float-bar__label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

body.web-mode .cart-float-bar__total {
  font-size: 12px;
  font-weight: 800;
}
