/* ============================================================
   шмаль — Steam трейд
   Палитра: графит + мята
   ============================================================ */

:root {
  --graphite-900: #171e26;
  --graphite-800: #171d24;
  --graphite-700: #1e252e;
  --graphite-600: #26303a;
  --graphite-500: #313d49;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --mint-100: #d7fff2;
  --mint-200: #a9f7e2;
  --mint-300: #6feac8;
  --mint-400: #35d3a7;
  --mint-500: #16b488;
  --mint-600: #0d8e6c;

  --ink: #e9f2f4;
  --ink-dim: #9cb0b8;
  --ink-faint: #6d808a;

  --cs2: #f2b872;
  --rust: #ec8a6a;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, .85);
  --glow-mint: 0 0 0 1px rgba(53, 211, 167, .28), 0 18px 50px -18px rgba(22, 180, 136, .55);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--graphite-900);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Unbounded', 'Manrope', sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 800; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

::selection { background: var(--mint-400); color: #111; }

/* ---------- фон: частицы + свечения (на всю страницу) ---------- */

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Aurora: без filter:blur() — блюр на всю страницу убивает слабые телефоны.
   Мягкость даём самими радиальными градиентами с плавным спадом. */
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 780px at 76% 4%, rgba(53, 211, 167, .22), rgba(53, 211, 167, .07) 45%, transparent 72%),
    radial-gradient(820px 620px at 8% 22%, rgba(13, 142, 108, .16), rgba(13, 142, 108, .05) 45%, transparent 70%),
    radial-gradient(1200px 820px at 50% 100%, rgba(169, 247, 226, .11), transparent 68%);
}

/* мягкая виньетка — глубина и лёгкий блюр фона */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 95% at 50% 26%, transparent 42%, rgba(10, 13, 17, .58) 100%);
}

/* «Зерно» — дешёвая версия: без mix-blend-mode.
   blend-режим заставляет браузер пересчитывать всю страницу. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px clamp(18px, 5vw, 60px);
  /* плотный фон вместо backdrop-filter: блюр фона — дорогая операция,
     особенно при скролле на слабых устройствах */
  background: rgba(16, 21, 27, .92);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark { display: grid; place-items: center; flex-shrink: 0; }
.brand__text {
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.brand__dot { color: var(--mint-400); }

.nav { display: flex; gap: 24px; margin-left: auto; }

.topbar__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }

.lang {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-dim);
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.lang:hover {
  color: var(--mint-200);
  border-color: rgba(53, 211, 167, .45);
  background: rgba(53, 211, 167, .09);
  transform: translateY(-1px);
}
.lang:active { transform: translateY(0); }
.lang:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }
.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--mint-200), var(--mint-500));
  transition: width .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.topbar .btn { flex-shrink: 0; }

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  /* текст кнопки переносится, если не влезает — иначе на узких
     экранах кнопка вылезает за вьюпорт */
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }

.btn--sun {
  background: linear-gradient(135deg, var(--mint-300) 0%, var(--mint-500) 55%, var(--mint-600) 100%);
  color: #06231b;
  box-shadow: var(--glow-mint);
}
.btn--sun:hover {
  box-shadow: 0 0 0 1px rgba(169, 247, 226, .5), 0 24px 60px -16px rgba(22, 180, 136, .7);
}

.btn--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .03);
}
.btn--outline:hover { border-color: rgba(53, 211, 167, .5); background: rgba(53, 211, 167, .08); }

.btn--ghost { border-color: var(--line); color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); border-color: var(--line-strong); }

.btn__label { min-width: 0; overflow-wrap: break-word; }

.btn--sm { padding: 10px 17px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- секции ---------- */

main { position: relative; z-index: 2; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 118px) clamp(18px, 5vw, 40px);
}

.section__head { max-width: 760px; margin-bottom: 42px; }

.eyebrow {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-300);
  margin-bottom: 16px;
}

.section__title { font-size: clamp(24px, 4.6vw, 50px); overflow-wrap: break-word; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 40px) clamp(60px, 8vw, 110px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; min-width: 0; }

.hero__glow {
  position: absolute;
  z-index: 1;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  right: -12%;
  top: 8%;
  border-radius: 50%;
  /* без filter:blur() — мягкость даёт сам радиальный градиент */
  background: radial-gradient(circle, rgba(53, 211, 167, .2) 0%, rgba(13, 142, 108, .08) 42%, transparent 68%);
  pointer-events: none;
  /* только transform/opacity — compositor-friendly, без repaint */
  animation: breathe 9s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.09); opacity: 1; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-dim);
  margin-bottom: 26px;
}
/* Пульсирующая точка: анимируем псевдоэлемент (transform/opacity),
   а не box-shadow — иначе каждый кадр перерисовывается весь блок */
.pulse {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mint-300);
  flex-shrink: 0;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint-300);
  opacity: .6;
  animation: pulse 2.1s infinite;
  will-change: transform, opacity;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero__title { margin-bottom: 24px; overflow-wrap: break-word; }
.hero__nick {
  display: block;
  font-size: clamp(30px, 12vw, 128px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .92;
  overflow-wrap: break-word;
  /* запасной цвет — если background-clip:text не поддержится,
     текст останется видимым, а не пропадёт вместе с color:transparent */
  color: var(--mint-300);
  background: linear-gradient(140deg, #ffffff 0%, var(--mint-200) 30%, var(--mint-400) 66%, var(--mint-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 70px rgba(53, 211, 167, .22);
}
/* Прозрачный цвет — только если клип по тексту реально работает */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero__nick { color: transparent; }
}
.hero__sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(15px, 2.3vw, 25px);
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

.hero__lead {
  max-width: 640px;
  font-size: clamp(16px, 1.65vw, 19px);
  color: var(--ink-dim);
}
.hero__lead b { color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 46px;
}

.hero__note {
  margin-top: 22px;
  padding: 12px 16px;
  border-left: 2px solid var(--mint-500);
  background: rgba(53, 211, 167, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--ink-dim);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  gap: 14px;
  max-width: 760px;
}

.stat {
  position: relative;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat::before {
  content: '';
  position: absolute;
  inset: auto auto -60% -30%;
  width: 140px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 211, 167, .2), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: rgba(53, 211, 167, .3); }
.stat:hover::before { opacity: 1; }

.stat__label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.stat__value {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--mint-200);
  letter-spacing: -.02em;
}
.stat__unit { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }

/* ---------- карточка профиля ---------- */

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 55%, rgba(53, 211, 167, .05));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-card__glow {
  position: absolute;
  top: -40%; right: -12%;
  width: 420px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 211, 167, .16), transparent 68%);
  pointer-events: none;
}

.profile-card__avatar {
  position: relative;
  /* фиксированный квадрат: иначе на мобильном (одна колонка) блок
     растянется на всю ширину карточки, а .ring превратится в эллипс */
  --av: clamp(88px, 12vw, 150px);
  width: var(--av);
  height: var(--av);
  flex-shrink: 0;
  justify-self: start;
}
.profile-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* без filter — картинка и так нормальная */
  background: var(--graphite-800);
}
.ring {
  position: absolute;
  left: -8px;
  top: -8px;
  /* явный квадрат — кольцо всегда круг, что бы ни случилось с родителем */
  width: calc(var(--av) + 16px);
  height: calc(var(--av) + 16px);
  border-radius: 50%;
  padding: 2px;
  /* без тёмного стопа: иначе кольцо выглядит тонкой оборванной дугой */
  background: conic-gradient(from 210deg, var(--mint-200), var(--mint-500), var(--mint-300), var(--mint-500), var(--mint-200));
  -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;
  animation: spin 9s linear infinite;
  opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-card__body { min-width: 0; }

.profile-card__name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-card__name h3 { font-size: clamp(24px, 3.4vw, 36px); overflow-wrap: break-word; }

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, .03);
  overflow-wrap: break-word;
}
.chip--sun {
  border-color: rgba(53, 211, 167, .4);
  color: var(--mint-200);
  background: rgba(53, 211, 167, .1);
}

.profile-card__id { margin-top: 8px; font-size: 14.5px; color: var(--ink-faint); overflow-wrap: break-word; }
.profile-card__id a { border-bottom: 1px dashed rgba(53, 211, 167, .4); transition: color .25s; }
.profile-card__id a:hover { color: var(--mint-300); }

.profile-card__meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(124px, 100%), 1fr));
  gap: 12px 20px;
}
.profile-card__meta li { display: flex; flex-direction: column; gap: 2px; }
.profile-card__meta span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.profile-card__meta b { font-size: 14.5px; color: var(--ink); word-break: break-word; }

.profile-card__side { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

/* ---------- карточки игр ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

.game-card {
  min-width: 0;
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.game-card--cs2:hover { border-color: rgba(242, 184, 114, .45); }
.game-card--rust:hover { border-color: rgba(236, 138, 106, .45); }

.game-card__art {
  position: absolute;
  top: -90px; right: -70px;
  width: 260px; aspect-ratio: 1;
  border-radius: 50%;
  /* без blur — градиент уже мягкий */
  pointer-events: none;
}
.game-card--cs2 .game-card__art { background: radial-gradient(circle, rgba(242, 184, 114, .3), transparent 68%); }
.game-card--rust .game-card__art { background: radial-gradient(circle, rgba(236, 138, 106, .28), transparent 68%); }

.game-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
  position: relative;
}
.game-card__head h3 { font-size: clamp(19px, 2.2vw, 24px); min-width: 0; overflow-wrap: break-word; }
.game-card__head .chip { flex-shrink: 0; }

.game-card__hours { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; position: relative; }
.game-card__num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
}
.game-card--cs2 .game-card__num { color: var(--cs2); text-shadow: 0 0 44px rgba(242, 184, 114, .32); }
.game-card--rust .game-card__num { color: var(--rust); text-shadow: 0 0 44px rgba(236, 138, 106, .32); }
.game-card__unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-dim);
  line-height: 1.25;
  padding-bottom: 5px;
}
.game-card__unit small { font-size: 12px; color: var(--ink-faint); font-weight: 600; }

.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  width: 100%;
  /* transform вместо width: анимация width пересчитывает раскладку
     каждый кадр, transform живёт на композиторе и стоит ноль */
  transform: scaleX(var(--p, 0));
  /* начальное значение без inline-атрибута — чтобы CSP можно было
     ужесточить до style-src 'self' без 'unsafe-inline' */
  transform-origin: left center;
  border-radius: 999px;
  transition: transform 1.5s var(--ease);
}
.game-card--cs2 .meter__fill { background: linear-gradient(90deg, var(--mint-300), var(--cs2)); box-shadow: 0 0 18px rgba(242, 184, 114, .6); }
.game-card--rust .meter__fill { background: linear-gradient(90deg, var(--mint-400), var(--rust)); box-shadow: 0 0 18px rgba(236, 138, 106, .6); }

.other-games {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .022);
}
.other-games__title { font-size: 17px; margin-bottom: 18px; color: var(--ink-dim); font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: .01em; }
.other-games__list { display: flex; flex-wrap: wrap; gap: 10px; }
.og-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 13.5px;
}
.og-chip b { color: var(--mint-200); font-family: 'Unbounded', sans-serif; font-size: 13px; }
.og-chip span { color: var(--ink-faint); font-size: 12px; }

/* ---------- контакты ---------- */

/* min(260px, 100%) — иначе на экранах < 260px карточки вылезают за вьюпорт */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }
.contact-card b { font-family: 'Unbounded', sans-serif; font-size: 18px; }
.contact-card span:last-child { font-size: 14px; color: var(--ink-faint); }
.contact-card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; }
.contact-card--tg .contact-card__icon { background: rgba(42, 171, 238, .16); color: #4aaee8; }
.contact-card--dc .contact-card__icon { background: rgba(88, 101, 242, .16); color: #7b86f5; }
.contact-card--steam .contact-card__icon { background: rgba(53, 211, 167, .16); color: var(--mint-300); }
.contact-card--tg:hover { border-color: rgba(74, 174, 232, .5); }
.contact-card--dc:hover { border-color: rgba(123, 134, 245, .5); }
.contact-card--steam:hover { border-color: rgba(53, 211, 167, .5); }

/* ---------- подвал ---------- */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 46px clamp(18px, 5vw, 40px);
  background: rgba(14, 18, 23, .7);
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer__brand { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); }
.footer__muted { width: 100%; font-size: 12.5px; color: var(--ink-faint); opacity: .7; }

/* ---------- кнопка "наверх" ---------- */

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(23, 29, 36, .92);
  color: var(--mint-200);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: rgba(53, 211, 167, .5); }

/* ---------- анимации появления ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- режим слабого устройства ----------
   Ставится скриптом, если ядер <= 4 или памяти <= 4 ГБ.
   Отключаем всё, что жрёт батарею и греет процессор. */

.lite .grain { display: none; }
.lite .hero__glow { animation: none; }
.lite .pulse::after { animation-duration: 3s; }
.lite .ring { animation-duration: 24s; }
.lite .reveal { transition-duration: .35s; }
.lite .meter__fill { transition-duration: .8s; }
.lite #particles { opacity: .75; }

/* Уважаем системную настройку «меньше движения»:
   вообще никакой анимации — ни частиц, ни пульсов, ни сдвигов. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #particles { display: none; }
  .hero__glow { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */

/* Секции вне экрана не рендерим — заметно ускоряет прокрутку
   на длинных страницах (особенно на телефонах) */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

@media (max-width: 940px) {
  .profile-card { grid-template-columns: 1fr; text-align: left; }
  .profile-card__side { min-width: 0; }
  .nav { display: none; }
}

@media (max-width: 620px) {
  .topbar { gap: 12px; }
  .topbar__actions { gap: 8px; }
  .brand__text { font-size: 16px; }
  .lang { padding: 7px 11px; font-size: 11px; letter-spacing: .05em; }
  .topbar .btn--sm { padding: 9px 14px; font-size: 13px; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  /* SteamID64 не влезает в две колонки — отдаём ему всю ширину */
  .profile-card__meta li:first-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  /* на узких экранах в шапке прячем дублирующую кнопку трейда — в герое она есть */
  .topbar #nav-trade { display: none; }
  .brand__text { font-size: 15px; }
}

/* Очень узкие экраны (200–320px): шапка и кнопки не должны вылезать за вьюпорт */
@media (max-width: 340px) {
  .topbar { gap: 8px; padding: 12px 12px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__text { font-size: 13px; }
  .topbar__actions { gap: 6px; }
  .lang { padding: 5px 9px; font-size: 10.5px; letter-spacing: .03em; }
  .hero__nick { font-size: clamp(26px, 13vw, 128px); }
  .hero__badge { padding: 7px 12px 7px 10px; font-size: 12.5px; gap: 8px; }
  .btn { padding: 11px 16px; font-size: 14px; }
  .btn--lg { padding: 14px 20px; font-size: 15px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .hero { padding-left: 14px; padding-right: 14px; }
  .profile-card { padding: 18px 16px; gap: 20px; }
  .contact-card { padding: 22px 18px; }
  .stat { padding: 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
