/* Оформление сайта «Уральские птички». Палитра — уральская ночь и огонёк с логотипа. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded.woff") format("woff");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Kurale";
  src: url("/fonts/kurale.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #080b12;
  --bg-2: #0d121c;
  --surface: #111827;
  --surface-2: #161f30;
  --line: #222c3e;
  --line-2: #2f3b52;
  --text: #e7ecf3;
  --muted: #8f9bb0;
  --dim: #5f6b80;
  --ember: #ff6b35;
  --ember-2: #ff9a5c;
  --ice: #9cc8ff;
  --link: #9cc8ff;
  --mask: #d0303a;
  --bone: #efe6d6;
  --fd: #7dcf6a;
  --pts: #4dff88;
  --radius: 14px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 107, 53, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(80, 130, 220, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--ember); color: #160800; }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.2rem; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-2); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* Шапка внутренних страниц */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.site-head img { width: 42px; height: 42px; display: block; border-radius: 50%; }

.site-head a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: .8rem; }

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  line-height: 1.3;
}
.brand span {
  display: block;
  font-family: var(--font-cond);
  font-weight: 400;
  color: var(--ember);
  font-size: .78rem;
  letter-spacing: .32em;
}

/* Заголовки и текст внутренних страниц */

main { padding: 2.6rem 0 4rem; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; }

h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 2.3rem 0 .55rem; letter-spacing: .01em; }
h3 { font-size: .95rem; margin: 1.6rem 0 .4rem; }

p { margin: .8rem 0; }

.meta { color: var(--muted); font-size: .95rem; margin: 0 0 1.8rem; }

ul { padding-left: 1.15rem; }
li { margin: .45rem 0; }
li::marker { color: var(--ember); }

strong { color: #fff; }

code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: .08rem .32rem;
  border-radius: 4px;
  font-size: .88em;
}

.kicker {
  font-family: var(--font-cond);
  color: var(--ember);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .85rem;
  margin: 0 0 .5rem;
}

/* Карточки-ссылки */

.cards {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  gap: .8rem;
}
.cards li { margin: 0; }

.cards a {
  display: block;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.cards a:hover { border-color: var(--ember); transform: translateY(-2px); color: var(--text); }
.cards b { display: block; font-size: 1rem; }
.cards small { color: var(--muted); }

/* Покупка и формы */

.product {
  margin: 2rem 0 2.4rem;
  padding: 1.3rem 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}

.product .price {
  margin: 0 0 .55rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.product p { color: var(--muted); margin: .55rem 0; }
.product p:last-child { margin-bottom: 0; }

a.product-buy {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
a.product-buy:hover { border-color: var(--ember); color: inherit; transform: translateY(-2px); }

.product-cta {
  display: inline-block;
  margin-top: .85rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--ember);
  color: #1a0900;
  font-weight: 700;
  font-size: .92rem;
}
a.product-buy:hover .product-cta { background: var(--ember-2); }

.buy-form {
  margin: 1.6rem 0 2rem;
  padding: 1.3rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: .55rem;
}
.buy-form label { color: var(--muted); font-size: .85rem; }
.buy-form input {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.buy-form input:focus { border-color: var(--ember); outline: none; }
.buy-form button {
  margin-top: .35rem;
  padding: .7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.buy-form button:hover { border-color: var(--ember); }
.buy-form .buy-pay { background: var(--ember); border-color: var(--ember); color: #1a0900; }
.buy-form button:disabled { opacity: .55; cursor: default; }
.buy-status { min-height: 1.4em; color: var(--muted); margin: .2rem 0; }
.buy-status.is-error { color: #ff8f7a; }

.reqs { margin: 0; }
.reqs dt { color: var(--muted); font-size: .85rem; margin: 1.1rem 0 0; }
.reqs dt:first-child { margin-top: 0; }
.reqs dd { margin: .2rem 0 0; }

.legal-nav {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  gap: .55rem;
}
.legal-nav a { color: var(--link); }

/* Карточка магазина на страницах игр */

.store {
  display: block;
  margin: 1.6rem 0 0;
  overflow: hidden;
  border: 1px solid #2a3d33;
  border-radius: var(--radius);
  background: #0c1311;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.store:hover {
  border-color: var(--fd);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(125, 207, 106, .35);
}

.store-cover {
  position: relative;
  display: block;
  aspect-ratio: 1024 / 538;
  overflow: hidden;
  background: #071018;
}

.store-art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.store:hover .store-art { transform: scale(1.03); }

.store-logo {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(58%, 19.5rem);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(90, 255, 110, .28)) drop-shadow(0 8px 18px rgba(0, 0, 0, .75));
  pointer-events: none;
}

.store-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, #0c1311 92%);
  pointer-events: none;
}

.store-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.1rem;
  padding: 0 1.15rem 1.05rem;
}

.store-icon {
  width: 72px;
  height: 72px;
  margin-top: -2.1rem;
  border-radius: 16px;
  border: 1px solid #3d4a40;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  background: #1a2220;
  position: relative;
  z-index: 1;
}

.store-copy { flex: 1 1 12rem; min-width: 0; }

.store-mark {
  display: block;
  font-family: var(--font-cond);
  color: var(--fd);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .2rem;
}

.store p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }

.store-cta {
  display: inline-block;
  flex: 0 0 auto;
  padding: .58rem 1.15rem;
  border-radius: 999px;
  background: var(--fd);
  color: #0b140a;
  font-weight: 700;
  font-size: .92rem;
}

.store:hover .store-cta { background: #93e07f; }
.meta + .store { margin-top: 0; }
.store + .store { margin-top: 1rem; }
.store-logo-pts { top: 40%; width: min(70%, 24rem); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85)); }
main.wrap .shots { margin: 1.6rem 0 0; }

.store-static { cursor: default; pointer-events: none; }
.store-static:hover { border-color: #2a3d33; transform: none; box-shadow: none; }
.store-cta-muted { background: var(--surface-2) !important; color: var(--muted) !important; }

.store-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: .85rem 0 0; }
.store-links a {
  display: inline-block;
  padding: .58rem 1.15rem;
  border-radius: 999px;
  background: var(--fd);
  color: #0b140a;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.store-links a:hover { background: #93e07f; color: #0b140a; }

/* Карточки сборок в лицензии и политике */

.editions {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 1.5rem;
  display: grid;
  gap: .7rem;
}
.editions > li {
  margin: 0;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.editions > li > b { display: block; font-size: 1rem; }
.editions .where { color: var(--muted); font-size: .92rem; margin: .2rem 0 .15rem; }
.editions ul { margin: .35rem 0 0; }
.editions li li { margin: .32rem 0; }

/* Подвал */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  padding: 1.6rem 0 2.6rem;
  background: var(--bg-2);
}

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; }

@media (max-width: 36rem) {
  .store-cta { flex: 1 0 100%; text-align: center; }
}

@media (max-width: 30rem) {
  h1 { font-size: 1.4rem; }
  .store-icon { width: 60px; height: 60px; margin-top: -1.6rem; }
  .store-logo { width: min(72%, 16rem); top: 36%; }
}

/* ============ Главная и страница «Масок Истины» ============ */

.wide { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-ember { background: var(--ember); color: #1a0900; box-shadow: 0 10px 30px -10px rgba(255, 107, 53, .7); }
.btn-ember:hover { background: var(--ember-2); color: #1a0900; }
.btn-ghost { border-color: rgba(231, 236, 243, .28); color: var(--text); background: rgba(8, 11, 18, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }
.btn-mask { background: var(--mask); color: #fff; box-shadow: 0 12px 34px -12px rgba(208, 48, 58, .8); }
.btn-mask:hover { background: #e53b45; color: #fff; }
.btn-bone { border-color: rgba(239, 230, 214, .35); color: var(--bone); }
.btn-bone:hover { border-color: var(--bone); color: #fff; }
.btn-fd { background: var(--fd); color: #0b140a; }
.btn-fd:hover { background: #93e07f; color: #0b140a; }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-cond);
  font-size: .82rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: .7; }

.sec { padding-top: 6.5rem; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.2rem; }
.sec-head h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.sec-head p { margin: 0; color: var(--muted); max-width: 26rem; }

/* Верхнее меню главной */

.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topnav.is-solid {
  background: rgba(8, 11, 18, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.topnav .wide { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.2rem; }
.topnav .logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.topnav .logo img { width: 40px; height: 40px; border-radius: 50%; }
.topnav .logo b { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.topnav nav { display: flex; gap: .3rem; }
.topnav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.topnav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.topnav nav a.nav-new { color: var(--text); border: 1px solid rgba(208, 48, 58, .6); }
.topnav nav a.nav-new:hover { background: rgba(208, 48, 58, .18); }

/* Первый экран */

.hero-studio {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -4% 0 0;
  z-index: -3;
  background: url("/img/hero.jpg") center 60% / cover no-repeat;
  transform: translate3d(0, var(--py, 0), 0) scale(1.06);
  will-change: transform;
}
.hero-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 11, 18, .55) 0%, rgba(8, 11, 18, 0) 30%, rgba(8, 11, 18, .25) 55%, var(--bg) 98%),
    radial-gradient(70% 60% at 20% 80%, rgba(8, 11, 18, .7), transparent 70%);
}
#snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { width: 100%; padding-top: 7rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.hero-studio h1 {
  font-size: clamp(2rem, 6.6vw, 6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.hero-studio h1 span { display: block; color: var(--ember); font-weight: 300; letter-spacing: .02em; }
.hero-lead { max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #c9d2df; margin: 1.6rem 0 2rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  width: 1.4rem;
  height: 2.2rem;
  margin-left: -.7rem;
  border: 1.5px solid rgba(231, 236, 243, .35);
  border-radius: 1rem;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: .4rem;
  width: 3px;
  height: .45rem;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(.7rem); } }

/* Бегущая строка */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-cond);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--dim);
}
.ticker div { display: inline-flex; gap: 2.6rem; padding: .9rem 0; animation: ticker 42s linear infinite; }
.ticker span::after { content: "✦"; margin-left: 2.6rem; color: var(--ember); opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Новинка: Маски Истины */

.feature {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(208, 48, 58, .35);
  background: #0b0709;
  isolation: isolate;
  box-shadow: 0 40px 100px -40px rgba(208, 48, 58, .45);
}
.feature-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/img/mask-key.jpg") 72% 40% / cover no-repeat;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 5, 7, .97) 0%, rgba(8, 5, 7, .88) 34%, rgba(8, 5, 7, .2) 64%, rgba(8, 5, 7, 0) 100%),
    linear-gradient(0deg, rgba(8, 5, 7, .9), transparent 40%);
}
.feature-body { padding: clamp(2rem, 5vw, 4rem); max-width: 36rem; min-height: 34rem; display: flex; flex-direction: column; justify-content: center; }
.badge-new {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: rgba(208, 48, 58, .16);
  border: 1px solid rgba(208, 48, 58, .55);
  color: #ffb3b8;
  font-family: var(--font-cond);
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.badge-new::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mask); box-shadow: 0 0 0 0 rgba(208, 48, 58, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .55rem rgba(208, 48, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(208, 48, 58, 0); } }

.mask-title {
  font-family: "Kurale", Georgia, serif;
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 1.2rem 0 .3rem;
}
.mask-title u { text-decoration: none; background: linear-gradient(var(--mask), var(--mask)) 0 92% / 100% .06em no-repeat; }
.mask-tag { font-family: "Kurale", Georgia, serif; color: #f4a3a8; font-size: 1.15rem; margin: 1rem 0 1.1rem; }
.feature p.lead { color: #cfc6ba; margin: 0 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.chips li { margin: 0; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; color: #e2d8ca; border: 1px solid rgba(239, 230, 214, .2); background: rgba(239, 230, 214, .05); }
.feature .actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Галерея скриншотов */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .8rem; }
.shots button {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, opacity .3s ease; opacity: .88; }
.shots button:hover img { transform: scale(1.05); opacity: 1; }
.shots button:hover { border-color: rgba(208, 48, 58, .7); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(3, 4, 8, .92); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(17, 24, 39, .8);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Сетка игр */

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.game {
  --acc: var(--ember);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.game:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 70%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--acc) 60%, transparent); }
.game-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; display: block; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.game:hover .game-cover img { transform: scale(1.05); }
.game-cover .game-logo { position: absolute; left: 50%; top: 40%; width: 72%; height: auto; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .9)); z-index: 1; }
.game:hover .game-cover .game-logo { transform: translate(-50%, -50%); }
.game-cover::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, var(--surface)); }
.game-body { flex: 1; display: flex; flex-direction: column; padding: 0 1.3rem 1.3rem; margin-top: -1.2rem; position: relative; }
.game-tag { font-family: var(--font-cond); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.game h3 { margin: .35rem 0 .45rem; font-size: 1.15rem; line-height: 1.25; }
.game h3 a { color: var(--text); text-decoration: none; }
.game h3 a:hover { color: var(--acc); }
.game p { margin: 0 0 1.2rem; color: var(--muted); font-size: .93rem; flex: 1; }
.game .links { display: flex; flex-wrap: wrap; gap: .45rem; }
.game .links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.game .links a:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); color: #fff; }
.game .links a.main { background: var(--acc); border-color: var(--acc); color: #0b0a0a; }
.game .links a.main:hover { filter: brightness(1.1); color: #0b0a0a; }
.game-mask { --acc: #ff4d57; }
.game-mask .links a.main { color: #fff; background: var(--mask); border-color: var(--mask); }
.game-mask .links a.main:hover { color: #fff; }
.game-fd { --acc: var(--fd); }
.game-pts { --acc: var(--pts); }

/* О студии */

.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-logo { position: relative; justify-self: center; width: min(100%, 26rem); aspect-ratio: 1; }
.about-logo img { width: 100%; height: 100%; border-radius: 50%; position: relative; z-index: 1; }
.about-logo::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent, rgba(255, 107, 53, .35), transparent 40%, rgba(156, 200, 255, .25), transparent 75%);
  filter: blur(28px);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.about h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1.2rem; }
.about p { color: #c3ccd9; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; color: var(--ember); }
.facts small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; margin-top: .35rem; }

/* Документы и контакты */

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.docs li { margin: 0; }
.docs a {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.docs a:hover { border-color: var(--ember); transform: translateY(-2px); color: var(--text); }
.docs svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; color: var(--ember); }
.docs b { display: block; font-size: .97rem; }
.docs small { color: var(--muted); font-size: .85rem; line-height: 1.4; display: block; margin-top: .15rem; }

.contact {
  margin-top: 6.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 107, 53, .16), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.contact h2 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; }
.contact p { margin: 0; color: var(--muted); max-width: 30rem; }

.foot-big { margin-top: 5rem; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .88rem; }
.foot-big .wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.8rem; padding-bottom: 2.6rem; }
.foot-big a { color: var(--muted); }
.foot-big a:hover { color: var(--text); }

/* Появление при прокрутке */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Страница игры «Маски Истины» */

.mask-page { background: #07060a; }
.mask-hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.mask-hero .hero-bg { background-image: url("/img/mask-crack.jpg"); background-position: center 40%; }
.mask-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(7, 6, 10, .5) 0%, rgba(7, 6, 10, .05) 35%, rgba(7, 6, 10, .65) 70%, #07060a 100%);
}
.mask-hero .hero-inner { text-align: center; }
.mask-hero .mask-title { font-size: clamp(3rem, 9vw, 6.5rem); margin-top: 0; text-shadow: 0 8px 40px rgba(0, 0, 0, .9); }
.mask-hero .mask-tag { font-size: clamp(1.1rem, 2.2vw, 1.4rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.mask-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }
.mask-hero .chips { justify-content: center; margin-bottom: 0; }

.mask-page .eyebrow { color: #ff6b74; }
.mask-page .sec-head h2, .mask-page .story h2 { font-family: "Kurale", Georgia, serif; font-weight: 400; color: var(--bone); letter-spacing: .01em; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 1.2rem; }
.story p { color: #cfc6ba; }
.story figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(239, 230, 214, .12); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.story figure img { display: block; width: 100%; }

.chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.chars li {
  --c: #fff;
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(239, 230, 214, .12);
  background: #0d0b10;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.chars img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.chars li:hover img { transform: scale(1.04); }
.chars li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 10, .92) 82%); }
.chars li::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--c); }
.chars div { position: absolute; inset: auto 0 0; padding: 1rem 1.1rem 1.2rem; }
.chars b { font-family: "Kurale", Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--bone); }
.chars span { margin-left: .5rem; font-family: var(--font-cond); color: var(--c); letter-spacing: .16em; font-size: .78rem; text-transform: uppercase; }
.chars p { margin: .45rem 0 0; color: #d4ccc1; font-size: .9rem; line-height: 1.5; }

.sys { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 2.6rem; }
.sec-head + .sys { margin-top: 0; }
.sys.flip { grid-template-columns: 1fr 1.35fr; }
.sys.flip img { order: 2; }
.sys img { width: 100%; border-radius: 14px; border: 1px solid rgba(239, 230, 214, .12); box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .9); display: block; }
.sys span { font-family: var(--font-cond); color: #ff6b74; letter-spacing: .2em; font-size: .9rem; }
.sys h3 { font-family: "Kurale", Georgia, serif; font-weight: 400; color: var(--bone); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .2rem 0 .7rem; }
.sys p { margin: 0; color: #cfc6ba; font-size: 1.05rem; }

.spec { display: grid; grid-template-columns: 12rem 1fr; margin: 0; border-top: 1px solid rgba(239, 230, 214, .12); }
.spec dt, .spec dd { margin: 0; padding: .85rem 0; border-bottom: 1px solid rgba(239, 230, 214, .12); }
.spec dt { color: #a89f94; font-size: .92rem; }
.spec dd { color: var(--bone); }

.cta-band {
  margin-top: 6rem;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  border: 1px solid rgba(208, 48, 58, .35);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/mask-college.jpg") center 55% / cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 50%, rgba(7, 6, 10, .55), rgba(7, 6, 10, .92)); }
.cta-band h2 { font-family: "Kurale", Georgia, serif; font-weight: 400; color: var(--bone); font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 .6rem; }
.cta-band p { color: #d4cabd; max-width: 34rem; margin: 0 auto 1.8rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.note { color: var(--dim); font-size: .85rem; margin-top: 1rem; }

/* Адаптив */

@media (max-width: 60rem) {
  .games { grid-template-columns: 1fr 1fr; }
  .games .game-mask { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; }
  .about-logo { width: min(70%, 18rem); order: -1; }
  .docs { grid-template-columns: 1fr 1fr; }
  .chars { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
}

@media (max-width: 52rem) {
  .topnav nav a:not(.nav-new) { display: none; }
}

@media (max-width: 44rem) {
  .hero-studio .hero-bg { background-position: 76% 60%; }
  .hero-studio h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .feature::before { background: linear-gradient(0deg, rgba(8, 5, 7, .98) 0%, rgba(8, 5, 7, .9) 52%, rgba(8, 5, 7, .2) 85%); }
  .feature-art { background-position: 60% 0; background-size: 150% auto; }
  .feature-body { min-height: 0; padding-top: 16rem; }
  .shots { grid-template-columns: 1fr 1fr; }
  .games { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts b { font-size: 1.25rem; }
  .sec { padding-top: 4.5rem; }
  .chars { grid-template-columns: 1fr; gap: .7rem; }
  .chars li { aspect-ratio: auto; display: grid; grid-template-columns: 7.5rem 1fr; }
  .chars img { position: static; height: 100%; min-height: 10rem; z-index: 0; }
  .chars li::before { display: none; }
  .chars div { position: static; padding: 1rem 1.1rem; align-self: center; }
  .sys, .sys.flip { grid-template-columns: 1fr; }
  .sys.flip img { order: 0; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; border-bottom: 0; }
  .btn { padding: .75rem 1.15rem; }
}

@media (max-width: 26rem) {
  .facts { grid-template-columns: 1fr; }
  .topnav .logo b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}
