/* Vavada: обзор игрока. Дизайн-система: design-system/graphite/MASTER.md
   Стиль «графит и рубин»: швейцарский минимализм, тёмная тема под длинное чтение. Mobile-first, без фреймворков. */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("type/onest-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("type/onest-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("type/onest-latext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("type/unbounded-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("type/unbounded-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --c-bg: #121316;
  --c-raised: #1a1c20;
  --c-raised-2: #212429;
  --c-ink: #ecedef;
  --c-ink-soft: #a7abb3;
  --c-ruby: #d01f35;
  --c-ruby-hover: #b5192d;
  --c-ruby-ink: #ff7a8a;
  --c-ruby-wash: rgba(208, 31, 53, 0.12);
  --c-on-ruby: #ffffff;
  --c-rule: rgba(255, 255, 255, 0.08);
  --c-rule-strong: rgba(255, 255, 255, 0.16);
  --c-focus: #ff9aa6;

  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Unbounded", "Onest", system-ui, "Segoe UI", Arial, sans-serif;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;

  --t-fast: 150ms;
  --t-base: 220ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --w-page: 1080px;
  --w-read: 740px;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--c-ruby-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) ease;
  cursor: pointer;
}

a:hover {
  color: var(--c-ink);
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.jump {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-ruby);
  color: var(--c-on-ruby);
  font-weight: 700;
  border-radius: var(--r-1);
  text-decoration: none;
}

.jump:focus {
  top: var(--sp-2);
}

/* ---------- Шапка ---------- */
.topbar {
  border-bottom: 1px solid var(--c-rule);
}

.topbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  padding-top: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  color: var(--c-ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--c-ink);
}

.brand__sign {
  flex: none;
}

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand__note {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--c-ink-soft);
}

.menu {
  margin: 0 calc(-1 * var(--sp-4));
  width: calc(100% + 2 * var(--sp-4));
  overflow-x: auto;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu ul {
  display: flex;
  gap: var(--sp-1);
  margin: 0;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  list-style: none;
  white-space: nowrap;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}

.menu a:hover {
  color: var(--c-ink);
  background: var(--c-raised);
}

.menu a[aria-current="page"] {
  color: var(--c-ink);
  background: var(--c-raised-2);
  box-shadow: inset 0 -2px 0 var(--c-ruby);
}

/* ---------- CTA ---------- */
.promo {
  padding: var(--sp-5) 0 0;
}

.promo__box {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--c-rule-strong);
  border-left: 4px solid var(--c-ruby);
  border-radius: var(--r-3);
  background:
    linear-gradient(120deg, var(--c-ruby-wash), transparent 55%),
    var(--c-raised);
}

.promo__text {
  max-width: 36rem;
}

.promo__head {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.promo__sub {
  margin: var(--sp-1) 0 0;
  color: var(--c-ink-soft);
}

.promo__action {
  min-height: 56px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 56px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-2);
  background: var(--c-ruby);
  color: var(--c-on-ruby);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(208, 31, 53, 0.9);
  transition: background-color var(--t-base) ease, transform var(--t-base) var(--ease);
  touch-action: manipulation;
}

.action-btn:hover {
  color: var(--c-on-ruby);
  background: var(--c-ruby-hover);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.ico {
  flex: none;
  transition: transform var(--t-base) var(--ease);
}

.action-btn:hover .ico,
.xline .xlink:hover .ico {
  transform: translateX(3px);
}

/* ---------- Статья ---------- */
.post {
  max-width: var(--w-read);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-8);
  counter-reset: part;
}

.post__head {
  margin-bottom: var(--sp-5);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--c-ink);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--f-head);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.5rem);
  line-height: 1.2;
}

.post .post__date {
  margin: var(--sp-3) 0 0;
  font-size: 0.875rem;
  color: var(--c-ink-soft);
}

.post p,
.post li {
  overflow-wrap: break-word;
}

.post p {
  margin: 0 0 var(--sp-4);
}

.post .note-age {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-rule-strong);
  border-radius: var(--r-2);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.post .note-age::before {
  content: "18+";
  flex: none;
  padding: 1px 7px;
  border: 1.5px solid var(--c-ruby-ink);
  border-radius: var(--r-1);
  color: var(--c-ruby-ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.post .intro {
  font-size: 1.125rem;
  line-height: 1.65;
}

.post section {
  counter-increment: part;
  margin-top: var(--sp-7);
}

.post h2 {
  margin-bottom: var(--sp-4);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.3;
}

.post h2::before {
  content: counter(part, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--f-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-ruby-ink);
}

.post h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.post strong {
  font-weight: 700;
  color: #fff;
}

/* Списки */
.post ul,
.post ol {
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

.post li {
  position: relative;
  margin: 0 0 var(--sp-2);
  padding-left: 28px;
}

.post ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-ruby);
}

.post ol {
  counter-reset: step;
}

.post ol li {
  counter-increment: step;
  padding-left: 40px;
}

.post ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--c-ruby-ink);
  border-radius: var(--r-1);
  color: var(--c-ruby-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

/* Таблицы */
.grid-scroll {
  margin: 0 0 var(--sp-5);
  overflow-x: auto;
  border: 1px solid var(--c-rule-strong);
  border-radius: var(--r-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  background: var(--c-raised);
  border-bottom: 1px solid var(--c-rule-strong);
  white-space: nowrap;
}

tbody th,
tbody td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--c-rule);
  min-width: 8.5rem;
}

tbody th {
  font-weight: 600;
}

tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 0;
}

/* Мини-кейс */
.post .story {
  margin: var(--sp-5) 0;
  padding: var(--sp-5);
  border-left: 3px solid var(--c-ruby);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  background: var(--c-raised);
}

.post .story::before {
  content: "Личный опыт";
  display: block;
  margin-bottom: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ruby-ink);
}

.post .story p {
  margin: 0;
}

/* Реф-ссылка отдельной строкой */
.post .xline {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: var(--sp-5) 0;
}

.xline .xlink {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 1.5px solid var(--c-ruby);
  border-radius: var(--r-2);
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-base) ease;
}

.xline .xlink:hover {
  background: var(--c-ruby-wash);
  color: var(--c-ink);
}

/* FAQ */
.qa h3 {
  margin: 0;
  padding: var(--sp-4) 0 var(--sp-1);
  border-top: 1px solid var(--c-rule);
}

.qa h2 + h3 {
  border-top: 0;
  padding-top: 0;
}

.qa p {
  color: var(--c-ink-soft);
}

/* ---------- Подвал ---------- */
.bottom {
  border-top: 1px solid var(--c-rule);
  background: var(--c-raised);
  color: var(--c-ink-soft);
  font-size: 0.9375rem;
}

.bottom__cols {
  display: grid;
  gap: var(--sp-6);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
}

.bottom .bottom__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-ink);
}

.age {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--c-ruby-ink);
  border-radius: var(--r-1);
  font-family: var(--f-text);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-ruby-ink);
}

.bottom .bottom__label {
  margin: 0 0 var(--sp-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.bottom p {
  margin: 0;
}

.bottom p + p,
.bottom p + ul {
  margin-top: var(--sp-2);
}

.bottom .bottom__label + p,
.bottom .bottom__label + ul {
  margin-top: 0;
}

.bottom__about p:not(.bottom__brand) {
  max-width: 30rem;
}

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

.bottom__menu ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-5);
}

.bottom li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--c-ink);
  text-decoration: none;
}

.bottom li a:hover,
.bottom li a[aria-current="page"] {
  color: var(--c-ruby-ink);
}

.bottom__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--c-rule);
  font-size: 0.8125rem;
}

.bottom .bottom__legal p + p {
  margin-top: 0;
}

/* ---------- 404 ---------- */
.lost {
  padding: var(--sp-8) 0;
  text-align: center;
}

.lost__code {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  line-height: 1;
  color: var(--c-ruby);
}

.lost h1 {
  margin: var(--sp-3) 0 var(--sp-4);
  font-size: 1.75rem;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 1.5px solid var(--c-ruby);
  border-radius: var(--r-2);
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-base) ease;
}

.outline-btn:hover {
  color: var(--c-ink);
  background: var(--c-ruby-wash);
}

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
  .wrap {
    padding-left: var(--sp-5);
    padding-right: var(--sp-5);
  }

  .promo__box {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-6);
  }

  .promo__action {
    min-width: 240px;
  }

  .bottom__cols {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--sp-7);
  }

  .bottom__menu ul {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 1.0625rem;
  }

  .topbar__row {
    flex-wrap: nowrap;
    padding-top: 0;
    min-height: 76px;
  }

  .menu {
    width: auto;
    margin: 0;
    overflow: visible;
  }

  .menu ul {
    padding: 0;
  }

  .promo {
    padding-top: var(--sp-6);
  }

  .promo__head {
    font-size: 1.625rem;
  }

  .post {
    padding-top: var(--sp-8);
  }

  .post .intro {
    font-size: 1.1875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
