/* ============================================================================
   semantic.css — чистая вёрстка главной страницы Brickworks Games.
   Семантический HTML + flex/grid, без абсолютного позиционирования.
   ========================================================================== */

/* --- Токены ---------------------------------------------------------------- */
:root {
  --bg: #131416;
  --bg-card: #1f2022;
  --accent: #ff7936;
  --text: #ffffff;
  --muted: #b1b1b1;
  --border: rgba(255, 255, 255, 0.1);
  --container: 1188px;
  --radius: 16px;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* --- Кнопки ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* --- Шапка ----------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Выше затемнения (.nav-backdrop, z100): иначе backdrop накрыл бы выезжающее
     меню — оно живёт внутри .site-header, поэтому шапка должна быть над фоном. */
  z-index: 101;
  background: transparent;
  /* Шапка/меню — это навигация, а не контент: не выделяется и не подсвечивается при кликах */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px;
}

.site-header__logo img {
  width: 80px;
  height: 80px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a,
.nav__item--has-children > button {
  font-size: 24px;
  font-weight: 500;
}

.nav__item {
  position: relative;
}

.nav__item--has-children > button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  /* Стрелка занимает 24px-слот как в оригинале (.bw-menu__arrow): 9 + каретка 6 + 9 */
  padding: 0 9px 0 0;
}

.nav__item--has-children > button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding: 12px;
  background: #1b1c1f;
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children.open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav__dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Бургер-тогглер: круг 40px с белой обводкой, иконка-гамбургер ⇄ крестик (SVG как в оригинале) */
.burger {
  display: none;
  position: relative;
  z-index: 102;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--text);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.burger svg {
  width: 24px;
  height: 24px;
}

/* По умолчанию виден только гамбургер; при .open — только крестик.
   Селекторы с .burger держат специфичность выше, чем у `.burger svg`. */
.burger .burger__bars {
  display: block;
}
.burger .burger__close {
  display: none;
}
.burger.open .burger__bars {
  display: none;
}
.burger.open .burger__close {
  display: block;
}

/* Затемнение под выезжающим меню */
.nav-backdrop {
  display: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Подсветка пунктов меню оранжевым: ховер и текущая страница (как в оригинале) */
.nav > a:hover,
.nav__item--has-children > button:hover,
.nav a[aria-current="page"],
.nav__dropdown a[aria-current="page"] {
  color: #ff7936;
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 794px;
  display: flex;
  align-items: flex-start;
  background: #000 url("../assets/1b12de84-0363-4043-abba-cec4c2313e5d.png?v=2") 50% 50% / cover no-repeat;
}

/* затемнение сверху — чтобы меню читалось поверх светлой картинки */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 185px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 20%, rgba(19, 20, 22, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 560px;
  padding: 370px 0 90px;
}

.hero h1 {
  margin: 0 0 31px;
  font-size: 96px;
  line-height: 98px;
  font-weight: 400;
  text-transform: uppercase;
}

.hero h1 b {
  font-weight: 700;
}

.hero p {
  margin: 0;
  max-width: 550px;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
}

/* --- Секция «Brickworks Games» --------------------------------------------- */
.intro {
  padding: 120px 0 96px;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Лейбл секции: +2px до текста, чтобы блок сел в вертикаль оригинала */
.intro__text .section-label {
  margin-bottom: 30px;
}

.intro__text p:not(.section-label) {
  margin: 0 0 24px;
  font-size: 40px;
  font-weight: 200;
  line-height: 48px;
  color: #fff;
}

/* Главный абзац: больший отступ до passion (как в оригинале) */
.intro__text p:not(.section-label):not(.muted) {
  margin-bottom: 50px;
}

.intro__text p.muted {
  max-width: 650px;
  margin-bottom: 38px;
  font-size: 24px;
  font-weight: 300;
  line-height: 34px;
  color: #fff;
}

.intro .btn {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 12px 42px;
}

.intro .btn:hover {
  border-color: var(--accent);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 208px;
  /* 26 + рамка 2px = инсет 28px, как у оригинала (там рамка не сдвигает контент) */
  padding: 26px;
  border: 2px solid #fff;
  border-radius: 12px;
}

.stat-card img {
  width: 48px;
  height: 48px;
}

.stat-card__value {
  margin-bottom: 2px;
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
}

.stat-card__label {
  color: #fff;
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
}

/* --- Секция «Games» -------------------------------------------------------- */
.games {
  padding: 0 0 96px;
}

.games .section-label {
  margin-bottom: 40px;
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);   /* серая подложка карточки #1f2022 */
  border-radius: 12px;
  overflow: hidden;             /* обложка клипуется по верхним углам карточки */
}

.game-card__cover {
  display: block;
  position: relative;
  aspect-ratio: 560 / 393;
}

.game-card__cover > img.art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover .game-card__cover > img.art {
  transform: scale(1.04);
}

/* Sublustrum: обложка-вырезка (лицо) показывается целиком, лого-надпись во всю ширину */
.game-card--sublustrum .game-card__cover {
  aspect-ratio: 560 / 341;
}

.game-card--sublustrum .game-card__cover > img.art {
  object-fit: contain;
}

.game-card__logo--wide {
  margin-top: 0;
  width: 100%;
}

.game-card__logo--wide img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

/* Лого, описание и бейджи — отдельной колонкой под обложкой, по центру */
.game-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding-bottom: 18px;     /* бейджи → низ подложки */
}

.game-card__logo {
  display: block;
  margin-top: 45px;       /* обложка → лого */
  line-height: 0;
}

.game-card__logo img {
  display: block;
  height: auto;          /* ширина — из атрибутов (SVG Cyberika без intrinsic-размеров) */
  max-width: 100%;
}

.game-card__body p {
  margin: 30px 0 0;       /* лого → описание */
  max-width: 456px;
  color: #fff;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 21px;       /* описание → бейджи */
}

.stores img {
  height: 44px;
  width: auto;
}

/* ============================================================================
   Страницы игр (grimsoul / cyberika): hero c лого+бейджами, about+картинка,
   видео (full-bleed YouTube), слайдер-галерея, work-with-us.
   ========================================================================== */
.game-hero {
  min-height: 794px;
  /* как в оригинале: фокус кадра смещён вправо, иначе при ресайзе картинка «уезжает» */
  background-position: 60% 50%;
}

.game-hero__content {
  padding: 184px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 794px;
}

.game-hero__logo {
  display: block;
  max-width: 564px;
  height: auto;
}

.hero .game-hero__sub {
  margin: 30px 0 0;
  max-width: 550px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
  color: #fff;
}

.game-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.game-hero__badges img {
  height: 44px;
  width: auto;
}

/* Sublustrum: ключевой кадр показываем целиком + кнопка-обводка Steam */
.game-hero--contain {
  background-size: contain;
}

/* --- About --- */
.game-about {
  padding: 120px 0 0;
}

.game-about__grid {
  display: grid;
  grid-template-columns: 1fr 373px;
  gap: 74px;
  align-items: start;
}

.game-about .section-label {
  margin-bottom: 30px;
}

.game-about__text p:not(.section-label) {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
  color: #fff;
}

.game-about__text p:last-child {
  margin-bottom: 0;
}

.game-about__media img {
  width: 373px;
  max-width: 100%;
  height: auto;
}

.game-about__cta {
  margin-top: 31px;
}

.game-about .btn {
  padding: 14px 38px;
  font-size: 24px;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 50px;
}

/* --- Video (full-bleed YouTube) --- */
.game-video {
  margin-top: 39px;
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 800;
  max-height: 800px;
  overflow: hidden;
  background: #000;
}

.game-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.game-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  cursor: pointer;
  transition: transform 0.2s;
}

.game-video__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.game-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Слайдер-галерея --- */
.game-slider {
  padding: 120px 0 0;
}

.game-slider__viewport {
  position: relative;
}

.game-slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 12px;
}

.game-slider__track::-webkit-scrollbar {
  display: none;
}

.game-slider__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1140 / 785;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 12px;
}

/* Кнопки как в оригинале: белый круг 64px по центру края слайдера
   (половина выступает наружу), оранжевый шеврон 40px, мягкая тень. */
.game-slider__nav {
  position: absolute;
  top: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  color: var(--accent);
  cursor: pointer;
  z-index: 2;
}

.game-slider__nav--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.game-slider__nav--next {
  right: 0;
  transform: translate(50%, -50%);
}

.game-slider__nav svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* На планшете кнопки уезжают внутрь слайдера, размер прежний */
@media (max-width: 1024px) {
  .game-slider__nav--prev {
    left: 30px;
    transform: translateY(-50%);
  }
  .game-slider__nav--next {
    right: 30px;
    transform: translateY(-50%);
  }
}

/* На телефоне кнопка мельче и чуть ниже центра */
@media (max-width: 666px) {
  .game-slider__nav {
    width: 40px;
    height: 40px;
    top: 55%;
  }
  .game-slider__nav--prev {
    left: 15px;
  }
  .game-slider__nav--next {
    right: 15px;
  }
  .game-slider__nav svg {
    width: 25px;
    height: 25px;
  }
}

/* --- Work with us --- */
.game-work {
  padding: 120px 0 0;
  text-align: center;
}

.game-work .section-label {
  display: block;
  margin-bottom: 30px;
}

.game-work .btn {
  padding: 14px 40px;
  font-size: 24px;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 50px;
}

@media (max-width: 1023px) {
  .game-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .game-about__cta {
    margin-top: 40px;
  }
}

/* Высота hero по брейкпоинтам оригинала: 794 (≥1200) → 648 (≤1199) → 530 (≤666).
   Управляет вертикальной обрезкой фоновой картинки. */
@media (max-width: 1199px) {
  .game-hero,
  .game-hero__content {
    min-height: 648px;
  }
}
@media (max-width: 666px) {
  .game-hero,
  .game-hero__content {
    min-height: 530px;
  }
}

@media (max-width: 767px) {
  .game-hero__content {
    padding: 120px 0 40px;
  }
  .game-hero__logo {
    max-width: 280px;
  }
  .hero .game-hero__sub {
    font-size: 18px;
    line-height: 24px;
  }
  .game-about {
    padding: 64px 0 0;
  }
  .game-about__text p:not(.section-label) {
    font-size: 18px;
    line-height: 24px;
  }
  .game-about .btn,
  .game-work .btn {
    font-size: 20px;
  }
  .game-slider {
    padding: 64px 0 0;
  }
  .game-work {
    padding: 64px 0 0;
  }
}

/* --- Career: hero + карточки-преимущества + вакансии (аккордеон) ----------- */
.hero--career {
  min-height: 663px;
  background-image: url("../assets/837acf14-aeaf-4b88-9ca8-281bfaed9f89.png?v=2");
}

.hero--career .hero__content {
  padding: 354px 0 0;
}

.benefits {
  padding: 102px 0 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.benefit-card {
  min-height: 330px;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 29px 40px;
}

.benefit-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 38px;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.benefit-card p {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 300;
  color: #fff;
}

.work-with-us {
  padding: 95px 0 0;
}

.work-with-us .section-label {
  margin-bottom: 70px;
}

.work-with-us__text {
  margin-left: 161px;
  max-width: 709px;
}

.work-with-us__text p {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
  color: #fff;
}

.work-with-us__text p:last-child {
  margin-bottom: 0;
}

.hiring {
  padding: 84px 0 0;
}

.hiring .section-label {
  margin-bottom: 66px;
}

.vacancy {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.vacancy > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
}

.vacancy > summary::-webkit-details-marker {
  display: none;
}

.vacancy > summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 18px no-repeat;
  transition: transform 0.2s;
}

.vacancy[open] > summary::after {
  transform: rotate(45deg);
}

.vacancy__body {
  padding: 8px 0 28px;
  max-width: 900px;
  color: #fff;
}

.vacancy__body p {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 300;
}

.vacancy__body strong {
  font-weight: 700;
}

.vacancy__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.vacancy__body li {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 300;
  margin-bottom: 6px;
}

/* Размеры вакансий 1:1 с оригиналом (bw-block-title--big / bw-block-subtitle--middle + career-оверрайды) */
@media (max-width: 1199px) {
  .vacancy > summary {
    font-size: 24px;
  }
  .vacancy__body p,
  .vacancy__body li {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .vacancy > summary {
    font-size: 32px;
  }
  .vacancy__body p,
  .vacancy__body li {
    font-size: 24px;
  }
  .vacancy__body p {
    margin-bottom: 30px;
  }
}

@media (max-width: 666px) {
  .vacancy > summary {
    font-size: 24px;
  }
  .vacancy__body p,
  .vacancy__body li {
    font-size: 18px;
  }
}

.career-cta {
  padding: 96px 0 96px;
  text-align: center;
}

.career-cta .section-label {
  display: block;
  margin-bottom: 22px;
}

.career-cta__write {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 300;
  color: #fff;
}

.career-cta .btn {
  padding: 14px 40px;
  font-size: 24px;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 50px;
}

@media (max-width: 1023px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  .work-with-us__text {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .hero--career {
    min-height: 420px;
  }
  .hero--career .hero__content {
    padding: 0 0 28px;
  }
  .benefits {
    padding: 64px 0 0;
  }
  .benefit-card {
    padding: 28px;
  }
  .benefit-card h3 {
    font-size: 24px;
    line-height: 28px;
  }
  .benefit-card p {
    font-size: 18px;
    line-height: 24px;
  }
  .work-with-us {
    padding: 56px 0 0;
  }
  .work-with-us .section-label {
    margin-bottom: 28px;
  }
  .work-with-us__text p {
    font-size: 18px;
    line-height: 24px;
  }
  .hiring {
    padding: 56px 0 0;
  }
  .career-cta {
    padding: 64px 0;
  }
  .career-cta__write {
    font-size: 28px;
    line-height: 34px;
  }
}

/* --- About: hero + 2-колоночный текст + партнёры -------------------------- */
.hero--about {
  min-height: 646px;
  background-image: url("../assets/23cb279f-48bf-4811-999c-6d2e637ca763.png?v=2");
}

.hero--about .hero__content {
  padding: 354px 0 0;
}

.about-text {
  padding: 127px 0 0;
}

.about-text__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-text p {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
  color: #fff;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.partners {
  padding: 242px 0 56px;
  text-align: center;
}

.partners__title {
  margin: 0 0 19px;
  color: var(--accent);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
  align-items: center;
}

.partners__grid img {
  width: 100%;
  max-width: 257px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .about-text__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 767px) {
  .hero--about {
    min-height: 420px;
  }
  .hero--about .hero__content {
    padding: 0 0 28px;
  }
  .about-text {
    padding: 64px 0 0;
  }
  .about-text p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 24px;
  }
  .partners {
    padding: 64px 0;
  }
  .partners__title {
    font-size: 40px;
    margin-bottom: 36px;
  }
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* --- Support: hero + карточки игр с кнопкой -------------------------------- */
.hero--support {
  min-height: 663px;
  background-image: url("../assets/99c1f627-156e-4f6c-9b98-e54de557fbab.png");
}

.hero--support .hero__content {
  padding: 354px 0 0;
}

.support-games {
  padding: 120px 0 96px;
}

.support-games__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding-bottom: 45px;
}

.support-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 560 / 393;
  border-radius: 12px;
  overflow: hidden;
}

.support-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.support-card:hover .support-card__cover img {
  transform: scale(1.04);
}

.support-card__logo {
  display: block;
  margin-top: 45px;
  line-height: 0;
}

.support-card__logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

.support-card .btn {
  margin-top: 45px;
  padding: 14px 38px;
  font-size: 24px;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 50px;
}

.support-card .btn:hover {
  border-color: var(--accent);
}

@media (max-width: 767px) {
  .hero--support {
    min-height: 420px;
  }
  .hero--support .hero__content {
    padding: 0 0 28px;
  }
  .support-games {
    padding: 64px 0 56px;
  }
  .support-games__grid {
    grid-template-columns: 1fr;
  }
  .support-card {
    padding-bottom: 25px;
  }
  .support-card__logo {
    margin-top: 25px;
    max-width: 240px;
  }
  .support-card .btn {
    margin-top: 25px;
    font-size: 20px;
  }
}

/* --- Текстовые страницы (privacy / terms / support) ------------------------
   Оригинал: лейбл-заголовок (section-label) на y≈191 — оранжевый (#ff7936)
   24px/28px weight 600 uppercase letter-spacing 5px (как базовый section-label),
   текст 18px/24px white, заголовки разделов 18px/24px weight 600 оранжевые
   (без letter-spacing), термины — bold 700. Контейнер во всю ширину
   (x 150…1290). Всё разделено одной пустой строкой (≈24px) — равномерный
   margin-bottom.
   ГРАБЛИ: .legal p (color/font-size/font-weight) перебивает базовый
   .section-label, поэтому цвет/размер/жирность лейбла восстановлены здесь явно. */
.legal {
  padding: 191px 0 120px;
}

.legal .section-label {
  color: var(--accent);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 47px;
}

.legal h2 {
  margin: 24px 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.legal p {
  margin: 0 0 24px;
  max-width: none;
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal__date {
  color: var(--muted);
}

.legal strong {
  font-weight: 700;
}

.legal__accent {
  color: var(--accent);
}

.legal a {
  color: var(--accent);
  word-break: break-word;
}

@media (max-width: 767px) {
  .legal {
    padding: 120px 0 64px;
  }
  .legal .section-label {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 32px;
  }
  .legal h2,
  .legal p {
    font-size: 16px;
    line-height: 22px;
  }
}

/* --- Футер ----------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 30px;
}

.site-footer__top {
  display: grid;
  /* ширины колонок воспроизводят оригинал: Brand 259 / Nav 151 / Contact 436 / Follow 174 (gap 40) */
  grid-template-columns: 259fr 151fr 436fr 174fr;
  gap: 40px;
}

.site-footer__brand img {
  width: 80px;
  margin-bottom: 20px;
}

.site-footer__brand address {
  font-style: normal;
  color: #fff;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
}

.footer-col h3 {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  line-height: 20px;
}

.footer-col a {
  color: #fff;
  font-weight: 300;
  font-size: 18px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials a img {
  width: 25px;
  height: 25px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.socials a:hover img {
  opacity: 1;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  padding-top: 31px;
  border-top: 1px solid var(--border);   /* разделитель над копирайтом — есть в оригинале (rgba 255,255,255,.1) */
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}

.site-footer__bottom nav {
  display: flex;
  gap: 28px;
}

/* --- Cookie-баннер --------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: var(--container);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: #1b1c1f;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cookie[hidden] {
  display: none;
}

.cookie__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie__text strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cookie__text a {
  color: var(--accent);
}

.cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie__actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Адаптив ----------------------------------------------------------------
   Оригинал (конструктор) рескейлит типографику тремя тирами:
   ≥1200 — десктоп (96px); 667–1199 — планшет (h1 80px); ≤666 — мобайл (h1 48px).
   Воспроизводим те же тиры (числа сняты с оригинала на 900px и 512px).
   ----------------------------------------------------------------------------- */

/* --- Планшет (≤1023): меняется только герой ----------------------------- */
@media (max-width: 1023px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: 80px;
    line-height: 80px;
  }
  .hero p {
    font-size: 24px;
    line-height: 27.6px;
  }
}

/* --- Бургер-меню и компактная шапка ---------------------------------------
   Оригинал сворачивается в бургер на тире xl (≤1199px, класс vertical-max-xl),
   а не на ≤767px. Логотип на всех тирах ≤1199 — 44px (80px только ≥1200). */
@media (max-width: 1199px) {
  /* Меню выезжает справа панелью 280px на всю высоту (как в оригинале) */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 76px 32px 32px;
    background: var(--bg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 101;
  }
  .nav.open {
    transform: translateX(0);
  }

  /* Ссылки меню крупные, выпадающий список Games свёрнут до клика */
  .nav a,
  .nav__item--has-children > button {
    font-size: 24px;
    line-height: 28px;
  }
  .nav__item--has-children {
    width: 100%;
  }
  .nav__dropdown {
    position: static;
    transform: none;
    visibility: visible;
    opacity: 1;
    display: none;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    min-width: 0;
    padding: 16px 0 0 16px;
    gap: 16px;
  }
  .nav__item--has-children.open .nav__dropdown {
    display: flex;
    /* перебиваем десктопное правило .open (translateX(-50%)), иначе список Games уезжает влево */
    left: auto;
    transform: none;
  }
  .nav__dropdown a {
    padding: 0;
    font-size: 16px;
  }

  .burger {
    display: flex;
  }

  /* Затемнение страницы под открытым меню */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    height: 100vh;
    background: rgba(10, 8, 58, 0.5);
    z-index: 100;
  }
  .nav-backdrop.open {
    display: block;
  }

  /* Шапка: лого 44px, компактная высота */
  .site-header__inner {
    height: 72px;
  }
  .site-header__logo img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  /* --- Мобильная типографика (тир ≤666 оригинала) ----------------------- */
  .section-label {
    font-size: 18px;
    line-height: 22px;
  }

  /* Hero: текст прижат к низу (h1 ≈292 от верха), 2-строчный заголовок как в оригинале */
  .hero {
    min-height: 503px;
    align-items: flex-end;
  }
  .hero__content {
    max-width: 330px;
    padding: 0 0 28px;
  }
  .hero h1 {
    margin-bottom: 18px;
    font-size: 48px;
    line-height: 48px;
  }
  .hero p {
    font-size: 20px;
    line-height: 23px;
  }

  .intro {
    padding: 64px 0 56px;
  }
  .intro__text p:not(.section-label) {
    font-size: 24px;
    line-height: 32px;
  }
  .intro__text p:not(.section-label):not(.muted) {
    margin-bottom: 28px;
  }
  .intro__text p.muted {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 22px;
  }
  .intro .btn {
    margin-top: 8px;
    padding: 8px 32px;
    font-size: 20px;
    line-height: 34px;
  }

  .stat-card {
    min-height: 0;
    padding: 22px;
  }
  .stat-card__value {
    font-size: 24px;
    line-height: 28px;
  }
  .stat-card__label {
    font-size: 18px;
    line-height: 20px;
  }

  .games {
    padding-bottom: 56px;
  }
  .games__grid {
    grid-template-columns: 1fr;
  }
  /* Внутренние отступы карточки на мобайле — равные 25px (как в оригинале) */
  .game-card__logo {
    margin-top: 25px;
  }
  .game-card__logo img {
    max-width: 240px;
  }
  .game-card__body p {
    margin-top: 25px;
    font-size: 14px;
    line-height: 18px;
  }
  .stores {
    margin-top: 25px;
  }
  .game-card__body {
    padding-bottom: 22px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .cookie {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
