/* High-Street Betting — best-rooffers.com */

@font-face {
  font-family: 'Archivo Narrow';
  src: url('/assets/fonts/archivo-narrow-latin.woff2?v=4e8b61d5') format('woff2');
  font-weight: 400 700;
  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: 'Archivo Narrow';
  src: url('/assets/fonts/archivo-narrow-latin-ext.woff2?v=316b07f8') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-latin.woff2?v=c501f578') 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: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-latin-ext.woff2?v=20672d21') 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+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: #f4f4f5;
  --surface: #ffffff;
  --chip: #eeeeef;
  --chip-low: #f3f3f4;
  --ink: #111827;
  --muted: #45464c;
  --accent: #e07a5f;
  --accent-dark: #c96548;
  --outline: #c6c6cd;
  --footer: #000000;
  --footer-muted: #a8a8ad;
  --alert: #ba1a1a;
  --m: 16px;
  --gutter: 12px;
  --stack-sm: 8px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --maxw: 1280px;
  --r-card: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', 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;
  font-family: 'Archivo Narrow', 'Hanken Grotesk', Arial Narrow, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 12px; line-height: 1.2; letter-spacing: 0.05em; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-weight: 700; }

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"], .br-nav a, .br-cta {
  -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;
}

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

.br-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Alert banner ---------- */
.br-alert {
  background: var(--alert);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
}
.br-alert p {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.br-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.br-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: 16px;
}
.br-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.br-iconbtn:hover { background: var(--chip-low); }
.br-iconbtn:active { transform: translate(2px, 2px); }
.br-iconbtn svg { width: 24px; height: 24px; }

.br-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}
.br-brand b {
  font-family: 'Archivo Narrow', Arial Narrow, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.br-brand span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.br-nav ul {
  display: flex;
  gap: var(--stack-md);
  margin: 0; padding: 0;
  list-style: none;
}
.br-nav a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.br-nav a:hover,
.br-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

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

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

/* Hero */
.br-hero { padding-block: 32px; }
.br-hero__inner { display: flex; flex-direction: column; gap: 16px; }
.br-chip {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.br-hero__lead { color: var(--muted); max-width: 58ch; }

/* Selection */
.br-select__title { padding-inline: 8px; }
.br-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.br-card {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.br-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}
.br-card__rank {
  width: 48px; height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: 'Archivo Narrow', Arial Narrow, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.br-card__emblem {
  width: 64px; height: 64px;
  flex: none;
  overflow: hidden;
  background: var(--chip);
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.br-card__emblem img { width: 100%; height: 100%; object-fit: cover; }
.br-card__score {
  padding: 4px 12px;
  background: var(--chip-low);
  border: 1px solid var(--outline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.br-card__text { color: var(--muted); font-size: 14px; flex: 1 1 auto; }

.br-cta {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: clip;
  transition: background-color .2s ease;
}
.br-cta:hover { background: var(--accent-dark); }
.br-cta:active { background: var(--accent-dark); }
.br-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.br-cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.br-cta--ghost:hover { background: var(--chip); }
.hidlink { position: absolute; z-index: -5; }

/* Partners & legal */
.br-legal { padding-top: 16px; }
.br-legal__inner {
  background: #e8e8e9;
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}
.br-legal__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0; padding: 0;
  list-style: none;
  opacity: .7;
}
.br-legal__badges li {
  font-family: 'Archivo Narrow', Arial Narrow, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.br-legal__badges a { text-decoration: none; }
.br-legal__badges a:hover { text-decoration: underline; }
.br-legal__blocks { display: flex; flex-direction: column; gap: 16px; }
.br-legal__blocks h3 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.br-legal__blocks p { font-size: 12px; color: var(--muted); }

/* ---------- Prose pages ---------- */
.br-page-head { padding-block: 32px 24px; }
.br-page-head p { color: var(--muted); margin-top: var(--gutter); max-width: 70ch; }
.br-prose { display: flex; flex-direction: column; gap: 10px; }
.br-prose section {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  padding: 24px;
}
.br-prose h2 { margin-bottom: var(--gutter); }
.br-prose p { color: var(--muted); margin-bottom: var(--gutter); }
.br-prose p:last-child { margin-bottom: 0; }
.br-prose ul { margin: 0 0 var(--gutter); padding: 0; list-style: none; color: var(--muted); }
.br-prose li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.br-prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 999px;
}

/* ---------- Contact page ---------- */
.br-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.br-contact__form,
.br-contact__side {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  padding: 24px;
}
.br-contact__side p { color: var(--muted); margin-bottom: var(--gutter); }
.br-contact__side p:last-child { margin-bottom: 0; }
.br-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--gutter); }
.br-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.br-field input,
.br-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.br-field textarea { resize: none; min-height: 140px; }
.br-field input:focus,
.br-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.br-field input[aria-invalid="true"],
.br-field textarea[aria-invalid="true"] { border-color: var(--alert); }
.br-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--stack-md); }
.br-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.br-consent label { font-size: 13px; color: var(--muted); }
.br-form .br-cta { margin-top: 0; }
.br-faq h3 { font-size: 16px; font-family: 'Archivo Narrow', Arial Narrow, sans-serif; letter-spacing: -0.01em; margin-top: var(--stack-md); margin-bottom: 6px; }
.br-faq h3:first-of-type { margin-top: 0; }
.br-faq p { color: var(--muted); margin-bottom: var(--gutter); }

/* ---------- Footer ---------- */
.br-footer {
  background: var(--footer);
  border-radius: var(--r-card) var(--r-card) 0 0;
  margin-top: auto;
  padding-block: var(--stack-lg);
}
.br-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-md);
  text-align: center;
}
.br-footer__logo {
  font-family: 'Archivo Narrow', Arial Narrow, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
.br-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0; padding: 0;
  list-style: none;
}
.br-footer__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--footer-muted);
  text-decoration: underline;
  transition: color .2s ease;
}
.br-footer__links a:hover,
.br-footer__links a[aria-current="page"] { color: #fff; }
.br-footer__copy { font-size: 12px; color: var(--footer-muted); letter-spacing: 0.04em; }

/* ---------- Cookie banner ---------- */
.br-cookie {
  position: fixed;
  left: 8px; right: 8px; bottom: 8px;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  padding: 16px;
}
.br-cookie__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}
.br-cookie p { font-size: 13px; color: var(--muted); }
.br-cookie__actions { display: flex; flex-wrap: wrap; gap: var(--stack-sm); }
.br-cookie .br-cta { width: auto; margin-top: 0; padding-inline: 24px; }

/* ---------- Age gate ---------- */
.br-age {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--m);
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(20px);
}
.br-age__box {
  width: 100%;
  max-width: 520px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  text-align: center;
}
.br-age__box h2 { margin-bottom: var(--gutter); }
.br-age__text { margin-bottom: var(--gutter); }
.br-age__help { color: var(--muted); font-size: 13px; margin-bottom: var(--stack-md); }
.br-age__help a { color: #8a3d24; }
.br-age__actions { display: flex; flex-wrap: wrap; gap: var(--gutter); justify-content: center; }
.br-age__actions .br-cta { width: auto; margin-top: 0; padding-inline: 28px; }
.br-age--locked { overflow: hidden; }

/* ---------- Toast ---------- */
.br-toast {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--m);
  background: rgba(17, 24, 39, .55);
}
.br-toast__box {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  text-align: center;
}
.br-toast__box h2 { margin-bottom: var(--stack-sm); }
.br-toast__box p { color: var(--muted); }

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

/* ---------- Breakpoints ---------- */
@media (min-width: 821px) {
  :root { --m: 40px; }
  .br-main { gap: var(--stack-md); }
  .br-hero { padding-block: 32px 24px; padding-inline: var(--m); }
  .br-hero__inner {
    justify-content: center;
    /* края блока совпадают с краями контента остальных секций */
    max-width: calc(var(--maxw) - 2 * var(--m));
    min-height: 420px;
    padding: 80px 48px;
    border: 1px solid var(--ink);
    border-radius: var(--r-card);
    /* осветляющая плёнка по всей картинке, слева почти глухая — текст читается везде */
    background-image:
      linear-gradient(108deg, rgba(244, 244, 245, .97) 0%, rgba(244, 244, 245, .94) 44%, rgba(244, 244, 245, .8) 68%, rgba(244, 244, 245, .48) 100%),
      url('/assets/img/hero/hero-abstract.avif?v=f53fc116');
    background-size: cover;
    background-position: center right;
  }
  .br-hero__lead { font-size: 18px; }
  .br-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .br-legal__inner { padding: 40px; }
  .br-legal__blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--stack-md);
  }
  .br-legal__blocks p { font-size: 14px; }
  .br-prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .br-prose section:first-child { grid-column: 1 / -1; }
  /* нечётный хвост растягиваем, чтобы в сетке не оставалось дыры */
  .br-prose section:last-child:nth-child(even) { grid-column: 1 / -1; }
  .br-contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
  .br-cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .br-cookie__actions { flex: none; }
  .br-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; gap: var(--stack-md); }
  .br-footer__links { justify-content: center; }
}

@media (min-width: 1220px) {
  .br-burger { display: none; }
  /* меню прижато к иконке-info справа, лого остаётся слева */
  .br-nav--desktop { margin-left: auto; }
  .br-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .br-brand { align-items: flex-start; text-align: left; }
  .br-brand b { font-size: 24px; }
  .br-hero { padding-block: 40px 32px; }
  .br-hero__inner { min-height: 520px; padding: 112px 64px; }
}

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

@media (max-width: 520px) {
  .br-card { padding: 16px; }
  .br-legal__inner { padding: 20px; }
}

@media (max-width: 430px) {
  .br-brand span { letter-spacing: 0.08em; font-size: 9px; }
  .br-age__actions .br-cta,
  .br-cookie .br-cta { width: 100%; padding-inline: 16px; }
}

@media (max-width: 360px) {
  .br-card__rank { width: 40px; height: 40px; font-size: 16px; }
  .br-card__emblem { width: 52px; height: 52px; }
}
