/* SteamEZHub — лендинг «Центр услуг Steam» (редизайн 2026).
   Значения перенесены из design_handoff_steamezhub/SteamEZHub v4.dc.html и README. */

/* ---------- Tokens ---------- */
html {
  scroll-behavior: smooth;
  color-scheme: light;
  --bg: #F3F4F6;
  --surf: #FFFFFF;
  --panel: #F1F3F7;
  --ink: #0B0C0F;
  --sub: #454A53;
  --muted: #6B707A;
  --line: rgba(10, 12, 16, .08);
  --edge: rgba(10, 12, 16, .07);
  --shadow: 0 0 0 1px rgba(10, 12, 16, .05), 0 1px 2px rgba(10, 12, 16, .04);
  --chip: rgba(10, 12, 16, .05);
  --btn: #0B0C0F;
  --btnInk: #FFFFFF;
  --bar: #D9E3F2;
  --heroBg: linear-gradient(180deg, #BFDBFF 0%, #DCEBFF 45%, #F3F4F6 100%);
  --win: #FFFFFF;
  --winShadow: 0 0 0 1px rgba(10, 12, 16, .06), 0 40px 80px -40px rgba(20, 50, 110, .35);
  --wm: #DADDE2;
  --stripe: rgba(10, 12, 16, .03);
  --logoTop: #7D8591;
  --logoBot: #E4E7EC;
  --logoEzBot: #9CC2F5;

  --blue: #1F74E0;
  --blueHover: #1862C2;
  --blueInk: #D6E8FF;
  --lime: #C9EC7E;
  --yellow: #F2DF6C;
  --bronze: #947D58;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --springSwap: cubic-bezier(.34, 1.4, .64, 1);
  --glintEase: cubic-bezier(.2, .8, .2, 1);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080A;
  --surf: #111318;
  --panel: #181B21;
  --ink: #F4F5F7;
  --sub: #A3A8B1;
  --muted: #8A8F98;
  --line: rgba(255, 255, 255, .07);
  --edge: rgba(255, 255, 255, .08);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px rgba(255, 255, 255, .06);
  --chip: rgba(255, 255, 255, .06);
  --btn: #F4F5F7;
  --btnInk: #07080A;
  --bar: #26303F;
  --heroBg: linear-gradient(180deg, #0E2446 0%, #0B1526 50%, #07080A 100%);
  --win: #0F1115;
  --winShadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .9);
  --wm: #1B1E24;
  --stripe: rgba(255, 255, 255, .02);
  --logoTop: #5B626E;
  --logoBot: #16191F;
  --logoEzBot: #123A6B;
}
html:lang(zh) {
  --font: 'Onest', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  transition: background .3s, color .3s;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { min-height: 100vh; background: var(--bg); padding: 12px; }
main:focus { outline: none; }
.skip {
  position: absolute; left: 24px; top: -120px; z-index: 100;
  padding: 11px 18px; border-radius: 999px;
  background: var(--btn); color: var(--btnInk); font-size: 13px; font-weight: 600;
}
.skip:focus { top: 24px; }
.skip:hover { color: var(--btnInk); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(4px, 2vw, 28px); padding-right: clamp(4px, 2vw, 28px); }
.accent { color: var(--blue); }
.mute { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn-arrow, .btn-ghost, .btn, .btn-cta, .menu-btn, .menu__cta, .cart__btn, .menu__link {
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--btn); color: var(--btnInk);
  padding: 8px 8px 8px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
}
.btn-arrow:hover { color: #FFFFFF; background: var(--blue); }
.btn-arrow__dot {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: var(--blue); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.btn-arrow--white { background: #FFFFFF; color: #0B0C0F; }
.btn-arrow--white:hover { color: #0B0C0F; background: #DCEBFF; }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: var(--surf); color: var(--ink);
  padding: 0 24px; height: 54px; border-radius: 999px;
  font-size: 15px; font-weight: 500; box-shadow: var(--shadow);
}
.btn-ghost:hover { color: var(--blue); }

.btn {
  display: inline-flex; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.btn--dark { background: var(--btn); color: var(--btnInk); }
.btn--dark:hover { background: var(--blue); color: #FFFFFF; }
.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--blue:hover { background: var(--blueHover); color: #FFFFFF; }
.btn--ink { background: #0A0B0D; color: #F4F5F7; }
.btn--ink:hover { background: #1E2330; color: #F4F5F7; }
.btn--soon { background: var(--chip); color: var(--muted); font-weight: 500; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  border-radius: 40px;
  background: var(--heroBg);
  padding: 76px clamp(16px, 3vw, 40px) clamp(32px, 5vw, 64px);
  overflow: hidden;
}

/* Шапка лежит над hero: 16px отступ + 60px высота = 76px, как если бы она была внутри блока */
.hdr-wrap { display: flow-root; position: relative; z-index: 20; height: 76px; margin-bottom: -76px; padding: 0 clamp(16px, 3vw, 40px); }

/* Шапка-пилюля */
.hdr {
  position: relative; z-index: 20;
  max-width: 1280px; margin: 16px auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
  height: 60px; padding: 0 8px 0 16px;
  border-radius: 999px; background: var(--surf); box-shadow: var(--shadow);
}
/* Логотип в стиле вотермарка из футера: градиентная заливка букв, прижат к левому краю пилюли.
   Растёт с шириной окна до 42px (буквы ≈ половина высоты пилюли), на узких экранах меньше — чтобы влезло меню. */
.logo {
  justify-self: start; display: flex; align-items: center; height: 60px; overflow: hidden;
  margin-left: -16px; padding-left: 16px; border-radius: 30px 0 0 30px;
  font-weight: 800; font-size: clamp(24px, 2.9vw, 42px); line-height: .8; letter-spacing: -.045em; white-space: nowrap;
  background: linear-gradient(180deg, var(--logoTop) 10%, var(--logoBot) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo span {
  background: linear-gradient(180deg, var(--blue) 10%, var(--logoEzBot) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo:hover { color: transparent; }
.nav {
  /* 20px строка + 6px поля под кольцо фокуса; отрицательный margin сохраняет геометрию */
  /* колонки 1fr | auto | 1fr ставят меню в центр контента; left компенсирует разные поля пилюли (16 / 8) */
  position: relative; left: -4px;
  min-width: 0; height: 32px; padding: 6px; margin: -6px;
  overflow: hidden; overflow: clip;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 32px; row-gap: 40px;
  font-size: 14px; white-space: nowrap;
}
.nav a { color: var(--sub); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.hdr__right { display: flex; align-items: center; gap: 20px; font-size: 14px; white-space: nowrap; }
.langs { display: flex; align-items: baseline; gap: 12px; }
.langs a { color: var(--muted); transition: color .2s; }
.langs a:hover { color: var(--blue); }
.langs a[aria-current="page"], .langs a[aria-current="page"]:hover { color: var(--ink); cursor: default; }

/* Переключатель темы: иконка луны (включить тёмную) / солнца (включить светлую), Lucide */
.theme-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; cursor: pointer; padding: 0; font: inherit; color: var(--sub);
  transition: color .2s, background-color .2s;
}
.theme-btn:hover { color: var(--blue); }
.theme-btn--icon { justify-content: center; width: 38px; height: 38px; margin: 0 -6px; border-radius: 50%; }
.theme-btn__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.theme-btn__icon svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform .45s var(--spring), opacity .2s;
}
html:not([data-theme="dark"]) .theme-btn__sun,
html[data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
/* Язык в шапке: кнопка-глобус (Lucide) с кодом, по клику — список */
.lang-dd { position: relative; }
.lang-dd__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px;
  list-style: none; cursor: pointer; color: var(--sub); border-radius: 999px;
  transition: color .2s; -webkit-tap-highlight-color: transparent;
}
.lang-dd__btn::-webkit-details-marker { display: none; }
.lang-dd__btn::marker { content: ''; }
.lang-dd__btn:hover, .lang-dd[open] > .lang-dd__btn { color: var(--blue); }
.lang-dd__globe { width: 20px; height: 20px; flex-shrink: 0; }
.lang-dd__code { font-size: 14px; }
.lang-dd__list {
  position: absolute; top: calc(100% + 14px); right: -8px; z-index: 30; min-width: 180px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 18px;
  background: var(--surf); box-shadow: var(--winShadow);
  transform-origin: 85% 0; animation: ddIn .35s var(--spring);
}
.lang-dd__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); transition: color .2s;
}
.lang-dd__list a:hover { color: var(--blue); }
.lang-dd__tag { font-size: 12px; color: var(--muted); }
.lang-dd__list a[aria-current="page"] { font-weight: 600; cursor: default; }
.lang-dd__list a[aria-current="page"] .lang-dd__tag { color: var(--blue); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
/* «Гайды» в шапке: пункт со стрелкой, список — как у выбора языка (название и подпись) */
.nav-dd { position: relative; }
.nav-dd__btn {
  display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer;
  color: var(--sub); transition: color .2s; -webkit-tap-highlight-color: transparent;
}
.nav-dd__btn::-webkit-details-marker, .menu__dd > summary::-webkit-details-marker { display: none; }
.nav-dd__btn::marker, .menu__dd > summary::marker { content: ''; }
.nav-dd__btn:hover, .nav-dd[open] > .nav-dd__btn { color: var(--blue); }
.nav-dd__chev { width: 14px; height: 14px; flex-shrink: 0; transition: transform .35s var(--spring); }
.nav-dd[open] .nav-dd__chev, .menu__dd[open] .nav-dd__chev { transform: rotate(180deg); }
/* навигация обрезает то, что не влезло в строку (так JS понимает, когда шапке пора сжаться); открытому списку — можно */
.nav:has(.nav-dd[open]) { overflow: visible; }
.nav-dd__list {
  position: absolute; top: calc(100% + 26px); left: 50%; z-index: 30; width: 280px; margin-left: -140px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 18px;
  background: var(--surf); box-shadow: var(--winShadow); white-space: normal;
  transform-origin: 50% 0; animation: ddIn .35s var(--spring);
}
.nav .nav-dd__list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.nav .nav-dd__list a:hover, .nav .nav-dd__list a[aria-current="page"] { color: var(--blue); }
.nav-dd__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.nav-dd__desc { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.no-js .theme-btn { display: none; }
/* без JS нет компактного режима: на планшетах освобождаем место под навигацию (группа Steam есть в «Контактах») */
@media (max-width: 900px) { .no-js .hdr__right .btn-cta { display: none; } }
.hdr__right { justify-self: end; }
html[data-theme="dark"] .theme-btn__to-dark,
html:not([data-theme="dark"]) .theme-btn__to-light { display: none; }
.btn-cta {
  background: var(--btn); color: var(--btnInk);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.btn-cta:hover { background: var(--blue); color: #FFFFFF; }

/* Мобильное меню (появляется, когда шапка не вмещает правый блок) */
.menu-btn {
  display: none; border: 0; cursor: pointer;
  background: var(--btn); color: var(--btnInk);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 13px; line-height: normal;
}
.menu-btn:hover { background: var(--blue); color: #FFFFFF; }
.menu-btn__close, .hdr.is-open .menu-btn__open { display: none; }
.hdr.is-open .menu-btn__close { display: inline; }
.menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  flex-direction: column;
  padding: 8px; border-radius: 28px;
  background: var(--surf); box-shadow: var(--winShadow);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98); transform-origin: 50% 0;
  transition: opacity .2s, transform .45s var(--spring), visibility 0s linear .45s;
}
.hdr.is-open .menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .45s var(--spring), visibility 0s;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  padding: 14px 16px; border-radius: 18px;
  font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.menu__link:hover { background: var(--chip); color: var(--ink); }
/* «Гайды» в мобильном меню: раскрывающийся пункт */
.menu__dd > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu__dd .nav-dd__chev { width: 18px; height: 18px; color: var(--muted); }
.menu__dd-list { display: flex; flex-direction: column; padding: 0 0 6px 10px; }
.menu__sub { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 16px; color: var(--ink); }
.menu__sub:hover { background: var(--chip); color: var(--ink); }
.menu__sub .nav-dd__name { font-size: 15px; }
.menu__sub[aria-current="page"] .nav-dd__name { color: var(--blue); }
.menu__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 4px; padding: 16px 16px 12px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.menu__row .langs { gap: 16px; }
.menu__row a, .menu__row .theme-btn { white-space: nowrap; }
.menu__cta {
  margin-top: 4px; padding: 15px 18px; border-radius: 999px;
  background: var(--btn); color: var(--btnInk);
  font-size: 15px; font-weight: 600; text-align: center;
}
.menu__cta:hover { background: var(--blue); color: #FFFFFF; }

/* Текст hero */
.hero__text {
  max-width: 1280px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
}
.h1 { margin: 0; font-size: clamp(56px, 9.6vw, var(--h1-max, 152px)); line-height: .92; letter-spacing: -.035em; font-weight: 800; }
/* На широких экранах заголовок не растёт дальше ширины колонки 1280px, чтобы остаться в одну строку
   (в референсе при 152px «Центр услуг Steam» переносится начиная с ~1515px). Потолок — с запасом ~1%. */
html:lang(ru) { --h1-max: 144px; }
html:lang(en) { --h1-max: 140px; }
.hero__lead {
  margin: 32px 0 0; max-width: 580px;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--sub); text-wrap: pretty;
}
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* Коллаж: окно магазина + карточки статистики */
.collage { position: relative; max-width: 1280px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 clamp(0px, 8vw, 200px); }
.stats {
  position: absolute; z-index: 2; width: clamp(150px, 18vw, 220px);
  display: flex; flex-direction: column; gap: 16px;
}
.stats--l { left: 0; top: 40px; }
.stats--r { right: 0; top: 120px; }
.stat { border-radius: 22px; padding: 20px 22px; }
.stat__lbl { font-size: 13px; }
.stat__num { font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat__num--lg { font-size: clamp(34px, 4vw, 52px); margin-top: 8px; }
.stat__num--md { font-size: clamp(30px, 3.4vw, 44px); margin-top: 6px; }
.stat--lime { background: var(--lime); color: #0B0C0F; transform: rotate(-5deg); box-shadow: 0 20px 40px -24px rgba(40, 70, 10, .5); }
.stat--lime .stat__lbl { color: #2E3A12; }
.stat--surf { background: var(--surf); padding: 18px 22px; margin-left: 24px; transform: rotate(3deg); box-shadow: var(--winShadow); }
.stat--surf .stat__lbl { color: var(--muted); }
.stat--yellow { background: var(--yellow); color: #0B0C0F; transform: rotate(4deg); box-shadow: 0 20px 40px -24px rgba(90, 70, 0, .5); }
.stat--yellow .stat__lbl { color: #4A3F0A; }
.stat--blue { background: var(--blue); color: #FFFFFF; padding: 18px 22px; margin-right: 24px; transform: rotate(-3deg); box-shadow: 0 20px 40px -24px rgba(20, 70, 160, .6); }
.stat--blue .stat__lbl { color: var(--blueInk); }

.win {
  max-width: 840px; margin: 0 auto; padding: 18px;
  background: var(--win); border-radius: 28px; box-shadow: var(--winShadow); text-align: left;
}
.win__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 6px 16px; }
.win__title { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.win__chips { display: flex; gap: 6px; font-size: 12px; }
.win__chip { padding: 7px 12px; border-radius: 999px; background: var(--chip); color: var(--sub); white-space: nowrap; }
.win__chip--on { background: var(--btn); color: var(--btnInk); }
.win__search {
  margin-left: auto; flex: 0 1 220px; padding: 9px 14px; border-radius: 999px;
  background: var(--panel); font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win__body { display: flex; gap: 14px; flex-wrap: wrap; }
.covers { flex: 1 1 360px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px;
  background: #222 center / cover no-repeat;
  display: flex; align-items: flex-end; padding: 8px; cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .45s;
}
.cover--1, .cart__thumb--1 { background-image: url(../covers/1.webp); }
.cover--2 { background-image: url(../covers/2.webp); }
.cover--3, .cart__thumb--3 { background-image: url(../covers/3.webp); }
.cover--4 { background-image: url(../covers/4.webp); }
.cover--5, .cart__thumb--5 { background-image: url(../covers/5.webp); }
.cover--6 { background-image: url(../covers/6.webp); }
.cover--7 { background-image: url(../covers/7.webp); }
.cover--8 { background-image: url(../covers/8.webp); }
.price {
  background: rgba(255, 255, 255, .92); color: #0B0C0F;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
}
.cart {
  flex: 1 1 200px; max-width: 260px; padding: 16px;
  background: var(--panel); border-radius: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart__title { font-weight: 700; font-size: 14px; }
.cart__row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.cart__thumb { width: 28px; height: 36px; flex-shrink: 0; border-radius: 6px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.cart__name { flex: 1; color: var(--sub); }
.cart__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto;
}
.cart__total-lbl { font-size: 12px; color: var(--muted); }
.cart__sum { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.cart__pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; text-align: center; }
.cart__opt { padding: 8px; border-radius: 10px; background: var(--surf); }
.cart__opt--on { box-shadow: inset 0 0 0 1.5px var(--blue); }
a.cart__opt { color: var(--ink); font-weight: 600; }
a.cart__opt:hover { color: var(--blue); }
.cart__btn { padding: 11px; border-radius: 12px; background: var(--blue); color: #FFFFFF; font-size: 13px; font-weight: 600; text-align: center; }
.cart__btn:hover { background: var(--blueHover); color: #FFFFFF; }

/* ---------- Sections ---------- */
.sec { padding-top: 120px; scroll-margin-top: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.h2 { margin: 0; font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -.055em; line-height: 1; font-weight: 800; }
.sec-head__text { flex: 0 1 400px; margin: 0; max-width: 400px; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Магазин */
.shop { display: flex; flex-wrap: wrap; gap: 12px; }
.shop__main {
  flex: 1.5 1 480px; border-radius: 32px; padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; gap: 26px;
  background: var(--surf); box-shadow: var(--shadow);
}
.h2--shop { font-size: clamp(40px, 5vw, 72px); line-height: .95; }
.shop__text { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--sub); text-wrap: pretty; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--chip); font-size: 13px; color: var(--sub); }
.shop__cta { margin-top: auto; }
.shop__price {
  flex: 1 1 340px; min-height: 360px; border-radius: 32px; padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: var(--blue); color: #FFFFFF;
}
.shop__from, .shop__per { font-size: clamp(18px, 1.6vw, 24px); color: var(--blueInk); }
.shop__num { font-size: clamp(88px, 10vw, 150px); font-weight: 800; letter-spacing: -.04em; line-height: .85; }
.shop__per { margin-top: 14px; }

/* Карточки услуг */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 12px; }
/* Карточка занимает 5 строк общей сетки ряда: панель, заголовок, текст, чипы, кнопка — у соседних карточек
   эти элементы стоят на одном уровне (где текста меньше, остаётся пустое место) */
.card {
  min-width: 0; border-radius: 32px; padding: 14px 14px 32px;
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 16px; align-content: start;
  background: var(--surf); box-shadow: var(--shadow);
}
.card > .panel { margin-bottom: 6px; }
.card__body { display: contents; }
/* отступ 18px внутри карточки; селектор сильнее, чем margin: 0 у .h3 и .card__text ниже */
.card .card__body > * { margin-left: 18px; margin-right: 18px; }
.h3 { margin: 0; font-size: 28px; letter-spacing: -.04em; line-height: 1.05; font-weight: 700; }
.card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feat { padding: 7px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; color: var(--sub); }
.card__cta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
/* «Подробнее» — ссылка на страницу услуги рядом с кнопкой бота */
.card__more { font-size: 14px; font-weight: 600; color: var(--sub); transition: color .2s; }
.card__more:hover { color: var(--blue); }
.card--foil .card__more { color: #2B303A; }
.card--foil .card__more:hover { color: var(--blue); }
.panel { height: 220px; border-radius: 22px; }

/* 1. График «Средний уровень» */
.chart { background: var(--panel); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.chart__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chart__right { display: flex; align-items: center; gap: 10px; }
.chart__badges { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.chart__badge {
  position: absolute; inset: 0; background: center / contain no-repeat;
  opacity: 0; transform: scale(.5) rotate(-12deg);
  transition: transform .45s var(--spring), opacity .2s;
}
.chart__badge.is-on { opacity: 1; transform: none; }
.chart__lbl { font-size: 13px; color: var(--muted); }
.chart__val { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bar:focus-visible { outline-offset: 2px; border-radius: 8px; }
.bar__lbl { font-size: 11px; font-weight: 600; line-height: normal; color: transparent; transition: color .2s; }
.bar__col {
  display: block; width: 100%; border-radius: 8px; background: var(--bar);
  transform-origin: bottom; transition: background .25s, transform .45s var(--spring);
}
.bar.is-before .bar__col { background: rgba(31, 116, 224, .35); }
.bar.is-on .bar__col { background: var(--blue); transform: scaleY(1.06); }
.bar.is-on .bar__lbl { color: var(--ink); }

/* 2. Веер «Редкий уровень» */
.fan { background: linear-gradient(180deg, #BFDBFF, #E6F0FF); position: relative; overflow: hidden; }
.fan__inner { position: absolute; inset: 0; }
.fan__c {
  position: absolute; left: 50%; top: 38px; width: 112px; height: 150px; border-radius: 14px;
  cursor: pointer; transition: transform .45s var(--spring), box-shadow .45s;
  --foil-a: .42; --foil-b: .22; --foil-c: .132; --foil-d: .22;
  background:
    radial-gradient(120px circle at 30% 20%, rgba(255, 255, 255, var(--foil-a)), transparent 55%),
    linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, var(--foil-b)) 45%, rgba(200, 220, 255, var(--foil-c)) 50%, transparent 62%),
    conic-gradient(from 210deg at 40% 30%, rgba(201, 211, 227, var(--foil-d)), rgba(159, 178, 212, var(--foil-d)), rgba(216, 203, 239, var(--foil-d)), rgba(179, 227, 234, var(--foil-d)), rgba(233, 227, 210, var(--foil-d)), rgba(201, 211, 227, var(--foil-d))),
    var(--cover) center / cover no-repeat;
}
.fan__c--l {
  --cover: url(../covers/rare-1.webp);
  margin-left: -150px; transform: rotate(-12deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 16px 30px -16px rgba(40, 20, 120, .6);
}
.fan__c--r {
  --cover: url(../covers/rare-3.webp);
  margin-left: 38px; transform: rotate(12deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 16px 30px -16px rgba(10, 60, 90, .6);
}
.fan__c--c {
  --cover: url(../covers/rare-2.webp);
  --foil-a: .52; --foil-b: .32; --foil-c: .192; --foil-d: .32;
  top: 26px; width: 124px; height: 166px; margin-left: -62px; border-radius: 16px; z-index: 2;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 20px 36px -16px rgba(20, 40, 90, .55);
}

/* 3. Обычное повышение уровня */
.lvl { background: var(--panel); padding: 22px; display: flex; align-items: center; gap: 28px; }
.lvl__ring {
  width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; border: 4px solid var(--bronze);
  display: flex; align-items: center; justify-content: center;
}
.lvl__num { font-size: 48px; font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lvl__ring { transition: border-color .35s; }
.lvl__ring.is-pop { animation: lvlPop .45s var(--spring); }
@keyframes lvlPop { 40% { transform: scale(1.08); } }
.lvl__rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lvl__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surf); font-size: 13px; }
.lvl__thumb { width: 26px; height: 34px; flex-shrink: 0; border-radius: 5px; background: center / cover no-repeat; }
.lvl__thumb--1 { background-image: url(../covers/set-1.webp); }
.lvl__thumb--2 { background-image: url(../covers/set-2.webp); }
.lvl__txt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lvl__name { flex: 1; color: var(--sub); }
.lvl__xp { color: var(--blue); white-space: nowrap; }

/* 4. Металлические сеты — фольга */
.card--foil {
  color: #0A0B0D; box-shadow: none;
  background:
    radial-gradient(480px circle at 20% 0%, rgba(255, 255, 255, .7), transparent 50%),
    conic-gradient(from 210deg at 40% 30%, #C9D3E3, #9FB2D4, #D8CBEF, #B3E3EA, #E9E3D2, #BCC8DD, #C9D3E3);
}
.card--foil .h3 { color: #0A0B0D; }
.card--foil .card__text { color: #2B303A; }
.card--foil .feat { background: rgba(255, 255, 255, .5); color: #1B1F27; }
.badges-panel { background: rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; }
.badges { display: flex; align-items: center; --bs: clamp(48px, 13vw, 72px); }
.badge {
  width: var(--bs); height: var(--bs); flex-shrink: 0; position: relative;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .75)) drop-shadow(0 0 18px rgba(170, 200, 255, .55)) drop-shadow(0 10px 12px rgba(20, 30, 60, .3));
}
.badge + .badge { margin-left: calc(var(--bs) * -12 / 72); }
.badge--big { width: calc(var(--bs) * 92 / 72); height: calc(var(--bs) * 92 / 72); z-index: 1; }
.badge__i {
  width: 100%; height: 100%; cursor: pointer;
  background-image:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .9) 47%, rgba(170, 215, 255, .7) 51%, rgba(255, 190, 240, .5) 55%, transparent 66%),
    conic-gradient(from 30deg, rgba(255, 120, 200, .35), rgba(120, 200, 255, .35), rgba(150, 255, 210, .35), rgba(255, 230, 140, .35), rgba(255, 120, 200, .35)),
    var(--badge);
  background-position: 100% 0, center, center;
  background-size: 300% 100%, 100% 100%, contain;
  background-repeat: no-repeat;
  background-blend-mode: overlay, soft-light, normal;
  -webkit-mask: var(--badge) center / contain no-repeat;
  mask: var(--badge) center / contain no-repeat;
  transition: background-position .9s var(--glintEase), transform .45s var(--spring);
}
/* Когда карточка въезжает в экран: по очереди «раздуваются» и по каждому пробегает блик */
.badges.is-wave .badge__i { animation: badgeWave 1.15s backwards; }
.badges.is-wave .badge:nth-child(2) .badge__i { animation-delay: .09s; }
.badges.is-wave .badge:nth-child(3) .badge__i { animation-delay: .18s; }
.badges.is-wave .badge:nth-child(4) .badge__i { animation-delay: .27s; }
.badges.is-wave .badge:nth-child(5) .badge__i { animation-delay: .36s; }
.badges.is-wave .badge:nth-child(6) .badge__i { animation-delay: .45s; }
@keyframes badgeWave {
  0% { transform: none; background-position: 100% 0, center, center; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  35% { transform: scale(1.2) translateY(-6px); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  78% { background-position: 0% 0, center, center; animation-timing-function: steps(1, end); }
  100% { transform: none; background-position: 100% 0, center, center; }
}
.badge--1 .badge__i { --badge: url(../badges/b1.png); }
.badge--2 .badge__i { --badge: url(../badges/b2.png); }
.badge--3 .badge__i { --badge: url(../badges/b3v2.png); }
.badge--4 .badge__i { --badge: url(../badges/b4.png); }
.badge--5 .badge__i { --badge: url(../badges/b5v2.png); }
.badge--6 .badge__i { --badge: url(../badges/b6.png); }

/* 5. Обмен самоцветов (свап) */
.swap {
  --gap: 6px;
  background: var(--lime); color: #0B0C0F; padding: 18px; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: var(--gap);
}
.swap__row {
  background: #FFFFFF; border-radius: 16px; padding: 10px 16px 10px 10px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .5s var(--springSwap);
}
.swap__ico { width: 48px; height: 48px; flex-shrink: 0; background: center / contain no-repeat; }
.swap__ico--gems { background-image: url(../items/gems.webp); }
.swap__ico--key { background-image: url(../items/key.webp); }
.swap__txt { flex: 1; min-width: 0; }
.swap__lbl { font-size: 11px; color: #6B707A; }
.swap__name { font-size: 18px; font-weight: 700; margin-top: 2px; }
.swap__amt { font-size: 22px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.swap__btn {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0;
  border: 0; cursor: pointer; border-radius: 50%;
  background: #0B0C0F; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-family: inherit;
  box-shadow: 0 0 0 5px var(--lime);
  transition: transform .5s var(--springSwap), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.swap__btn:hover { background: var(--blue); }
.swap.is-swapped .swap__row--a { transform: translateY(calc(100% + var(--gap))); }
.swap.is-swapped .swap__row--b { transform: translateY(calc(-100% - var(--gap))); }
.swap .if-on, .swap.is-swapped .if-off { display: none; }
.swap.is-swapped .if-on { display: inline; }

/* 6. TF2 ↔ USDT/USDC — неактивная */
.card--soon { background: repeating-linear-gradient(135deg, var(--stripe) 0 10px, transparent 10px 20px); box-shadow: inset 0 0 0 1px var(--edge); }
.card--soon .h3 { color: var(--sub); }
.card--soon .feat { background: none; box-shadow: inset 0 0 0 1px var(--edge); color: var(--muted); }
.swap--off { background: var(--panel); color: var(--ink); opacity: .7; }
.swap--off .swap__row { background: var(--surf); }
.swap--off .swap__txt { flex: 0 1 auto; }
.swap--off .swap__lbl { color: var(--muted); }
.swap__dot {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--muted); color: var(--surf);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.coins { position: relative; }
.coin { position: absolute; width: 32px; height: 32px; background: center / contain no-repeat; }
.coin--t { left: 0; top: 4px; background-image: url(../items/usdt.svg); }
.coin--c { right: 0; bottom: 4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surf); background-image: url(../items/usdc.svg); }

/* ---------- Опт ---------- */
.whs {
  border-radius: 40px; padding: clamp(28px, 4.5vw, 64px);
  display: flex; flex-direction: column; gap: 56px; color: #F4F5F7;
  background: radial-gradient(900px circle at 85% 0%, rgba(46, 134, 240, .35), transparent 55%), #0B0D12;
}
.whs__head { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.h2--whs { font-size: clamp(46px, 6.4vw, 104px); line-height: .9; letter-spacing: -.04em; color: #FFFFFF; }
.whs__text { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: #9FB0C8; text-wrap: pretty; }
.whs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.whs { container-type: inline-size; }
/* auto-fit дал бы 3 колонки и одинокую 4-ю плитку — вместо этого 2×2 */
@container (min-width: 620px) and (max-width: 829.98px) { .whs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 28px; container-type: inline-size; }
.tile__lbl { font-size: 14px; color: #9FB0C8; }
.tile__num { font-size: 60px; font-size: min(60px, 32cqi); font-weight: 800; white-space: nowrap; letter-spacing: -.055em; line-height: 1; }
.tile--lime { background: var(--lime); color: #0B0C0F; }
.tile--lime .tile__lbl { color: #2E3A12; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
#contacts { container-type: inline-size; }
@container (min-width: 684px) and (max-width: 915.98px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact {
  border-radius: 28px; padding: 26px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); background: var(--surf); box-shadow: var(--shadow);
  transition: transform .3s;
}
.contact:hover { color: var(--ink); }
.contact__arr {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: var(--chip);
  display: flex; align-items: center; justify-content: center;
}
.contact__name { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.contact__sub { font-size: 14px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.contact--blue { color: #FFFFFF; background: var(--blue); box-shadow: none; }
.contact--blue:hover { color: #FFFFFF; }
.contact--blue .contact__arr { background: rgba(255, 255, 255, .18); }
.contact--blue .contact__sub { color: var(--blueInk); }

/* ---------- Футер ---------- */
.ftr { padding-top: 140px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 28px; }
.ftr__wm-box { container-type: inline-size; overflow-x: clip; overflow-y: visible; }
.wm {
  font-size: clamp(40px, 15.5vw, 240px);
  font-size: min(240px, 17cqi); /* вотермарк вписан в ширину контейнера, без обрезки */
  font-weight: 800; letter-spacing: -.045em; line-height: .8; white-space: nowrap;
  background: linear-gradient(180deg, var(--wm), var(--bg) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.ftr__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* ---------- FAQ (главная и страницы услуг): раскрывающиеся вопросы, текст индексируется ---------- */
.faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
/* Главная: вопросы по два в ряд на всю ширину блоков; высота закрытых карточек одинаковая (до двух строк вопроса) */
@media (min-width: 900px) {
  .faq__list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: none; }
  .faq__list--2 .faq__q { min-height: 86px; }
}
.faq__item { border-radius: 24px; background: var(--surf); box-shadow: var(--shadow); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px 20px 26px; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink);
  transition: color .2s; -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q:hover { color: var(--blue); }
.faq__icon { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--chip); color: var(--ink); }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: currentColor; transition: transform .45s var(--spring);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 26px 22px; }
.faq__a p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--sub); text-wrap: pretty; }
/* Ссылки внутри текста (FAQ, страницы услуг) */
.faq__a a, .svc-card p a, .svc-list a {
  color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent); transition: text-decoration-color .2s;
}
.faq__a a:hover, .svc-card p a:hover, .svc-list a:hover { text-decoration-color: currentColor; }
/* ---------- Значок уровня Steam — как в профиле: кружок 0–99, картинка сотни 100+ ---------- */
/* Размер — --lv-s (32px; крупнее задаёт место показа), кадр картинки — --lv-f. Картинка готовая под размер и экран (image-set),
   поэтому масштаб (zoom/transform) к значкам не применяем — иначе браузер пересчитывает пиксели и выходит «мыло» */
.lv {
  --lv-s: 32px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box;
  width: var(--lv-s); height: var(--lv-s); border: calc(var(--lv-s) / 16) solid var(--lv-c, #9b9b9b); border-radius: 50%;
  font: 600 calc(var(--lv-s) * .4375)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #e5e5e5;
}
.lv--img {
  border: 0; border-radius: 0; background-repeat: no-repeat;
  background-size: var(--lv-s) calc(var(--lv-s) * 10); background-position: 0 calc(var(--lv-f, 0) * var(--lv-s) * -1);
}
.lv__n { position: relative; }
.lv--img .lv__n { font-size: calc(var(--lv-s) * .406); }
.lv--4 .lv__n { font-size: calc(var(--lv-s) * .344); letter-spacing: -.05em; }
/* Значки рассчитаны на тёмный фон Steam (цифры светлые) — всегда на тёмной подложке, в обеих темах */
.lv-tile { background: #171a21; border-radius: 20px; color: #e5e5e5; }
.lv-strip { margin: 18px 0 0; }
.lv-strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; padding: 18px 14px; }
.lv-strip figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.lv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); justify-items: center; gap: 14px 8px; margin: 0 14px 14px; padding: 18px 14px; }

/* ---------- Картинки в разделах и иконки в таблицах ---------- */
.svc-figs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.svc-fig { flex: 1 1 130px; max-width: 220px; box-sizing: border-box; margin: 0; padding: 16px 12px 14px; border-radius: 20px; background: var(--panel); text-align: center; }
.svc-fig img { display: block; width: 96px; height: 96px; margin: 0 auto; object-fit: contain; }
.svc-fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--sub); }
.svc-cell-ico { display: flex; align-items: center; gap: 10px; }
.svc-ico { width: 40px; height: 40px; flex-shrink: 0; }
/* значок уровня Steam в таблице — на тёмной плашке (значки рассчитаны на тёмный фон, цифры светлые) */
.svc-lv { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: #171a21; }
/* строки с иконкой — по центру иконки (сильнее общего .svc-table td { vertical-align: top }) */
.svc-table.svc-table--icons th, .svc-table.svc-table--icons td { vertical-align: middle; }
@container (max-width: 375px) {
  .svc-table--icons .svc-cell-ico { flex-direction: column; align-items: flex-start; gap: 4px; }
  .svc-table--icons .svc-ico { width: 32px; height: 32px; }
  .svc-table--icons .svc-lv { width: 40px; height: 40px; border-radius: 10px; }
  /* в первой колонке (уровень) значок и число короткие — остаются в строку */
  .svc-table--icons tbody th .svc-cell-ico { flex-direction: row; align-items: center; gap: 8px; }
}
@container (max-width: 257px) { .svc-table--icons .svc-ico { display: none; } }

/* ---------- Мини-калькулятор уровня на главной (под карточками «Повышение уровня») ----------
   Как карточка главной: панель сверху в 14px от края (скругление 22px), текст — в 32px; плитки с цифрами — как в блоке «Опт» */
.mcalc {
  margin-top: 12px; padding: 14px 14px 32px; border-radius: 32px; background: var(--surf); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 24px;
}
.mcalc__panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mcalc__inputs { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: #0B0D12; color: #F4F5F7; }
html[data-theme="dark"] .mcalc__inputs { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mcalc__inputs .calc__label { color: rgba(244, 245, 247, .62); }
.mcalc__lvl { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mcalc__row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mcalc__coin { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; margin-right: 4px; }
.mcalc__coin .lv { --lv-s: 40px; }
.mcalc__step {
  width: 40px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: rgba(244, 245, 247, .55); font: 500 22px/1 var(--font);
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.mcalc__step:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.mcalc__step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mcalc__step:active { transform: scale(.9); }
.mcalc__input {
  flex: 1 1 88px; min-width: 0; max-width: 120px; box-sizing: border-box; height: 48px; padding: 0 8px; border-radius: 14px; text-align: center;
  border: 1px solid transparent; background: rgba(255, 255, 255, .08); color: #FFFFFF;
  font: 700 22px/1 var(--font); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; transition: border-color .2s, box-shadow .2s, background .2s;
}
.mcalc__input::-webkit-outer-spin-button, .mcalc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mcalc__input:hover { background: rgba(255, 255, 255, .12); }
.mcalc__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 116, 224, .3); }
/* плитки: как в блоке «Опт» — подпись сверху, большое число снизу (опыт — светлая, наборы — жёлтая, последней) */
.mcalc__tile { justify-content: space-between; min-width: 0; min-height: 190px; box-sizing: border-box; border-radius: 22px; }
/* Цвета плиток с цифрами (мини-калькулятор): жёлтая (как плашка наверху главной) и светлая */
.tile--yellow { background: var(--yellow); color: #0B0C0F; }
.tile--yellow .tile__lbl { color: #4A3F0A; }
.tile--soft { background: var(--panel); color: var(--ink); }
.tile--soft .tile__lbl { color: var(--muted); }
.mcalc__tile .tile__num { font-variant-numeric: tabular-nums; }
.mcalc.is-invalid .mcalc__tile { opacity: .45; }
.mcalc__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 18px; }
.mcalc__body .card__cta { margin-top: 0; }
@media (max-width: 900px) {
  .mcalc__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcalc__inputs { grid-column: 1 / -1; }
  .mcalc__tile { min-height: 150px; }
}
@media (max-width: 420px) {
  .mcalc__inputs { padding: 18px 16px; }
  .mcalc__tile { padding: 18px; gap: 18px; }
}

/* ---------- Калькулятор уровня: раскладка из макета владельца, оформление — как у блоков главной ----------
   Серая панель с белыми карточками, спокойные кнопки (синие при наведении), итог — плитки как в «Опт», кнопки как в шапке главной */
.calc {
  box-sizing: border-box; margin: 0; padding: 14px 14px 32px;
  border-radius: 32px; background: var(--surf); box-shadow: var(--shadow); scroll-margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.calc-sec { padding-top: 120px; scroll-margin-top: 24px; }
.calc-sec .calc__title { margin: 0 0 20px; padding: 0 8px; }
.calc__label { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted); }
/* без серой подложки: карточки уровней и прогресса — на всю ширину, как синий блок итога */
.calc__panel { display: flex; flex-direction: column; gap: 12px; }
.calc__card { box-sizing: border-box; min-width: 0; padding: 22px 32px; border-radius: 22px; background: var(--surf); box-shadow: var(--shadow); }
/* Карточки текущего и желаемого уровня — тёмные, с синим свечением (значки Steam на тёмном фоне — родные) */
/* одна тёмная карточка: уровни + прогресс слева, быстрый выбор справа */
.calc__dark { background: radial-gradient(480px circle at 100% 0%, rgba(46, 104, 200, .34), transparent 62%), #0B0D12; box-shadow: none; color: #F4F5F7; }
html[data-theme="dark"] .calc__dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.calc__lvl .calc__label, .calc__progress .calc__label { color: rgba(244, 245, 247, .62); }
/* текущий и желаемый уровень — в одной тёмной карточке, между ними стрелка */
.calc__lvls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 28px; }
/* размер большого числа — от ширины блока уровня и числа цифр (значок, −/+ и отступы занимают ~190px) */
.calc__lvl { min-width: 0; container-type: inline-size; }
.calc__lvl .calc__big { font-size: clamp(28px, calc((100cqi - 196px) / 2.1), 78px); }
.calc__lvl .calc__big.is-long { font-size: clamp(26px, calc((100cqi - 196px) / 2.75), 78px); }
.calc__lvl .calc__big.is-xlong { font-size: clamp(24px, calc((100cqi - 196px) / 3.45), 78px); }
.calc__sep { align-self: end; margin-bottom: 26px; font-size: 30px; line-height: 1; color: rgba(244, 245, 247, .3); }
@media (max-width: 760px) {
  .calc__lvls { grid-template-columns: minmax(0, 1fr); }
  .calc__sep { align-self: center; justify-self: center; margin: 0; transform: rotate(90deg); }
}
.calc__dark { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; }
.calc__dark-main { min-width: 0; }
.calc__quick { display: flex; flex-direction: column; gap: 12px; padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .08); }
.calc__quick .calc__label { color: rgba(244, 245, 247, .62); }
.calc__qgrid { display: grid; grid-template-columns: repeat(3, 50px); gap: 6px; }
.calc__dark .calc__preset { width: 50px; background: rgba(255, 255, 255, .07); }
.calc__dark .calc__preset:hover { background: rgba(255, 255, 255, .13); box-shadow: none; }
.calc__dark .calc__preset.is-active { background: rgba(31, 116, 224, .14); box-shadow: inset 0 0 0 2px var(--blue); }
@media (max-width: 1180px) {
  .calc__dark { grid-template-columns: minmax(0, 1fr); }
  .calc__quick { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .calc__qgrid { grid-template-columns: repeat(auto-fill, 50px); }
}
/* прогресс опыта — под уровнями, через тонкую линию; полоска лаймовая */
.calc__progress { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.calc__progress .calc__progress-val { color: #FFFFFF; }
.calc__progress .calc__bar i { background: rgba(255, 255, 255, .09); }
.calc__progress .calc__bar i.is-on { background: var(--lime); }
.calc__lvl .calc__big { color: #FFFFFF; }
.calc__lvl .calc__step { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.calc__lvl .calc__step:hover { background: var(--blue); }
/* Карточка уровня: большое число (это и есть поле), справа значок на тёмной «монете» и −/+ */
.calc__lvl-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.calc__big {
  flex: 1 1 auto; min-width: 0; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  font: 800 clamp(52px, 6.4vw, 78px)/1.05 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield; caret-color: var(--blue);
}
.calc__big::-webkit-outer-spin-button, .calc__big::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__big:focus { outline: none; box-shadow: 0 2px 0 var(--blue); border-radius: 0; }
.calc__badge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; }
.calc__badge .lv { --lv-s: 48px; }
.calc__steps { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.calc__step {
  width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--panel); color: var(--ink); font: 500 22px/1 var(--font);
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.calc__step:hover { background: var(--blue); color: #FFFFFF; }
.calc__step:active { transform: scale(.9); }
.calc__step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Прогресс опыта: полоска из делений */
.calc__progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.calc__progress-head > * { white-space: nowrap; }
.calc__progress-val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.calc__bar { display: flex; gap: 6px; margin-top: 16px; }
.calc__bar i { flex: 1 1 0; height: 12px; border-radius: 4px; background: var(--chip); transition: background .3s; }
.calc__bar i.is-on { background: var(--blue); }
/* Быстрый выбор цели — значки уровней (на тёмных кнопках: значки Steam рассчитаны на тёмный фон) */
.calc__preset {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 1 50px; min-width: 40px; height: 50px; border: 0; border-radius: 15px;
  background: #171A21; cursor: pointer; transition: background .2s, box-shadow .2s, transform .35s var(--spring);
}
.calc__preset:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(10, 12, 16, .18); }
.calc__preset.is-active { background: var(--blue); box-shadow: 0 8px 20px rgba(31, 116, 224, .35); }
.calc__error { margin: 0; padding: 12px 18px; border-radius: 14px; background: rgba(224, 49, 49, .1); color: #D63B3B; font-size: 15px; font-weight: 600; text-align: center; }
/* Итог — большой синий блок: наборы крупно, справа список с точками */
.calc__result {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px 40px;
  padding: 32px; border-radius: 22px; background: var(--blue); color: #FFFFFF;
}
.calc__sets .calc__label { color: rgba(255, 255, 255, .88); font-size: 17px; font-weight: 600; }
.calc__sets-val { margin-top: 8px; font-size: clamp(56px, 9vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.calc__row { display: flex; align-items: baseline; gap: 10px; font-size: clamp(17px, 2vw, 22px); }
.calc__row dt { font-weight: 500; white-space: nowrap; }
.calc__row::after { content: ''; order: 1; flex: 1 1 auto; min-width: 16px; border-bottom: 2px dotted rgba(255, 255, 255, .45); transform: translateY(-5px); }
.calc__row dd { order: 2; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc.is-invalid .calc__result, .calc.is-invalid .calc__rewards { opacity: .4; }
/* Награды: светлый блок, иконки, «было ▲ станет» */
.calc__rewards { padding: 32px; border-radius: 22px; background: var(--panel); }
.calc__sub { margin: 0 0 18px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.calc__rewards-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 28px; }
.calc__reward { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.calc__ico { width: 26px; height: 26px; flex-shrink: 0; margin-top: 18px; color: var(--muted); stroke-width: 1.6; }
.calc__rval { margin-top: 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc__from, .calc__to { white-space: nowrap; }
.calc__up, .calc__to { color: #3E8E3E; }
.calc__up { font-size: .8em; }
.calc__max { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 4px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
html[data-theme="dark"] .calc__up, html[data-theme="dark"] .calc__to { color: #6CCB6C; }
/* Две большие кнопки по центру — как в шапке главной (чёрная с синей точкой и белая) */
.calc__buy { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 18px 8px; }
.btn-arrow--lg { padding: 10px 10px 10px 34px; gap: 22px; font-size: 19px; }
.btn-arrow--lg .btn-arrow__dot { width: 52px; height: 52px; }
.btn-ghost--lg { min-height: 72px; padding: 0 40px; font-size: 19px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.calc__note { margin: 0 18px; font-size: 14px; line-height: 1.55; color: var(--sub); text-wrap: pretty; }
.calc__note--warn { color: var(--muted); }
@media (max-width: 760px) {
  .calc__result { grid-template-columns: minmax(0, 1fr); }
  .calc__rewards-grid { grid-template-columns: 1fr; justify-content: stretch; }
}
@media (max-width: 420px) {
  .calc__lvl .calc__big { font-size: clamp(26px, calc((100cqi - 172px) / 2.1), 56px); }
  .calc__lvl .calc__big.is-long { font-size: clamp(24px, calc((100cqi - 172px) / 2.75), 56px); }
  .calc__lvl .calc__big.is-xlong { font-size: clamp(22px, calc((100cqi - 172px) / 3.45), 56px); }
  .calc__lvl-row { gap: 10px; }
  .calc__steps { gap: 6px; }
  .calc__badge { width: 40px; height: 40px; }
  .calc__badge .lv { --lv-s: 40px; }
  .calc__card { padding: 18px; }
  .calc__result { padding: 24px 20px; }
  .calc__sets-val { font-size: 12.5vw; }
  .calc__row { gap: 6px; font-size: 15px; }
  .calc__row::after { min-width: 6px; }
  .calc__rewards { padding: 24px 20px; }
  .calc__step { width: 44px; height: 44px; }
  .calc__bar { gap: 3px; }
  .calc__buy > a { display: inline-flex; align-items: center; width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
  .btn-arrow--lg { justify-content: space-between; padding: 8px 8px 8px 24px; gap: 12px; font-size: 16px; }
  .btn-arrow--lg .btn-arrow__dot { width: 46px; height: 46px; }
  .btn-ghost--lg { min-height: 62px; padding: 0 20px; font-size: 16px; }
}

/* Команда бота в тексте (!rate, !help, !check) */
.cmd {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; font-weight: 600;
  padding: 2px 7px; border-radius: 7px; background: var(--chip); color: var(--ink); white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* длинная формула в узкой карточке — переносится по пробелам, фон у каждой строки свой */
@container (max-width: 530px) { .cmd { white-space: normal; } }
/* Свёрнутая полная таблица опыта (страница уровня) */
.svc-more { margin-top: 12px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.svc-more__btn {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 14px 14px 18px; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .2s;
}
.svc-more__btn::-webkit-details-marker { display: none; }
.svc-more__btn::marker { content: ''; }
.svc-more__btn:hover { color: var(--blue); }
.svc-more[open] .faq__icon::after { transform: rotate(0deg); }
.xp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 0 16px; padding: 0 14px 14px; }
.xp-grid table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.xp-grid th, .xp-grid td { padding: 5px 5px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.xp-grid thead th { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.xp-grid thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.xp-grid tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.xp-grid td { color: var(--sub); }
.xp-grid thead th:first-child { text-align: left; }
@media (max-width: 420px) { .xp-grid { padding: 0 10px 10px; } }

/* ---------- Страница услуги ---------- */
.svc-hero { padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: clamp(28px, 4vw, 48px); font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--sub); transition: color .2s; }
.crumbs a:hover { color: var(--blue); }
.svc-h1 {
  margin: 18px auto 0; max-width: 1000px; font-size: clamp(38px, 6vw, 84px); line-height: .98;
  letter-spacing: -.045em; font-weight: 800; text-wrap: balance;
}
.svc-lead { margin: 24px auto 0; max-width: 680px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--sub); text-wrap: pretty; }
.svc-btns { justify-content: center; }
/* Страницы услуг — той же ширины, что и главная (.wrap); длина строки абзацев ограничена, чтобы текст легко читался */
/* Разделы — по два в ряд: заголовок над карточкой. Заголовки одного ряда на одной линии, карточки одной высоты (subgrid).
   Нечётный последний раздел — на всю ширину. */
.svc-body { padding-top: 120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 20px; }
.svc-sec { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; scroll-margin-top: 24px; }
.svc-sec--full, .svc-sec--wide { grid-column: 1 / -1; }
/* Каталог всех значков уровней: строка на сотню — подпись диапазона и 10 значков */
.bcat { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 14px 18px; }
.bcat__row { display: flex; align-items: center; gap: 12px 18px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); content-visibility: auto; contain-intrinsic-size: auto 57px; }
.bcat__row:last-child { border-bottom: 0; }
.bcat__range { flex: 0 0 104px; font-size: 13px; font-weight: 600; color: rgba(229, 229, 229, .7); font-variant-numeric: tabular-nums; }
.bcat__icons { flex: 1 1 auto; display: grid; grid-template-columns: repeat(10, minmax(40px, 1fr)); justify-items: center; gap: 12px 8px; }
.bcat .lv { --lv-s: 40px; }
@media (max-width: 560px) {
  .bcat { padding: 10px 12px; }
  .bcat__row { flex-direction: column; align-items: flex-start; gap: 8px; contain-intrinsic-size: auto 136px; }
  .bcat__range { flex: none; }
  .bcat__icons { align-self: stretch; grid-template-columns: repeat(5, minmax(40px, 1fr)); gap: 10px 6px; }
}
/* Все ступени «Коллекционера игр»: плитки на тёмном фоне (значки Steam рассчитаны на тёмный интерфейс) */
.gcat { list-style: none; margin: 18px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gcat__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); text-align: center; content-visibility: auto; contain-intrinsic-size: auto 150px; }
.gcat__img { display: block; width: 64px; height: 64px; }
.gcat__name { font-size: 14px; font-weight: 600; line-height: 1.3; color: #F4F5F7; text-wrap: balance; }
.gcat__meta { font-size: 12.5px; line-height: 1.35; color: rgba(229, 229, 229, .62); font-variant-numeric: tabular-nums; }
.gcat__meta > span { white-space: nowrap; }
@container (max-width: 420px) {
  .gcat { padding: 10px; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcat__item { padding: 14px 6px 12px; }
}
/* Полная таблица опыта: длинная, числа справа */
.svc-table.xpt th, .svc-table.xpt td { padding-top: 10px; padding-bottom: 10px; }
.svc-table.xpt td, .svc-table.xpt thead th:not(:first-child) { text-align: right; }
.svc-table.xpt td { white-space: nowrap; }
/* узкая карточка (телефон): таблица опыта плотнее, чтобы 4 столбца помещались без прокрутки */
@container (max-width: 530px) {
  .svc-table.xpt table { font-size: 13px; }
  .svc-table.xpt th, .svc-table.xpt td { padding: 8px 5px; }
  .svc-table.xpt th:first-child, .svc-table.xpt td:first-child { padding-left: 10px; }
  .svc-table.xpt th:last-child, .svc-table.xpt td:last-child { padding-right: 10px; }
  .svc-table.xpt thead th { font-size: 11px; line-height: 1.25; vertical-align: bottom; }
}
@container (max-width: 300px) {
  .svc-table.xpt table { font-size: 12px; letter-spacing: -.01em; }
  .svc-table.xpt th, .svc-table.xpt td { padding-left: 3px; padding-right: 3px; }
  .svc-table.xpt th:first-child, .svc-table.xpt td:first-child { padding-left: 8px; }
  .svc-table.xpt th:last-child, .svc-table.xpt td:last-child { padding-right: 8px; }
  .svc-table.xpt thead th { font-size: 10px; }
}
@container (max-width: 260px) { .svc-table.xpt table { font-size: 11px; } }
.svc-table.xpt tbody tr:nth-child(10n):not(:last-child) th, .svc-table.xpt tbody tr:nth-child(10n):not(:last-child) td { border-bottom-color: color-mix(in srgb, var(--ink) 22%, transparent); }
/* длинная таблица — двумя половинами рядом, когда карточка широкая */
.xpt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
/* каждая половина — сама себе контейнер: плотный вид включается по её ширине, а не по ширине карточки */
.xpt-grid > .svc-table { container-type: inline-size; }
@container (min-width: 760px) { .xpt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-sec > .svc-h2 { align-self: end; margin: 0; padding: 0 8px; }
.svc-sec:nth-child(n+3) > .svc-h2 { padding-top: 56px; }
.svc-card { min-width: 0; border-radius: 32px; padding: 32px; background: var(--surf); box-shadow: var(--shadow); container-type: inline-size; }
/* калькулятор на самых узких телефонах (до 360px): кнопки −/+ строкой ниже, числу — вся ширина рядом со значком */
@media (max-width: 360px) {
  .calc__lvl-row { flex-wrap: wrap; }
  .calc__lvl .calc__big { font-size: clamp(26px, calc((100cqi - 70px) / 2.1), 56px); }
  .calc__lvl .calc__big.is-long { font-size: clamp(24px, calc((100cqi - 70px) / 2.75), 56px); }
  .calc__lvl .calc__big.is-xlong { font-size: clamp(22px, calc((100cqi - 70px) / 3.45), 56px); }
}
/* самые узкие телефоны (до 360px): поля карточки меньше, чтобы таблицы с большими числами помещались */
@media (max-width: 360px) { .svc-card { padding: 22px 18px; } }
.svc-sec--full .svc-card > p, .svc-sec--full .svc-card > .svc-list, .svc-sec--wide .svc-card > p { max-width: 860px; }
@media (max-width: 900px) {
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-sec:nth-child(n+2) > .svc-h2 { padding-top: 48px; }
}
.svc-h2 { margin: 0 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.svc-card p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--sub); text-wrap: pretty; }
.svc-card p:last-child { margin-bottom: 0; }
.svc-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.svc-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.55; color: var(--sub); }
.svc-list li::before { content: ''; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--chip); }
.svc-list li::after { content: ''; position: absolute; left: 8px; top: calc(.15em + 8px); width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
/* Пошаговая инструкция: вместо точки — номер шага */
.svc-list--steps { counter-reset: step; }
.svc-list--steps li { counter-increment: step; }
.svc-list--steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--blue); }
.svc-list--steps li::after { content: none; }
.svc-table { margin-top: 18px; overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.svc-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.svc-table th, .svc-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.svc-table thead th { background: var(--panel); font-size: 13px; font-weight: 600; color: var(--sub); }
.svc-table tbody th { font-weight: 600; color: var(--ink); }
.svc-table td { color: var(--sub); font-variant-numeric: tabular-nums; }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }
/* «Другие услуги»: 4 карточки сеткой 2×2 — название и описание в одну строку, карточки одинаковые */
.related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related .contact { min-height: 150px; }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }
.related .contact__name { font-size: 22px; line-height: 1.15; }
/* Узкая карточка (телефон или колонка «два в ряд»): широкая таблица — каждая строка карточкой «подпись — значение»,
   остальные таблицы плотнее. Пороги — по ширине содержимого карточки. */
@media (max-width: 640px) { .related .contact { min-height: 128px; } }
@container (max-width: 530px) {
  .svc-table--stack { overflow: visible; }
  .svc-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .svc-table--stack tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .svc-table--stack tbody tr:last-child { border-bottom: 0; }
  .svc-table--stack tbody th { display: block; padding: 0 0 8px; border: 0; font-size: 16px; }
  .svc-table--stack tbody td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 4px 0; border: 0; }
  .svc-table--stack tbody td::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
  .svc-table th, .svc-table td { padding: 10px 12px; }
  .svc-table table { font-size: 14px; }
  .svc-table thead th { font-size: 12px; }
}
@container (max-width: 316px) {
  .svc-table th, .svc-table td { padding: 10px 6px; }
  .svc-table th:first-child, .svc-table td:first-child { padding-left: 10px; }
}
@container (max-width: 240px) {
  .svc-table table { font-size: 12px; }
  .svc-table th, .svc-table td { padding-left: 3px; padding-right: 3px; }
  .svc-table thead th { font-size: 10px; }
}
@container (max-width: 296px) {
  .svc-table th, .svc-table td { padding-left: 4px; padding-right: 4px; }
  .svc-table th:first-child, .svc-table td:first-child { padding-left: 8px; }
  .svc-table table { font-size: 13px; }
  .svc-table thead th { font-size: 11px; }
}

/* ---------- Подвал: ссылки на страницы услуг ---------- */
.ftr__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; font-size: 14px; text-align: center; }
.ftr__nav a { color: var(--sub); transition: color .2s; }
.ftr__nav a:hover { color: var(--blue); }

/* ---------- 404 ---------- */
.nf { display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.nf__box { width: 100%; max-width: 660px; border-radius: 32px; padding: clamp(24px, 5vw, 48px); background: var(--surf); box-shadow: var(--shadow); }
.logo.nf__logo { display: inline-block; height: auto; margin: 0; padding: 0; border-radius: 0; font-size: 34px; line-height: 1; }
.nf__code {
  margin: 12px 0 10px; font-size: clamp(88px, 18vw, 160px); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  background: linear-gradient(180deg, var(--blue) 10%, var(--logoEzBot) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf__lang { padding: 18px 0; border-top: 1px solid var(--line); }
.nf__lang:last-child { padding-bottom: 0; }
.nf__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.nf__lang p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--sub); }
.nf__links { display: flex; flex-wrap: wrap; gap: 8px; }
.nf__links a { padding: 8px 14px; border-radius: 999px; background: var(--chip); font-size: 14px; color: var(--ink); transition: color .2s; }
.nf__links a:hover { color: var(--blue); }

/* ---------- Hover-эффекты (только для устройств с курсором) ---------- */
@media (hover: hover) {
  .cover:hover { transform: scale(1.14) translateY(-4px); z-index: 3; box-shadow: 0 18px 30px -12px rgba(10, 20, 50, .55); }
  .fan__c:hover { z-index: 3; }
  .fan__c--l:hover { transform: rotate(-12deg) scale(1.15) translateY(-8px); }
  .fan__c--r:hover { transform: rotate(12deg) scale(1.15) translateY(-8px); }
  .fan__c--c:hover { transform: scale(1.12) translateY(-8px); }
  .badge:hover { z-index: 3; }
  .badge__i:hover { background-position: 0% 0, center, center; transform: scale(1.2) translateY(-6px); }
  .contact:hover { transform: translateY(-3px); }
}

/* ---------- Китайская версия: CJK-иероглифам нужен трекинг и интерлиньяж побольше ---------- */
html:lang(zh) .h1 { letter-spacing: -.02em; line-height: 1.04; }
html:lang(zh) .h1__after { white-space: nowrap; }
html:lang(zh) .h2 { letter-spacing: -.02em; line-height: 1.1; }
html:lang(zh) .h2--whs { line-height: 1.04; }
html:lang(zh) .h3 { letter-spacing: -.01em; line-height: 1.2; }
html:lang(zh) .menu__link { letter-spacing: 0; }
/* не рвать слова внутри заголовков; переносы — по пробелам, знакам и <wbr> */
html:lang(zh) .h2, html:lang(zh) .h3, html:lang(zh) .hero__lead,
html:lang(zh) .svc-h1, html:lang(zh) .svc-h2, html:lang(zh) .svc-lead, html:lang(zh) .faq__q, html:lang(zh) .contact__name { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(zh) .hdr__right, html:lang(zh) .menu__row { line-height: 1.2; }
.nobr { white-space: nowrap; }

/* ---------- Адаптив ---------- */
/* Уже 1024px: коллаж без абсолютного позиционирования — карточки статистики под окном, окно не перекрывается */
@media (max-width: 1023px) {
  .collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; max-width: 840px; }
  .win { grid-column: 1 / -1; grid-row: 1; width: 100%; max-width: none; }
  .stats { display: contents; }
  .stat { position: relative; z-index: 2; margin: -20px 0 0; min-width: 0; padding: 18px; container-type: inline-size; }
  .stat--lime { transform: rotate(-4deg); }
  .stat--surf { transform: rotate(3deg); }
  .stat--yellow { transform: rotate(3deg); }
  .stat--blue { transform: rotate(-3deg); }
  .stat__num--lg, .stat__num--md { font-size: clamp(30px, 6vw, 40px); font-size: min(clamp(30px, 6vw, 40px), 32cqi); margin-top: 6px; }
  .h3 { text-wrap: balance; }
  .card--soon .h3 { text-wrap: wrap; } /* «TF2 ↔» не должно оставаться одно на строке */
}
/* Корзина и поиск уходят на отдельную строку — растягиваем их на всю ширину окна */
@media (max-width: 712px) {
  .cart { max-width: none; }
  .win__search { flex: 1 1 180px; }
}
/* Шапка не вмещает правый блок — прячем его в меню. is-compact ставит JS, когда не влезает навигация */
@media (max-width: 760px) {
  .hdr { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 8px 0 16px; }
  .logo { font-size: clamp(24px, calc((100vw - 200px) / 5.8), 42px); }
  .nav, .hdr__right { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { display: flex; }
  /* без JS меню не откроется — показываем хотя бы переключатель языков */
  .no-js .menu-btn, .no-js .hdr__right .btn-cta { display: none; }
  .no-js .hdr__right { display: flex; }
}
.hdr.is-compact { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 8px 0 16px; }
.hdr.is-compact .logo { font-size: clamp(24px, calc((100vw - 200px) / 5.8), 42px); }
.hdr.is-compact .nav, .hdr.is-compact .hdr__right { display: none; }
.hdr.is-compact .menu-btn { display: inline-flex; }
.hdr.is-compact .menu { display: flex; left: auto; width: min(380px, 100%); }
@media (max-width: 640px) {
  .sec, .svc-body, .calc-sec { padding-top: 88px; }
  .ftr { padding-top: 104px; }
}
@media (max-width: 560px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--r .stat { margin-top: 0; }
  .lvl { padding: 18px; gap: 16px; }
  .lvl__ring { width: 88px; height: 88px; }
  .lvl__num { font-size: 36px; }
  .lvl__txt { flex-direction: column; align-items: flex-start; gap: 2px; }
  .fan__inner { transform: scale(.88); transform-origin: 50% 45%; }
  .swap { --gap: 22px; padding: 14px; }
  .swap__row { padding-right: 14px; gap: 10px; }
}
/* Ниже 360px (минимальная целевая ширина) — только чтобы ничего не вылезало */
@media (max-width: 420px) {
  .chart__val { font-size: 24px; }
  .chart__badges { width: 34px; height: 34px; }
  .chart__right { gap: 8px; }
}
@media (max-width: 359px) {
  .shop__num { font-size: 72px; }
  .price { font-size: 10px; padding: 3px 6px; }
  .swap__amt { font-size: 18px; }
  .swap__name { font-size: 15px; }
  .badges { --bs: 42px; }
  .fan__inner { transform: scale(.74); }
  .btn-arrow { padding-left: 18px; font-size: 14px; gap: 8px; }
}
/* EN: «Services Hub» не переносится — на самых узких экранах заголовок подстраивается под ширину */
@media (max-width: 400px) {
  html:lang(en) .h1 { font-size: min(56px, calc((100vw - 64px) / 6.1)); }
}

/* ---------- Доступность: меньше движения ---------- */
/* prefers-reduced-motion намеренно не учитываем: на Windows 11 анимации часто выключены в системе
   «для скорости», а без анимаций сайт теряет задуманный вид (решение заказчика). */
