/* Shade it — игровая палитра и Rubik; шапка/футер Nermas как на RoundGram */

@font-face {
  font-family: Rubik;
  src: url("fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 380 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #140f0c;
  --ink: #f3e6d4;
  --muted: #b9a48c;
  --amber: #f0b45a;
  --line: rgba(243, 230, 212, 0.14);
  --phone: #1a120e;
  --measure: 38rem;
  --nermas-link: #7ec8e8;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Rubik, "Segoe UI", sans-serif;
  font-weight: 440;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(42rem 28rem at 78% -4rem, rgba(240, 180, 90, 0.16), transparent 70%),
    radial-gradient(36rem 24rem at 8% 18%, rgba(42, 30, 22, 0.9), transparent 68%),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(20, 15, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header--shade .brand-game {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.site-header--shade .brand-game img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.site-header--shade .brand-nermas .logo-img--lockup {
  display: block;
  height: clamp(1.35rem, 3.2vw, 1.65rem);
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
  opacity: 0.92;
}

.hero,
.letter,
.shelf,
footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 560;
}

h1,
h2 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.phone {
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--phone);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.phone img {
  border-radius: 1.5rem;
}

.letter {
  max-width: var(--measure);
  padding-bottom: 3.5rem;
}

.letter h2,
.shelf h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.letter p {
  margin: 0 0 1rem;
}

.shelf {
  padding-bottom: 3rem;
}

.shelf h2 {
  margin-bottom: 1.25rem;
}

.film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.film figure {
  margin: 0;
  scroll-snap-align: start;
}

.film figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

footer .logo-img--mark {
  height: 1.35rem;
  width: auto;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--nermas-link);
  text-underline-offset: 2px;
}

footer a:hover {
  color: var(--amber);
}

.fine {
  flex: 1 1 100%;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-phone {
    width: min(280px, 78%);
    justify-self: center;
  }

  h1 {
    max-width: none;
  }

  .site-header--shade .brand-nermas {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header--shade .brand-game span {
    font-size: 1.15rem;
  }
}