/* High-Voltage Digital — best-onlinetr.com */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2?v=260c81a4') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  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: 'Inter';
  src: url('/assets/fonts/inter-latin-ext.woff2?v=1ad231aa') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #1a1a1a;
  --surface: #262626;
  --slot: #131313;
  --line: #ffffff;
  --accent: #d4ff00;
  --muted: #c4c7c7;
  --outline: #444748;
  --m: 20px;
  --gutter: 12px;
  --stack-sm: 8px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

/* полоса прокрутки зарезервирована всегда — иначе overflow:hidden у модалки сдвигал бы контент */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: #e4e2e1;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(24px, 3.4vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.2; }
h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.2; }

p { margin: 0; }
figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; overflow-wrap: break-word; word-break: break-word; }
[hidden] { display: none !important; }

button, [role="button"], .bo-nav a, .bo-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.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;
}

.bo-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--m);
}

.bo-frame { border: 2px solid var(--line); }

.bo-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.bo-header {
  border-bottom: 2px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 60;
}
.bo-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: 16px;
}
.bo-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--line);
  color: #fff;
  cursor: pointer;
}
.bo-burger svg { width: 22px; height: 22px; }
.bo-burger[aria-expanded="true"] { background: var(--accent); color: #000; border-color: var(--accent); }

.bo-logo {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.bo-header__spacer { width: 44px; }

.bo-nav ul {
  display: flex;
  gap: var(--stack-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bo-nav a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.bo-nav a:hover,
.bo-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.bo-nav--mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  padding: var(--stack-md) var(--m);
}
.bo-nav--mobile ul { flex-direction: column; gap: 0; }
.bo-nav--mobile a {
  padding-block: 14px;
  border-bottom: 1px solid var(--outline);
  font-size: 16px;
}
.bo-nav--mobile li:last-child a { border-bottom: 0; }

/* ---------- Main ---------- */
.bo-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
  padding-bottom: var(--stack-lg);
}

/* Hero */
.bo-hero {
  margin-top: var(--stack-md);
  padding-inline: var(--m);
}
.bo-hero__inner {
  max-width: calc(var(--maxw) - 2 * var(--m));
  margin-inline: auto;
  padding-bottom: var(--stack-md);
  border-bottom: 2px solid var(--line);
  background-image: url('/assets/img/hero-grid.avif?v=976b57dc');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.bo-hero__title { margin-bottom: var(--stack-sm); }
.bo-hero__lead {
  color: var(--muted);
  margin-bottom: var(--stack-md);
  font-size: 16px;
  max-width: 46ch;
}
.bo-chips { display: flex; flex-wrap: wrap; gap: var(--stack-sm); }
.bo-chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface);
  border: 2px solid var(--line);
  color: #fff;
}

/* Top selection */
.bo-top__head { margin-bottom: var(--stack-sm); }
.bo-top__head h2 {
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.bo-top__head p { color: var(--muted); }
.bo-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: var(--gutter);
}
.bo-card {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.bo-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gutter);
  margin-bottom: 8px;
}
.bo-card__emblem {
  width: 64px; height: 64px;
  flex: none;
  background: var(--slot);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bo-card__emblem img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bo-card__score {
  background: var(--slot);
  border: 2px solid var(--line);
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bo-card__score b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
}
.bo-card__score span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}
.bo-card__text { color: var(--muted); flex: 1 1 auto; }

.bo-btn {
  position: relative;
  display: block;
  width: 100%;
  margin-top: var(--gutter);
  padding: 12px 8px;
  background: var(--accent);
  color: #000;
  border: 2px solid #000;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: clip;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bo-btn:hover { background: #b8e000; }
.bo-btn:active { background: #000; color: var(--accent); border-color: var(--accent); }
.bo-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hidlink { position: absolute; z-index: -5; }

/* Partners */
.bo-partners {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 16px;
}
.bo-partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bo-partners__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
}
.bo-partners__list img {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  transition: filter .2s ease;
}
.bo-partners__list a:hover img,
.bo-partners__list a:focus-visible img { filter: none; }

/* Legal */
.bo-legal {
  background: var(--bg);
  border: 2px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.bo-legal strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
.bo-legal h3 {
  color: #fff;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 4px;
}

/* Legal pages */
.bo-page-head {
  margin-top: var(--stack-md);
  padding-bottom: var(--stack-md);
  border-bottom: 2px solid var(--line);
}
.bo-page-head p { color: var(--muted); margin-top: var(--stack-sm); }
.bo-prose { display: flex; flex-direction: column; gap: var(--stack-md); }
.bo-prose section {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 20px;
}
.bo-prose h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: var(--gutter);
}
.bo-prose p { color: var(--muted); margin-bottom: var(--gutter); }
.bo-prose p:last-child { margin-bottom: 0; }
.bo-prose ul {
  margin: 0 0 var(--gutter);
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.bo-prose li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.bo-prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
}

/* ---------- Footer ---------- */
.bo-footer {
  background: #1f2020;
  border-top: 2px solid var(--line);
  margin-top: auto;
  padding-block: var(--stack-lg);
}
.bo-footer__inner { display: flex; flex-direction: column; gap: var(--stack-md); }
.bo-footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0; padding: 0;
  list-style: none;
}
.bo-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.bo-footer__links a:hover { color: #fff; }
.bo-footer .bo-logo { white-space: nowrap; }
.bo-footer__copy {
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--outline);
  padding-top: 16px;
}

/* ---------- Cookie banner ---------- */
.bo-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 2px solid var(--line);
  padding: 16px var(--m);
}
.bo-cookie__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}
.bo-cookie p { font-size: 12px; color: var(--muted); }
.bo-cookie__actions { display: flex; flex-wrap: wrap; gap: var(--stack-sm); }
.bo-cookie .bo-btn { width: auto; margin-top: 0; padding-inline: 20px; }
.bo-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.bo-btn--ghost:hover { background: #fff; color: #000; }

/* ---------- Contact page ---------- */
.sa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); }
.sa-form-block,
.sa-side {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 20px;
}
.sa-form-block h2,
.sa-side h2,
.sa-faq-inner h2 {
  font-size: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: var(--gutter);
}
.sa-side p { color: var(--muted); margin-bottom: var(--gutter); }
.sa-side p:last-child { margin-bottom: 0; }
.sa-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gutter); }
.sa-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.sa-field input,
.sa-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--slot);
  border: 2px solid var(--line);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.sa-field textarea { resize: none; min-height: 140px; }
.sa-field input:focus,
.sa-field textarea:focus { outline: none; border-color: var(--accent); }
.sa-field input[aria-invalid="true"],
.sa-field textarea[aria-invalid="true"] { border-color: #ff6b5e; }
.sa-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--stack-md); }
.sa-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.sa-consent label { font-size: 13px; color: var(--muted); }
.sa-form .bo-btn { margin-top: 0; }
.sa-faq-inner h3 { font-size: 16px; letter-spacing: -0.01em; margin-top: var(--stack-md); margin-bottom: 6px; }
.sa-faq-inner h3:first-of-type { margin-top: 0; }
.sa-faq-inner p { color: var(--muted); margin-bottom: var(--gutter); }
.sa-faq-inner p:last-child { margin-bottom: 0; }

/* ---------- Toast ---------- */
.bo-toast {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--m);
  background: rgba(0, 0, 0, .75);
}
.bo-toast__box {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--surface);
  border: 2px solid var(--accent);
  text-align: center;
}
.bo-toast__box h2 { color: var(--accent); margin-bottom: var(--stack-sm); font-size: 20px; }
.bo-toast__box p { color: var(--muted); }

/* ---------- Age gate ---------- */
.bo-age {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--m);
  background: rgba(0, 0, 0, .82);
}
.bo-age__box {
  width: 100%;
  max-width: 520px;
  padding: 32px 24px;
  background: var(--surface);
  border: 2px solid var(--line);
  text-align: center;
}
.bo-age__title { color: var(--accent); margin-bottom: var(--gutter); }
.bo-age__text { color: #fff; font-size: 16px; margin-bottom: var(--gutter); }
.bo-age__help { color: var(--muted); font-size: 13px; margin-bottom: var(--stack-md); }
.bo-age__help a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.bo-age__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  justify-content: center;
}
.bo-age__actions .bo-btn { width: auto; margin-top: 0; padding-inline: 24px; }
.bo-age--locked { overflow: hidden; }

@media (max-width: 430px) {
  .bo-age__box { padding: 24px 16px; }
  .bo-age__actions .bo-btn { width: 100%; padding-inline: 12px; }
}

/* ---------- Redirect gate ---------- */
.bo-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--stack-md);
  text-align: center;
  padding: var(--m);
}
.bo-gate__spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--outline);
  border-top-color: var(--accent);
  animation: bo-spin 1s linear infinite;
}
@keyframes bo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bo-gate__spinner { animation: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 821px) {
  .bo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .bo-legal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
    padding: 24px;
    font-size: 14px;
  }
  .bo-legal h3,
  .bo-legal p:first-of-type { grid-column: 1 / -1; }
  .bo-hero__inner {
    padding-block: var(--stack-lg);
    padding-inline: 16px;
    /* скрим слева: заголовок читается поверх светлой сетки, воронка справа остаётся видна */
    background-image:
      linear-gradient(90deg, rgba(19, 19, 19, .93) 0%, rgba(19, 19, 19, .78) 34%, rgba(19, 19, 19, 0) 66%),
      url('/assets/img/hero/hero-grid-desktop.avif?v=cf117ba5');
    background-position: center;
  }
  .bo-hero__lead { font-size: 18px; }
  .bo-cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .bo-cookie__actions { flex: none; }
  .bo-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--stack-md) var(--stack-lg);
  }
  .bo-footer__links { flex-direction: row; flex-wrap: wrap; gap: var(--stack-md); justify-content: flex-end; }
  .bo-footer__copy { grid-column: 1 / -1; }
  .bo-prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .bo-prose section:first-child { grid-column: 1 / -1; }
  /* нечётный хвост растягиваем, чтобы в сетке не оставалось дыры */
  .bo-prose section:last-child:nth-child(even) { grid-column: 1 / -1; }
  .sa-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
  .sa-form-block, .sa-side, .bo-prose section { padding: 24px; }
}

@media (min-width: 1220px) {
  .bo-burger, .bo-header__spacer { display: none; }
  .bo-nav--mobile { display: none !important; }
  .bo-header__row { padding-block: 20px; }
  .bo-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bo-hero__inner { padding-block: 96px; }
  .bo-partners__list { gap: 32px; }
  .bo-partners__list img { height: 40px; }
}

@media (max-width: 1219px) {
  .bo-nav--desktop { display: none; }
}

@media (max-width: 520px) {
  .bo-partners__list { gap: 12px; }
  .bo-partners__list img { height: 28px; }
}

@media (max-width: 430px) {
  :root { --m: 16px; }
  .bo-logo { font-size: 20px; }
  .bo-card { padding: 12px; }
}

@media (max-width: 360px) {
  .bo-card__emblem { width: 56px; height: 56px; }
  .bo-card__score b { font-size: 20px; }
}
