
/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0b0b0b;
  --bg-soft:       #101010;
  --surface:       #17150f;
  --line:          #2b2724;
  --line-soft:     #1e1c19;

  --text:          #eceae5;
  --text-muted:    #a7a29a;
  --text-dim:      #8a857e;

  --accent:        #f5a623;
  --accent-strong: #ffb63c;
  --cream:         #fbe3b3;
  --ink:           #1b1204;

  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Open Sans", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --radius: 10px;
}

/* --------------------------------------------------------------------------
   2. RESET / БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { font-size: 15px; }
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background-color: var(--accent);
  color: var(--ink);
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* --------------------------------------------------------------------------
   4. ХЕДЕР
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(11, 11, 11, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 1024px) {
  .header { border-bottom: 1px solid var(--line-soft); }
}

.header__bar {
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 1024px) {
  .header__bar { border-bottom: none; }
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
@media (min-width: 1024px) {
  .header__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 48px;
    min-height: 64px;
  }
}

.header__tagline {
  padding: 6px var(--gutter) 8px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .02em;
  text-align: center;
}
@media (min-width: 1024px) {
  .header__tagline {
    padding: 0 32px 8px;
    font-size: 12px;
  }
}

/* --- логотип --- */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .logo { gap: 10px; }
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 1024px) {
  .logo__mark {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

.logo__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
@media (min-width: 1024px) {
  .logo__name { font-size: 16px; }
}

/* --- бургер --- */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .burger { display: none; }
}

.burger__line {
  display: block;
  height: 2px;
  background-color: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}

.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- навігація --- */
.nav {
  display: none;
  flex-basis: 100%;
}
@media (min-width: 1024px) {
  .nav {
    display: block;
    flex-basis: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

.nav.is-open {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
}
@media (min-width: 1024px) {
  .nav__list {
    flex-direction: row;
    gap: 34px;
    padding-bottom: 0;
  }
}

.nav__link {
  display: block;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color .2s ease;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--accent); }
@media (min-width: 1024px) {
  .nav__link {
    padding: 4px 0;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   5. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
@media (min-width: 1024px) {
  .btn {
    min-height: 48px;
    padding: 14px 34px;
    font-size: 12px;
  }
}

.btn--solid {
  background-color: var(--accent);
  color: var(--ink);
}
.btn--solid:hover,
.btn--solid:focus-visible { background-color: var(--accent-strong); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. ГЕРОЙ
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 64px 0 56px;
  overflow: hidden;
  background-color: #141210;
}
@media (min-width: 1024px) {
  .hero {
    min-height: 620px;
    padding: 120px 0 110px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
@media (min-width: 1024px) {
  .hero__media { inset: 0; }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .5;
}
@media (min-width: 1024px) {
  .hero__img { object-position: center 30%; }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000A6;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__inner { gap: 24px; }
}

.hero__title {
  max-width: 15ch;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}
@media (min-width: 1024px) {
  .hero__title {
    max-width: 25ch;
    font-size: 52px;
  }
}

.hero__text {
  max-width: 60ch;
  color: #ded9d2;
  font-size: 14px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .hero__text { font-size: 15px; }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}
@media (min-width: 1024px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
    gap: 16px;
    margin-top: 14px;
  }
}

/* --------------------------------------------------------------------------
   7. СЕКЦІЯ (спільні елементи)
   -------------------------------------------------------------------------- */
.section {
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .section { padding: 90px 0; }
}

.section__head {
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .section__head { margin-bottom: 34px; }
}

.section__title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}
@media (min-width: 1024px) {
  .section__title {
    padding-bottom: 14px;
    font-size: 34px;
  }
}

.section__subtitle {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
}
@media (min-width: 1024px) {
  .section__subtitle {
    padding: 12px 0 14px;
    font-size: 17px;
  }
}

.section__lead {
  max-width: 90ch;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
@media (min-width: 1024px) {
  .section__lead {
    margin-bottom: 40px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   8. КАРТКИ (About This Portal)
   -------------------------------------------------------------------------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) {
  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (min-width: 1024px) {
  .cards {
    flex-wrap: nowrap;
    gap: 16px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .card {
    flex: 1 1 calc(50% - 7px);
  }
}
@media (min-width: 1024px) {
  .card {
    flex: 1 1 25%;
    padding: 22px 20px 24px;
  }
}

.card--accent {
  background-color: var(--accent);
  color: var(--ink);
}

.card--cream {
  background-color: var(--cream);
  color: var(--ink);
}

.card__title {
  font-size: 15px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .card__title { font-size: 16px; }
}

.card__text {
  font-size: 12px;
  line-height: 1.65;
  opacity: .88;
}
@media (min-width: 1024px) {
  .card__text { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   9. COVERAGE — картки ігор
   -------------------------------------------------------------------------- */
.games {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 640px) {
  .games {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 26px;
  }
}
@media (min-width: 1024px) {
  .games { gap: 34px 26px; }
}

.game {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 640px) {
  .game { flex: 1 1 calc(50% - 13px); }
}
@media (min-width: 1024px) {
  .game { flex: 1 1 calc(50% - 13px); }
}

.game__media {
  margin: 0 0 4px;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #1a1815; /* заглушка, поки фото не додане */
  aspect-ratio: 16 / 10;
}
@media (min-width: 1024px) {
  .game__media { aspect-ratio: 16 / 9; }
}

.game__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.game:hover .game__img { transform: scale(1.03); }

.game__title {
  font-size: 17px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .game__title { font-size: 19px; }
}

.game__text {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .game__text { font-size: 13px; }
}

.game__meta {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .game__meta { font-size: 12.5px; }
}

.game__meta-label {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. WHAT WE TRACK — список з бічною лінією
   -------------------------------------------------------------------------- */
.tracks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 1024px) {
  .tracks { gap: 16px; }
}

.track {
  padding: 16px 16px 18px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--bg-soft);
}
@media (min-width: 1024px) {
  .track {
    padding: 20px 26px 22px;
    border-left-width: 3px;
  }
}

.track__title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .track__title { font-size: 16px; }
}

.track__text {
  max-width: 105ch;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .track__text { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   11. UNDERSTANDING THE NUMBERS — колонки
   -------------------------------------------------------------------------- */
.notes {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 640px) {
  .notes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 26px;
  }
}
@media (min-width: 1024px) {
  .notes { gap: 34px 40px; }
}

.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .note { flex: 1 1 calc(50% - 13px); }
}
@media (min-width: 1024px) {
  .note { flex: 0 1 calc(33.333% - 27px); }
}

.note__title {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .note__title { font-size: 15px; }
}

.note__text {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .note__text { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   12. THE ARCHIVE
   -------------------------------------------------------------------------- */
.archive {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .archive {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .archive { gap: 18px; }
}

.archive__item {
  padding: 16px 16px 18px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--bg-soft);
}
@media (min-width: 640px) {
  .archive__item { flex: 1 1 calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .archive__item {
    flex: 1 1 calc(50% - 9px);
    padding: 20px 26px 22px;
    border-left-width: 3px;
  }
}

.archive__item--wide {
  flex-basis: 100%;
}
@media (min-width: 1024px) {
  .archive__item--wide { flex-basis: 100%; }
}

.archive__title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .archive__title { font-size: 16px; }
}

.archive__text {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .archive__text { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   13. OUR READERS
   -------------------------------------------------------------------------- */
.readers {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) {
  .readers {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .readers { gap: 18px; }
}

.reader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .reader { flex: 1 1 calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .reader {
    flex: 1 1 calc(50% - 9px);
    padding: 22px 24px 24px;
  }
}

.reader--wide {
  flex-basis: 100%;
}
@media (min-width: 1024px) {
  .reader--wide { flex: 1 1 calc(55% - 9px); }
}

.reader--full {
  flex-basis: 100%;
}
@media (min-width: 1024px) {
  .reader--full { flex: 1 1 100%; }
}

.reader__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .reader__title { font-size: 16px; }
}

.reader__text {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  opacity: .88;
}
@media (min-width: 1024px) {
  .reader__text { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   14. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line-soft);
  background-color: var(--bg);
}
@media (min-width: 1024px) {
  .footer { padding: 60px 0 46px; }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 1024px) {
  .footer__inner { gap: 14px; }
}

.footer__logo {
  margin-bottom: 2px;
}
@media (min-width: 1024px) {
  .footer__logo { margin-bottom: 4px; }
}

.footer__tagline {
  color: var(--accent);
  font-size: 14px;
  font-style: italic;
}
@media (min-width: 1024px) {
  .footer__tagline { font-size: 17px; }
}

.footer__copy {
  color: var(--text-dim);
  font-size: 12px;
}
@media (min-width: 1024px) {
  .footer__copy { font-size: 12.5px; }
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
@media (min-width: 1024px) {
  .footer__list { gap: 32px; }
}

.footer__link {
  color: var(--text-muted);
  font-size: 12px;
  transition: color .2s ease;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--accent); }
@media (min-width: 1024px) {
  .footer__link { font-size: 12.5px; }
}

.footer__mail {
  font-size: 12px;
}
@media (min-width: 1024px) {
  .footer__mail { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   15. СТОРІНКИ PRIVACY / TERMS
   -------------------------------------------------------------------------- */
.page {
  padding: 40px 0 56px;
  min-height: 50vh;
}
@media (min-width: 1024px) {
  .page { padding: 70px 0 100px; }
}

.page__title {
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .page__title {
    padding-bottom: 14px;
    margin-bottom: 34px;
    font-size: 34px;
  }
}

.page__content {
  /* max-width: 80ch; */
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}
@media (min-width: 1024px) {
  .page__content { font-size: 14px; }
}

/* типографіка всередині текстового блоку сторінок */
.page__content h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 18px;
}
@media (min-width: 1024px) {
  .page__content h2 {
    margin: 40px 0 12px;
    font-size: 21px;
  }
}

.page__content h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 15px;
}
@media (min-width: 1024px) {
  .page__content h3 {
    margin: 26px 0 10px;
    font-size: 16px;
  }
}

.page__content p {
  margin-bottom: 14px;
}
@media (min-width: 1024px) {
  .page__content p { margin-bottom: 16px; }
}

.page__content ul,
.page__content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}
@media (min-width: 1024px) {
  .page__content ul,
  .page__content ol { margin-bottom: 20px; }
}

.page__content li {
  margin-bottom: 6px;
}

.page__content a {
  color: var(--accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. АНІМАЦІЯ ПОЯВИ (додає JS)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
