/* ============ Стритрейсер: Легенда Улиц — стили ============ */

:root {
  --bg: #0b0d12;
  --bg-alt: #11141c;
  --surface: #181c27;
  --surface-2: #1f2433;
  --line: #2a3042;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --accent: #ff3b30;
  --accent-2: #ff7a1a;
  --neon: #2ee6a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --radius: 16px;
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow { width: min(860px, 100% - 48px); }

/* ============ Кнопки ============ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 59, 48, .35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 59, 48, .5);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover { border-color: var(--muted); transform: translateY(-2px); }

.btn--xl { padding: 20px 48px; font-size: 20px; }

/* ============ Шапка ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 13, 18, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 48, 66, .6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo__flag { font-size: 26px; }

.logo__text {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .06em;
}

.logo__sub {
  display: block;
  font-size: 10px;
  color: var(--accent-2);
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav__link {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: color .2s, background .2s;
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.nav__link--cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav__link--cta:hover { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
}

.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,18,.55) 0%, rgba(11,13,18,.35) 40%, var(--bg) 100%),
    radial-gradient(80% 60% at 30% 40%, rgba(255,59,48,.18), transparent 70%);
}

.hero__content { position: relative; max-width: 720px; }

.hero__kicker {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 168, .4);
  color: var(--neon);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 26px;
  background: rgba(46, 230, 168, .07);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: .02em;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}

.hero__title span {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 60%, #ffd34d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 26px 0 34px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #cdd3e0;
  max-width: 56ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  list-style: none;
  margin-top: 56px;
}

.hero__stats li { display: flex; flex-direction: column; }

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent-2);
}

.hero__stats span { font-size: 13px; color: var(--muted); }

/* ============ Секции ============ */

.section { padding: 96px 0; }

.section--alt { background: var(--bg-alt); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .02em;
  margin-bottom: 18px;
}

.section__num {
  color: var(--accent);
  font-size: .55em;
  vertical-align: super;
  margin-right: 8px;
}

.section__lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 70ch;
  margin-bottom: 48px;
}

/* ============ Об игре ============ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s, border-color .25s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .45); }

.feature__icon { font-size: 34px; margin-bottom: 14px; }

.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature p { color: var(--muted); font-size: 14.5px; }

.path { margin-top: 72px; }

.path__title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 30px;
}

.path__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  counter-reset: step;
}

.path__steps li {
  counter-increment: step;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 60px 22px 24px;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}

.path__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
}

.path__steps li span {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

/* ============ Галерея ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 3 / 2;
}

.gallery__item--wide { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 12px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, .88));
}

/* ============ FAQ ============ */

.faq { display: grid; gap: 14px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}

.faq__item[open] { border-color: rgba(255, 122, 26, .45); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-2);
  transition: transform .25s;
}

.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq__item p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
}

/* ============ Новости ============ */

.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, border-color .25s;
}

.news__card:hover { transform: translateY(-4px); border-color: rgba(46, 230, 168, .4); }

.news__card time {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neon);
}

.news__card h3 { font-size: 17.5px; line-height: 1.35; }

.news__card p { color: var(--muted); font-size: 14.5px; }

.news__card-image {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 4px;
  object-fit: cover;
  max-height: 200px;
}

.news__card-link {
  color: var(--neon);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.news__card-link:hover { text-decoration: underline; }

.news__error,
.news__empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ============ Играть ============ */

.play {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(255, 59, 48, .22), transparent 70%),
    var(--bg);
}

.play__glow {
  position: absolute;
  inset: auto 0 -120px 0;
  height: 240px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 122, 26, .35), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.play__content { position: relative; }

.play__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 18px;
}

.play__lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 48ch;
  margin: 0 auto 38px;
}

.play__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.play__hint {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ============ Новости: канал ============ */

.news__follow {
  margin-top: 46px;
  text-align: center;
}

.news__follow p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 15.5px;
}

.news__follow-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============ Подвал ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg-alt);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin-bottom: 18px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

.footer__links a:hover { color: var(--accent-2); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}

.footer__note { opacity: .75; }

/* ============ Лайтбокс ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 6, 9, .92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox__caption { color: var(--muted); font-size: 14.5px; }

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 30px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}

.lightbox__close:hover { color: var(--accent-2); }

/* ============ Появление при скролле ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Адаптив ============ */

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: repeat(2, 1fr); }
  .path__steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 26px;
    background: rgba(11, 13, 18, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }

  .nav.is-open { transform: none; }

  .nav__link { padding: 14px 16px; font-size: 16px; text-align: center; }

  .burger { display: flex; }

  .features, .news, .path__steps, .gallery { grid-template-columns: 1fr; }

  .gallery__item--wide { grid-column: span 1; }

  .section { padding: 70px 0; }

  .hero__stats { gap: 14px 30px; }
}
