
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial DemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro'; src: url('../Fonts/TT Commons Pro Trial 3-400/TT Commons Pro Trial Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }


@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded DemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'TT Commons Pro Expanded'; src: url('../Fonts/tt com_2/TT Commons Pro Trial Expanded Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }


@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Ultralight.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Heavy.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('../Fonts/San Francisco Pro Display/SF-Pro-Display-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }


:root {
  
  --white: #FFFFFF;
  --black: #000000;
  --bg: #FFFFFF;
  --bg-gray: #F5F5F5;
  --bg-light: #FAFAFA;
  --border: #E5E5E5;
  --border-light: #F0F0F0;

  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted: #9CA3AF;
  --text-link: #0071E3;

  
  --blue: #0071E3;
  --blue-hover: #0563C1;
  --blue-light: rgba(0,113,227,0.08);

  
  --yellow: #FFF535;
  --yellow-hover: #F0E520;

  
  --vb-green-1: #1E6B2E;
  --vb-green-2: #2D9142;
  --vb-blue-1: #0D4A8F;
  --vb-blue-2: #1A6ACC;
  --vb-purple-1: #5B1FA8;
  --vb-purple-2: #7C3DD4;
  --vb-orange-1: #B84A0A;
  --vb-orange-2: #E0681A;

  
  --green: #16A34A;
  --green-light: rgba(22,163,74,0.1);
  --red: #DC2626;
  --red-light: rgba(220,38,38,0.1);
  --orange: #F59E0B;
  --orange-light: rgba(245,158,11,0.1);

  
  --tg-blue: #29B6F6;

  
  --font: 'SF Pro Display', -apple-system, 'Inter', Arial, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;

  
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;

  
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 9999px;

  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  
  --max-w: 1280px;
  --px: 80px;

  --transition: 0.15s ease;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--text-base); color: var(--text-primary); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

img[src$=".svg"], img[src$=".png"] { font-size: 0; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); font-size: var(--text-base); }
input, textarea, select { font-family: var(--font); font-size: var(--text-base); outline: none; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }


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

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

.main--entering {
  animation: page-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.main--exiting {
  animation: page-out 0.18s ease-in forwards;
  pointer-events: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}


.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #FFFFFF;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 80px, #FFFFFF 230px),
    url('../img/main_pages_background.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: auto, 100% auto;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.main { flex: 1; padding: var(--s6) 0 var(--s16); }


.header {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  font-family: 'TT Commons Pro Expanded', 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.header > .container {
  height: 100%;
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  justify-content: center;
}

.header__brand {
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  left: 11.46%;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  height: auto;
}

.header__brand img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
/* Пункт 2: лёгкое увеличение логотипа при наведении (101×37 → 107×39.2 ≈ ×1.06) */
.header__brand:hover img { transform: scale(1.06); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
  justify-content: center;
}

.header__link {
  font-family: 'TT Commons Pro Expanded', 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  line-height: 25px;
  color: #F2F2F2;
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: color var(--transition), background var(--transition), filter var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.header__link:hover {
  color: #FFF535;
}

.header__link.active {
  color: #FFF535;
  font-weight: 500;
}

.header__icon {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__icon img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Аватар пользователя вместо иконки профиля */
.header__avatar {
  display: block;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
}
.header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: absolute;
  right: var(--px);
}

.header__badge {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-full);
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
  display: none;
}

.header__badge.visible { display: inline-block; }


.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--s4) 0 var(--s3);
  font-size: var(--text-xs);
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.breadcrumbs a { color: #FFFFFF; transition: opacity var(--transition); }
.breadcrumbs a:hover { color: #FFFFFF; opacity: 0.8; }
.breadcrumbs__sep { color: rgba(255, 255, 255, 0.8); }
.breadcrumbs__current { color: #FFFFFF; }


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-weight: 600;
  border-radius: var(--r-lg);
  padding: 10px 20px;
  font-size: var(--text-sm);
  line-height: 1;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 12px rgba(0,113,227,0.3); }

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border: none;
  font-weight: 700;
}
.btn-yellow:hover { background: var(--yellow-hover); box-shadow: 0 4px 12px rgba(255,245,53,0.4); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-secondary); background: var(--bg-gray); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  font-weight: 500;
}
.btn-ghost:hover { background: var(--bg-gray); color: var(--text-primary); }

.btn-sm { padding: 7px 14px; font-size: var(--text-xs); border-radius: var(--r-md); }
.btn-lg { padding: 13px 28px; font-size: var(--text-md); }
.btn-full { width: 100%; }


.page-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--s8);
  letter-spacing: -0.02em;
}


.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.section-head h2 {
  font-family: 'SF Pro Display', var(--font);
  font-size: 40px;
  line-height: 44px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #1D1D1F;
}
.section-head__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}


/* Главная: логотип ровно в 72px от шапки (убираем верхний паддинг main). */
.home-main { padding-top: 0; }
.game-section {
  padding: 72px 0;
  margin-bottom: 0;
}
.game-section__inner {
  position: relative;
  padding-bottom: 18px;
}
/* 96px от полосы под логотипом до заголовка «V-BUCKS». */
.game-section + .page-sep { margin-bottom: 96px; }
.game-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.game-logo__img {
  height: 56px;
  width: auto;
}
.game-section__duck {
  position: absolute;
  right: 265px;
  bottom: -74px;
  width: 78px;
  height: auto;
  transform: rotate(-20deg);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 2;
}


.vbucks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-bottom: 72px;
}

.vb-card {
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.vb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.vb-card--green  { background: linear-gradient(165deg, var(--vb-green-1), var(--vb-green-2)); }
.vb-card--blue   { background: linear-gradient(165deg, var(--vb-blue-1), var(--vb-blue-2)); }
.vb-card--purple { background: linear-gradient(165deg, var(--vb-purple-1), var(--vb-purple-2)); }
.vb-card--orange { background: linear-gradient(165deg, var(--vb-orange-1), var(--vb-orange-2)); }

.vb-card__img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
  position: relative;
  overflow: hidden;
}
.vb-card__bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


.vb-coin {
  background: radial-gradient(circle at 30% 30%, #FFE566, #FFD80B 50%, #D4A000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), inset 0 -3px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.vb-coin--sm  { width: 64px; height: 64px; font-size: 28px; }
.vb-coin--md  { width: 80px; height: 80px; font-size: 36px; }
.vb-coin--lg  { width: 96px; height: 96px; font-size: 42px; }
.vb-coin--xl  { width: 110px; height: 110px; font-size: 48px; }

.vb-card__amount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.3);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.vb-card__footer {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.vb-card__label { color: var(--white); }
.vb-card__label-name { font-size: var(--text-sm); font-weight: 700; }
.vb-card__label-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.7); margin-top: 1px; }

.vb-card__price {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 6px 10px;
  border-radius: var(--r-md);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vb-card__buy-btn {
  background: var(--yellow);
  color: var(--black);
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: background var(--transition);
}
.vb-card__buy-btn:hover { background: var(--yellow-hover); }
.vb-card__buy-btn img { width: 32px; height: 28px; display: block; flex-shrink: 0; }


.crew-banner {
  display: flex;
  border-radius: 0;
  overflow: hidden;
  background: #F5F5F7;
  margin-bottom: var(--s8);
  min-height: 300px;
}
.crew-banner__img-wrap {
  position: relative;
  width: 55%;
  flex-shrink: 0;
}
.crew-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.crew-pack-wrap {
  position: relative;
  margin-bottom: 72px;
}
.crew-banner__new {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}
.crew-pack-wrap .crew-banner {
  margin-bottom: 0;
}
.crew-banner__info {
  flex: 1;
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
}
.crew-banner__title {
  font-family: 'SF Pro Display', var(--font);
  font-size: 40px;
  line-height: 44px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0;
}
.crew-banner__perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
}
.crew-banner__buy-btn {
  width: 100%;
  font-family: 'SF Pro Display', var(--font) !important;
  font-size: 28px !important;
  line-height: 32px !important;
  font-weight: 600 !important;
  padding: 16px !important;
  border-radius: 8px !important;
}


.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s4);
  margin-bottom: var(--s8);
}

.set-card {
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg-gray);
}
.set-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.set-card__img {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.set-card__img img { pointer-events: none; }
.set-card__img--1 { background: linear-gradient(135deg, #0D1B2E, #1A3354); }
.set-card__img--2 { background: linear-gradient(135deg, #1A0D2E, #3A1A5C); }

.set-card__footer {
  background: var(--white);
  padding: var(--s3) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  border-top: 1px solid var(--border-light);
}

.set-card__info { min-width: 0; }
.set-card__name { font-weight: 700; font-size: var(--text-base); color: var(--text-primary); }
.set-card__desc { font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; }

.set-card__buy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 7px 12px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.set-card__buy:hover { background: var(--yellow-hover); }

.set-card__bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.set-card__buy-btn {
  background: var(--yellow);
  color: var(--black);
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: background var(--transition);
}
.set-card__buy-btn:hover { background: var(--yellow-hover); }
.set-card__buy-btn img { width: 32px; height: 28px; display: block; flex-shrink: 0; }


.gifts-banner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s8);
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.gifts-banner__icon { font-size: 28px; flex-shrink: 0; }
.gifts-banner__text { flex: 1; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }
.gifts-banner__arrow {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.gifts-banner__arrow:hover { background: var(--blue-hover); }


.sel-wrap {
  width: 100%;
  max-width: 100%;
  /* ~96px от шапки до первой строки товаров (с учётом крошек) */
  margin: 28px 0 0;
}

.sel-grid-4,
.sel-grid-3 {
  display: grid;
  /* Плитки фиксированной ширины, прижаты к левому краю, переносятся при нехватке места */
  grid-template-columns: repeat(auto-fill, 160px);
  justify-content: start;
  /* 24px между строками, 30px между колонками */
  gap: 24px 30px;
}
.sel-grid-4 { margin-bottom: 24px; }   /* отступ между категориями V-BUCKS → НАБОРЫ */
.sel-grid-3 { margin-bottom: 64px; }   /* отступ до блока выбранных товаров */
/* Пустой грид (нет видимых плиток для региона) прячем целиком, иначе его margin
   даёт разный отступ до товаров в зависимости от региона. Специфичность 3 класса
   + !important перебивает инлайновое `.sel-wrap .sel-grid-4 { display:grid !important }`. */
.sel-wrap .sel-grid-4.is-empty,
.sel-wrap .sel-grid-3.is-empty { display: none !important; }

.sel-tile {
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: visible;
  position: relative;
  user-select: none;
  width: 100%;
  max-width: 160px;
  height: 162px;
  justify-self: center;
  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    border-radius 0.25s ease,
    padding      0.25s ease,
    transform    0.3s  cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.3s  ease;
}
.sel-tile:hover:not(.sel-tile--selected) {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.sel-tile--selected {
  border-color: #004E8F;
  border-radius: 14px;
  padding: 2px;
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 78, 143, 0.3);
}


.sel-tile__inner {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  transition: border-radius 0.25s ease;
}
.sel-tile--selected .sel-tile__inner {
  border-radius: 11px;
}

/* Пункт 4: появление плиток каталога (как появление разделов на главной).
   fill-mode backwards — после анимации transform снимается, hover/selected не ломаются. */
@keyframes sel-tile-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sel-grid-4 > .sel-tile,
.sel-grid-3 > .sel-tile {
  animation: sel-tile-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.sel-grid-4 > .sel-tile:nth-child(2),
.sel-grid-3 > .sel-tile:nth-child(2) { animation-delay: 0.05s; }
.sel-grid-4 > .sel-tile:nth-child(3),
.sel-grid-3 > .sel-tile:nth-child(3) { animation-delay: 0.10s; }
.sel-grid-4 > .sel-tile:nth-child(4),
.sel-grid-3 > .sel-tile:nth-child(4) { animation-delay: 0.15s; }
.sel-grid-4 > .sel-tile:nth-child(5),
.sel-grid-3 > .sel-tile:nth-child(5) { animation-delay: 0.20s; }
.sel-grid-4 > .sel-tile:nth-child(6),
.sel-grid-3 > .sel-tile:nth-child(6) { animation-delay: 0.25s; }
.sel-grid-4 > .sel-tile:nth-child(7),
.sel-grid-3 > .sel-tile:nth-child(7) { animation-delay: 0.30s; }
.sel-grid-4 > .sel-tile:nth-child(n+8),
.sel-grid-3 > .sel-tile:nth-child(n+8) { animation-delay: 0.35s; }

/* ====== Скелетон загрузки каталога ======
   Класс is-loading стоит в разметке .sel-wrap с первого кадра и снимается
   из render(), когда каталог загружен. Плитки — серые квадраты с мерцанием. */
.sel-wrap.is-loading .sel-tile {
  cursor: default;
  transform: none;
}
.sel-wrap.is-loading .sel-tile:hover {
  transform: none;
  box-shadow: none;
}
.sel-wrap.is-loading .sel-tile__inner {
  background: #e6e6ea !important;
  position: relative;
  overflow: hidden;
}
.sel-wrap.is-loading .sel-tile__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: sel-skeleton-shimmer 1.3s ease-in-out infinite;
}
.sel-wrap.is-loading .sel-tile__img,
.sel-wrap.is-loading .sel-tile__price-bar,
.sel-wrap.is-loading .sel-tile__badge {
  visibility: hidden;
}
@keyframes sel-skeleton-shimmer {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .sel-wrap.is-loading .sel-tile__inner::after { animation: none; }
}


.sel-tile__badge {
  position: absolute;
  top: 0;
  left: 50%;
  background: #004E8F;
  /* Пункт 11: текст CCE3F9, SF Pro Display 12px semibold, высота 16px; подложка 76×18 */
  color: #CCE3F9;
  font-family: 'SF Pro Display', var(--font);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  width: 76px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  white-space: nowrap;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -60%) scale(0.55);
  transition:
    opacity   0.22s ease,
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sel-tile--selected .sel-tile__badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sel-tile__img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sel-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}


.sel-tile__price-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 21px;
  padding: 7px 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sel-tile--selected .sel-tile__price-bar {
  background: #004E8F;
  color: #FFFFFF;
}

.sel-summary {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-family: 'SF Pro Display', var(--font);
  font-size: 15px;
  line-height: 22px;
  color: #1D1D1F;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 20px;
  margin-bottom: 0;
  border-color: transparent;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}
.sel-summary.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 14px 20px;
  margin-bottom: 12px;
  border-color: var(--border);
}
.sel-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
/* 9.7: название товара — 17px regular #1D1D1F */
.sel-summary__name { color: #1D1D1F; flex: 1; text-align: left; font: 400 17px/17px 'SF Pro Display', var(--font); }
/* 9.9: цена товара — 17px semibold #6E6E73 */
.sel-summary__price { color: #6E6E73; font: 600 17px/17px 'SF Pro Display', var(--font); white-space: nowrap; }

.catalog-checkout-card {
  /* Пункт 9: 540 = кнопка 476 + 2×32 паддинга */
  width: 540px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 32px; /* 9.5: отступы до всех краёв */
  border: 1px solid #D5D2CC; /* 9.6 */
  border-radius: 12px;
  background: linear-gradient(180deg, #F5F3F4 0%, #EEECEC 100%); /* 9.6 */
}

.catalog-checkout-card[hidden],
.catalog-promo[hidden] { display: none; }

.catalog-checkout-card .sel-summary {
  display: flex;
  flex-direction: column;
  /* Плавное появление/сворачивание: пустая сводка схлопывается (иначе последний
     товар оставался бы текстом, т.к. display:flex перебивает [hidden]). */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #D5D2CC; /* 9.11 */
  border-color: transparent;
  border-radius: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}
.catalog-checkout-card .sel-summary.is-open {
  max-height: 600px;
  opacity: 1;
  margin: 0 0 20px;          /* 9.12: от линии до кнопки 20px */
  padding: 0 0 24px;         /* 9.10: от названия до линии 24px */
  border-color: #D5D2CC;     /* 9.11 */
}

/* Поштучная анимация строк сводки: каждая появляется/исчезает плавно (9.8: gap 17px) */
.catalog-checkout-card .sel-summary__row {
  padding: 0;
  max-height: 80px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.catalog-checkout-card .sel-summary__row + .sel-summary__row { margin-top: 17px; }
.catalog-checkout-card .sel-summary__row.is-collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.catalog-discount .sel-summary__price { color: #008A3B; }

.catalog-checkout-card .sel-buy-btn {
  width: 100%;                 /* 9.1: 476 = карточка 540 − 2×32 */
  margin: 0 0 14px;           /* 9.13: до «Совершая покупку» 14px */
  padding: 18px 16px;         /* 9.3: высота 57 = 18 + 21 + 18 */
  border-radius: 8px;
  font: 600 21px/21px 'SF Pro Display', var(--font); /* 9.2 */
  color: #1D1D1F;
}

.catalog-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  color: #6E6E73;
  font: 600 14px/19px 'SF Pro Display', var(--font); /* 9.4 */
}

.catalog-author a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6E6E73;                 /* префикс «Совершая покупку — ты поддержишь» — серый */
  font-weight: 600;
  text-decoration: none;
}

/* Ник автора — градиент (как акценты в макете) */
.catalog-author__name {
  background: linear-gradient(90deg, #FF9D00 0%, #FE3A40 25%, #E01DB8 50%, #8740BB 75%, #0C8DFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700;
}

.catalog-author img { width: 14px; height: 14px; object-fit: contain; }

.catalog-promo {
  width: 286px;
  max-width: 100%;
  margin: 16px auto 0;
  text-align: center;
}

.catalog-promo__title {
  margin: 0 0 12px;
  color: #D5D2CC;
  font: 400 14px/14px 'SF Pro Display', var(--font);
}

.catalog-promo__row { display: flex; gap: 16px; }

.catalog-promo__input,
.catalog-promo__button {
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #D5D2CC;
  border-radius: 8px;
  background: #FFFFFF;
  font: 400 14px/14px 'SF Pro Display', var(--font);
}

.catalog-promo__input {
  width: 149px;
  padding: 0 12px;
  color: #1D1D1F;
  text-transform: uppercase;
  outline: none;
}

.catalog-promo__input::placeholder { color: #D5D2CC; text-transform: none; }
.catalog-promo__input:focus { border-color: #0071E3; }

.catalog-promo__button {
  width: 121px;
  color: #D5D2CC;
  cursor: pointer;
}

.catalog-promo__button:hover:not(:disabled) { border-color: #0071E3; color: #0071E3; }
.catalog-promo__button:disabled { cursor: wait; opacity: 0.6; }

.sel-wrap + .info-tabs { margin-top: 56px; }

@keyframes sel-btn-on {
  0%   { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255,245,53,0); }
  55%  { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(255,245,53,0.22), 0 6px 22px rgba(255,245,53,0.5); }
  100% { transform: scale(1);    box-shadow: 0 4px 16px rgba(255,245,53,0.38); }
}

@keyframes sel-btn-off {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes sel-pay-press {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.985); }
  100% { transform: scale(1); }
}

@keyframes sel-pay-sweep {
  from { transform: translateX(-105%); }
  to   { transform: translateX(305%); }
}

.sel-buy-btn {
  position: relative;                 /* для подъёма/тени/волны */
  width: 100%;
  background: var(--yellow);
  color: var(--black);
  font-size: 20px;
  font-weight: 700;
  padding: 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 10px;
  will-change: transform;
  transition:
    transform     0.3s cubic-bezier(0.34, 1.5, 0.5, 1),
    background    0.4s ease,
    color         0.4s ease,
    border-color  0.4s ease,
    box-shadow    0.35s ease;
}
/* При наведении кнопка ощутимо «выезжает» к нам по оси Z (подъём + увеличение),
   под ней — тёмная 3D-тень, а ниже — отдельная радужная тень (не на самой кнопке). */
.sel-buy-btn:hover:not(:disabled) {
  transform: translateY(-10px) scale(1.06);
  z-index: 20;
  box-shadow:
    /* тёмная 3D-тень прямо под приподнятой кнопкой */
    0 16px 26px -8px rgba(0, 0, 0, 0.40),
    /* радужная тень ПОД кнопкой — смещена вниз, лежит «на полу», а не на кнопке */
    0 30px 26px -12px rgba(255, 157, 0, 0.60),
    0 33px 30px -12px rgba(224, 29, 184, 0.55),
    0 36px 34px -12px rgba(12, 141, 255, 0.55);
}
/* При нажатии кнопка падает вниз */
.sel-buy-btn:active:not(:disabled) {
  transform: translateY(1px) scale(1.0);   /* лёгкое нажатие, без тёмной тени */
  transition: transform 0.1s ease;
}
/* Радужный эффект при нажатии: по контуру кнопки пробегает радужная обводка (цвета крутятся)
   + мягкое цветное свечение. */
@property --sel-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.sel-buy-btn.is-clicked { animation: sel-buy-glow 0.6s ease-out; }
.sel-buy-btn.is-clicked::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  padding: 3px;
  background: conic-gradient(from var(--sel-ang), #FF9D00, #FE3A40, #E01DB8, #8740BB, #0C8DFF, #FF9D00);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  z-index: 4;
  pointer-events: none;
  animation: sel-buy-border 0.6s ease-out, sel-buy-spin 0.6s linear;
}
@keyframes sel-buy-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 157, 0, 0); }
  35%  { box-shadow:
           0 0 16px 2px rgba(255, 157, 0, 0.50),
           0 0 26px 6px rgba(224, 29, 184, 0.42),
           0 0 36px 12px rgba(12, 141, 255, 0.40); }
  100% { box-shadow: 0 0 0 0 rgba(12, 141, 255, 0); }
}
@keyframes sel-buy-border {
  0%   { opacity: 0; transform: scale(0.98); }
  25%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@keyframes sel-buy-spin { to { --sel-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .sel-buy-btn { transition: background 0.2s ease; transform: none !important; }
  .sel-buy-btn.is-clicked { animation: none; }
}
.sel-buy-btn.btn-lit {
  /* без forwards: после «загорания» transform возвращается к базе, чтобы hover-подъём работал;
     покоящееся жёлтое свечение — статикой */
  animation: sel-btn-on 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(255, 245, 53, 0.38);
}
.sel-buy-btn.btn-dimmed {
  animation: sel-btn-off 0.28s ease forwards;
}
.sel-buy-btn.is-pay-animating {
  animation: sel-pay-press 0.52s cubic-bezier(0.34, 1.2, 0.4, 1);
  pointer-events: none;
}
.sel-buy-btn.is-pay-animating::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 52px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-105%);
  animation: sel-pay-sweep 0.52s ease;
  pointer-events: none;
}
.sel-buy-btn:disabled {
  background: rgba(255, 245, 53, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 245, 53, 0.3);
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  box-shadow: none;
}

.sel-hint {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}


.info-tabs {
  margin-top: 36px;
}

.info-tabs__nav {
  /* «Инструкция» строго по центру страницы, по 72px до «Описание» и «FAQ» */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 72px;
  align-items: center;
  padding: 16px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  width: 100vw;
  border-top: 1px solid #D2D2D7;
  border-bottom: 1px solid #D2D2D7;
  position: relative;
}
.info-tab:nth-child(1) { justify-self: end; }
.info-tab:nth-child(2) { justify-self: center; }
.info-tab:nth-child(3) { justify-self: start; }

/* Серая подложка под содержимым вкладок */
.info-tabs__body {
  background: #F5F5F7;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--s6) 0 var(--s10);
}

.info-tab {
  background: none;
  border: none;
  padding: 0;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.info-tab:hover { color: #1D1D1F; }

.info-tab.active {
  color: #1D1D1F;
}

.info-tabs--faq-only .info-tabs__nav {
  display: flex;
  justify-content: center;
}

.info-tabs--faq-only .info-tab {
  cursor: default;
  pointer-events: none;
}

/* Пункт 10 (с правками): серая карточка 920px — это весь блок FAQ, «FAQ» внутри сверху.
   Без тени, низ без скруглений. Селекторы с .info-tabs--faq-only перебивают инлайн по специфичности. */
.info-tabs.info-tabs--faq-only {
  max-width: 922px;                    /* #7: 730px блок вопросов + 96px по бокам */
  margin: 56px auto 0;                 /* 56px от блока с промокодом до подложки */
  background: #F5F5F7;
  border-radius: 36px 36px 0 0;        /* снизу без скруглений */
  box-shadow: none;                    /* тень убрана */
  padding: 0 clamp(20px, 8vw, 96px) 24px;   /* #7: боковой отступ 96px на десктопе → вопросы 730px */
}
.info-tabs--faq-only .info-tabs__nav {
  display: flex;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 56px 0 0;                    /* 56px от верха подложки до «FAQ» */
  border: none;
}
/* Текст «FAQ»: 6E6E73, SF Pro Display, 25px semibold, высота 25px */
.info-tabs--faq-only .info-tab {
  font-family: 'SF Pro Display', var(--font);
  font-size: 25px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
}
.info-tabs--faq-only .info-tabs__body {
  width: auto;
  max-width: 100%;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin: 40px 0 0;                     /* 40px от «FAQ» до 1 пункта */
  padding: 0;
}
.info-tabs--faq-only .info-panel {
  width: auto;
  max-width: 100%;
}
/* 10.4: отступы заголовка вопроса ровно 24px сверху и снизу */
.info-tabs--faq-only .info-faq .faq-q { padding: 24px 0; }
.info-tabs--faq-only .info-faq .faq-item:last-child { border-bottom: none; }

.products-main .info-tabs.info-tabs--faq-only .info-tabs__body {
  margin-top: 40px;
}

.products-main .info-tabs.info-tabs--faq-only .info-faq {
  gap: 0;
}

.products-main .info-tabs.info-tabs--faq-only .info-faq .faq-q {
  padding: 24px 0;
}

.products-main .info-tabs.info-tabs--faq-only .info-faq .faq-a__inner {
  padding-bottom: 24px;
}

.info-panel {
  padding: 0;
  width: 730px;
  max-width: 100%;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.info-panel.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  animation: fade-in 0.4s ease forwards;
}

.info-panel:not(.active) {
  display: none;
}


.info-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-desc p { margin: 0 0 var(--s3); }


.instr-warning {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: var(--s4);
}

.instr-warning__summary {
  display: flex;
  padding: var(--s4) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  user-select: none;
}

.instr-warning__summary::-webkit-details-marker { display: none; }

.instr-warning__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease;
}
.instr-warning__summary:hover .instr-warning__icon { background: rgba(0, 113, 227, 0.95); }
.instr-warning__icon svg { display: block; }

.instr-warning[open] .instr-warning__icon { transform: rotate(180deg); }

.instr-warning p {
  margin: 0;
  padding: var(--s2) 0 var(--s4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.instr-heading {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--s2);
}

.instr-subtext {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--s6);
}

.instr-subtext a {
  color: var(--blue);
  text-decoration: none;
}

.instr-subtext a:hover { text-decoration: underline; }

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

.instr-step {
  display: flex;
  gap: var(--s4);
  position: relative;
  padding-bottom: var(--s6);
}

.instr-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}

.instr-step__num {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #CCE3F9;
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.instr-step__body { padding-top: 6px; }

.instr-step__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.instr-step__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}


.info-faq {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.info-faq details {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: background 0.2s, border-color 0.2s;
}

.info-faq details:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.info-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.info-faq summary::-webkit-details-marker { display: none; }

.info-faq summary .faq-icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.info-faq details[open] summary .faq-icon { transform: rotate(45deg); }

.info-faq details p {
  margin: 0;
  padding: 0 var(--s5) var(--s4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}


.catalog-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s8);
  align-items: start;
}

.filters {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s5);
  position: sticky;
  top: 68px;
}
.filters__title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters__group { margin-bottom: var(--s4); }
.filters__group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  margin: 2px;
}
.chip:hover, .chip.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card__img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body { padding: var(--s3) var(--s4) 0; }
.product-card__name { font-weight: 700; font-size: var(--text-sm); }
.product-card__type { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4) var(--s4);
  margin-top: var(--s3);
  border-top: 1px solid var(--border-light);
}
.product-card__price { font-weight: 700; font-size: var(--text-md); }


.buy-steps {
  margin-top: var(--s8);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
}
.buy-steps__title { font-weight: 700; font-size: var(--text-md); margin-bottom: var(--s5); }
.buy-steps__list { display: flex; flex-direction: column; gap: var(--s4); }
.buy-step {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}
.buy-step__num {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.buy-step__text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }


.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s8);
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: var(--s3); }

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--blue); }

.cart-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: var(--text-base); }
.cart-item__sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: var(--text-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { border-color: var(--blue); color: var(--blue); }
.qty-val { font-weight: 700; font-size: var(--text-base); min-width: 20px; text-align: center; }

.cart-item__price { font-weight: 700; font-size: var(--text-md); min-width: 72px; text-align: right; }

.cart-item__del {
  color: var(--text-muted);
  padding: var(--s2);
  border-radius: var(--r-md);
  transition: all var(--transition);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__del:hover { color: var(--red); background: var(--red-light); }

.cart-summary {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  position: sticky;
  top: 68px;
}
.cart-summary__title { font-weight: 700; font-size: var(--text-md); margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--s3); }
.cart-summary__total { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--text-lg); padding-top: var(--s3); border-top: 1px solid var(--border); margin-top: var(--s1); }

.promo-row { display: flex; gap: var(--s2); margin: var(--s4) 0; }
.promo-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: var(--text-xs);
  background: var(--white);
  transition: border-color var(--transition);
}
.promo-input:focus { border-color: var(--blue); }


.payment-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s8);
  align-items: start;
}

.steps-progress {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s8);
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}
.step-item.done .step-num { background: var(--green); }
.step-item.active .step-num { background: var(--blue); color: var(--white); }
.step-item.active { color: var(--text-primary); }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-line { flex: 1; max-width: 40px; height: 1.5px; background: var(--border); }
.step-line.done { background: var(--green); }

.form-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  margin-bottom: var(--s4);
}
.form-block__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.form-block__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-group { margin-bottom: var(--s4); }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: var(--text-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.1); }
.form-input::placeholder { color: var(--text-muted); }

.pay-methods { display: flex; flex-direction: column; gap: var(--s2); }
.pay-method {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.pay-method:hover, .pay-method.selected { border-color: var(--blue); background: var(--blue-light); }
.pay-method__radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-method.selected .pay-method__radio { border-color: var(--blue); }
.pay-method.selected .pay-method__radio::after { content: ''; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
.pay-method__icon { font-size: 20px; width: 32px; text-align: center; }
.pay-method__name { font-size: var(--text-sm); font-weight: 600; }
.pay-method__desc { font-size: var(--text-xs); color: var(--text-muted); }


.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: var(--s6);
  gap: 0;
}
.tab {
  padding: var(--s2) var(--s5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  background: none;
  transition: all var(--transition);
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }


.tg-banner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s5);
}
.tg-banner__icon { font-size: 20px; flex-shrink: 0; color: var(--tg-blue); }
.tg-banner__text { flex: 1; font-size: var(--text-xs); }
.tg-banner__text strong { display: block; font-weight: 700; color: var(--text-primary); }
.tg-banner__text span { color: var(--text-secondary); }
.tg-banner__btn {
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background var(--transition);
}
.tg-banner__btn:hover { background: var(--blue-hover); }
.tg-badge {
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-full);
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
}


.purchase-list { display: flex; flex-direction: column; gap: var(--s3); }

.purchase-item {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--transition);
  cursor: pointer;
}
.purchase-item:hover { border-color: var(--blue); }

.purchase-item__logo {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--text-primary);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  text-transform: uppercase;
}

.purchase-item__id {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: monospace;
  flex-shrink: 0;
  min-width: 90px;
}


.order-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.order-step {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
}
.order-step.done { background: var(--blue); border-color: var(--blue); color: var(--white); }
.order-step.active { background: var(--white); border-color: var(--blue); color: var(--blue); }
.order-step.done-star { background: var(--blue); border-color: var(--blue); color: var(--white); font-size: 9px; }
.order-step.green { background: var(--green); border-color: var(--green); color: var(--white); }

.order-step-line { width: 16px; height: 2px; background: var(--border); }
.order-step-line.done { background: var(--blue); }

.purchase-item__date { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.purchase-item__price { font-weight: 700; font-size: var(--text-base); margin-left: auto; white-space: nowrap; }


.active-order {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.active-order__header {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.active-order__body { padding: var(--s5); }
.active-order__title { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--s4); }
.active-order__hint {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-size: var(--text-xs);
  color: #92400E;
  line-height: 1.5;
  margin-top: var(--s4);
}

.chat-row {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--border-light);
}
.chat-input-inline {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 12px;
  font-size: var(--text-sm);
  background: var(--bg-light);
  transition: border-color var(--transition);
}
.chat-input-inline:focus { border-color: var(--blue); background: var(--white); }


.appeal-list { display: flex; flex-direction: column; gap: var(--s3); }

.appeal-item {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: border-color var(--transition);
}
.appeal-item:hover { border-color: var(--blue); }

.appeal-item__type { font-size: var(--text-xs); color: var(--text-muted); }
.appeal-item__id { font-size: var(--text-sm); font-weight: 700; color: var(--blue); }
.appeal-item__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--white);
  flex-shrink: 0;
}

.messengers {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.messengers__label { font-size: var(--text-xs); color: var(--text-muted); margin-right: var(--s1); }
.messenger-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.messenger-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.messenger-btn--tg { background: #29B6F6; }
.messenger-btn--vk { background: #0077FF; }
.messenger-btn--wa { background: #25D366; }


.no-auth {
  text-align: center;
  padding: var(--s12) var(--s8);
  max-width: 420px;
  margin: 0 auto;
}
.no-auth__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s6);
}


.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s8);
  align-items: start;
}

.profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  position: sticky;
  top: 68px;
}

.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #EF4444);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900;
  color: var(--white);
  margin: 0 auto var(--s4);
}

.profile-name { text-align: center; font-size: var(--text-lg); font-weight: 700; }
.profile-id { text-align: center; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; margin-bottom: var(--s5); }

.profile-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.profile-tab {
  flex: 1;
  padding: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.profile-tab.active { background: var(--blue); color: var(--white); }
.profile-tab:first-child { border-right: 1.5px solid var(--border); }


.reviews-summary {
  display: flex;
  align-items: center;
  gap: var(--s10);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-bottom: var(--s8);
}
.reviews-big { text-align: center; flex-shrink: 0; }
.reviews-big__num { font-size: 64px; font-weight: 900; line-height: 1; }
.reviews-big__stars { font-size: 20px; color: var(--yellow); margin: var(--s2) 0; }
.reviews-big__count { font-size: var(--text-xs); color: var(--text-muted); }

.reviews-bars { flex: 1; }
.bar-row { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.bar-row__num { width: 12px; font-size: var(--text-xs); color: var(--text-muted); text-align: right; }
.bar-row__track { flex: 1; height: 6px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.bar-row__fill { height: 100%; background: var(--yellow); border-radius: var(--r-full); }
.bar-row__count { width: 28px; font-size: var(--text-xs); color: var(--text-muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0;
  padding: var(--s5);
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.review-card__av {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-base); color: var(--black); flex-shrink: 0;
}
.review-card__info { flex: 1; }
.review-card__name { font-weight: 700; font-size: var(--text-sm); }
.review-card__date { font-size: var(--text-xs); color: var(--text-muted); }
.review-card__stars { font-size: var(--text-base); color: var(--yellow); }
.review-card__text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }


.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.trust-item {
  text-align: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--s5) var(--s4);
}
.trust-item__av {
  width: 60px; height: 60px; border-radius: 50%;
  margin: 0 auto var(--s3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--black);
}
.trust-item__name { font-size: var(--text-sm); font-weight: 700; }
.trust-item__sub { font-size: var(--text-xs); color: var(--text-muted); }


.auth-card {
  max-width: 730px;
  margin: var(--s6) auto var(--s10);
  background: var(--white);
  border: 1px solid #1D1D1F;
  border-radius: 16px;
  padding: var(--s8) var(--s10);
}

.auth-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--s6);
  user-select: none;
}

.auth-card__tab {
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
  transition: color 0.2s, font-weight 0.1s;
}

.auth-card__tab.active {
  color: var(--text-primary);
  font-weight: 700;
}

.auth-card__sep {
  color: var(--text-primary);
  font-weight: 600;
}

.auth-field {
  margin-bottom: var(--s4);
}

.auth-input {
  width: 100%;
  height: 58px;
  background: #F5F5F7;
  border: 1px solid #6E6E73;
  border-radius: 8px;
  padding: 0 var(--s5);
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: border-color 0.2s;
  outline: none;
}

.auth-input::placeholder { color: #6E6E73; }
.auth-input:focus { border-color: #0071E3; background: var(--white); }
.auth-input--error { border-color: #FF3B30; }
.auth-input--error:focus { border-color: #FF3B30; }
.auth-field-error {
  color: #FF3B30;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.3;
}
.auth-success-block {
  text-align: center;
  padding: 30px 0;
}
.auth-success-block .auth-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.auth-success-block .auth-success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.auth-success-block .auth-success-desc {
  color: #6E6E73;
  font-size: 15px;
  line-height: 1.5;
}
.auth-form--success + .auth-or {
  margin-top: 28px;
  margin-bottom: 22px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s5);
}

.auth-row--start { justify-content: flex-start; }

.auth-check {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.auth-check input[type=checkbox] {
  width: 17px;
  height: 17px;
  border: 1px solid #6E6E73;
  border-radius: 2px;
  accent-color: #0071E3;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-forgot {
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: underline;
}

.auth-forgot:hover { color: var(--blue); }

.auth-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s5);
}

.auth-submit {
  width: 350px;
  height: 48px;
  background: #0071E3;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.auth-submit:hover { background: #0077ED; }
.auth-submit:active { background: #006ACC; }

.auth-policy {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0 0 var(--s5);
  line-height: 1.5;
}

.auth-policy a { color: #0071E3; text-decoration: none; }
.auth-policy a:hover { text-decoration: underline; }

.auth-or {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--s4);
}

.auth-google-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s4);
}

.auth-google-slot {
  width: 100%;
  max-width: 350px;
  min-height: 44px;
}

.auth-google-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.auth-google-hint--info {
  color: var(--text-secondary);
}

.auth-google-hint--warning {
  color: #B26A00;
}

.auth-google-hint--error {
  color: #FF3B30;
}

.auth-socials {
  display: flex;
  justify-content: center;
  gap: var(--s3);
}

.auth-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #D2D2D7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.auth-social-btn:hover { background: #C2C2C7; transform: scale(1.08); }


.chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s5);
  height: calc(100vh - 140px);
  min-height: 500px;
}

.chat-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-sidebar__head {
  padding: var(--s3) var(--s4);
  font-weight: 700;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.chat-contact:hover, .chat-contact.active { background: var(--bg-light); }
.chat-contact__av {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base); font-weight: 700; flex-shrink: 0;
}
.chat-contact__name { font-weight: 600; font-size: var(--text-sm); }
.chat-contact__preview { font-size: var(--text-xs); color: var(--text-muted); margin-top: 1px; }
.chat-contact__time { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

.chat-main {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-main__head {
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.msg { display: flex; gap: var(--s2); max-width: 70%; }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; flex-direction: row-reverse; }
.msg__av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; flex-shrink: 0;
}
.msg--in .msg__av { background: var(--blue); color: var(--white); }
.msg--out .msg__av { background: var(--yellow); color: var(--black); }
.msg__bubble {
  padding: var(--s2) var(--s3);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.msg--in .msg__bubble { background: var(--bg-light); color: var(--text-primary); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); }
.msg--out .msg__bubble { background: var(--text-primary); color: var(--white); border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg); }
.msg__time { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-align: right; }

.chat-input-area {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--s3);
  align-items: flex-end;
}
.chat-textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 9px 12px;
  font-size: var(--text-sm);
  resize: none;
  max-height: 100px;
  background: var(--bg-light);
  transition: border-color var(--transition);
  line-height: 1.5;
}
.chat-textarea:focus { border-color: var(--blue); background: var(--white); }


.empty {
  text-align: center;
  padding: var(--s12) var(--s8);
  color: var(--text-secondary);
}
.empty__icon { font-size: 48px; margin-bottom: var(--s5); opacity: 0.4; }
.empty__title { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--s2); }
.empty__desc { font-size: var(--text-sm); margin-bottom: var(--s6); }


.guarantee-block { margin-bottom: var(--s6); }
.guarantee-block h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--s4); }
.guarantee-list { display: flex; flex-direction: column; gap: var(--s3); }
.guarantee-item { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.guarantee-item__num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-gray); color: var(--text-muted);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.text-blue { color: var(--blue); }
.text-link { color: var(--blue); text-decoration: underline; }


.toasts {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 340px;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  animation: toastSlideIn 0.22s cubic-bezier(0.34, 1.26, 0.64, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.toast__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.toast__text {
  flex: 1;
}
.toast__close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
  margin-top: 0px;
}
.toast__close:hover { opacity: 1; }
.toast__close svg { width: 14px; height: 14px; display: block; }


.toast--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.toast--success .toast__icon { color: #16a34a; }
.toast--success .toast__close { color: #15803d; }


.toast--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.toast--error .toast__icon { color: #dc2626; }
.toast--error .toast__close { color: #b91c1c; }


.toast--info {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}
.toast--info .toast__icon { color: #7c3aed; }
.toast--info .toast__close { color: #5b21b6; }


.toast--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.toast--warning .toast__icon { color: #d97706; }
.toast--warning .toast__close { color: #92400e; }

@keyframes toastSlideIn {
  from { transform: translateX(24px) scale(0.97); opacity: 0; }
  to   { transform: translateX(0) scale(1);       opacity: 1; }
}


.divider { height: 1px; background: var(--border); margin: var(--s5) 0; }


.purchases-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.purchases-title {
  font-family: 'SF Pro Display', var(--font);
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  text-align: center;
  color: #1D1D1F;
  padding: 10px 0 28px;
  letter-spacing: -0.02em;
}


.purchases-sep,
.page-sep {
  height: 1px;
  background: #1D1D1F;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.purchases-tabs-row {
  display: flex;
  justify-content: center;
  gap: 72px;
  padding: 15px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--s8);
  width: 100vw;
  border-bottom: 1px solid #1D1D1F;
}

.purchases-tab-btn {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.purchases-tab-btn:hover { color: #1D1D1F; }
.purchases-tab-btn.active {
  color: #1D1D1F;
}

.order-notify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  max-width: 730px;
  margin: 0 auto var(--s5);
}
.order-notify-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F9E6E8;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
}
.order-notify-text { flex: none; display: flex; flex-direction: column; gap: 4px; }
.order-notify-text strong {
  display: block;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 17px;
  font-weight: 600;
  color: #1D1D1F;
}
.order-notify-text span {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 17px;
  font-weight: 400;
  color: #6E6E73;
}
.order-notify-btn {
  width: 131px;
  height: 40px;
  box-sizing: border-box;
  margin-left: 12px;
  border: 1px solid #0071E3;
  background: transparent;
  color: #0071E3;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 17px;
  font-weight: 400;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-notify-btn:hover { background: #0071E3; color: #FFFFFF; }

.order-card-new {
  width: 730px;
  max-width: 100%;
  margin: 0 auto var(--s4) auto;
  background: #EEECEC;
  border: 1px solid #D5D2CC;
  border-radius: 16px;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}
.order-card-new:hover { background: #E8E5E4; }

.order-card__unread {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  background: #FD0002;
  color: #FFFFFF;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 106px;
  padding: 0 40px;
  box-sizing: border-box;
}
.order-fn-logo { height: 20px; flex-shrink: 0; }
.order-num {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  color: #6E6E73;
  font-weight: 400;
  flex-shrink: 0;
}

.order-status-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.order-status-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-status-circle--blue  { background: #0071E3; }
.order-status-circle--gray  { background: #D2D2D7; }
.order-status-circle--green { background: #34C759; }
.order-status-circle img { width: 18px; height: 18px; object-fit: contain; }

.order-status-line { width: 40px; height: 2px; background: #6E6E73; flex-shrink: 0; border-radius: 1px; }

.order-date-tag {
  width: 106px;
  height: 30px;
  box-sizing: border-box;
  background: #D2D2D7;
  color: #6E6E73;
  font-family: 'SF Pro Display', var(--font);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.order-date-tag--done {
  background: #34C759;
  color: #FFFFFF;
}

.order-price-val {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  color: #6E6E73;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}


.order-expand {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(0,0,0,0.07);
}

.order-chat-msg { margin-bottom: var(--s3); }
.order-chat-msg--in { font-size: var(--text-sm); color: var(--text-primary); line-height: 1.55; overflow-wrap: break-word; word-break: break-word; }
.order-chat-msg--out { display: flex; justify-content: flex-end; }
.order-chat-bubble {
  background: #C8F5C8;
  border-radius: 16px 4px 16px 16px;
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  max-width: 70%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.order-chat-time { font-size: 11px; color: var(--text-muted); margin-left: 6px; display: inline; }

.order-code-field {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #D1D1D6;
  border-radius: 12px;
  padding: 14px var(--s5);
  font-size: var(--text-base);
  margin: var(--s4) 0 var(--s3);
  outline: none;
  transition: border-color var(--transition);
}
.order-code-field::placeholder { color: var(--text-muted); font-size: var(--text-sm); }
.order-code-field:focus { border-color: var(--blue); }

.order-next-btn {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 15px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-bottom: var(--s4);
  transition: background var(--transition);
}
.order-next-btn:hover { background: var(--blue-hover); }


.oc-code-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) 0 var(--s2);
  margin-top: var(--s2);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.order-msg-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: #EBEBF0;
  border-radius: 24px;
  padding: 8px 14px;
}
.order-msg-bar__add {
  width: 26px; height: 26px;
  border: 1.5px solid #C8C8C8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px; cursor: pointer; flex-shrink: 0;
  background: var(--white); line-height: 1;
}
.order-msg-bar__input {
  flex: 1; border: none; background: transparent;
  font-size: var(--text-sm); color: var(--text-primary); outline: none;
}
.order-msg-bar__input::placeholder { color: #C8C8C8; }
.order-msg-bar__send { color: var(--blue); font-size: 18px; cursor: pointer; flex-shrink: 0; line-height: 1; }

.order-details-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: var(--s2);
}
.order-details-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) 0;
  cursor: pointer;
}
.order-details-header-text {
  font-weight: 700; font-size: var(--text-sm); color: var(--text);
}
.order-details-chevron-btn {
  width: 32px; height: 32px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 8px;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.order-details-item {
  display: flex; align-items: center; gap: 16px;
  padding: var(--s4) 0;
  border-top: 1px solid var(--border);
}
.order-details-thumb {
  width: 80px; height: 80px;
  border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.order-details-thumb-label {
  font-size: 28px; font-weight: 900; color: var(--white);
}
.order-details-info { flex: 1; min-width: 0; }
.order-details-name { font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.order-details-subprice { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.order-details-qty { font-size: var(--text-sm); color: var(--text); white-space: nowrap; }
.order-details-total-price {
  font-weight: 700; font-size: var(--text-sm); color: var(--text);
  white-space: nowrap; min-width: 70px; text-align: right;
}


.profile-page-wrap {
  max-width: 660px;
  margin: 0 auto;
}

.profile-page-title {
  font-family: 'SF Pro Display', var(--font);
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  text-align: center;
  color: #1D1D1F;
  padding: 10px 0 28px;
  letter-spacing: -0.02em;
}

.profile-page-sep {
  height: 1px;
  background: #1D1D1F;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.profile-main-tab {
  text-align: center;
  padding: 15px 0;
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: #1D1D1F;
  border-bottom: 1px solid #1D1D1F;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  margin-bottom: var(--s8);
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-bottom: var(--s5);
}

.profile-avatar-yellow {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #FFFE8A;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1F2B39;
}

.profile-user-name {
  font-family: 'SF Pro Display', var(--font);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 4px;
}
.profile-user-meta {
  font-family: 'SF Pro Display', var(--font);
  font-size: 21px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.profile-nav-card {
  background: #F5F5F7;
  border-radius: 16px;
  padding: var(--s5) var(--s6);
  display: flex;
  gap: var(--s8);
  margin-bottom: var(--s4);
}

.profile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.profile-nav-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.profile-nav-icon img {
  display: block;
  margin: 0 auto;
}
.profile-nav-icon--green { background: #2AB400; }
.profile-nav-icon--blue  { background: #0071E3; }
.profile-nav-icon--gray  { background: #C7C7CC; }
.profile-nav-label {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 17px;
  font-weight: 400;
  color: #1D1D1F;
}

.profile-notify-card {
  background: #F5F5F7;
  border-radius: 16px;
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s12);
}
.profile-notify-icon { width: 36px; height: 36px; flex-shrink: 0; }
.profile-notify-text { flex: 1; }
.profile-notify-text strong { display: block; font-size: var(--text-sm); font-weight: 700; }
.profile-notify-text span { font-size: var(--text-xs); color: var(--text-secondary); }
.profile-notify-btn {
  border: 1.5px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 10px 22px;
  border-radius: var(--r-lg);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.profile-notify-btn:hover { background: var(--blue); color: var(--white); }

.profile-pw-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--s8);
}

.profile-pw-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s3);
}

.profile-pw-input {
  width: 100%;
  border: 1.5px solid #C8C8C8;
  border-radius: var(--r-md);
  padding: 16px var(--s5);
  font-size: var(--text-sm);
  background: #F2F2F7;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  font-family: var(--font);
}
.profile-pw-input::placeholder { color: #9CA3AF; }
.profile-pw-input:focus { border-color: var(--blue); background: var(--white); }

.profile-pw-check {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--text-sm); color: var(--text-secondary);
  margin-bottom: var(--s5); cursor: pointer;
}
.profile-pw-check input { width: 14px; height: 14px; cursor: pointer; }

.profile-pw-btn {
  display: block;
  margin: 0 auto;
  background: #C8C8C8;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 400;
  padding: 13px 52px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.profile-pw-btn:hover { background: var(--blue); color: var(--white); }

.profile-logout-btn {
  display: block;
  margin: var(--s8) auto 0;
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s8);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.profile-logout-btn:hover { background: var(--red); color: var(--white); }


.cart-v2 {
  max-width: 730px;
  margin: var(--s4) auto var(--s12);
}

.cv2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) 0;
}

.cv2-fn-logo {
  height: 28px;
  width: auto;
}

/* Лого категории в шапке группы (логотипы тёмные на белом фоне) */
.cv2-cat-logo {
  height: 26px;
  width: auto;
  filter: brightness(0);
}
.cv2-cat-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}
/* Отступ между группами категорий */
.cv2-cat-group--next {
  margin-top: var(--s6);
}

.cv2-clear-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  user-select: none;
}
.cv2-clear-btn:hover { color: var(--red); }

.cv2-sep {
  width: 100%;
  height: 1px;
  background: #6E6E73;
  opacity: 0.3;
  margin: 0;
}

.cv2-item {
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) 0;
}

.cv2-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cv2-thumb__img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv2-thumb__label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cv2-item__info {
  flex: 1;
  min-width: 0;
}

.cv2-item__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: #1D1D1F;
  margin-bottom: 4px;
}

.cv2-item__unit {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #6E6E73;
}

.cv2-item__qty {
  flex-shrink: 0;
}

.cv2-qty-sel {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: #6E6E73;
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.cv2-item__total {
  font-size: var(--text-base);
  font-weight: 600;
  color: #1D1D1F;
  min-width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.cv2-item__del {
  background: none;
  border: none;
  color: #6E6E73;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.18s;
}
.cv2-item__del:hover { color: var(--red); }

.cv2-agreement {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  background: #F5F5F7;
  border-radius: 8px;
  padding: var(--s4) var(--s5);
  margin: var(--s5) 0;
}

.cv2-agree-check {
  width: 20px;
  height: 20px;
  border: 2px solid #0071E3;
  border-radius: 4px;
  accent-color: #0071E3;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.cv2-agreement label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #6E6E73;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.cv2-summary-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s6);
}

.cv2-summary {
  background: #F5F5F7;
  border-radius: 8px;
  padding: var(--s5) var(--s6);
  width: 414px;
  max-width: 100%;
}

.cv2-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: #6E6E73;
  margin-bottom: var(--s3);
}

.cv2-summary__sep {
  height: 1px;
  background: #6E6E73;
  opacity: 0.4;
  margin: var(--s3) 0;
}

.cv2-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-bottom: var(--s5);
}
.cv2-summary__total span { font-weight: 700; color: #1D1D1F; }
.cv2-summary__total strong { font-size: var(--text-base); color: #1D1D1F; }
#cv2-total-wrap { display: flex; flex-direction: column; align-items: flex-end; }

.cv2-order-btn {
  width: 100%;
  height: 48px;
  background: #0071E3;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.cv2-order-btn:hover { background: #0077ED; }

.cv2-promo {
  margin-top: var(--s2);
  text-align: center;
}

.cv2-promo__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: #1D1D1F;
  margin: 0 0 var(--s3);
}

.cv2-promo__row {
  display: flex;
  gap: var(--s3);
  justify-content: center;
}

.cv2-promo__input {
  width: 212px;
  height: 48px;
  border: 1px solid #6E6E73;
  border-radius: 8px;
  padding: 0 var(--s4);
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
}
.cv2-promo__input::placeholder { color: #6E6E73; }
.cv2-promo__input:focus { border-color: #0071E3; }

.cv2-promo__btn {
  width: 122px;
  height: 48px;
  border: 1px solid #6E6E73;
  border-radius: 8px;
  background: none;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: #6E6E73;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cv2-promo__btn:hover { border-color: #0071E3; color: #0071E3; }


@keyframes cv2-strike {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes cv2-price-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cv2-row-appear {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}


.cv2-price--strike {
  position: relative;
  display: inline-block;
  color: #8E8E93;
  transition: color 0.25s ease;
}
.cv2-price--strike::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 0;
  background: #FF3B30;
  border-radius: 1px;
  animation: cv2-strike 0.55s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}


.cv2-price--struck {
  position: relative;
  display: inline-block;
  color: #8E8E93;
}
.cv2-price--struck::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 100%;
  background: #FF3B30;
  border-radius: 1px;
}


.cv2-discount-row--anim {
  animation: cv2-row-appear 0.35s ease-out forwards;
}


.cv2-new-price {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #1D1D1F;
  margin-top: 3px;
  animation: cv2-price-appear 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}


.cv2-new-price-static {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #1D1D1F;
  margin-top: 3px;
}


.cv2-summary__total--promo {
  align-items: flex-end;
}




.apls-reason {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 17px;
  font-weight: 600;
  color: #1D1D1F;
  flex-shrink: 0;
}


.apls-order-num {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  color: #0071E3;
  flex-shrink: 0;
}


.apls-create-wrap {
  text-align: center;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  margin-bottom: var(--s5);
  transition: max-height 0.3s cubic-bezier(0.4, 0, 1, 1),
              opacity 0.2s ease,
              margin-bottom 0.3s ease;
}
.apls-create-wrap--gone {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}


.apls-create-btn {
  width: 350px;
  height: 48px;
  min-width: 0;
  padding: 0;
  background: #0071E3;
  border: none;
  border-radius: 8px;
  font-family: 'SF Pro Display', var(--font);
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 17px;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.apls-create-btn:hover {
  background: #005FBF;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}


.apls-wizard {
  background: #F5F5F7;
  border-radius: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin-bottom 0.4s ease;
}
.apls-wizard--open {
  max-height: 1100px;
  opacity: 1;
  margin-bottom: var(--s5);
}
.apls-wizard__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
}
.apls-wizard__sep {
  height: 1px;
  background: #6E6E73;
  margin: 0 var(--s5) var(--s4);
}
.apls-wizard__body {
  padding: var(--s5) var(--s5) var(--s4);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.apls-wiz-date {
  background: #D2D2D7;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #6E6E73;
  white-space: nowrap;
}

.apls-wiz-xbtn {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.apls-wiz-xbtn--num {
  width: auto;
  border-radius: var(--r-full);
  padding: 0 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(0,0,0,0.08);
  color: var(--text-secondary);
  height: 28px;
  white-space: nowrap;
}


.apls-wiz-msg {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  background: #FFFFFF;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.06);
  border-radius: 4px 14px 14px 14px;
  padding: 6px 12px;
  font-size: 14px;
  color: #1D1D1F;
  max-width: 80%;
  margin-bottom: var(--s4);
  align-self: flex-start;
  overflow-wrap: break-word;
  word-break: break-word;
}
.apls-wiz-msg a {
  color: inherit;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.apls-wiz-msg__time {
  font-size: 11px;
  color: #6E6E73;
  white-space: nowrap;
  flex-shrink: 0;
}


.apls-wiz-field {
  background: #FFFFFF;
  border: 1px solid #6E6E73;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 10px 16px 12px;
  margin-bottom: var(--s4);
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}
.apls-wiz-field__lbl {
  display: block;
  font-size: 14px;
  color: #D2D2D7;
  margin-bottom: 5px;
  pointer-events: none;
}
.apls-wiz-field__inp {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
  background: none;
  font-family: var(--font);
  padding: 0;
}
.apls-wiz-field__ta {
  resize: vertical;
  min-height: 56px;
}


.apls-wiz-btns { display: flex; gap: var(--s3); width: 360px; max-width: 100%; }
.apls-wiz-btn {
  height: 48px;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.18s;
}
.apls-wiz-btn:hover { opacity: 0.88; }
.apls-wiz-btn--cancel {
  width: 142px;
  flex-shrink: 0;
  border: 1px solid #6E6E73;
  background: none;
  color: #6E6E73;
  font-weight: 400;
}
.apls-wiz-btn--next {
  flex: 1;
  background: #0071E3;
  border: none;
  color: #FFFFFF;
  font-weight: 600;
}


.apls-wiz-msgbar {
  background: #FFFFFF;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.06);
  border-radius: 16px;
  margin: 0 var(--s5) var(--s5);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 var(--s4);
  gap: var(--s3);
}
.apls-wiz-msgbar__plus {
  width: 24px; height: 24px;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0;
  position: relative; overflow: hidden;
}
.apls-wiz-file-inp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.apls-wiz-msgbar__plus:focus-within {
  outline: 2px solid #0071E3;
  outline-offset: 2px;
  border-radius: 4px;
}
.apls-wiz-msgbar__text { flex: 1; font-size: 17px; color: #D2D2D7; }
.apls-wiz-msgbar__send {
  width: 30px; height: 30px;
  background: none;
  border: none;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  color: #D2D2D7;
  transition: color 0.2s ease, filter 0.2s ease;
}
.apls-wiz-msgbar__input:not(:placeholder-shown) ~ .apls-wiz-msgbar__send,
.apls-wiz-msgbar__send.is-active {
  color: #0071E3;
}
.apls-wiz-msgbar__send:hover {
  color: #0071E3;
  filter: drop-shadow(0 0 4px rgba(0,113,227,0.5));
}
.apls-wiz-msgbar__send svg { width: 23px; height: 22px; }
.apls-wiz-attach-chip {
  display: none;
  align-items: center;
  gap: 4px;
  background: #E8F0FC;
  border-radius: 6px;
  padding: 3px 6px 3px 8px;
  max-width: 130px;
  flex-shrink: 0;
}
.apls-wiz-attach-chip.visible { display: flex; }
.apls-wiz-attach-chip__nm {
  font-size: 11px;
  color: #0071E3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.apls-wiz-attach-chip__rm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #0071E3;
  padding: 0 0 0 2px;
  flex-shrink: 0;
}


.wiz-search-wrap { position: relative; }
.wiz-search-drop {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 10;
  overflow: hidden;
}
.wiz-drop-item { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; cursor: pointer; transition: background 0.15s; }
.wiz-drop-item:hover { background: var(--bg-gray); }
.wiz-drop-item__id { font-size: var(--text-xs); font-weight: 700; color: var(--blue); flex-shrink: 0; }
.wiz-drop-item__name { font-size: var(--text-sm); color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-drop-item__date { font-size: var(--text-xs); color: var(--text-secondary); flex-shrink: 0; }


.wiz-done { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s4) 0; text-align: center; }
.wiz-done__icon { width: 56px; height: 56px; border-radius: 50%; background: #EFF6FF; display: flex; align-items: center; justify-content: center; }
.wiz-done__title { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); }
.wiz-done__sub { font-size: var(--text-sm); color: var(--text-secondary); }


/* Обращения: серая подложка на всю ширину и до низа страницы */
.apls-main { display: flex; flex-direction: column; padding-bottom: 0; }
/* Убираем белый отступ между строкой табов и серой подложкой */
.apls-main .purchases-tabs-row { margin-bottom: 0; }
/* «В работе» строго по центру страницы, по 72px до «Завершённые» и «Все» */
.apls-main .purchases-tabs-row,
.purchases-main .purchases-tabs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  column-gap: 72px;
  align-items: center;
}
.apls-main .purchases-tab-btn:nth-child(1),
.purchases-main .purchases-tab-btn:nth-child(1) { justify-self: end; }
.apls-main .purchases-tab-btn:nth-child(2),
.purchases-main .purchases-tab-btn:nth-child(2) { justify-self: center; }
.apls-main .purchases-tab-btn:nth-child(3),
.purchases-main .purchases-tab-btn:nth-child(3) { justify-self: start; }
.apls-main > .container,
.faq-main > .container,
.rev-main > .container,
.prof-main > .container {
  width: 100%;
}
.apls-main .breadcrumbs,
.faq-main .breadcrumbs,
.rev-main .breadcrumbs,
.prof-main .breadcrumbs {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

/* ──── Отступы страниц: 72px от хедера до заголовка, 72px от заголовка до полосы ──── */
/* Убираем стандартный padding-top .main (24px) для всех контентных страниц */
.rev-main,
.faq-main,
.apls-main,
.ret-main,
.priv-main,
.offer-main,
.purchases-main,
.prof-main { padding-top: 0; }

/* Крошки: убираем нижний паддинг, чтобы крошки + title-top = ровно 72px от хедера
   (16px top + ~18px line-height + 0 bottom + 38px title-top = 72px) */
.rev-main .breadcrumbs,
.faq-main .breadcrumbs,
.apls-main .breadcrumbs,
.ret-main .breadcrumbs,
.priv-main .breadcrumbs,
.offer-main .breadcrumbs,
.prof-main .breadcrumbs { padding-bottom: 0; }

/* Страницы С крошками: 38px title-top (итого 72px от хедера), 72px до полосы */
.rev-main .purchases-title    { padding: 38px 0 72px; }
.apls-main .purchases-title   { padding: 38px 0 72px; }
.prof-main .profile-page-title { padding: 38px 0 72px; }

/* Покупки: крошек нет — полные 72px сверху и снизу */
.purchases-main .purchases-title { padding: 72px 0; }
.purchases-main .purchases-tabs-row { margin-bottom: 0; }
.purchases-main #ptab-work,
.purchases-main #ptab-done,
.purchases-main #ptab-all {
  padding-top: 0;
}
.purchases-main .order-notify-row,
.apls-main .order-notify-row {
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.apls-body {
  background: #F5F5F7;
  flex: 1;
  align-self: stretch;
  width: 100%;
  padding: var(--s8) 0 90px;
}
.apls-body > .container { width: 100%; }
/* На серой подложке карточки, визард и чат — белые */
.apls-body .order-card-new,
.apls-body .order-card-new.apls-ticket-card--open,
.apls-body .order-card-new.apls-ticket-card--open:hover { background: #FFFFFF; }
.apls-body .order-card-new:hover { background: #F2F2F5; }
.apls-body .apls-wizard { background: #FFFFFF; }
.apls-body .apls-ticket-chat { background: #FFFFFF !important; }

.apls-contact-section { margin-top: var(--s8); text-align: center; }
.apls-contact-sep {
  width: 730px;
  max-width: 100%;
  height: 1px;
  background: #6E6E73;
  margin: 0 auto var(--s6);
}
.apls-contact-text {
  width: 730px;
  max-width: 100%;
  margin: 0 auto var(--s4);
  font-family: 'Inter', 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  color: #6E6E73;
  text-align: center;
}
.apls-social-row { display: flex; justify-content: center; gap: 20px; margin-bottom: var(--s4); }
.apls-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: #D2D2D7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background 0.18s ease;
}
.apls-social-btn:hover { background: #0071E3; }
.apls-social-btn svg { width: 22px; height: 22px; }
.apls-contact-hours {
  font-family: 'SF Pro Display', var(--font);
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  color: #6E6E73;
  text-align: center;
  margin: 0;
}


.apls-auth-prompt {
  /* На серой подложке apls-body, поэтому свой фон/брейкаут не нужны.
     apls-body даёт 32px сверху + 24px здесь = 56px от чёрной линии до текста. */
  padding: 24px 0 0;
}
.apls-auth-prompt__inner {
  max-width: 730px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 0 20px;
}
.apls-auth-prompt__text {
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 25px;
  color: #1D1D1F;
  max-width: 480px;
}
.apls-auth-prompt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: 48px;
  background: #0071E3;
  color: #fff;
  border-radius: 8px;
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.apls-auth-prompt__btn:hover { background: #0563C1; }
.apls-auth-prompt__sub {
  font-family: 'SF Pro Display', var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #6E6E73;
}
.apls-auth-prompt__social { display: flex; justify-content: center; }
.apls-auth-prompt__tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #43A5FF;
  border-radius: 8px;
  flex-shrink: 0;
}
.apls-auth-prompt__hours {
  font-family: 'SF Pro Display', var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #6E6E73;
}




.order-card-new.apls-ticket-card--open,
.order-card-new.apls-ticket-card--open:hover {
  background: #F5F5F7;
  cursor: pointer;
}


.apls-ticket-card--open {
  border-radius: 16px 16px 0 0 !important;
  margin-bottom: 0 !important;
}


.apls-ticket-chat {
  width: 730px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 16px 16px !important;
  background: #F5F5F7 !important;
}


.apls-ticket-chat > .apls-wizard__sep {
  margin: 0 var(--s5) 0;
  background: rgba(0,0,0,0.08);
}


.apls-ticket-chat__body {
  padding: var(--s4) var(--s5);
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.apls-ticket-chat__body::-webkit-scrollbar { width: 4px; }
.apls-ticket-chat__body::-webkit-scrollbar-track { background: transparent; }
.apls-ticket-chat__body::-webkit-scrollbar-thumb { background: #D2D2D7; border-radius: 2px; }


.oc-msgs,
.oc-widget {
  display: flex;
  flex-direction: column;
}


.apls-wiz-msg--user {
  align-self: flex-end;
  background: #DCFFDE; /* Пункт 7: сообщения пользователя — зелёные */
  color: #1D1D1F;
  border-radius: 14px 4px 14px 14px;
}
.apls-wiz-msg--user .apls-wiz-msg__time { color: #417445; }

/* Фото в чате заказа (загрузка клиента и фото оператора из Telegram) */
.apls-wiz-msg__img {
  max-width: 240px;
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}
.apls-wiz-msg__cap { margin-top: 6px; }


.apls-wiz-msgbar__input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 17px;
  color: #1D1D1F;
  min-width: 0;
}
.apls-wiz-msgbar__input::placeholder { color: #D2D2D7; }


.oc-security-note {
  text-align: center;
  font-size: 12px;
  color: #8E8E93;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}


.order-review-slot:empty { display: none; }
.order-review-box {
  margin: 0 var(--s5) var(--s4);
  padding: 16px;
  border: 1px solid #D2D2D7;
  border-radius: 16px;
  background: #FFFFFF;
}
.order-review-box--state { background: #F5F5F7; }
.order-review-box--approved {
  border-color: rgba(52, 199, 89, 0.35);
  background: rgba(52, 199, 89, 0.08);
}
.order-review-box--rejected {
  border-color: rgba(255, 59, 48, 0.2);
  background: rgba(255, 59, 48, 0.05);
}
.order-review-box__title {
  font-size: 16px;
  font-weight: 700;
  color: #1D1D1F;
}
.order-review-box__text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #6E6E73;
}
.order-review-box__meta { margin-top: 12px; }
.order-review-box__stars {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  color: #F5A623;
}
.order-review-box__comment {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #1D1D1F;
}
.order-review-stars {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
}
.order-review-star {
  border: none;
  background: none;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  color: #D2D2D7;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}
.order-review-star:hover,
.order-review-star.is-active {
  color: #F5A623;
}
.order-review-star:hover { transform: translateY(-1px); }
.order-review-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #D2D2D7;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: #1D1D1F;
  outline: none;
}
.order-review-textarea:focus {
  border-color: #0071E3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.order-review-submit {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #FFF535; /* Пункт 8: кнопка отзыва — жёлтая с тёмным текстом */
  color: #1D1D1F;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.order-review-submit:hover { transform: translateY(-1px); }
.order-review-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


.apls-ticket-closed-footer {
  background: #F5F5F7;
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #8E8E93;
  margin: 0 var(--s5) var(--s4);
}


@keyframes tc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tc-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}
.tc-skeleton {
  height: 36px;
  width: 60%;
  align-self: flex-start;
  border-radius: 4px 14px 14px 14px;
  background: linear-gradient(90deg, #EBEBEF 25%, #F5F5F7 50%, #EBEBEF 75%);
  background-size: 400% 100%;
  animation: tc-shimmer 1.2s ease-in-out infinite;
}
.tc-skeleton--right  { align-self: flex-end;  border-radius: 14px 4px 14px 14px; }
.tc-skeleton--long   { width: 72%; }
.tc-skeleton--short  { width: 38%; }


.list-skel {
  width: 730px;
  max-width: 100%;
  height: 66px;
  margin: 0 auto var(--s4) auto;
  border-radius: 16px;
  background: linear-gradient(90deg, #EFEFF3 25%, #F7F7F9 50%, #EFEFF3 75%);
  background-size: 400% 100%;
  animation: tc-shimmer 1.3s ease-in-out infinite;
}


@keyframes list-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.list-fade-in > * {
  animation: list-card-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.list-fade-in > *:nth-child(2)   { animation-delay: 0.06s; }
.list-fade-in > *:nth-child(3)   { animation-delay: 0.12s; }
.list-fade-in > *:nth-child(4)   { animation-delay: 0.18s; }
.list-fade-in > *:nth-child(5)   { animation-delay: 0.24s; }
.list-fade-in > *:nth-child(n+6) { animation-delay: 0.30s; }



@media (max-width: 1024px) {
  :root { --px: 40px; }
  .vbucks-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-wrap { grid-template-columns: 190px 1fr; gap: var(--s5); }
  .cart-layout, .payment-layout { grid-template-columns: 1fr 300px; }
  .profile-layout { grid-template-columns: 240px 1fr; }
  .chat-layout { grid-template-columns: 220px 1fr; }
  .section-head h2, .crew-banner__title { font-size: 34px; line-height: 38px; }
}


@media (max-width: 768px) {
  :root { --px: 24px; }
  .main { padding: var(--s4) 0 var(--s10); }


  .header__inner { justify-content: space-between; gap: var(--s2); }
  .header__brand { display: none; }
  .header__nav { gap: 14px; }
  .header__right { position: static; right: auto; }
  .header__link { font-size: 15px; padding: 4px 6px; }


  .sets-grid { grid-template-columns: 1fr; }
  .catalog-wrap, .cart-layout, .payment-layout,
  .profile-layout, .chat-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }


  .filters, .cart-summary, .profile-card { position: static; }


  .chat-layout { height: auto; min-height: 0; }
  .chat-messages { min-height: 320px; }
  .msg { max-width: 88%; }


  .crew-banner { flex-direction: column; }
  .crew-banner__img-wrap { width: 100%; height: 220px; }
  .crew-banner__info { padding: var(--s6); }


  .purchases-title, .profile-page-title {
    font-size: 34px; line-height: 40px; padding: 8px 0 20px;
  }
  .section-head h2, .crew-banner__title { font-size: 28px; line-height: 32px; }


  .purchases-tabs-row { gap: 32px; }


  .reviews-summary {
    flex-direction: column; align-items: stretch;
    gap: var(--s5); padding: var(--s6);
  }
  .reviews-bars { width: 100%; }


  .order-chat-bubble { max-width: 85%; }
  .order-chat-msg--in { max-width: 85%; }


  .order-row {
    padding: 12px 16px;
    gap: 8px;
    min-height: 0;
    flex-wrap: wrap;
    align-content: center;
  }
  .order-fn-logo { height: 18px; }
  .order-num { font-size: 15px; flex: 1; min-width: 0; }
  .order-price-val { font-size: 15px; order: 2; margin-left: 0; }
  .order-status-wrap { order: 3; margin-left: 0; width: 100%; justify-content: flex-start; padding-top: 4px; }
  .order-date-tag { order: 4; font-size: 13px; height: 26px; }
  .apls-reason { font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apls-order-num { font-size: 14px; }


  .apls-wiz-msg { max-width: 88%; }
  .apls-wiz-msgbar { margin: 0 var(--s3) var(--s3); }


  .profile-notify-card { flex-wrap: wrap; }
  .profile-notify-btn { white-space: normal; width: 100%; text-align: center; }


  .apls-ticket-chat__body { max-height: 260px; }


  .info-tabs__nav { column-gap: 32px; }

}


@media (max-width: 560px) {
  :root { --px: 16px; }

  /* Убираем боковые отступы контейнера контента на мобиле (хедер оставляем). */
  .container { padding-left: 0; padding-right: 0; }
  .header > .container { padding-left: var(--px); padding-right: var(--px); }

  .header__nav { gap: 10px; }
  .header__link { font-size: 13px; padding: 3px 5px; }
  .header__icon { padding: 4px 5px; }
  .header__icon img { width: 22px; height: 22px; }

  .products-grid { grid-template-columns: 1fr; }
  .crew-banner__perks-grid { grid-template-columns: 1fr; }
  .sel-grid-4,
  .sel-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  
  .sel-grid-4, .sel-grid-3 { gap: 10px; }

  
  .vb-card__buy-btn, .set-card__buy-btn {
    font-size: 20px; line-height: 24px; padding: 10px 8px; gap: 6px;
  }
  .vb-card__buy-btn img, .set-card__buy-btn img { width: 22px; height: 20px; }
  .crew-banner__buy-btn { font-size: 22px !important; padding: 13px !important; }

  
  .purchases-title, .profile-page-title { font-size: 28px; line-height: 32px; }
  .section-head h2, .crew-banner__title { font-size: 24px; line-height: 28px; }
  .purchases-tabs-row { gap: 20px; }
  .game-logo__img { height: 42px; }
  .game-section__inner { padding-bottom: 14px; }
  .game-section__duck {
    right: 28px;
    bottom: -46px;
    width: 62px;
  }

  
  .auth-card { padding: var(--s6) var(--s5); }
  .auth-card__title { font-size: var(--text-xl); }

  
  .apls-auth-prompt__btn { width: 100%; max-width: 350px; }
  .apls-create-btn { width: 100%; max-width: 350px; min-width: 0; }
  .apls-wiz-btns { width: 100%; }

  
  .steps-progress { flex-wrap: wrap; }
}


@media (max-width: 400px) {
  .header__nav { gap: 7px; }
  .header__link { font-size: 12px; padding: 2px 3px; }
  .vbucks-grid { gap: var(--s2); }
  .purchases-title, .profile-page-title { font-size: 24px; line-height: 28px; }
  .purchases-tabs-row { gap: 14px; }
}


/* Контентные страницы: мобильные отступы заголовков */
@media (max-width: 768px) {
  .rev-main .purchases-title,
  .apls-main .purchases-title { padding: 4px 0 48px; }
  .purchases-main .purchases-title { padding: 48px 0; }
  .prof-main .profile-page-title { padding: 4px 0 48px; }
  .apls-main .purchases-tabs-row,
  .purchases-main .purchases-tabs-row { column-gap: 32px; }
  .purchases-main .order-notify-row,
  .apls-main .order-notify-row {
    width: 100%;
    justify-content: center;  /* иконка+текст по центру */
    flex-wrap: wrap;          /* кнопка «Привязать» уходит на строку ниже */
  }
  .order-notify-text { flex: 0 1 auto; min-width: 0; }
  /* Кнопка — на новой строке, по центру под блоком */
  .order-notify-btn { margin-left: 0; margin-top: 8px; }
}

/* Фикс ширины и выравнивания на мобильных */
@media (max-width: 768px) {
  /* Линии и шапки вкладок — строго на всю ширину экрана */
  .purchases-tabs-row,
  .purchases-sep,
  .page-sep,
  .profile-page-sep,
  .profile-main-tab,
  .info-tabs__nav,
  .info-tabs__body {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
  }

  /* Три кнопки в равных колонках */
  .purchases-tabs-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    column-gap: 0 !important;
    gap: 0 !important;
    justify-items: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .purchases-tab-btn:nth-child(2) { padding-left: 20px; }
  .purchases-tab-btn:nth-child(3) { padding-left: 30px; }
}

/* === Футер === */
.footer {
  background: #FFFFFF;
  border-top: 1px solid #E5E5E5;
  padding: 40px 0 56px;
  margin-top: auto;
  font-family: 'SF Pro Display', var(--font);
  font-size: 14px;
  line-height: 20px;
  color: #6E6E73;
}
.footer .container { display: flex; flex-direction: column; gap: 24px; }

.footer__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__row--top { align-items: flex-start; }
.footer__row--links { gap: 40px; }

.footer__inn {
  font-weight: 400;
  color: #6E6E73;
  max-width: 635px;
  margin: 0;
}

.footer__contact { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.footer__email { margin: 0; color: #6E6E73; }
.footer__email a { color: inherit; text-decoration: none; }
.footer__email a:hover { text-decoration: underline; }

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  background: #D2D2D7;
  border-radius: 4px;
  color: #F5F5F7;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  overflow: hidden;
}
.footer__icon:hover { background: #0071E3; color: #FFFFFF; }
.footer__icon svg {
  display: block;
  width: 14px;
  height: 11px;
  min-width: 14px;
  min-height: 11px;
  max-width: 14px;
  max-height: 11px;
  flex: 0 0 14px;
}

.footer__link {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6E6E73;
  text-decoration: underline;
}
.footer__link:hover { color: #1D1D1F; }

@media (max-width: 768px) {
  .footer { padding: 32px 0 40px; }
  .footer__row, .footer__row--links { gap: 16px; }
  .footer__contact { width: 100%; justify-content: flex-start; }
}

/* ====== Мобильное бургер-меню ====== */
/* Кнопка-бургер: скрыта на десктопе, показывается на мобиле (создаётся из main.js). */
.header__burger {
  display: none;
  position: absolute;
  left: var(--px, 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 120;
}
.header__burger span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: #F2F2F2;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.25s ease, top 0.2s ease;
}
.header__burger span::before,
.header__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #F2F2F2;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.2s ease;
}
.header__burger span::before { top: -7px; }
.header__burger span::after { top: 7px; }
/* Крестик при открытом меню */
.header__burger.is-open span { background: transparent; }
.header__burger.is-open span::before { top: 0; transform: rotate(45deg); }
.header__burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Выезжающая панель меню (добавляется в <body>, а не в .header:
   у .header стоит backdrop-filter, который ломает position:fixed потомков). */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: #14141A;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mobile-menu__close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #F2F2F2;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  margin-left: auto;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu__link {
  font-family: 'TT Commons Pro Expanded', 'TT Commons Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  color: #F2F2F2;
  text-decoration: none;
  padding: 15px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-menu__link:hover,
.mobile-menu__link:active { background: rgba(255, 255, 255, 0.08); }
/* Активный пункт меню — жёлтый */
.mobile-menu__link.active,
.mobile-menu__link.active span { color: #FFF535; }
.mobile-menu__link img { width: 24px; height: 24px; display: block; flex: none; }
.mobile-menu__sep { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 14px 0; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

/* На мобиле: прячем тесную десктоп-навигацию, поиск и иконки, показываем бургер. */
@media (max-width: 768px) {
  .header__inner { justify-content: center; }
  .header__brand { display: block; position: static; left: auto; transform: none; margin: 0; }
  .header__search { display: none; }
  .header__nav { display: none; }
  .header__right { display: none; }
  .header__burger { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-overlay { display: none; }
}

/* ================= РЕДИЗАЙН v2: хедер с поиском + hero-страницы ================= */
/* Новый хедер: лого · поле поиска · навигация · иконки (слева направо) */
.header__inner { justify-content: flex-start; }
.header__brand { position: static; transform: none; flex: 0 0 auto; }
.header__search {
  flex: 1 1 auto;
  max-width: 658px;
  height: 40px;
  margin: 0 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  box-sizing: border-box;
}
.header__search svg { flex: none; }
.header__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: 'SF Pro Display', var(--font);
  font-size: 14px;
  line-height: 14px;
  color: #1D1D1F;
}
.header__search input::placeholder { color: #6E6E73; }
.header__nav { flex: 0 0 auto; gap: 24px; }
.header__search + .header__nav { margin-left: 32px; }
.header__right { position: static; right: auto; margin-left: 32px; }

.header__search {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.header__search:focus-within {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(29, 29, 31, 0.28);
  box-shadow: 0 5px 18px rgba(29, 29, 31, 0.1);
}
.product-search-results {
  position: fixed;
  z-index: 1200;
  max-height: min(536px, calc(100vh - 96px));
  padding: 28px 32px;                 /* пункт 12: отступы подложки */
  overflow: auto;
  box-sizing: border-box;
  background: #F5F5F7;                 /* подложка */
  border: 1px solid #DFE0E0;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(29, 29, 31, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.product-search-results.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
/* Заголовки групп «Разделы» / «Товары» (пункт 12) */
.product-search-group {
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 21px;
  line-height: 21px;
  color: #1D1D1F;
  margin: 0 0 16px;                    /* 16px от заголовка до первого пункта */
}
.product-search-divider {
  height: 1px;
  background: #DFE0E0;
  margin: 20px 0;                      /* 20px до линии и 20px после (до «Товары») */
}
.product-search-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 12px;
  margin: 0 -12px;                     /* ховер-подсветка чуть шире контента, иконка остаётся на месте */
  color: #1D1D1F;
  text-decoration: none;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(7px);
  animation: product-search-item-in 0.24s ease forwards;
  animation-delay: calc(var(--search-index) * 35ms);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.product-search-item + .product-search-item { margin-top: 14px; }  /* 14px между пунктами */
.product-search-item:hover,
.product-search-item.is-active {
  background: #ECECEE;
}
.product-search-item__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: linear-gradient(145deg, #FFDD2D, #FF8A00);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 700;
}
.product-search-item__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-search-item__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.product-search-item__name {
  overflow: hidden;
  color: #1D1D1F;
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-search-item__section {
  color: #86868B;
  font-size: 12px;
  line-height: 16px;
}
.product-search-item__price {
  color: #1D1D1F;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.product-search-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 16px;
  box-sizing: border-box;
  color: #6E6E73;
  font-size: 14px;
}
.product-search-status__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #D2D2D7;
  border-top-color: #1D1D1F;
  border-radius: 50%;
  animation: product-search-spin 0.7s linear infinite;
}
@keyframes product-search-item-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes product-search-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 560px) {
  /* Сгруппированный поиск (Разделы/Товары) на мобиле: компактнее, но с полями */
  .product-search-results { padding: 18px 16px; border-radius: 14px; }
  .product-search-group { font-size: 18px; line-height: 18px; margin-bottom: 14px; }
  .product-search-divider { margin: 16px 0; }
  .product-search-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; margin: 0 -8px; padding: 0 8px; }
  .product-search-item__media { width: 44px; height: 44px; }
  .product-search-item__price { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-search-results,
  .product-search-item { transition: none; animation: none; opacity: 1; transform: none; }
  .product-search-status__spinner { animation-duration: 1.4s; }
}

/* Hero-страница: общий фон back_buys_faq.png на всю страницу (до самого низа),
   полупрозрачный хедер лежит поверх картинки, карточка «плывёт» над фоном. */
.hero-page { position: relative; background: transparent; display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
/* width:100% — иначе margin:0 auto в flex-колонке сжимает контейнер до контента
   и центрирует его (хлебные крошки уезжали к центру вместо левого края). */
.hero-page > .container { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.hero-crumbs {
  /* Абсолютно в зоне отступа — не сдвигают заголовок: 72px идут ровно от хедера */
  position: absolute;
  top: 23px;
  left: var(--px);
  font-family: 'SF Pro Display', var(--font);
  font-size: 12px;
  line-height: 16px;
  color: #FFFFFF;
}
.hero-crumbs a { color: #FFFFFF; text-decoration: none; opacity: 0.9; }
.hero-crumbs span { opacity: 0.6; }
.hero-title {
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-family: 'SF Pro Display', var(--font);
  font-weight: 600;
  font-size: 48px;
  line-height: 52px;
  letter-spacing: -0.02em;
  padding: 72px 0;
  margin: 0;
}
.hero-card {
  width: 920px;
  max-width: 100%;
  margin: 0 auto;
  background: #F5F5F7;
  box-shadow: 0 0 12px 3px rgba(0, 0, 0, 0.08);
  border-radius: 36px 36px 0 0;
  padding: 44px clamp(20px, 6vw, 95px) 60px;
  box-sizing: border-box;
  /* Тянем карточку вниз до футера, даже когда контента мало */
  min-height: max(360px, calc(100vh - 290px));
  flex: 1 1 auto;
}
/* Страницы с hero-фоном: картинка сверху (полосы сохранены), синяя заливка ниже,
   слой на всю высоту .page — фон доходит до самого низа, без серых «дыр». */
body.has-hero, .page.has-hero {
  min-height: 100vh;
  /* fixed — изображение статично при прокрутке, контент листается поверх */
  background: url('../svg/main_background.svg') center / cover no-repeat fixed, #46A6FF;
}

@media (max-width: 768px) {
  .hero-title { font-size: 34px; line-height: 40px; padding: 44px 0; }
  .hero-card { padding: 28px 16px 40px; border-radius: 24px 24px 0 0; }
}

/* ============ Макет карточки заказа/обращения v3 (покупки + поддержка) ============ */
/* 4.1 Подложка — градиент */
.order-card-new,
.order-card-new.apls-ticket-card--open,
.order-card-new.apls-ticket-card--open:hover {
  background: linear-gradient(270deg, #EEECEC 0%, #F5F3F4 100%);
  border: 1px solid #D5D2CC;
}
.order-card-new:hover { background: linear-gradient(270deg, #E9E6E5 0%, #F1EFEF 100%); }

/* Раскрытый заказ/обращение: чат — продолжение подложки шапки, единая карточка */
.order-card-new.apls-ticket-card--open,
.order-card-new.apls-ticket-card--open:hover { border-bottom: none; }
.apls-ticket-chat,
.apls-body .apls-ticket-chat {
  background: linear-gradient(270deg, #EEECEC 0%, #F5F3F4 100%) !important;
  border: 1px solid #D5D2CC;
  border-top: none;
}

/* 4.2 Все линии — D5D2CC */
.apls-wizard__sep { background: #D5D2CC !important; }
.oc-code-wrap { border-top-color: #D5D2CC; }
.apls-contact-sep { background: #D5D2CC; }

/* 4.8 Строка: лого 40px по умолчанию, отступы 33px сверху/снизу, 40px слева, 20px до номера */
.order-row { padding: 33px 40px; min-height: 0; gap: 20px; position: relative; }
.order-cat-logo { border-radius: 8px; }

/* 4.9 Статус привязан к фиксированному месту, от него — дата, цена справа 40px */
@media (min-width: 761px) {
  .order-status-wrap { position: absolute; left: 282px; margin-left: 0; }
  .order-status-wrap ~ .order-date-tag { position: absolute; left: 426px; }
  .order-price-val { position: absolute; right: 40px; margin-left: 0; }
}

/* 4.4 Иконки статуса: активная жёлтая, неактивная серая */
.order-status-circle--on  { background: #FFF535; color: #474300; }
.order-status-circle--off { background: #F5F5F7; color: #6E6E73; }
.order-status-circle svg { width: 18px; height: 18px; display: block; }
.order-status-line { background: #6E6E73; }

/* Дата: в работе — серая пилюля, завершён — жёлтая (по макету) */
.order-date-tag { background: #F5F5F7; color: #6E6E73; }
.order-date-tag--done { background: #FFF535; color: #474300; }

/* 4.5 Цена */
.order-price-val { color: #1D1D1F; font-weight: 600; }

/* 4.3 Кнопка формы — жёлтая с чёрным текстом */
.apls-wiz-btn--next { background: #FFF535 !important; color: #1D1D1F !important; border: none; }

/* 4.7 Отступы чата по макету */
.oc-msgs .apls-wiz-msg { margin: 10px 0 0; }
.oc-msgs .apls-wiz-msg--user + .apls-wiz-msg--user { margin-top: 6px; }
/* gap: 0 — иначе flex-gap контейнера (12px) суммируется с margin-top полей */
.oc-widget .oc-code-wrap { margin-top: 20px; padding-top: 0; border-top: none; gap: 0; }
.oc-code-wrap .apls-wiz-field { margin-bottom: 0; }
.oc-code-wrap .apls-wiz-field + .apls-wiz-field { margin-top: 8px; }
.oc-code-wrap .apls-wiz-btns { margin-top: 12px; }

/* Иконки хедера: жёлтая заливка при наведении (filter красит и png, и svg-в-img).
   Пункт 1: без перехода на filter — интерполяция от none проходила через белый
   (мелькание жёлтый→белый→жёлтый). Мгновенная заливка убирает двойное проигрывание. */
.header__icon img { transition: none; }
.header__icon:hover img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(93%) saturate(636%) hue-rotate(357deg) brightness(104%) contrast(103%);
}
/* Профиль с аватаром: при наведении желтеет только обводка, само фото — нет
   (у иконок-глифов жёлтая заливка остаётся). */
.header__avatar { transition: border-color 0.15s ease; }
.header__icon--avatar:hover img { filter: none; }
.header__icon--avatar:hover .header__avatar { border-color: #FFF535; }

/* ============ Мобильный адаптив: финальные правила (перекрывают ранние) ============ */
/* #1 Хедер на мобиле: слева бургер, затем поиск. Логотип скрыт, чтобы не
   накладываться на кнопку меню (ранние блоки его ошибочно показывали). */
@media (max-width: 768px) {
  .header__inner { justify-content: flex-start; }
  .header__brand { display: none; }
  .header__burger { display: flex; }
  .header__nav { display: none; }
  .header__right { display: none; }
  .header__search {
    display: flex;
    margin-left: 52px;  /* место под абсолютно спозиционированный бургер слева */
  }
  /* #5 Строка заказа: базовое правило v3 (padding 33px 40px) перекрывало
     мобильный padding и съедало ширину — возвращаем компактные отступы. */
  .order-row { padding: 14px 16px; gap: 8px; }
  /* #6 Hero-страницы: .container — flex-item, не сжимался ниже width:920px
     карточки (min-width:auto) → горизонтальный overflow. Разрешаем сжатие. */
  .hero-page .container { min-width: 0; max-width: 100%; box-sizing: border-box; }
  /* Серая карточка-подложка — во всю ширину экрана (без синих полей по бокам).
     100vw + центрирующий margin не зависит от ширины родителя. */
  .hero-card,
  .purchases-main .purchases-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 24px 24px 0 0;
  }
}

.psn-flag,
.topup-field__flag {
  border-radius: 2px !important;
}

.tech-notice {
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 2400;
  width: 410px;
  min-height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px 5px 5px;
  border-radius: 35px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  pointer-events: none;
}

.tech-notice__img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  object-fit: cover;
}

.tech-notice__text {
  font: 600 17px/25px 'SF Pro Display', var(--font);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 520px) {
  .tech-notice {
    top: 84px;
    width: calc(100vw - 24px);
  }
}

/* Нумерованный список-шаги в описании/инструкции раздела (поле «Описание»).
   Структура из админки: <ol><li><strong>Заголовок</strong><br>подзаголовок</li></ol>.
   Глобальный reset обнуляет маркеры/отступы — восстанавливаем висячим отступом
   с номером в поле слева, как в макете «Как купить». */
.faq-a__inner ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq-a__inner ol li {
  counter-increment: step;
  position: relative;
  padding-left: 32px;
  color: #6E6E73;
  font-size: 17px;
  line-height: 24px;
}
.faq-a__inner ol li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 22px;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #1D1D1F;
}
.faq-a__inner ol li strong {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #1D1D1F;
}
/* маркированный список — тем же висячим отступом, с точкой-буллетом */
.faq-a__inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-a__inner ul li {
  position: relative;
  padding-left: 20px;
  color: #6E6E73;
  font-size: 17px;
  line-height: 24px;
}
.faq-a__inner ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1D1D1F;
}

/* ====== Поп-ап выбора способа оплаты (СБП / Карта / Криптовалюта) ====== */
.pay-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pay-modal.is-open { opacity: 1; visibility: visible; }
.pay-modal__box {
  position: relative;
  width: 460px; max-width: 100%; box-sizing: border-box;
  background: #FFFFFF; border-radius: 20px; padding: 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(14px) scale(0.98); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
}
.pay-modal.is-open .pay-modal__box { transform: translateY(0) scale(1); opacity: 1; }
.pay-modal__close {
  position: absolute; top: 22px; right: 22px;
  background: none; border: none; cursor: pointer; padding: 4px; color: #86868B; display: flex;
}
.pay-modal__title {
  text-align: center; margin: 0 0 12px;
  font: 600 19px/24px 'SF Pro Display', var(--font); color: #1D1D1F;
}
.paym-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; border-bottom: 1px solid #EFEFF0; cursor: pointer;
}
.paym-item__icon { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; }
.paym-item__icon img, .paym-item__icon svg { width: 24px; height: 24px; object-fit: contain; display: block; }
.paym-item__label { flex: 1; font: 400 16px/20px 'SF Pro Display', var(--font); color: #1D1D1F; }
.paym-item__radio {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid #D2D2D7; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.paym-item__radio svg { opacity: 0; transition: opacity 0.15s ease; }
.paym-item.is-selected .paym-item__radio { background: #0071E3; border-color: #0071E3; }
.paym-item.is-selected .paym-item__radio svg { opacity: 1; }
.pay-modal__hint { margin: 14px 0 0; font: 400 12px/16px 'SF Pro Display', var(--font); color: #86868B; }
.pay-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pay-modal__total { font: 600 21px/21px 'SF Pro Display', var(--font); color: #1D1D1F; }
.pay-modal__pay {
  background: #FFF535; color: #1D1D1F; border: none; border-radius: 10px;
  padding: 16px 26px; font: 600 16px/16px 'SF Pro Display', var(--font);
  cursor: pointer; white-space: nowrap; transition: background 0.15s ease;
}
.pay-modal__pay:hover { background: #F2E72A; }
.pay-modal__pay:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 520px) {
  .pay-modal__box { padding: 32px 28px; }
  .pay-modal__footer { flex-direction: column; align-items: stretch; }
  .pay-modal__pay { width: 100%; }
}

/* ====== Адаптив новых блоков сессии (мобилка) ====== */
@media (max-width: 520px) {
  /* Карточка оплаты каталога (пункт 9) */
  .catalog-checkout-card { padding: 20px 16px; }
  .catalog-checkout-card .sel-buy-btn { padding: 15px 12px; font: 600 18px/18px 'SF Pro Display', var(--font); }
  .catalog-checkout-card .sel-summary__name,
  .catalog-checkout-card .sel-summary__price { font-size: 15px; }

  /* FAQ каталога (пункт 10) — меньше отступы сверху/по бокам */
  .info-tabs--faq-only .info-tabs__nav { padding-top: 36px; }
  .info-tabs--faq-only .info-tab { font-size: 21px; line-height: 21px; }
  .info-tabs--faq-only .info-tabs__body { margin-top: 28px; }
  .info-tabs--faq-only .info-faq .faq-q { padding: 20px 0; }

  /* Поп-ап оплаты — доп. к базовому мобильному правилу */
  .pay-modal__title { font-size: 18px; }
  .paym-item { padding: 18px 0; }
  .paym-item__label { font-size: 15px; }
}

/* Общий hover для всех жёлтых кнопок: светлее + мягкий белый слой без тени. */
body :is(
  .btn-yellow,
  .vb-card__buy-btn,
  .set-card__buy,
  .set-card__buy-btn,
  .cart-popup__checkout,
  .steam-panel__buy,
  .steam-modal__btn,
  .author-stats__action,
  .authors-no-author__btn,
  .apls-create-btn,
  .apls-wiz-btn--next,
  .order-review-submit,
  .ord-code__copy,
  .pay-modal__pay
) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.18s ease, transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

body :is(
  .btn-yellow,
  .vb-card__buy-btn,
  .set-card__buy,
  .set-card__buy-btn,
  .cart-popup__checkout,
  .steam-panel__buy,
  .steam-modal__btn,
  .author-stats__action,
  .authors-no-author__btn,
  .apls-create-btn,
  .apls-wiz-btn--next,
  .order-review-submit,
  .ord-code__copy,
  .pay-modal__pay
)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.18s ease, transform 0.32s ease;
  pointer-events: none;
}

body :is(
  .btn-yellow,
  .vb-card__buy-btn,
  .set-card__buy,
  .set-card__buy-btn,
  .cart-popup__checkout,
  .steam-panel__buy,
  .steam-modal__btn,
  .author-stats__action,
  .authors-no-author__btn,
  .apls-create-btn,
  .apls-wiz-btn--next,
  .order-review-submit,
  .ord-code__copy,
  .pay-modal__pay
):hover:not(:disabled):not([disabled]) {
  background: #FFFA5C !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

body :is(
  .btn-yellow,
  .vb-card__buy-btn,
  .set-card__buy,
  .set-card__buy-btn,
  .cart-popup__checkout,
  .steam-panel__buy,
  .steam-modal__btn,
  .author-stats__action,
  .authors-no-author__btn,
  .apls-create-btn,
  .apls-wiz-btn--next,
  .order-review-submit,
  .ord-code__copy,
  .pay-modal__pay
):hover:not(:disabled):not([disabled])::after {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  body :is(
    .btn-yellow,
    .vb-card__buy-btn,
    .set-card__buy,
    .set-card__buy-btn,
    .cart-popup__checkout,
    .steam-panel__buy,
    .steam-modal__btn,
    .author-stats__action,
    .authors-no-author__btn,
    .apls-create-btn,
    .apls-wiz-btn--next,
    .order-review-submit,
    .ord-code__copy,
    .pay-modal__pay
  ) {
    transition: none;
  }
  body :is(
    .btn-yellow,
    .vb-card__buy-btn,
    .set-card__buy,
    .set-card__buy-btn,
    .cart-popup__checkout,
    .steam-panel__buy,
    .steam-modal__btn,
    .author-stats__action,
    .authors-no-author__btn,
    .apls-create-btn,
    .apls-wiz-btn--next,
    .order-review-submit,
    .ord-code__copy,
    .pay-modal__pay
  ):hover:not(:disabled):not([disabled]) {
    transform: none;
  }
}
