/* ==========================================================================
   ggbetdk.com - каркас сайта
   Палитра снята с живого CSS референса gg-betdk.com:
   #262626 / #1C1C1C (поверхности), #F1F1F1 (текст), #FF6633 (CTA), #FFCC00 (акцент),
   #8A92AB (приглушённый текст).
   Раскладка, сетка и компоненты - свои: "купонная" эстетика букмекера
   (моноширинные метки, нумерованные секции, пунктирные линии отрыва).
   Префикс всех классов: gb-
   Шрифты - системный стек, внешних CDN на сайте нет.
   ========================================================================== */

/* ---------- Токены ---------- */

:root {
  /* Поверхности */
  --gb-bg: #1A1A1A;
  --gb-surface: #262626;
  --gb-surface-2: #2F2F2F;
  --gb-surface-3: #1C1C1C;

  /* Акценты */
  --gb-accent: #FF6633;
  --gb-accent-hi: #FF8258;
  --gb-accent-lo: #E04E1E;
  --gb-gold: #FFCC00;
  --gb-gold-lo: #D9AE00;
  --gb-green: #3FB96B;

  /* Текст */
  --gb-text: #F1F1F1;
  --gb-text-soft: #C9C9C9;
  --gb-muted: #8A92AB;
  --gb-on-accent: #FFFFFF;
  --gb-on-gold: #1A1A1A;

  /* Линии и тени */
  --gb-border: rgba(255, 255, 255, .09);
  --gb-border-strong: rgba(255, 255, 255, .17);
  --gb-shadow: 0 16px 38px rgba(0, 0, 0, .5);
  --gb-shadow-sm: 0 4px 14px rgba(0, 0, 0, .38);

  /* Типографика */
  --gb-font-body: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gb-font-heading: "Segoe UI Semibold", "Segoe UI", Roboto, system-ui, Arial, sans-serif;
  --gb-font-mono: Consolas, "SF Mono", "Roboto Mono", ui-monospace, "Courier New", monospace;

  /* Геометрия */
  --gb-radius: 4px;
  --gb-radius-lg: 10px;
  --gb-header-h: 62px;
  --gb-maxw: 1180px;
  --gb-gutter: 16px;
}

/* ---------- Ресет ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--gb-header-h) + 14px); }

html, body { margin: 0; padding: 0; }

body {
  background: var(--gb-bg);
  color: var(--gb-text);
  font-family: var(--gb-font-body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--gb-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ---------- Контейнер ---------- */

.gb-wrap {
  width: 100%;
  max-width: var(--gb-maxw);
  margin: 0 auto;
  padding-left: var(--gb-gutter);
  padding-right: var(--gb-gutter);
}

/* ---------- Шапка ---------- */

.gb-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gb-surface-3);
  border-bottom: 1px solid var(--gb-border);
  box-shadow: var(--gb-shadow-sm);
}

.gb-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--gb-header-h);
}

.gb-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--gb-font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 0;
}

.gb-logo__mark { color: var(--gb-accent); }
.gb-logo__text { color: var(--gb-text); }
.gb-logo__geo {
  font-family: var(--gb-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--gb-gold);
  border: 1px solid var(--gb-gold-lo);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 5px;
  align-self: center;
}

.gb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 2;
}

/* ---------- Навигация + бургер (CSS-only) ---------- */

/* До десктопа бургер стоит крайним справа: иначе выпадающий список,
   выровненный по правому краю .gb-nav, уезжает за левый край экрана. */
.gb-nav { position: relative; order: 3; margin-left: 6px; }

.gb-nav__checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.gb-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  cursor: pointer;
  border: 1px solid var(--gb-border-strong);
  border-radius: var(--gb-radius);
  background: var(--gb-surface);
}

.gb-nav__toggle-bar {
  display: block;
  height: 2px;
  background: var(--gb-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.gb-nav__checkbox:checked ~ .gb-nav__toggle .gb-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gb-nav__checkbox:checked ~ .gb-nav__toggle .gb-nav__toggle-bar:nth-child(2) { opacity: 0; }
.gb-nav__checkbox:checked ~ .gb-nav__toggle .gb-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.gb-nav__checkbox:focus-visible ~ .gb-nav__toggle { outline: 3px solid var(--gb-gold); outline-offset: 2px; }

.gb-nav__list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(78vw, 268px);
  list-style: none;
  background: var(--gb-surface);
  border: 1px solid var(--gb-border-strong);
  border-radius: var(--gb-radius-lg);
  box-shadow: var(--gb-shadow);
  padding: 6px;
  max-height: calc(100vh - var(--gb-header-h) - 24px);
  overflow-y: auto;
}

.gb-nav__checkbox:checked ~ .gb-nav__list { display: block; }

.gb-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--gb-radius);
  font-size: 15px;
  color: var(--gb-text-soft);
  transition: background .15s ease, color .15s ease;
}

.gb-nav__link:hover { background: var(--gb-surface-2); color: var(--gb-text); }

.gb-nav__link--active {
  color: var(--gb-gold);
  background: rgba(255, 204, 0, .08);
  font-weight: 600;
}

/* ---------- CTA ---------- */

.gb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--gb-radius);
  font-family: var(--gb-font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}

.gb-cta:hover { transform: translateY(-1px); }
.gb-cta:active { transform: translateY(0); }

.gb-cta--primary { background: var(--gb-accent); color: var(--gb-on-accent); }
.gb-cta--primary:hover { background: var(--gb-accent-hi); }

.gb-cta--secondary {
  background: transparent;
  color: var(--gb-text);
  border-color: var(--gb-border-strong);
}
.gb-cta--secondary:hover { border-color: var(--gb-gold); color: var(--gb-gold); }

.gb-cta--gold { background: var(--gb-gold); color: var(--gb-on-gold); }
.gb-cta--gold:hover { background: #FFD633; }

.gb-cta__sub {
  display: block;
  font-family: var(--gb-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  opacity: .85;
}

.gb-cta--stacked { flex-direction: column; gap: 1px; line-height: 1.25; padding: 8px 18px; }

/* в шапке кнопки компактнее */
.gb-header-actions .gb-cta { padding: 8px 13px; font-size: 14px; min-height: 40px; }
.gb-header-actions .gb-cta--secondary { display: none; }

/* ---------- Крошки ---------- */

.gb-breadcrumbs {
  background: var(--gb-surface-3);
  border-bottom: 1px solid var(--gb-border);
  font-size: 13px;
}

.gb-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 9px 0;
  color: var(--gb-muted);
}

.gb-breadcrumbs__item::after {
  content: "/";
  margin-left: 6px;
  color: var(--gb-border-strong);
}

.gb-breadcrumbs__item:last-child::after { content: none; }
.gb-breadcrumbs__link:hover { color: var(--gb-gold); text-decoration: underline; }
.gb-breadcrumbs__item[aria-current="page"] { color: var(--gb-text-soft); }

/* ---------- Футер ---------- */

.gb-site-footer {
  margin-top: 54px;
  background: var(--gb-surface-3);
  border-top: 3px solid var(--gb-accent);
  font-size: 15px;
}

.gb-footer-inner { padding-block: 34px 22px; }

.gb-footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.gb-footer-col__title {
  font-family: var(--gb-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gb-gold);
  margin: 0 0 12px;
}

.gb-footer-nav__list { list-style: none; display: grid; gap: 9px; }
.gb-footer-nav__link { color: var(--gb-text-soft); }
.gb-footer-nav__link:hover { color: var(--gb-gold); text-decoration: underline; }

.gb-footer-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gb-footer-ctas .gb-cta { flex: 1 1 190px; }

.gb-footer-note { color: var(--gb-muted); font-size: 14px; margin: 0; }

.gb-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--gb-border-strong);
  display: grid;
  gap: 12px;
  color: var(--gb-muted);
  font-size: 13.5px;
}

.gb-footer-bottom p { margin: 0; }

.gb-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 2px solid var(--gb-accent);
  border-radius: 50%;
  color: var(--gb-accent);
  font-family: var(--gb-font-mono);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.gb-footer-warning { display: flex; align-items: center; gap: 12px; }
.gb-footer-copy { font-style: normal; }

/* ---------- Десктоп ---------- */

@media (min-width: 720px) {
  :root { --gb-gutter: 24px; --gb-header-h: 70px; }
  .gb-logo { font-size: 24px; }
  .gb-header-actions .gb-cta--secondary { display: inline-flex; }
  .gb-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .gb-footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1024px) {
  .gb-footer-grid { grid-template-columns: 1.1fr 1fr 1.25fr 1fr; }
  .gb-nav__toggle { display: none; }
  .gb-nav__list {
    display: flex;
    position: static;
    width: auto;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 2px;
    max-height: none;
    overflow: visible;
  }
  .gb-nav__link { padding: 8px 11px; font-size: 14.5px; }
  .gb-nav__link--active { background: none; border-bottom: 2px solid var(--gb-gold); border-radius: 0; }
  .gb-header-inner { gap: 18px; }
  /* на десктопе меню возвращается между логотипом и кнопками */
  .gb-nav { order: 2; margin-left: auto; }
  .gb-header-actions { order: 3; margin-left: 0; }
}
