/* UNLIMITED PLACE — киберспортивный клуб в Туймазах, демо-сайт */

@font-face {
  font-family: "Russo One";
  src: url("../fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --site-bg: #07070d;
  --site-fg: #e8e8f0;
  --site-accent: #c438ff;
  --site-on-accent: #17001f;
  --site-surface: #10101c;
  --site-muted: #9a9ab2;
  --site-border: rgba(255, 255, 255, 0.09);
  --site-font: "Russo One", "Segoe UI", sans-serif;
  --site-radius: 16px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;
  --gold: #d4af37;
  --violet: #8b5cf6;
  --glow: rgba(196, 56, 255, 0.45);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--site-font);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

h1 { font-size: min(calc(56px * var(--site-type, 1)), 8vw); }
h2 { font-size: min(calc(40px * var(--site-type, 1)), 9vw); }
h3 { font-size: min(calc(24px * var(--site-type, 1)), 6.5vw); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: calc(64px * var(--site-space, 1)) 0; }
.section--tight { padding: calc(40px * var(--site-space, 1)) 0; }

.section-head { max-width: 760px; margin-bottom: calc(36px * var(--site-space, 1)); }
.section-head .kicker {
  color: var(--site-accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-family: var(--site-font);
  font-size: 12px;
  margin-bottom: 12px;
}
.section-head p { color: var(--site-muted); margin-top: 10px; max-width: 640px; }

.gold { color: var(--gold); }

/* ── Шапка ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--site-accent), var(--gold), var(--site-accent), transparent);
  background-size: 220% 100%;
  animation: headerline 7s linear infinite;
}
@keyframes headerline {
  from { background-position: 0% 0; }
  to { background-position: -220% 0; }
}
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--site-font); font-size: 20px; letter-spacing: 0.06em; }
.logo__img {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(196, 56, 255, 0.4);
  animation: logoglow 3.2s ease-in-out infinite;
}
@keyframes logoglow {
  0%, 100% { box-shadow: 0 0 12px var(--glow); }
  50% { box-shadow: 0 0 30px rgba(196, 56, 255, 0.75); }
}
.logo__place {
  color: var(--site-accent);
  text-shadow: 0 0 14px var(--glow);
  animation: neonblink 3.2s ease-in-out infinite;
}
@keyframes neonblink {
  0%, 100% { text-shadow: 0 0 10px var(--glow); }
  50% { text-shadow: 0 0 22px rgba(196, 56, 255, 0.9); }
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  position: relative; padding: 6px 2px;
  color: var(--site-muted); font-size: 14.5px; font-family: var(--site-font); letter-spacing: 0.04em;
  transition: color calc(180ms * var(--site-motion, 1)), text-shadow calc(180ms * var(--site-motion, 1));
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--site-accent), var(--gold));
  transition: right calc(220ms * var(--site-motion, 1));
}
.nav a:hover { color: var(--site-fg); text-shadow: 0 0 12px var(--glow); }
.nav a:hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--site-radius);
  font-family: var(--site-font); font-size: 14.5px; letter-spacing: 0.03em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform calc(180ms * var(--site-motion, 1)), box-shadow calc(180ms * var(--site-motion, 1)), background calc(180ms * var(--site-motion, 1));
}
.btn--primary {
  background: var(--site-accent); color: var(--site-on-accent);
  box-shadow: 0 0 22px var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px var(--glow); }
.btn--ghost { border-color: var(--site-border); color: var(--site-fg); background: transparent; }
.btn--ghost:hover { border-color: var(--site-accent); color: var(--site-accent); box-shadow: 0 0 18px rgba(196, 56, 255, 0.25); }
.btn--gold { background: linear-gradient(135deg, var(--gold), #f0d97a); color: #221a05; }

.header .btn { padding: 10px 18px; animation: btnpulse 2.6s ease-in-out infinite; }
@keyframes btnpulse {
  0%, 100% { box-shadow: 0 0 14px var(--glow); }
  50% { box-shadow: 0 0 30px rgba(196, 56, 255, 0.75); }
}

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--site-border);
  color: var(--site-fg); border-radius: var(--site-radius); width: 42px; height: 42px;
  font-size: 20px; cursor: pointer;
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--site-border); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: saturate(1.2) contrast(1.05); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,13,0.62) 0%, rgba(7,7,13,0.18) 45%, var(--site-bg) 100%);
}
.hero__aurora { position: absolute; inset: 0; pointer-events: none; }
.hero__aurora i { position: absolute; border-radius: 50%; filter: blur(95px); }
.hero__aurora i:nth-child(1) {
  width: 640px; height: 640px; left: -160px; top: -200px;
  background: radial-gradient(circle, rgba(196, 56, 255, 0.42), transparent 65%);
  animation: auroraA 9s ease-in-out infinite;
}
.hero__aurora i:nth-child(2) {
  width: 540px; height: 540px; right: -140px; bottom: -220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent 65%);
  animation: auroraB 11s ease-in-out infinite;
}
.hero__aurora i:nth-child(3) {
  width: 460px; height: 460px; left: 34%; top: 42%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: auroraA 13s ease-in-out infinite reverse;
}
@keyframes auroraA {
  0%, 100% { opacity: 0.65; transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(36px, 22px) scale(1.08); }
}
@keyframes auroraB {
  0%, 100% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.95; transform: translate(-30px, -18px) scale(1.06); }
}
.hero__grid {
  position: absolute; left: -20%; right: -20%; top: 36%; bottom: -10%;
  background-image:
    linear-gradient(rgba(196, 56, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 56, 255, 0.24) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: top;
  animation: gridmove 8s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 78%, transparent 100%);
  opacity: 0.75;
  pointer-events: none;
}
@keyframes gridmove {
  from { background-position: 0 0; }
  to { background-position: 0 46px; }
}
.hero__in { position: relative; padding: calc(96px * var(--site-space, 1)) 20px calc(84px * var(--site-space, 1)); max-width: 1180px; margin: 0 auto; }
.hero .kicker {
  display: inline-block;
  font-family: var(--site-font); color: var(--site-accent);
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 12px;
  padding: 8px 16px; border: 1px solid rgba(196, 56, 255, 0.4); border-radius: 999px;
  background: rgba(16, 16, 28, 0.55); backdrop-filter: blur(8px);
  text-shadow: 0 0 12px var(--glow);
}
.hero h1 {
  max-width: 880px; margin: 18px 0 18px;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55);
}
.hero h1 .accent {
  color: var(--site-accent);
  text-shadow: 0 0 28px rgba(196, 56, 255, 0.7);
}
.hero__sub { color: #c9c9d8; font-size: 18px; max-width: 580px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn--primary { animation: btnpulse 2.6s ease-in-out infinite; }
.hero .btn--ghost { background: rgba(16, 16, 28, 0.45); backdrop-filter: blur(8px); }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.badge {
  border: 1px solid rgba(196, 56, 255, 0.28); background: rgba(16, 16, 28, 0.6);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--site-fg);
  backdrop-filter: blur(6px);
  transition: border-color calc(180ms * var(--site-motion, 1)), box-shadow calc(180ms * var(--site-motion, 1));
}
.badge:hover { border-color: var(--glow); box-shadow: 0 0 16px rgba(196, 56, 255, 0.25); }
.badge b { color: var(--site-accent); }

/* ── Бегущая лента игр ── */
.marquee {
  overflow: hidden; border-top: 1px solid var(--site-border); border-bottom: 1px solid var(--site-border);
  background: rgba(16, 16, 28, 0.55); padding: 13px 0;
}
.marquee__track {
  display: flex; gap: 30px; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--site-font); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
}
.marquee__track span { color: var(--site-accent); text-shadow: 0 0 10px rgba(196, 56, 255, 0.4); white-space: nowrap; }
.marquee__track i { color: var(--site-muted); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Секции ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: linear-gradient(var(--site-surface), var(--site-surface)) padding-box,
    linear-gradient(135deg, rgba(196, 56, 255, 0.45), rgba(212, 175, 55, 0.3)) border-box;
  border: 1px solid transparent; border-radius: var(--site-radius); padding: 24px;
  transition: box-shadow calc(180ms * var(--site-motion, 1)), transform calc(180ms * var(--site-motion, 1));
}
.stat:hover { box-shadow: 0 0 24px rgba(196, 56, 255, 0.2); transform: translateY(-3px); }
.stat__num { font-family: var(--site-font); font-size: clamp(26px, calc(38px * var(--site-type, 1)), 42px); color: var(--site-accent); text-shadow: 0 0 16px var(--glow); }
.stat__label { color: var(--site-muted); font-size: 14px; margin-top: 4px; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Железо */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 20px;
  transition: border-color calc(180ms * var(--site-motion, 1)), transform calc(180ms * var(--site-motion, 1));
}
.spec:hover { border-color: var(--glow); transform: translateY(-3px); }
.spec__name { font-size: 12px; color: var(--site-muted); text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--site-font); }
.spec__value { font-family: var(--site-font); font-size: 18px; margin-top: 8px; }

/* Зоны-карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform calc(180ms * var(--site-motion, 1)), border-color calc(180ms * var(--site-motion, 1)), box-shadow calc(180ms * var(--site-motion, 1));
}
.card:hover { transform: translateY(-4px); border-color: var(--glow); box-shadow: 0 12px 30px rgba(196, 56, 255, 0.14); }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(400ms * var(--site-motion, 1)); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-family: var(--site-font); }
.card__price { margin-top: auto; color: var(--site-accent); font-size: 16px; font-family: var(--site-font); }
.card__desc { color: var(--site-muted); font-size: 14.5px; }

/* CTA-блок */
.cta {
  background: linear-gradient(135deg, rgba(196, 56, 255, 0.14), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--site-border); border-radius: calc(var(--site-radius) + 6px);
  padding: calc(44px * var(--site-space, 1));
  text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--site-muted); margin-bottom: 22px; }
.cta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Прайс ── */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--site-border); background: transparent; color: var(--site-muted);
  font-family: var(--site-font); font-size: 14px; letter-spacing: 0.04em;
  transition: all calc(180ms * var(--site-motion, 1));
}
.tab:hover { border-color: var(--site-accent); color: var(--site-fg); }
.tab.active {
  background: var(--site-accent); color: var(--site-on-accent); border-color: transparent;
  box-shadow: 0 0 18px var(--glow);
}
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.price-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 16px 20px;
}
.price-item__name { font-size: 15.5px; }
.price-item__time { color: var(--site-muted); font-size: 13px; }
.price-item__value { font-family: var(--site-font); font-size: 18px; color: var(--site-accent); white-space: nowrap; }
.price-note { margin-top: 18px; color: var(--site-muted); font-size: 13.5px; }

/* ── Галерея ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  border-radius: var(--site-radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--site-border); aspect-ratio: 3 / 2; position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(400ms * var(--site-motion, 1)); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover { border-color: var(--glow); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  font-size: 13px; color: var(--site-fg);
  background: linear-gradient(transparent, rgba(7,7,13,0.9));
}

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5, 5, 10, 0.94); align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--site-radius); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--site-fg); font-size: 34px; cursor: pointer;
}

/* ── Отзывы ── */
.rating-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 16px 22px; margin-bottom: calc(28px * var(--site-space, 1));
}
.rating-badge__score { font-family: var(--site-font); font-size: 34px; color: var(--gold); }
.rating-badge__stars { color: var(--gold); font-size: 18px; letter-spacing: 3px; }
.rating-badge__meta { color: var(--site-muted); font-size: 13.5px; line-height: 1.45; }
.rating-badge__meta b { color: var(--site-fg); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--site-accent), var(--violet));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--site-font); font-size: 17px;
  box-shadow: 0 0 14px rgba(196, 56, 255, 0.35);
}
.review__name { font-family: var(--site-font); font-size: 15px; color: var(--site-fg); }
.review__date { color: var(--site-muted); font-size: 12.5px; }
.review__stars { color: var(--gold); font-size: 15px; letter-spacing: 3px; }
.review__text { color: var(--site-fg); font-size: 14.5px; line-height: 1.55; flex: 1; }
.reviews-note { margin-top: 22px; color: var(--site-muted); font-size: 13.5px; }
.reviews-note a { color: var(--site-accent); }
.reviews-note a:hover { text-decoration: underline; }

/* ── Контакты ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card {
  background: var(--site-surface); border: 1px solid var(--site-border);
  border-radius: var(--site-radius); padding: 24px;
}
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { color: var(--site-muted); margin-bottom: 8px; }
.contact-card .big { font-family: var(--site-font); font-size: 22px; color: var(--site-fg); }
.contact-stack { display: flex; flex-direction: column; gap: 16px; }
.map {
  border-radius: var(--site-radius); overflow: hidden; border: 1px solid var(--site-border);
  min-height: 380px;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6); }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  border: 1px solid var(--site-border); border-radius: 999px;
  padding: 8px 18px; font-size: 14.5px; color: var(--site-fg);
  transition: border-color calc(180ms * var(--site-motion, 1)), color calc(180ms * var(--site-motion, 1));
}
.socials a:hover { border-color: var(--site-accent); color: var(--site-accent); }

/* ── Футер ── */
.footer { border-top: 1px solid var(--site-border); padding: 36px 0; margin-top: calc(40px * var(--site-space, 1)); }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--site-muted); font-size: 14px; }
.footer a:hover { color: var(--site-fg); }

/* ── Текстовая секция (политика) ── */
.prose { max-width: 800px; }
.prose h2 { margin: 28px 0 12px; font-size: clamp(18px, calc(22px * var(--site-type, 1)), 24px); }
.prose p { color: var(--site-muted); margin-bottom: 10px; }

/* ── Мобильные ── */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--site-bg); border-bottom: 1px solid var(--site-border);
    flex-direction: column; padding: 14px 20px 20px; gap: 14px;
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__in { padding-top: calc(56px * var(--site-space, 1)); }
  .hero__aurora i:nth-child(1) { width: 380px; height: 380px; }
  .hero__aurora i:nth-child(2) { width: 320px; height: 320px; }
  .hero__grid { opacity: 0.5; }
  .marquee__track { gap: 24px; font-size: 13px; }
}

@media (max-width: 560px) {
  .btn { padding: 11px 18px; font-size: 14px; }
  .badge { padding: 7px 13px; font-size: 12.5px; }
  .hero__cta { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
