/* Кейс 03 — Консоль. Тёплый игровой клуб: жёлтый, огонь, маскот-костёр */
:root {
  --yellow: #ffd21f;
  --fire: #ff4a1c;
  --purple: #6a4bd6;
  --ink: #141210;
  --cream: #fff4cf;
  --g: clamp(16px, 2.2vw, 32px);
  --sans: "Deledda", system-ui, sans-serif;
  --mono: "Feature Mono", ui-monospace, monospace;
  /* пиксельный огонь, как на постерах клуба */
  --pix: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' shape-rendering='crispEdges'%3E%3Cg fill='%23ff4a1c'%3E%3Crect x='0' y='32' width='160' height='16'/%3E%3Crect x='0' y='24' width='24' height='8'/%3E%3Crect x='8' y='16' width='8' height='8'/%3E%3Crect x='32' y='20' width='16' height='12'/%3E%3Crect x='56' y='8' width='16' height='24'/%3E%3Crect x='64' y='0' width='8' height='8'/%3E%3Crect x='80' y='24' width='24' height='8'/%3E%3Crect x='112' y='12' width='16' height='20'/%3E%3Crect x='120' y='4' width='8' height='8'/%3E%3Crect x='136' y='24' width='16' height='8'/%3E%3C/g%3E%3Cg fill='%23ffd21f'%3E%3Crect x='60' y='16' width='8' height='8'/%3E%3Crect x='116' y='20' width='8' height='8'/%3E%3Crect x='36' y='28' width='8' height='4'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--yellow); color: var(--ink); font-family: var(--sans); font-weight: 300; overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
::selection { background: var(--fire); color: var(--yellow); }

/* бумажное зерно, как на флаерах */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .2; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .8 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; }
.mono b { font-weight: 700; }

/* ---------- верхняя полоса ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--g); background: var(--ink); color: var(--yellow); }
.bar nav { display: flex; gap: 24px; }
.bar a:hover { color: var(--fire); }
.switch { display: inline-flex; align-items: center; gap: 8px; }
.switch i { width: 30px; height: 14px; border-radius: 7px; background: var(--fire); position: relative; }
.switch i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }

/* ---------- обложка: заголовок + консоль ---------- */
.head { padding: 80px var(--g) 0; }
.head .labels { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 10px; }
.head h1 { font-weight: 900; line-height: .8; letter-spacing: -.045em; text-transform: uppercase; margin: 4vh 0 2vh -.04em; }
.head .sub { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-weight: 900; font-size: clamp(20px, 2.6vw, 44px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.head .sub span:last-child { color: var(--fire); }

.console { margin: 6vh auto 0; max-width: 1180px; background: var(--ink); border-radius: 28px 28px 80px 28px; padding: clamp(14px, 2.4vw, 36px); box-shadow: 10px 10px 0 var(--fire); }
.console .screen { border-radius: 14px; overflow: hidden; border: 3px solid #2b2724; }
.console .pad { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(14px, 2.4vw, 32px) 4% 0; color: var(--yellow); }
.dpad { width: clamp(48px, 7vw, 96px); aspect-ratio: 1; background:
  linear-gradient(var(--yellow), var(--yellow)) center / 34% 100% no-repeat,
  linear-gradient(var(--yellow), var(--yellow)) center / 100% 34% no-repeat; }
.ab { display: flex; gap: clamp(8px, 1.4vw, 20px); }
.ab i { width: clamp(30px, 4.4vw, 60px); aspect-ratio: 1; border-radius: 50%; background: var(--fire); display: grid; place-content: center; font: 900 clamp(12px, 1.4vw, 20px) var(--sans); font-style: normal; color: var(--ink); }
.ab i:last-child { transform: translateY(-40%); background: var(--yellow); }
.pill { border: 2px solid var(--yellow); border-radius: 999px; padding: 6px 18px; font-weight: 900; font-size: clamp(14px, 1.6vw, 24px); text-transform: uppercase; letter-spacing: .02em; }

.nums { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8vh var(--g) 0; border-top: 2px solid var(--ink); }
.nums li { padding: 12px 12px 0 0; }
.nums b { display: block; font-family: var(--sans); font-weight: 900; font-size: clamp(44px, 7vw, 132px); line-height: .9; letter-spacing: -.04em; }

/* пиксельный огонь-разделитель */
.fire { height: 48px; background: var(--pix) repeat-x left bottom / auto 100%; margin-top: 12vh; }
.fire.up { transform: scaleY(-1); margin-top: 0; }

/* ---------- тёмный блок: паспорт и задача ---------- */
.dark { background: var(--fire); }
.dark > .in { background: var(--ink); color: var(--cream); padding: 12vh var(--g); }
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6vh var(--g); }
.passport { display: grid; gap: 12px; align-content: start; }
.passport p { border-top: 1px solid rgba(255, 244, 207, .25); padding-top: 8px; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.passport p span:first-child { color: var(--yellow); }
.tsr { display: grid; gap: 5vh; }
.tsr h2 { display: inline-block; font-weight: 900; font-size: clamp(14px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .12em; background: var(--yellow); color: var(--ink); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.tsr p { font-size: clamp(20px, 2.1vw, 34px); line-height: 1.22; max-width: 34ch; }
.tsr b { font-weight: 900; color: var(--yellow); }

/* ---------- идея ---------- */
.idea { padding: 16vh var(--g) 10vh; display: grid; gap: 4vh; }
.idea q { quotes: none; font-weight: 900; font-size: clamp(40px, 7.6vw, 150px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.idea q em { font-style: normal; color: var(--fire); }
.idea p { font-size: clamp(18px, 1.8vw, 28px); line-height: 1.25; max-width: 44ch; margin-left: auto; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); padding: 0 var(--g); }
figure { position: relative; cursor: zoom-in; }
figure img { transition: transform .4s; }
.frame { border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.frame:hover img { transform: scale(1.02); }

/* ---------- носители: список с крестовиной ---------- */
.kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4vh var(--g); padding: 10vh var(--g) 0; align-items: start; }
.kit .big { font-weight: 900; font-size: clamp(80px, 14vw, 280px); line-height: .78; letter-spacing: -.06em; }
.kit .big small { display: block; font-size: .16em; letter-spacing: 0; text-transform: uppercase; margin-top: .5em; }
.dlist { list-style: none; display: grid; gap: 10px; }
.dlist li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: clamp(18px, 1.8vw, 28px); line-height: 1.1; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.dlist li::before { content: ""; flex: none; width: 18px; height: 18px; background:
  linear-gradient(var(--fire), var(--fire)) center / 34% 100% no-repeat,
  linear-gradient(var(--fire), var(--fire)) center / 100% 34% no-repeat; }

/* ---------- слоганы-стикеры ---------- */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3vw; padding: 14vh var(--g); }
.st { display: inline-block; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; padding: .45em .6em; border: 6px solid #fff; border-radius: 18px; box-shadow: 0 6px 0 rgba(20, 18, 16, .35); transition: transform .25s; font-size: clamp(22px, 3.4vw, 60px); }
.st:hover { transform: rotate(0) scale(1.06) !important; }
.st.a { background: var(--fire); color: var(--yellow); transform: rotate(-4deg); }
.st.b { background: var(--ink); color: var(--yellow); transform: rotate(3deg); }
.st.c { background: var(--purple); color: #fff; transform: rotate(-2deg); text-transform: none; }
.st.d { background: var(--yellow); color: var(--ink); border-radius: 50%; aspect-ratio: 1; display: grid; place-content: center; text-align: center; transform: rotate(8deg); border-color: var(--ink); }
.st.e { background: var(--cream); color: var(--fire); transform: rotate(5deg); }

/* ---------- бренд в пространстве ---------- */
.space { background: var(--purple); color: #fff; padding: 14vh 0 12vh; }
.space .t { padding: 0 var(--g); display: grid; gap: 3vh; margin-bottom: 8vh; }
.space h2 { font-weight: 900; text-transform: uppercase; line-height: .82; letter-spacing: -.045em; }
.space .t p { font-size: clamp(18px, 1.8vw, 28px); line-height: 1.25; max-width: 46ch; }
.club { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding: 0 var(--g); }
.club figure { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.club figure img { height: 100%; object-fit: cover; }
.club figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ---------- цифры ---------- */
.scale { padding: 16vh var(--g) 6vh; display: grid; gap: 6vh; }
.scale h2 { font-weight: 900; font-size: clamp(14px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .12em; }
.scale ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.scale li { padding: 14px 14px 0 0; display: grid; gap: 8px; align-content: start; }
.scale li b { font-weight: 900; font-size: clamp(48px, 7.4vw, 140px); line-height: .85; letter-spacing: -.05em; }
.scale li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

.self { padding: 10vh var(--g) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); }
.self p:last-child { font-size: clamp(22px, 2.6vw, 44px); line-height: 1.15; }

/* ---------- подвал ---------- */
footer { margin-top: 20vh; background: var(--ink); color: var(--yellow); padding: 14vh var(--g) var(--g); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.next { display: grid; gap: 8px; }
.next .big { font-weight: 900; font-size: clamp(56px, 13vw, 260px); line-height: .82; letter-spacing: -.05em; text-transform: uppercase; transition: color .3s; }
.next:hover .big { color: var(--fire); }
footer .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 2px solid var(--yellow); padding-top: 10px; }
footer .links a { font-weight: 900; font-size: clamp(20px, 3vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
footer .links a:hover { color: var(--fire); }

/* ---------- лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20, 18, 16, .95); display: none; place-items: center; padding: 48px var(--g); cursor: zoom-out; color: var(--yellow); }
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: calc(100svh - 96px); width: auto; object-fit: contain; border-radius: 12px; }
.lb .mono { position: absolute; top: 14px; left: var(--g); right: var(--g); display: flex; justify-content: space-between; gap: 16px; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--yellow); font: 900 40px var(--sans); padding: 16px; cursor: pointer; }
.lb button:hover { color: var(--fire); }
.lb [data-step="-1"] { left: 0; }
.lb [data-step="1"] { right: 0; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .bar nav, .bar > span:not(.switch) { display: none; }
  .console { border-radius: 18px 18px 44px 18px; box-shadow: 6px 6px 0 var(--fire); }
  .console .pill { display: none; }
  .nums, .scale ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
  .brief, .kit, .self { grid-template-columns: minmax(0, 1fr); }
  .passport p { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .club { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .club figure:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .stickers { gap: 18px; }
  .st { border-width: 4px; }
  .lb button { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
