/* ===================================================================
   Базовый слой: сброс, типографика, контейнерная сетка
   =================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/* overflow-x: clip обрезает горизонтальное переполнение на уровне вьюпорта
   (в т.ч. position:fixed off-canvas панели) и, в отличие от hidden,
   не создаёт скролл-контейнер — поэтому sticky-шапка продолжает работать */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; -webkit-tap-highlight-color: transparent; }

/* Тонкий современный скроллбар вместо толстого нативного со стрелками */
* { scrollbar-width: thin; scrollbar-color: var(--text-faint) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-faint);
  border-radius: 999px;
  border: 2px solid transparent;          /* визуально делает «таблетку» тоньше */
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }  /* убираем стрелки ▲▼ */
::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Размер иконок по умолчанию (inline-SVG из icon()).
   Крупные/декоративные контейнеры переопределяют это правило. */
svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

ul[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

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

::selection { background: var(--brand-yellow); color: var(--on-yellow); }

/* --- Полноширинная раскладка: контент во всю ширину экрана, без серых бэндов --- */
.band { width: 100%; background: transparent; }
.band--elev, .band--hero { background: transparent; border: 0; }

.container {
  width: 100%;
  max-width: none;          /* на всю ширину */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(48px, 8vw, 96px); }
/* На главной секции компактнее — большие промежутки убраны */
[data-page="home"] .section { padding-block: clamp(28px, 3.2vw, 46px); }
/* меньше отступ между hero-баннером и первой секцией («Oyunlar») */
.band--hero + .band .section { padding-top: clamp(22px, 2.8vw, 38px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

/* Заголовок секции */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head .eyebrow { margin-bottom: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-yellow);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-yellow);
}
.eyebrow--ic::before { display: none; }
.eyebrow--ic .eyebrow__ic { display: inline-flex; }
.eyebrow--ic .eyebrow__ic svg { width: 18px; height: 18px; }
.eyebrow--ic .eyebrow__ic-img { width: 19px; height: 19px; object-fit: contain; }

.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Утилитарные сетки */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Видимость только для скринридеров */
.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;
}

/* Фон-«сетка» в духе гик-эстетики */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

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