:root {
  --ink: #252321;
  --paper: #ffffeb;
  --paper-light: #ffffeb;
  --kraft: #e4e4d0;
  --red: #a33228;
  --night: #1a1a1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 24px;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 18px;
  border: 2px solid var(--night);
  border-radius: 999px;
  background: var(--paper);
  color: var(--night);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brand img { width: 38px; height: 38px; border-radius: 12px; }
.site-header nav { display: flex; gap: 34px; font: 600 13px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.site-header nav a { opacity: .74; transition: opacity .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { opacity: 1; }

.rustore-badge { width: fit-content; display: inline-block; line-height: 0; transition: transform .2s ease; }
.rustore-badge:hover, .rustore-badge:focus-visible { transform: translateY(-2px); }
.rustore-badge img { width: 188px; height: auto; }
.rustore-badge--compact img { width: 128px; }
.platform-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.yandex-games-button { min-width: 188px; min-height: 64px; display: inline-flex; flex-direction: column; justify-content: center; padding: 10px 22px; border: 2px solid #f2e5ca; border-radius: 14px; background: var(--red); color: #fff8e9; font-family: Arial, sans-serif; text-align: left; transition: transform .2s ease, background .2s ease; }
.yandex-games-button:hover, .yandex-games-button:focus-visible { transform: translateY(-2px); background: #b83a2e; }
.yandex-games-button span { font-size: 16px; font-weight: 700; line-height: 1.1; }
.yandex-games-button small { margin-top: 4px; font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }

.hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: 70px;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  padding: 124px max(40px, calc((100vw - 1180px) / 2)) 64px;
  border-radius: 64px;
  background: var(--night);
  color: #f2e5ca;
}
.hero::before { display: none; }
.hero__copy { position: relative; z-index: 2; }
.kicker, .section-label { font: 700 12px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 12px; color: #d5b67c; }
.kicker span { width: 28px; height: 2px; background: var(--red); }
.hero h1 { margin: 24px 0; font-size: clamp(54px, 5vw, 78px); line-height: .92; font-weight: 400; letter-spacing: -.04em; }
.hero h1 em { color: #d8b477; font-style: italic; }
.hero__lead { max-width: 560px; margin: 0; color: rgba(244,232,206,.74); font-size: 19px; line-height: 1.65; }
.release-brief { max-width: 560px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-top: 28px; padding: 15px 18px; border: 1px solid rgba(242,229,202,.26); border-radius: 18px; background: rgba(242,229,202,.06); transition: background .2s ease, border-color .2s ease; }
.release-brief:hover, .release-brief:focus-visible { border-color: rgba(242,229,202,.48); background: rgba(242,229,202,.1); }
.release-brief span { grid-row: 1 / 3; color: #d8b477; font: 700 11px/1.3 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.release-brief strong { font: 600 15px/1.2 Arial, sans-serif; }
.release-brief small { color: rgba(244,232,206,.58); font: 400 11px/1.3 "Courier New", monospace; }
.hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.hero__actions > p { margin: 0; font: 400 12px/1.55 "Courier New", monospace; color: rgba(244,232,206,.55); }
.hero__visual { position: relative; z-index: 1; width: min(100%, 690px); justify-self: end; }
.hero__visual img { width: 100%; border: 2px solid var(--paper); border-radius: 32px; }

.updates { padding: 96px max(40px, calc((100vw - 1180px) / 2)); }
.section-label { margin: 0 0 26px; color: #886a44; }
.how-it-works { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 104px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.how-it-works h2 { margin: 0 0 22px; font-size: clamp(46px, 4.5vw, 68px); line-height: .95; font-weight: 400; letter-spacing: -.035em; }
.how-it-works__intro > p:last-child { max-width: 390px; margin: 0; color: #665c50; font-size: 17px; line-height: 1.55; }
.case-flow { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(37,35,33,.35); }
.case-flow li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 25px 0; border-top: 1px solid rgba(37,35,33,.35); }
.case-flow span { padding-top: 5px; color: var(--red); font: 700 12px/1 "Courier New", monospace; }
.case-flow h3 { margin: 0 0 7px; font: 600 22px/1.15 Arial, sans-serif; }
.case-flow p { margin: 0; color: #665c50; font-size: 16px; line-height: 1.45; }

.inside { min-height: 780px; overflow: hidden; display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 70px; width: calc(100% - 32px); margin: 0 auto; padding: 100px max(40px, calc((100% - 1180px) / 2)); border-radius: 64px; background: var(--night); color: #f0e2c6; }
.inside__copy { position: relative; z-index: 3; }
.inside h2, .updates h2, .final-cta h2 { margin: 0; font-size: clamp(44px, 5vw, 68px); line-height: .98; font-weight: 400; letter-spacing: -.035em; }
.inside__copy > p:not(.section-label) { margin: 28px 0; color: rgba(240,226,198,.68); font-size: 18px; line-height: 1.65; }
.inside ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(240,226,198,.18); }
.inside li { padding: 15px 0; border-bottom: 1px solid rgba(240,226,198,.18); color: rgba(240,226,198,.65); font-size: 15px; }
.inside li b { color: #f0e2c6; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.screen-preview { min-width: 0; margin: 0; }
.screen-preview__device { position: relative; overflow: hidden; width: 100%; aspect-ratio: 9 / 16; border: 8px solid #080808; border-radius: 30px; background: #d8c5a3; }
.screen-preview__device::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 7px; border-radius: 10px; background: #080808; }
.screen-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.screen-preview figcaption { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: rgba(240,226,198,.72); font: 600 13px/1.3 Arial, sans-serif; }
.screen-preview figcaption span { color: #d5ad72; font: 700 11px/1 "Courier New", monospace; }

.updates { background: var(--paper); }
.updates__heading { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 80px; margin-bottom: 50px; }
.updates__heading > p { max-width: 480px; margin: 0 0 5px; color: #665c50; font-size: 17px; line-height: 1.6; }
.updates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.update-card { position: relative; min-height: 360px; overflow: hidden; display: flex; flex-direction: column; padding: 32px; border: 2px solid var(--night); border-radius: 32px; background: var(--paper); }
.update-card--featured { background: var(--night); color: #efe1c4; border-radius: 48px; }
.update-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font: 400 11px/1.35 "Courier New", monospace; text-transform: uppercase; letter-spacing: .07em; opacity: .65; }
.update-card__meta span { color: var(--red); font-weight: 700; }
.update-card--featured .update-card__meta span { color: #d5ad72; }
.update-card h3 { margin: 52px 0 18px; max-width: 330px; font-size: 28px; line-height: 1.1; }
.update-card > p:not(.update-card__meta) { margin: 0; color: #665c50; font-size: 15px; line-height: 1.6; }
.update-card--featured > p:not(.update-card__meta) { color: rgba(239,225,196,.65); }
.update-card__link { width: fit-content; margin-top: auto; padding-top: 22px; color: #d5ad72; font: 700 12px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.update-card__link:hover, .update-card__link:focus-visible { color: #f2e5ca; }
.update-card:not(.update-card--featured) .update-card__link { color: var(--red); }
.update-card:not(.update-card--featured) .update-card__link:hover, .update-card:not(.update-card--featured) .update-card__link:focus-visible { color: var(--night); }
.update-card__number { position: absolute; right: 24px; bottom: 18px; color: rgba(71,52,31,.12); font: 700 72px/1 "Arial Narrow", Arial, sans-serif; }
.update-card--featured .update-card__number { color: rgba(239,225,196,.09); }

.final-cta { position: relative; overflow: hidden; padding: 100px 24px; text-align: center; background: var(--paper-light); }
.final-cta::before, .final-cta::after { content: ""; position: absolute; width: 240px; height: 1px; top: 50%; background: rgba(74,58,39,.2); }
.final-cta::before { left: -40px; transform: rotate(45deg); }
.final-cta::after { right: -40px; transform: rotate(-45deg); }
.final-cta > img { width: 92px; height: 92px; margin: 0 auto 28px; border: 2px solid var(--night); border-radius: 24px; }
.final-cta h2 { margin-bottom: 32px; }
.final-cta .platform-buttons { justify-content: center; }
.platform-note { margin: 18px 0 0; color: #766a5d; font: 400 11px/1.5 "Courier New", monospace; }

footer { min-height: 110px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 34px; padding: 28px max(40px, calc((100vw - 1180px) / 2)); border-radius: 64px 64px 0 0; background: var(--night); color: #f0e2c6; }
.brand--footer img { width: 32px; height: 32px; }
footer > p, footer small { margin: 0; color: rgba(240,226,198,.45); font: 400 11px/1.4 "Courier New", monospace; }
footer > div { display: flex; gap: 22px; font: 700 11px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }

/* Спецвыпуск «Тёплый Ключ» */
.event-page { --mineral: #66755b; --mineral-dark: #303a2e; }
.event-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(380px, .8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: 56px;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  padding: 124px max(40px, calc((100vw - 1180px) / 2)) 68px;
  border-radius: 64px;
  background: var(--night);
  color: #f2e5ca;
}
.event-hero__copy { position: relative; z-index: 2; }
.back-link { display: inline-block; margin-bottom: 48px; color: rgba(242,229,202,.58); font: 700 11px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.back-link:hover, .back-link:focus-visible { color: #f2e5ca; }
.event-hero h1 { margin: 22px 0 6px; font-size: clamp(66px, 7vw, 108px); line-height: .88; font-weight: 400; letter-spacing: -.055em; }
.event-hero__tagline { margin: 0; color: #b9c9a6; font-size: clamp(33px, 3vw, 48px); line-height: 1; font-style: italic; }
.event-hero__lead { max-width: 570px; margin: 30px 0 34px; color: rgba(242,229,202,.7); font-size: 18px; line-height: 1.6; }
.event-hero__visual { margin: 0; overflow: hidden; border: 2px solid #e8d9b8; border-radius: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.event-hero__visual img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; }

.event-story { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.event-story h2, .chapters h2, .event-access h2 { margin: 0; font-size: clamp(44px, 5vw, 68px); line-height: .98; font-weight: 400; letter-spacing: -.035em; }
.event-story__copy > p { margin: 0 0 22px; color: #5f574d; font-size: 18px; line-height: 1.65; }
.event-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 42px 0 0; border-top: 1px solid rgba(37,35,33,.3); border-bottom: 1px solid rgba(37,35,33,.3); }
.event-facts div { padding: 22px 16px 22px 0; }
.event-facts div + div { padding-left: 18px; border-left: 1px solid rgba(37,35,33,.3); }
.event-facts dt { color: var(--red); font-size: 35px; line-height: 1; }
.event-facts dd { margin: 8px 0 0; color: #6f665a; font: 600 11px/1.35 Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; }

.chapters { width: calc(100% - 32px); margin: 0 auto; padding: 100px max(40px, calc((100vw - 1180px) / 2)); border-radius: 64px; background: var(--mineral-dark); color: #f0e4ca; }
.chapters__heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.chapters__heading .section-label { grid-column: 1 / -1; margin-bottom: -34px; color: #b9c9a6; }
.chapters__heading > p:last-child { max-width: 440px; margin: 0; color: rgba(240,228,202,.62); font-size: 17px; line-height: 1.6; }
.chapter-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(240,228,202,.2); }
.chapter-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center; min-height: 78px; border-top: 1px solid rgba(240,228,202,.2); }
.chapter-list span, .chapter-list small { font: 700 11px/1 "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.chapter-list span { color: #b9c9a6; }
.chapter-list strong { font-size: 23px; font-weight: 400; }
.chapter-list small { color: rgba(240,228,202,.46); }

.event-access { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.event-access__copy > p:last-child { max-width: 390px; margin: 26px 0 0; color: #655d52; font-size: 17px; line-height: 1.6; }
.access-points { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(37,35,33,.32); }
.access-points li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid rgba(37,35,33,.32); }
.access-points > li > span { padding-top: 4px; color: var(--red); font: 700 11px/1 "Courier New", monospace; }
.access-points p { margin: 0; color: #655d52; font-size: 15px; line-height: 1.5; }
.access-points strong { display: block; margin-bottom: 6px; color: var(--night); font: 600 20px/1.2 Arial, sans-serif; }
.event-final-cta { background: #f2edd6; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 150px; }
  .hero__copy { max-width: 700px; }
  .hero__visual { width: min(680px, 92%); margin: 0 auto; }
  .how-it-works { grid-template-columns: 1fr; gap: 48px; }
  .inside { grid-template-columns: 1fr; }
  .inside__copy { max-width: 650px; }
  .screens { width: min(650px, 100%); margin: 0 auto; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { display: none; }
  .event-hero { grid-template-columns: 1fr; padding-top: 138px; }
  .event-hero__copy { max-width: 720px; }
  .event-hero__visual { width: min(760px, 100%); }
  .event-story, .event-access { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .site-header { top: 14px; width: calc(100% - 28px); height: 62px; }
  .rustore-badge--compact img { width: 112px; }
  .hero, .inside, .updates { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: auto; width: calc(100% - 16px); margin-top: 8px; padding-top: 106px; padding-bottom: 68px; border-radius: 40px; gap: 48px; }
  .hero h1 { font-size: clamp(49px, 15vw, 68px); }
  .hero__lead { font-size: 17px; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .release-brief { grid-template-columns: 1fr; }
  .release-brief span { grid-row: auto; }
  .hero__visual { width: 100%; }
  .how-it-works { width: calc(100% - 40px); padding: 72px 0; }
  .updates { padding-top: 72px; padding-bottom: 72px; }
  .updates__grid { grid-template-columns: 1fr; }
  .inside { width: calc(100% - 16px); padding-top: 72px; padding-bottom: 40px; border-radius: 40px; }
  .inside h2, .updates h2, .final-cta h2 { font-size: 43px; }
  .screens { grid-template-columns: 1fr; gap: 28px; width: min(280px, 100%); }
  .screen-preview__device { border-width: 5px; border-radius: 22px; }
  .screen-preview figcaption { font-size: 11px; }
  .updates__heading { grid-template-columns: 1fr; gap: 24px; }
  .update-card { min-height: 290px; }
  .final-cta { padding: 76px 20px; }
  footer { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  footer .brand { justify-content: center; }
  footer > div { justify-content: center; }
  .event-hero { min-height: auto; width: calc(100% - 16px); margin-top: 8px; padding: 100px 20px 54px; border-radius: 40px; gap: 40px; }
  .event-hero h1 { font-size: clamp(58px, 18vw, 78px); }
  .event-hero__tagline { font-size: 34px; }
  .event-hero__lead { font-size: 17px; }
  .back-link { margin-bottom: 34px; }
  .event-hero__visual { border-radius: 20px; }
  .event-story, .event-access { padding: 76px 0; }
  .event-facts { grid-template-columns: 1fr; }
  .event-facts div + div { padding-left: 0; border-top: 1px solid rgba(37,35,33,.3); border-left: 0; }
  .chapters { width: calc(100% - 16px); padding: 72px 20px; border-radius: 40px; }
  .chapters__heading { grid-template-columns: 1fr; gap: 24px; }
  .chapters__heading .section-label { grid-column: auto; margin-bottom: 0; }
  .chapter-list li { grid-template-columns: 88px 1fr; gap: 12px; padding: 18px 0; }
  .chapter-list strong { font-size: 19px; }
  .chapter-list small { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
