/* Mikushinweb 2026: пиксельная HD-2D стилистика, тёплый «домашний» вариант */
:root {
  --bg: #f6ead8;
  --bg-2: #efdcc3;
  --paper: #fffaf0;
  --ink: #2b1d1a;
  --ink-2: #3d2a24;
  --muted: #6c5549;
  --shadow: #d6b994;
  --gold: #ffc93c;
  --gold-d: #e3a21a;
  --mint: #2fbf84;
  --sky: #4fb3ea;
  --pink: #ff7eb6;
  --red: #e8505b;
  --wood: #8a5a3b;
  --f-title: "Press Start 2P", ui-monospace, monospace;
  --f-text: "Handjet", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --b: 4px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
@media (max-width: 640px) { :root { --b: 3px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: clamp(20px, 1.45vw, 23px);
  line-height: 1.3;
  letter-spacing: .015em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: var(--b) solid var(--sky); outline-offset: 4px; }
html { scrollbar-color: var(--wood) var(--bg-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--wood); border: 3px solid var(--bg-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.gold { color: var(--gold-d); }

/* ---------- пиксельные примитивы ---------- */
.px {
  background: var(--paper);
  box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 2) calc(var(--b) * 2) 0 var(--b) var(--shadow);
}
.px--gold { box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 2) calc(var(--b) * 2) 0 var(--b) var(--gold); }
.px--ink { background: var(--ink); color: var(--paper); }

.btn {
  --bg: var(--gold);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: var(--b) solid var(--ink);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-title);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset calc(var(--b) * -1) calc(var(--b) * -1) 0 rgba(0, 0, 0, .2), inset var(--b) var(--b) 0 rgba(255, 255, 255, .5), 0 6px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s;
  clip-path: polygon(var(--b) 0, calc(100% - var(--b)) 0, calc(100% - var(--b)) var(--b), 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) calc(100% - var(--b)), calc(100% - var(--b)) 100%, var(--b) 100%, var(--b) calc(100% - var(--b)), 0 calc(100% - var(--b)), 0 var(--b), var(--b) var(--b));
}
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset var(--b) var(--b) 0 rgba(0, 0, 0, .2), 0 0 0 var(--ink); }
.btn--ghost { --bg: var(--paper); }
.btn--ghost:hover { --bg: #fff3d6; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 11px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.h2 {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--f-title);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.4;
  text-wrap: balance;
  text-shadow: 3px 3px 0 var(--gold);
}
.h2 .ch { opacity: 0; }
.h2.typed .ch { opacity: 1; transition: opacity 0s calc(var(--i) * 26ms); }
.lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: clamp(21px, 1.6vw, 25px); }
.sec { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.sec--alt { background: var(--bg-2); }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(255, 250, 240, .94); box-shadow: 0 var(--b) 0 var(--ink); backdrop-filter: blur(8px); }
.top__in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo__face { width: 44px; height: 44px; overflow: hidden; background: #ffe7b8; box-shadow: 0 0 0 3px var(--ink); }
.logo__face img { width: 52px; margin: 2px 0 0 -4px; image-rendering: pixelated; }
.logo__t { font-family: var(--f-title); font-size: 13px; line-height: 1.4; }
.logo__t small { display: block; font-family: var(--f-text); font-size: 17px; color: var(--muted); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 11px; font-size: 21px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::before { content: "▶"; font-size: 11px; margin-right: 6px; vertical-align: 2px; color: var(--gold-d); }
.ach-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 3px solid var(--ink); background: var(--paper); cursor: pointer; font-family: var(--f-title); font-size: 11px; }
.ach-btn .ico { width: 20px; height: 20px; color: var(--gold-d); }
.ach-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.burger { display: none; width: 48px; height: 44px; border: 3px solid var(--ink); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; }
.burger .ico { width: 24px; height: 24px; }
.mnav { display: none; }
@media (max-width: 1120px) {
  .nav, .top .btn { display: none; }
  .burger { display: flex; }
  .mnav { position: fixed; inset: 72px 0 auto; z-index: 49; display: grid; gap: 4px; padding: 16px var(--gut) 24px; background: var(--paper); box-shadow: 0 var(--b) 0 var(--ink); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s; }
  .mnav.open { transform: none; opacity: 1; pointer-events: auto; }
  .mnav a:not(.btn) { padding: 12px 0; font-size: 26px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--bg-2); }
  .mnav .btn { margin-top: 14px; }
}
@media (max-width: 480px) { .logo__t small { display: none; } .logo__t { font-size: 11px; } }

/* ---------- достижения ---------- */
.toasts { position: fixed; z-index: 80; top: 88px; right: var(--gut); display: grid; gap: 18px; width: min(370px, calc(100vw - 2 * var(--gut))); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 16px; padding: 14px 18px; animation: toastIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.toast.out { animation: toastOut .3s ease-in both; }
.toast__i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--gold); box-shadow: 0 0 0 3px var(--ink); }
.toast__i .ico { width: 28px; height: 28px; }
.toast__k { font-family: var(--f-title); font-size: 9px; color: var(--gold-d); }
.toast__t { margin-top: 6px; font-family: var(--f-title); font-size: 12px; line-height: 1.5; }
.toast__s { font-size: 18px; color: var(--muted); }
@keyframes toastIn { from { transform: translateY(-40px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }
.ach-pop { position: fixed; z-index: 79; top: 84px; right: var(--gut); width: min(380px, calc(100vw - 2 * var(--gut))); padding: 20px 22px 16px; display: none; }
.ach-pop.open { display: block; animation: toastIn .3s var(--ease) both; }
.ach-pop h3 { margin: 0 0 14px; font-family: var(--f-title); font-size: 12px; font-weight: 400; }
.ach-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ach-pop li { display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--muted); }
.ach-pop li .ico { width: 22px; height: 22px; color: var(--shadow); }
.ach-pop li.got { color: var(--ink); }
.ach-pop li.got .ico { color: var(--gold-d); }
.ach-pop p { margin: 14px 0 0; font-size: 18px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: #e9cfae; }
.hero__scene { position: absolute; inset: 0; }
.hero__scene canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.hero__scene.hot canvas { cursor: pointer; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.no-gl .hero__fallback { display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(246, 234, 216, .96) 0%, rgba(246, 234, 216, .82) 33%, rgba(246, 234, 216, 0) 58%); }
.hero__in { position: relative; z-index: 4; width: 100%; padding-top: 110px; padding-bottom: 72px; pointer-events: none; }
.hero__in > * { pointer-events: auto; }
.hero__copy { max-width: 700px; }
.h1 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(24px, 3.1vw, 46px); line-height: 1.34; text-shadow: 4px 4px 0 var(--gold); }
.dlg { position: relative; display: flex; gap: 20px; margin: clamp(30px, 4vw, 46px) 0 0; padding: 18px 22px 18px 18px; max-width: 600px; cursor: pointer; user-select: none; }
.dlg__face { flex: none; width: 96px; height: 96px; overflow: hidden; background: #ffe7b8; box-shadow: 0 0 0 3px var(--ink); }
.dlg__face img { width: 110px; margin: 4px 0 0 -7px; image-rendering: pixelated; }
.dlg__face.pop img { animation: facePop .35s var(--ease); }
@keyframes facePop { 40% { transform: scale(1.12) translateY(-3px); } }
.dlg__name { font-family: var(--f-title); font-size: 11px; color: var(--gold-d); margin: 2px 0 10px; }
.dlg__txt { margin: 0; min-height: 2.6em; font-size: clamp(22px, 1.7vw, 26px); font-weight: 600; line-height: 1.25; }
.dlg__txt em { font-style: normal; color: #c97f00; }
.dlg__next { position: absolute; right: 16px; bottom: 10px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 11px solid var(--ink); animation: nextBob .8s steps(2) infinite; opacity: 0; }
.dlg.done .dlg__next { opacity: 1; }
@keyframes nextBob { 50% { transform: translateY(4px); } }
@keyframes nextBobX { 50% { transform: translateX(4px); } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 18px 20px; margin-top: clamp(30px, 3.6vw, 44px); }
.hero__hint { position: absolute; z-index: 4; font-family: var(--f-title); font-size: 10px; color: var(--paper); background: var(--ink); padding: 8px 10px; transform: translate(18px, -50%); pointer-events: none; transition: opacity .3s; white-space: nowrap; animation: nextBobX .8s steps(2) infinite; }
.hero__hint::after { content: ""; position: absolute; left: -12px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right-color: var(--ink); }
.hero__hint.gone { opacity: 0; }
.wipe { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: repeat(var(--cols), 1fr); pointer-events: none; }
.wipe i { background: var(--ink); animation: wipeOut .5s steps(4) both; animation-delay: calc(var(--dd) * 1ms); }
@keyframes wipeOut { to { transform: scale(0); } }
@media (max-width: 860px) {
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(246, 234, 216, .98) 0%, rgba(246, 234, 216, .93) 46%, rgba(246, 234, 216, 0) 64%); }
  .hero__in { padding-top: 48vh; padding-bottom: 40px; }
  .dlg { gap: 14px; padding: 14px 16px 16px 14px; }
  .dlg__face { width: 64px; height: 64px; }
  .dlg__face img { width: 74px; margin-left: -5px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* бегущая строка «что входит» */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: var(--b) solid var(--ink); }
.ticker__row { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 18px 11px; font-family: var(--f-title); font-size: 12px; white-space: nowrap; }
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- кто я ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.reveal { position: relative; aspect-ratio: 3 / 4; touch-action: pan-y; cursor: ew-resize; }
.reveal canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.reveal__bar { position: absolute; left: 0; right: 0; bottom: -46px; display: flex; align-items: center; justify-content: space-between; font-family: var(--f-title); font-size: 10px; color: var(--muted); }
.reveal__meter { flex: 1; height: 12px; margin: 0 14px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); position: relative; }
.reveal__meter i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: repeating-linear-gradient(90deg, var(--mint) 0 10px, transparent 10px 13px); }
.sheet__name { font-family: var(--f-title); font-size: clamp(18px, 2vw, 26px); line-height: 1.4; margin: 0; }
.sheet__cls { margin: 10px 0 0; font-size: 22px; color: var(--muted); }
.sheet__cls b { color: #1d9a68; font-weight: 600; }
.stats { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.stat__n { font-family: var(--f-title); font-size: clamp(22px, 2.4vw, 32px); text-shadow: 3px 3px 0 var(--gold); }
.stat__l { margin-top: 10px; font-size: 21px; line-height: 1.2; }
.stat__xp { display: flex; gap: 3px; margin-top: 12px; }
.stat__xp i { width: 12px; height: 8px; background: var(--shadow); }
.stat__xp i.on { background: var(--mint); }
.about__story { margin: 0; max-width: 56ch; font-size: clamp(21px, 1.6vw, 24px); color: var(--muted); }
.about__story strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .reveal { max-width: 440px; margin-bottom: 40px; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- «мне нужен сайт» ---------- */
.need__head { max-width: 900px; }
.needs { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: clamp(30px, 3vw, 40px); }
.need {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 3px solid var(--ink); background: var(--paper);
  font-size: 21px; font-weight: 600; cursor: pointer; box-shadow: 4px 4px 0 var(--shadow); transition: transform .15s var(--ease), background .15s, box-shadow .15s;
}
.need::before { content: ""; width: 14px; height: 14px; border: 3px solid var(--ink); background: var(--paper); flex: none; }
.need:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.need[aria-pressed="true"] { background: var(--gold); }
.need[aria-pressed="true"]::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.need__go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; font-size: 21px; color: var(--muted); }
.need__go .btn { transition: opacity .2s, transform .18s var(--ease); }
.need__go[data-n="0"] .btn { opacity: .45; pointer-events: none; }

/* ---------- что я разбираю ---------- */
.an__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 2.6vw, 40px); }
.an { padding: 22px 22px 24px; }
.an__h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.an__i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--sky); box-shadow: 0 0 0 3px var(--ink); }
.an:nth-child(2) .an__i { background: var(--pink); } .an:nth-child(3) .an__i { background: var(--mint); } .an:nth-child(4) .an__i { background: var(--gold); }
.an__i .ico { width: 26px; height: 26px; }
.an__t { margin: 0; font-family: var(--f-title); font-size: 14px; font-weight: 400; }
.an ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.an li { display: flex; gap: 10px; font-size: 21px; line-height: 1.2; }
.an li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border: 3px solid var(--ink); background: var(--paper); transition: background .2s; transition-delay: calc(var(--k) * 120ms + 300ms); }
.an.in li::before { background: var(--mint); }
@media (max-width: 1080px) { .an__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .an__grid { grid-template-columns: 1fr; } }

/* ---------- один разбор, четыре шага ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 36px); }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 26px; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 20px); }
.step { position: relative; }
.step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; background: var(--paper); box-shadow: 0 0 0 var(--b) var(--ink); font-family: var(--f-title); font-size: 14px; }
.step:last-child .step__dot { background: var(--gold); }
.step__k { margin: 26px 0 8px; font-family: var(--f-title); font-size: 10px; color: var(--muted); text-transform: uppercase; }
.step__t { margin: 0; font-family: var(--f-title); font-size: clamp(13px, 1.1vw, 16px); line-height: 1.5; font-weight: 400; }
.step__d { margin: 12px 0 0; font-size: 21px; color: var(--muted); }
.step:last-child .step__card { box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 2) calc(var(--b) * 2) 0 var(--b) var(--gold); }
.step__card { margin-top: 26px; padding: 20px 20px 22px; }
.step__card .step__k { margin-top: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- творческие проекты ---------- */
.proj__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 44px); }
.card { display: block; text-decoration: none; color: inherit; }
.screen { position: relative; overflow: hidden; background: #1a1210; aspect-ratio: 16 / 10; }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.screen__bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 7px 9px; background: rgba(43, 29, 26, .9); font-family: var(--f-title); font-size: 8px; color: #e9d9c2; }
.screen__bar i { width: 9px; height: 9px; }
.screen__bar i:nth-child(1) { background: var(--red); } .screen__bar i:nth-child(2) { background: var(--gold); } .screen__bar i:nth-child(3) { background: var(--mint); }
.screen__bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen__go { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--gold); font-family: var(--f-title); font-size: 10px; box-shadow: 0 0 0 3px var(--ink); transform: translateY(12px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.screen__go .ico { width: 16px; height: 16px; }
.card:hover .screen__go, .card:focus-visible .screen__go { transform: none; opacity: 1; }
.card .px { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover .px { transform: translate(-4px, -4px); box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 4) calc(var(--b) * 4) 0 var(--b) var(--gold); }
.screen { contain: paint; }
.screen.is-live::before { content: ""; position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; animation: crtFlash .5s steps(4) forwards; }
@keyframes crtFlash { 0% { opacity: .9; clip-path: inset(48% 0 48% 0); } 50% { opacity: .7; clip-path: inset(0); } 100% { opacity: 0; clip-path: inset(0); } }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.card__t { margin: 0; font-family: var(--f-title); font-size: clamp(13px, 1.1vw, 16px); font-weight: 400; }
.tag { flex: none; padding: 5px 8px 4px; font-size: 16px; font-weight: 700; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); }
.tag--warn { background: var(--pink); }
.card__d { margin: 10px 0 0; color: var(--muted); font-size: 21px; }
@media (max-width: 960px) { .proj__grid { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- кейсы: закрытые карточки, как на прежнем сайте ---------- */
.cases__note { margin: -8px 0 clamp(30px, 3vw, 42px); font-size: 20px; color: var(--muted); }
.cases { display: flex; flex-wrap: wrap; gap: clamp(26px, 2.4vw, 36px); }
.case { perspective: 1800px; }
.case:nth-child(1) { flex: 2 1 520px; height: clamp(400px, 40vw, 540px); }
.case:nth-child(2), .case:nth-child(3) { flex: 1 1 320px; height: clamp(400px, 40vw, 540px); }
.case:nth-child(4) { flex: 2 1 520px; height: clamp(400px, 40vw, 540px); }
.case:nth-child(5), .case:nth-child(6) { flex: 1 1 380px; height: clamp(360px, 32vw, 450px); }
.case__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.65, 0, .35, 1); cursor: pointer; }
.case.flip .case__in { transform: rotateY(180deg); }
.case__f, .case__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.case__f { background: var(--ink); color: var(--paper); }
.case__f .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) grayscale(1) brightness(.5); transform: scale(1.25); }
.case__f .ic { position: absolute; top: 50%; left: 50%; width: 44%; transform: translate(-50%, -60%); opacity: .2; filter: grayscale(1) brightness(3); image-rendering: pixelated; }
.case__f .lock { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.case__f .lock .ico { width: 22px; height: 22px; }
.case__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.chip { align-self: flex-start; padding: 6px 10px 5px; background: var(--gold); color: var(--ink); font-size: 18px; font-weight: 700; box-shadow: 0 0 0 3px var(--ink); }
.case__task { font-family: var(--f-title); font-size: clamp(14px, 1.3vw, 19px); line-height: 1.5; max-width: 26ch; }
.case:nth-child(1) .case__task, .case:nth-child(4) .case__task { font-size: clamp(16px, 1.7vw, 25px); }
.case__open { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 21px; font-weight: 700; color: var(--gold); }
.case__open .ico { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.case:hover .case__open .ico { transform: translateX(4px); }
.case__b { transform: rotateY(180deg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.case__b .chip { background: var(--paper); }
.case__t { margin: 14px 0 10px; font-family: var(--f-title); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.5; font-weight: 400; }
.case__d { margin: 0; font-size: 21px; color: var(--muted); }
.case__done { margin-top: 12px; font-size: 19px; color: var(--muted); }
.case__done b { display: block; color: var(--ink); font-weight: 700; }
.case__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case__hide { font-size: 19px; color: var(--muted); }
.case__in:focus-visible { outline: var(--b) solid var(--sky); outline-offset: 6px; }

/* ---------- YouTube ---------- */
.yt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; margin-bottom: clamp(30px, 3vw, 44px); }
.yt__brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.yt__logo { width: 64px; height: 45px; flex: none; }
.yt__brand b { display: block; font-family: var(--f-title); font-size: clamp(14px, 1.3vw, 18px); font-weight: 400; line-height: 1.5; }
.yt__brand span { font-size: 20px; color: var(--muted); }
.yt__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 44px); }
.vcard { display: block; text-decoration: none; color: inherit; }
.vcard__th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.vcard__th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__th img { transform: scale(1.04); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; transition: transform .2s var(--ease); }
.vcard:hover .vcard__play { transform: scale(1.1); }
.vcard__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 17px; font-weight: 600; }
.vcard__t { margin: 22px 0 0; font-size: 23px; font-weight: 700; line-height: 1.15; }
.vcard__m { margin: 6px 0 0; font-size: 19px; color: var(--muted); }
.vcard--soon .vcard__th { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ead6bb 0 14px, #e3cdb0 14px 28px); }
.vcard--soon .lk { display: grid; place-items: center; width: 60px; height: 60px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); }
.vcard--soon .lk .ico { width: 30px; height: 30px; }
.vcard .px { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.vcard:not(.vcard--soon):hover .px { transform: translate(-4px, -4px); box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 4) calc(var(--b) * 4) 0 var(--b) var(--red); }
@media (max-width: 900px) { .yt__grid { grid-template-columns: 1fr; max-width: 600px; } }

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 2.8vw, 40px); }
.pr { display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 32px); }
.pr--hot { background: #fff1cc; }
.pr__t { margin: 0; font-family: var(--f-title); font-size: clamp(12px, 1vw, 14px); font-weight: 400; line-height: 1.5; }
.pr__p { margin: 18px 0 8px; font-family: var(--f-title); font-size: clamp(22px, 2.2vw, 32px); text-shadow: 3px 3px 0 var(--gold); }
.pr--free .pr__p { color: #1d9a68; text-shadow: 3px 3px 0 #bfeedd; }
.pr__note { margin: 0; color: var(--muted); font-size: 20px; }
.pr ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 8px; }
.pr li { display: flex; gap: 12px; font-size: 20px; line-height: 1.2; }
.pr li .ico { width: 20px; height: 20px; margin-top: 1px; color: #1d9a68; }
.pr .btn { margin-top: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(44px, 4vw, 64px); padding: clamp(22px, 2.6vw, 36px); align-items: center; }
.split__h { margin: 0 0 12px; font-family: var(--f-title); font-size: clamp(16px, 1.6vw, 22px); line-height: 1.45; font-weight: 400; }
.split p { margin: 0; color: var(--muted); font-size: 21px; }
.split__nums { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.split__nums div { padding: 12px 14px; background: var(--ink); color: var(--paper); }
.split__nums b { display: block; font-family: var(--f-title); font-size: 16px; font-weight: 400; color: var(--gold); }
.split__nums span { font-size: 18px; }
.prov { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prov div { padding: 12px 14px; background: var(--bg); box-shadow: 0 0 0 3px var(--ink); }
.prov b { display: block; font-size: 21px; }
.prov span { font-size: 18px; color: var(--muted); }
.split__why { grid-column: 1 / -1; padding-top: 18px; border-top: 3px dashed var(--shadow); }
.split__why b { font-family: var(--f-title); font-size: 11px; font-weight: 400; display: block; margin-bottom: 8px; }
.pr__foot { margin: 18px 0 0; font-size: 18px; color: var(--muted); }
@media (max-width: 1000px) { .prices { grid-template-columns: 1fr; max-width: 620px; } .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list { max-width: 920px; display: grid; gap: 22px; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: clamp(22px, 1.7vw, 25px); font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { width: 26px; height: 26px; transition: transform .25s var(--ease); }
.qa[open] summary .ico { transform: rotate(180deg); }
.qa summary:hover { color: #c97f00; }
.qa__a { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: 21px; max-width: 70ch; }

/* ---------- контакты ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact__big { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(24px, 3.4vw, 48px); line-height: 1.35; text-shadow: 4px 4px 0 var(--gold); }
.contact__lead { margin: 22px 0 30px; color: var(--muted); max-width: 44ch; font-size: clamp(21px, 1.6vw, 24px); }
.chans { display: grid; gap: 14px; max-width: 420px; }
.chan { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; text-decoration: none; font-size: 22px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s; }
.chan span { color: var(--muted); font-weight: 600; font-size: 19px; }
.chan .ico { width: 20px; height: 20px; }
.chan:hover { transform: translate(-3px, -3px); box-shadow: 0 0 0 var(--b) var(--ink), calc(var(--b) * 3) calc(var(--b) * 3) 0 var(--b) var(--gold); }
.me { display: flex; align-items: flex-end; gap: 18px; margin-top: 40px; }
.me__photo { width: 140px; aspect-ratio: 1; overflow: hidden; background: #fff; }
.me__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.me__bubble { position: relative; margin-bottom: 20px; padding: 14px 16px; background: var(--paper); font-size: 20px; font-weight: 600; line-height: 1.2; max-width: 260px; box-shadow: 0 0 0 3px var(--ink); }
.me__bubble::before { content: ""; position: absolute; left: -15px; bottom: 14px; border: 6px solid transparent; border-right-color: var(--ink); border-width: 6px 9px; }
.form { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 20px; }
.form h3 { margin: 0; font-family: var(--f-title); font-size: 14px; font-weight: 400; line-height: 1.5; }
.fld { display: grid; gap: 8px; }
.fld label { font-size: 20px; font-weight: 600; }
.fld input, .fld textarea { width: 100%; padding: 12px 14px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--f-text); font-size: 22px; font-weight: 500; border-radius: 0; caret-color: #c97f00; transition: box-shadow .15s; }
.fld textarea { min-height: 112px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: #8f776a; }
.fld input:focus, .fld textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--gold); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; color: var(--muted); cursor: pointer; }
.chk input { appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 3px solid var(--ink); background: #fff; cursor: pointer; display: grid; place-items: center; }
.chk input:checked { background: var(--mint); }
.chk input:checked::after { content: ""; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.chk a { color: var(--ink); text-underline-offset: 3px; }
.form__msg { margin: 0; font-size: 20px; }
.form__msg.err { color: #c42d38; }
.form__msg.ok { color: #1d9a68; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.foot { padding: 34px 0 40px; background: var(--ink); color: #d9c6ad; font-size: 19px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot a { color: #d9c6ad; text-underline-offset: 3px; }
.foot a:hover { color: var(--gold); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.ck { position: fixed; z-index: 70; left: var(--gut); bottom: 20px; max-width: 420px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; font-size: 19px; line-height: 1.2; animation: toastIn .4s var(--ease) both; }
@media (max-width: 520px) { .ck { left: 12px; right: 12px; bottom: 12px; } }
.coin-fx { position: fixed; z-index: 95; width: 20px; height: 20px; background: var(--gold); box-shadow: inset -4px -4px 0 var(--gold-d), 0 0 0 3px var(--ink); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .h2 .ch { opacity: 1; }
}
.h1 .gold { color: var(--gold); text-shadow: 4px 4px 0 var(--ink); }
/* перламутр со старого сайта: акцент на выделенной карточке и в бегущей строке */
@keyframes pearl { to { background-position: 200% 50%; } }
.pr--hot { background: linear-gradient(100deg, #efe7ff 0%, #bfd9ff 18%, #ffd9ec 40%, #d8fff1 60%, #fff1cc 82%, #efe7ff 100%); background-size: 200% 100%; animation: pearl 12s linear infinite; }
.ticker span::after { background: linear-gradient(135deg, #bfd9ff, #ffd9ec, #d8fff1); }
/* правки 3-го круга */
.logo__face img { width: 46px; margin: 3px 0 0 -1px; }
.h2--sub { margin-bottom: 10px; }
.h2-sub { margin: 0 0 18px; font-family: var(--f-title); font-size: clamp(12px, 1.1vw, 15px); color: var(--muted); }
.pr__p { white-space: nowrap; font-size: clamp(20px, 1.9vw, 30px); }
.prov div { display: flex; align-items: center; gap: 12px; }
.prov img { flex: none; width: 40px; height: 40px; image-rendering: auto; }
.prov span { display: block; font-size: 18px; color: var(--muted); }
.prov span b { display: block; font-size: 21px; color: var(--ink); }

/* ---------- игровая загрузка ---------- */
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .35s; animation: bootSafety 0s 7s forwards; }
.boot.done { opacity: 0; pointer-events: none; }
@keyframes bootSafety { to { opacity: 0; visibility: hidden; } }
.boot__in { width: min(560px, calc(100vw - 2 * var(--gut))); }
.boot__k { font-family: var(--f-title); font-size: 12px; color: var(--muted); }
.boot__n { margin: 14px 0 26px; font-family: var(--f-title); font-size: clamp(44px, 9vw, 84px); line-height: 1; text-shadow: 5px 5px 0 var(--gold); font-variant-numeric: tabular-nums; }
.boot__track { position: relative; height: 28px; margin-top: 70px; background: var(--paper); box-shadow: 0 0 0 var(--b) var(--ink), 6px 6px 0 var(--b) var(--shadow); }
.boot__fill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) * var(--p, 0)); background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--gold-d) 14px 18px); }
.boot__runner { position: absolute; bottom: 30px; left: calc(var(--p, 0) * 100%); width: 40px; margin-left: -24px; image-rendering: pixelated; scale: -1 1; animation: run .28s steps(2) infinite; }
@keyframes run { 50% { transform: translateY(-5px); } }
.boot__coin { position: absolute; top: -34px; width: 12px; height: 12px; margin-left: -6px; background: var(--gold); box-shadow: inset -3px -3px 0 var(--gold-d), 0 0 0 2px var(--ink); transition: transform .3s, opacity .3s; }
.boot__coin.got { transform: translateY(-22px); opacity: 0; }
.boot__tip { margin: 30px 0 0; min-height: 2.6em; font-size: 21px; color: var(--muted); }
.boot__tip b { color: var(--ink); font-weight: 600; }

/* ---------- реплики объектов в комнате ---------- */
.bubble { position: absolute; z-index: 5; padding: 8px 12px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); font-family: var(--f-title); font-size: 11px; white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; animation: bubIn .25s cubic-bezier(.34, 1.56, .64, 1) both; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.bubble.out { opacity: 0; transition: opacity .25s; }
@keyframes bubIn { from { transform: translate(-50%, -70%) scale(.6); opacity: 0; } }

.reveal { cursor: default; }

/* ---------- «мне нужен сайт» + бриф ---------- */
.need__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 3vw, 40px); }
.need__grid .needs { margin-top: 0; }
.brief { position: sticky; top: 100px; padding: 22px 22px 24px; background: #fffdf6 repeating-linear-gradient(0deg, transparent 0 33px, #efe0c8 33px 35px); }
.brief__top { display: flex; align-items: center; gap: 14px; }
.brief__top .dlg__face { width: 64px; height: 64px; }
.brief__top .dlg__face img { width: 74px; margin-left: -5px; }
.brief__say { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.2; }
.brief__h { margin: 20px 0 10px; font-family: var(--f-title); font-size: 11px; display: flex; justify-content: space-between; }
.brief ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 140px; align-content: start; }
.brief li { display: flex; gap: 10px; font-size: 21px; line-height: 1.2; animation: slideIn .3s var(--ease) both; }
.brief li .ico { width: 18px; height: 18px; margin-top: 3px; color: #1d9a68; }
.brief__empty { color: var(--muted); font-size: 20px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } }
.brief .btn { margin-top: 18px; width: 100%; }
.brief[data-n="0"] .btn { opacity: .45; pointer-events: none; }
@media (max-width: 900px) { .need__grid { grid-template-columns: 1fr; } .brief { position: relative; top: 0; } }

/* ---------- что я разбираю: вкладки ---------- */
.atabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.atab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border: 0; box-shadow: 0 0 0 var(--b) var(--ink); cursor: pointer; text-align: left; font-family: var(--f-title); font-size: clamp(11px, 1vw, 13px); color: var(--ink); transition: transform .15s var(--ease), background .15s; }
.atab .an__i { width: 40px; height: 40px; }
.atab .an__i .ico { width: 22px; height: 22px; }
.atab:nth-child(2) .an__i { background: var(--pink); } .atab:nth-child(3) .an__i { background: var(--mint); } .atab:nth-child(4) .an__i { background: var(--gold); }
.atab:hover { transform: translateY(-3px); }
.atab[aria-selected="true"] { background: #fff1cc; transform: translateY(-4px); box-shadow: 0 0 0 var(--b) var(--ink), 0 8px 0 var(--b) var(--ink); }
.atab__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold-d); }
.atab[aria-selected="true"] .atab__bar.run { animation: tabBar 5s linear forwards; }
@keyframes tabBar { to { width: 100%; } }
.apanel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 3vw, 40px); padding: clamp(22px, 2.6vw, 36px); align-items: center; }
.apanel__why { margin: 0; font-family: var(--f-title); font-size: clamp(14px, 1.35vw, 19px); line-height: 1.6; }
.apanel__why span { display: block; margin-top: 14px; font-family: var(--f-text); font-size: 21px; color: var(--muted); line-height: 1.25; }
.apanel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.apanel li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); box-shadow: 0 0 0 3px var(--ink); font-size: 21px; line-height: 1.15; opacity: 0; transform: translateY(8px); animation: itemIn .35s var(--ease) forwards; animation-delay: calc(var(--k) * 110ms); }
.apanel li .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #1d9a68; }
@keyframes itemIn { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .atabs { grid-template-columns: 1fr 1fr; } .apanel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .apanel ul { grid-template-columns: 1fr; } }

/* ---------- один разбор: живой макет + шаги ---------- */
.think { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; background: var(--ink); }
.mock__bar i { width: 10px; height: 10px; } .mock__bar i:nth-child(1) { background: var(--red); } .mock__bar i:nth-child(2) { background: var(--gold); } .mock__bar i:nth-child(3) { background: var(--mint); }
.mock__bar span { margin-left: 8px; font-family: var(--f-title); font-size: 9px; color: #e9d9c2; }
.mock canvas { width: 100%; aspect-ratio: 16 / 10; image-rendering: pixelated; background: #fff; }
.mock__cap { margin: 24px 0 0; font-family: var(--f-title); font-size: 12px; color: var(--muted); }
.stepper { display: grid; gap: 16px; }
.sbtn { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; width: 100%; padding: 16px 18px; text-align: left; background: var(--paper); border: 0; box-shadow: 0 0 0 var(--b) var(--ink); cursor: pointer; color: var(--ink); transition: transform .15s var(--ease), background .2s; }
.sbtn:hover { transform: translateX(4px); }
.sbtn .step__dot { width: 44px; height: 44px; font-size: 12px; box-shadow: 0 0 0 3px var(--ink); }
.sbtn .step__k { margin: 2px 0 6px; }
.sbtn .step__k, .sbtn .step__t { display: block; }
.sbtn .step__d { display: none; margin: 10px 0 0; font-size: 20px; color: var(--muted); }
.sbtn[aria-selected="true"] { background: #fff1cc; transform: translateX(8px); box-shadow: 0 0 0 var(--b) var(--ink), -8px 8px 0 var(--b) var(--gold); }
.sbtn[aria-selected="true"] .step__dot { background: var(--gold); }
.sbtn[aria-selected="true"] .step__d { display: block; animation: slideIn .3s var(--ease) both; }
@media (max-width: 900px) { .think { grid-template-columns: 1fr; } }


/* ---------- «что вы покупаете»: сцена на холме сверху, пакеты как раньше ---------- */
.price-scene { padding-top: 0; background: var(--bg-2); }
.hill__m { display: block; width: 100%; height: clamp(460px, 82vh, 780px); object-fit: cover; object-position: 72% 52%; image-rendering: pixelated; border-bottom: var(--b) solid var(--ink); }
.price-scene .wrap { position: relative; z-index: 2; margin-top: -48px; }
.h2--panel { display: inline-block; padding: 12px 18px; background: var(--paper); box-shadow: 0 0 0 var(--b) var(--ink), 6px 6px 0 var(--b) var(--shadow); }
@media (max-width: 700px) { .hill__m { height: 82vw; object-position: 80% 75%; } }

/* ---------- контакты: контраст и прогресс заявки ---------- */
.contact__big .gold { color: var(--ink); }
.fhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fprog { display: flex; gap: 5px; }
.fprog i { width: 22px; height: 12px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); transition: background .25s; }
.fprog i.on { background: var(--mint); }
.me__bubble { transition: transform .2s var(--ease); }
.me__bubble.pop { animation: bubPop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bubPop { 40% { transform: scale(1.06) translateY(-3px); } }


/* ---------- правки 5-го круга ---------- */
/* заголовок hero: золото с тёмной обводкой читается на любом фоне */
.h1 .gold { color: var(--gold); text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 5px 5px 0 var(--ink); }
@media (max-width: 860px) { .hero::after { background: linear-gradient(0deg, rgba(246, 234, 216, 1) 0%, rgba(246, 234, 216, .96) 50%, rgba(246, 234, 216, 0) 66%); } }

/* кейсы на телефоне: горизонтальная лента */
@media (max-width: 700px) {
  .cases { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut) 26px; scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .case, .case:nth-child(n) { flex: 0 0 82vw; height: 440px; scroll-snap-align: center; }
  .cases__swipe { display: flex; }
}
.cases__swipe { display: flex; align-items: center; gap: 10px; margin: -6px 0 0; font-size: 19px; color: var(--muted); }
.cases__swipe .ico { width: 18px; height: 18px; animation: nextBobX .8s steps(2) infinite; }

/* кнопка рассрочки */
.split__cta { margin-top: 22px; }

/* виджет Telegram */
.tgw { position: fixed; z-index: 60; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); display: flex; align-items: center; gap: 12px; text-decoration: none; transform: translateY(140%); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.tgw.on { transform: none; }
.tgw__face { position: relative; flex: none; width: 64px; height: 64px; overflow: hidden; background: #ffe7b8; box-shadow: 0 0 0 var(--b) var(--ink), 6px 6px 0 var(--b) rgba(43, 29, 26, .35); transition: transform .2s var(--ease); }
.tgw__face img { width: 74px; margin: 4px 0 0 -5px; image-rendering: pixelated; }
.tgw__dot { position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); animation: twinkleDot 1.6s steps(2) infinite; }
@keyframes twinkleDot { 50% { opacity: .4; } }
.tgw__say { padding: 10px 14px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); font-size: 19px; font-weight: 700; line-height: 1.1; white-space: nowrap; transition: opacity .3s, transform .3s; }
.tgw__say small { display: block; font-size: 16px; font-weight: 600; color: #2a9fd8; }
.tgw:hover .tgw__face { transform: translateY(-3px); }
.tgw.quiet .tgw__say { opacity: 0; transform: translateX(10px); pointer-events: none; }
.tgw.quiet:hover .tgw__say { opacity: 1; transform: none; }
@media (max-width: 700px) { .tgw__face { width: 56px; height: 56px; } .tgw__face img { width: 64px; } body:has(.ck) .tgw { bottom: 104px; } }

@media (min-width: 701px) { .cases__swipe { display: none; } }


/* виджет на телефоне: подпись всегда видна */
@media (max-width: 700px) { .tgw__say { font-size: 17px; padding: 8px 10px; } .tgw.quiet .tgw__say { opacity: 1; transform: none; } }

/* переключатель языка */
.lang { display: flex; gap: 2px; height: 44px; padding: 3px; border: 3px solid var(--ink); background: var(--paper); }
.lang a { display: flex; align-items: center; gap: 7px; padding: 0 9px; font-family: var(--f-title); font-size: 10px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.lang a:not([aria-current]):hover { color: var(--ink); background: #fff1cc; }
.lang svg { width: 20px; height: 14px; flex: none; box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 1120px) { .lang a[aria-current="page"] { display: none; } .lang { padding: 3px; } }
@media (max-width: 400px) { .lang a span { display: none; } }

/* шапка с переключателем языка: без переносов */
.nav a, .logo__t, .logo__t small { white-space: nowrap; }
.nav a { padding: 10px 8px; }
@media (max-width: 1360px) { .logo__t small { display: none; } .top__in { gap: 12px; } }

/* подсказка на телефоне: над головой, со стрелкой вниз и пульсом */
.hero__hint--top { transform: translate(-50%, -100%); animation: hintPulse 1s steps(2) infinite; font-size: 11px; padding: 9px 12px; }
.hero__hint--top::after { left: 50%; top: auto; bottom: -12px; margin: 0 0 0 -6px; border-color: transparent; border-top-color: var(--ink); }
@keyframes hintPulse { 50% { transform: translate(-50%, calc(-100% - 5px)); } }

/* ---------- попап брифа ---------- */
.bmodal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.bmodal[hidden] { display: none; }
.bmodal__bg { position: absolute; inset: 0; background: rgba(43, 29, 26, .55); opacity: 0; transition: opacity .2s; }
.bmodal__win { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; transform: translateY(24px) scale(.96); opacity: 0; transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.bmodal.on .bmodal__bg { opacity: 1; }
.bmodal.on .bmodal__win { transform: none; opacity: 1; }
.bmodal__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; background: var(--ink); color: var(--paper); font-family: var(--f-title); font-size: 12px; }
.bmodal__x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer; }
.bmodal__x .ico { width: 20px; height: 20px; }
.bmodal__body { display: grid; gap: 16px; padding: 20px 22px 22px; }
.bmodal__list { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 6px; background: #fffdf6 repeating-linear-gradient(0deg, transparent 0 31px, #efe0c8 31px 33px); box-shadow: 0 0 0 3px var(--ink); }
.bmodal__list li { display: flex; gap: 10px; font-size: 21px; line-height: 1.2; animation: slideIn .3s var(--ease) both; }
.bmodal__list li:nth-child(2) { animation-delay: .06s; } .bmodal__list li:nth-child(3) { animation-delay: .12s; } .bmodal__list li:nth-child(n+4) { animation-delay: .18s; }
.bmodal__list .ico { width: 18px; height: 18px; margin-top: 3px; color: #1d9a68; }
.bmodal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bmodal .fld textarea { min-height: 70px; }
.bmodal .btn { width: 100%; }
html.modal-open { overflow: hidden; }
@media (max-width: 560px) { .bmodal__row { grid-template-columns: 1fr; } .bmodal__body { padding: 16px; gap: 14px; } }

/* аватарки: спрайт лица целиком в квадрате, фокус на лице (одно правило для всех рамок) */
.logo__face img, .dlg__face img, .tgw__face img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; object-position: 50% 22%; }

/* телефон: виджет одной компактной кнопкой (лицо внутри плашки), рассрочка без тесноты */
@media (max-width: 700px) {
  .tgw { right: 12px; bottom: 12px; gap: 0; padding: 4px 12px 4px 4px; background: var(--paper); box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px rgba(43, 29, 26, .3); flex-direction: row-reverse; }
  .tgw__face { width: 40px; height: 40px; box-shadow: none; }
  .tgw__dot { width: 9px; height: 9px; right: 2px; bottom: 2px; }
  .tgw__say { padding: 0 0 0 10px; box-shadow: none; background: none; font-size: 16px; }
  .tgw__say small { font-size: 14px; }
  .price-scene .prov div { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prov img { width: 34px; height: 34px; }
}

/* блок «Бесплатный калькулятор потерь» перед FAQ */
.freecalc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 44px); }
.freecalc__k { margin: 0 0 12px; display: inline-block; padding: 6px 10px; background: var(--ink); color: var(--gold); font-family: var(--f-title); font-size: 10px; }
.freecalc__t { margin-bottom: 14px; }
.freecalc__cta { display: grid; gap: 12px; }
@media (max-width: 860px) { .freecalc { grid-template-columns: 1fr; } .freecalc__cta .btn { white-space: normal; text-align: center; } }
