/* RetroJudge — ретро-аркадный стиль */

/* Шрифты лежат на нашем сервере (GDPR: без запросов к Google Fonts) */
@font-face { font-family: "Press Start 2P"; src: url("../fonts/press-start-2p.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0d0b1a;
  --bg-2: #16102b;
  --panel: #1b1035;
  --line: #3a2c5c;
  --text: #fffffe;
  --muted: #a7a9be;
  --orange: #ff8906;
  --pink: #e53170;
  --green: #2cb67d;
  --yellow: #ffd166;
  --red: #f25f4c;
  --cyan: #4cc9f0;

  --pixel: "Press Start 2P", monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 4px 4px 0 #000;
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Лёгкие CRT-полосы поверх всего сайта */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  z-index: 100;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--orange); }
a:hover { color: var(--yellow); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--yellow); color: var(--bg); padding: 8px 12px; z-index: 200;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Типографика ---------- */

.pixel-title {
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  text-shadow: 3px 3px 0 #000;
}
h1.pixel-title { font-size: clamp(22px, 4.2vw, 40px); }
h2.pixel-title { font-size: clamp(18px, 3vw, 28px); }

.kicker {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.kicker::before { content: "> "; }

.lead { font-size: 18px; color: #d9d8e8; max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  font: 12px/1.3 var(--pixel);
  text-decoration: none;
  text-transform: uppercase;
  color: var(--text);
  background: var(--panel);
  border: 3px solid var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.btn:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.btn-primary:hover { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 10px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 26, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-text { font: 14px var(--pixel); color: var(--text); }
.logo-text b { color: var(--orange); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav > a:not(.btn):hover, .site-nav > a.is-active { color: var(--text); }
.site-nav .btn { box-shadow: 3px 3px 0 #000; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font: 10px var(--pixel); text-decoration: none; color: var(--muted);
  padding: 6px 6px; border: 2px solid transparent;
}
.lang-switch a.is-active { color: var(--text); border-color: var(--line); }

.nav-toggle {
  display: none;
  font: 10px var(--pixel);
  color: var(--text);
  background: none;
  border: 2px solid var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 3px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .lang-switch { margin-top: 16px; }
}

/* ---------- Секции ---------- */

.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.section + .section { border-top: 3px dashed var(--line); }
.page-head { padding-bottom: 40px; }
.page-head + .section { border-top: 0; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 48px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-art { position: relative; }
.crane-svg {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 #000);
}
.crane-trolley { animation: trolley 4s ease-in-out infinite alternate; }
.crane-swing { animation: swing 1.3s ease-in-out infinite alternate; transform-origin: 0 25px; }
@keyframes trolley { from { transform: translateX(60px); } to { transform: translateX(140px); } }
@keyframes swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.hero-badge {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 92px; height: 92px;
  display: grid; place-content: center; text-align: center;
  background: var(--yellow);
  color: var(--bg);
  border: 3px solid #000;
  box-shadow: var(--shadow);
  transform: rotate(8deg);
  font-family: var(--pixel);
}
.hero-badge span { font-size: 20px; }
.hero-badge small { font-size: 9px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 0;
}
.stats > div {
  background: var(--panel);
  border: 3px solid var(--line);
  padding: 20px;
}
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 6px 0 0; font: 26px var(--pixel); color: var(--yellow); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-art { order: -1; width: 100%; max-width: 220px; margin-inline: auto; }
  .hero-badge { width: 64px; height: 64px; right: -8px; top: 0; }
  .hero-badge span { font-size: 14px; }
  .hero-badge small { font-size: 7px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ---------- Featured ---------- */

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.featured-screen {
  position: relative;
  display: block;
  border: 4px solid var(--text);
  box-shadow: 8px 8px 0 var(--orange);
  background: var(--bg-2);
}
.featured-screen img { width: 100%; height: auto; }
.screen-play {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  font: 40px var(--pixel); color: var(--text);
  background: rgba(13, 11, 26, 0.35);
  opacity: 0; transition: opacity 0.2s;
}
.featured-screen:hover .screen-play { opacity: 1; }

.pixel-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.pixel-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.pixel-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; background: var(--green); box-shadow: 2px 2px 0 #000;
}

@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Шаги ---------- */

.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.step { background: var(--panel); border: 3px solid var(--line); padding: 24px; position: relative; }
.step-num { font: 12px var(--pixel); color: var(--orange); }
.step h3 { font: 14px/1.5 var(--pixel); margin: 16px 0 12px; }
.step p { margin: 0; color: #d9d8e8; font-size: 15px; }
.step:not(:last-child)::after {
  content: "▶"; position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%); color: var(--orange); font-size: 12px; z-index: 1;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Карточки услуг ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card {
  background: var(--bg-2);
  border: 3px solid var(--line);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--pink); transform: translateY(-4px); }
.card-icon {
  display: grid; place-content: center;
  width: 48px; height: 48px;
  font-size: 22px;
  background: var(--pink); color: var(--text);
  box-shadow: var(--shadow);
}
.card h3 { font: 13px/1.5 var(--pixel); margin: 20px 0 10px; }
.card p { margin: 0; color: #d9d8e8; font-size: 15px; }

@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Связь (email) ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }

.mail-cta {
  display: inline-grid; gap: 6px;
  margin: 12px 0 14px;
  padding: 20px 26px;
  text-decoration: none;
  background: var(--orange); color: var(--bg);
  border: 4px solid #000; box-shadow: 8px 8px 0 var(--pink);
  transition: transform 0.08s, box-shadow 0.08s;
  max-width: 100%;
}
.mail-cta:hover { color: var(--bg); background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--pink); }
.mail-cta:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--pink); }
.mail-cta-label { font: 10px var(--pixel); text-transform: uppercase; }
.mail-cta-address { font: clamp(13px, 2.4vw, 20px)/1.4 var(--pixel); overflow-wrap: anywhere; }
.tips-title { font: 12px/1.5 var(--pixel); color: var(--yellow); margin: 36px 0 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .mail-cta { padding: 16px 18px; }
}

/* ---------- Статьи ---------- */

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .pixel-title { margin: 0; }
.section-link { font: 11px var(--pixel); text-decoration: none; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-grid-2 { grid-template-columns: repeat(2, 1fr); }
.article-card { --accent: var(--orange); }
.article-card-link {
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  text-decoration: none; color: var(--text);
  background: var(--panel);
  border: 3px solid var(--line); border-top: 8px solid var(--accent);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.article-card-link:hover { color: var(--text); transform: translateY(-4px); border-color: var(--accent); box-shadow: 6px 6px 0 #000; }
.article-card h3 { font: 13px/1.6 var(--pixel); margin: 0; }
.article-card p { margin: 0; color: #d9d8e8; font-size: 15px; flex: 1; }
.article-tag {
  align-self: flex-start;
  font: 9px var(--pixel); text-transform: uppercase;
  color: var(--accent); border: 2px solid var(--accent); padding: 5px 8px;
}
.article-meta { font-size: 13px; color: var(--muted); }
.article-more { color: var(--accent); }

@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .article-grid, .article-grid-2 { grid-template-columns: 1fr; } }

.article-wrap { max-width: 780px; }
.article .article-tag { display: inline-block; margin-bottom: 18px; }
.article h1.pixel-title { font-size: clamp(20px, 3.4vw, 32px); }
.article-byline { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.article-lead { font-size: 19px; color: var(--text); border-left: 4px solid var(--accent); padding-left: 18px; }
.article-body { font-size: 17px; line-height: 1.75; color: #d9d8e8; }
.article-body h2 { font: 14px/1.6 var(--pixel); color: var(--yellow); margin: 44px 0 14px; }
.article-body strong { color: var(--text); }
.article-body ul { padding-left: 22px; display: grid; gap: 10px; }
.article-body li::marker { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border: 2px solid var(--line); vertical-align: top; }
.article-body th { font: 10px var(--pixel); color: var(--yellow); background: var(--panel); }
.article-body td:first-child { color: var(--muted); }

.article-cta {
  margin-top: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: 28px;
  background: var(--panel); border: 3px solid var(--text); box-shadow: 8px 8px 0 var(--accent);
}
.article-cta h2 { font: 14px/1.5 var(--pixel); margin: 0 0 8px; color: var(--yellow); }
.article-cta p { margin: 0; color: #d9d8e8; }
.article-cta .btn { text-transform: none; overflow-wrap: anywhere; }

/* ---------- Каталог игр ---------- */

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card {
  --accent: var(--line);
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.game-card-placeholder { --accent: var(--line); border-style: dashed; box-shadow: none; }
.game-thumb { display: block; border-bottom: 3px solid var(--accent); background: var(--bg-2); aspect-ratio: 27 / 20; overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb-empty { display: grid; place-content: center; font: 48px var(--pixel); color: var(--line); }
.game-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-body h2 { font: 15px/1.5 var(--pixel); margin: 0; }
.game-body p { margin: 0; color: #d9d8e8; font-size: 15px; }
.game-body .btn { margin-top: auto; align-self: flex-start; }
.game-tagline { color: var(--yellow) !important; }
.tag {
  align-self: flex-start;
  font: 9px var(--pixel); text-transform: uppercase;
  padding: 6px 8px; border: 2px solid;
}
.tag-playable { color: var(--green); }
.tag-testing { color: var(--yellow); }

@media (max-width: 960px) { .game-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .game-grid { grid-template-columns: 1fr; } }

/* ---------- Страница игры ---------- */

.game-page { padding-top: 40px; }
.back-link { display: inline-block; margin-bottom: 20px; text-decoration: none; font-size: 15px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 24px; }

.crt {
  padding: 10px;
  background: #000;
  border: 4px solid var(--text);
  box-shadow: 10px 10px 0 var(--orange);
}
.game-box { position: relative; aspect-ratio: 540 / 760; overflow: hidden; background: var(--bg); }
.game-box canvas {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.game-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; font-size: 14px; flex-wrap: wrap; }
.game-error { position: absolute; inset: auto 16px 16px; padding: 12px; background: var(--red); color: var(--bg); }

.overlay {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: rgba(13, 11, 26, 0.86);
}
.overlay.is-visible { display: flex; }
.overlay .pixel-title { font-size: clamp(16px, 4vw, 24px); color: var(--yellow); margin: 0; }
.overlay p { margin: 0; max-width: 36ch; }

.act {
  width: min(400px, 100%);
  background: #f4efe1;
  color: #1b1035;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 22px 20px;
  display: grid; gap: 12px;
  font-size: 14px;
  text-align: left;
  max-height: 100%;
  overflow: auto;
}
.act-title { font: 11px/1.5 var(--pixel); margin: 0; text-align: center; border-bottom: 2px dashed #1b1035; padding-bottom: 10px; }
.act-verdict {
  margin: 0 !important; text-align: center; font-weight: 700;
  padding: 8px; border: 3px solid; transform: rotate(-2deg);
}
.act-verdict[data-grade="v1"], .act-verdict[data-grade="v2"] { color: #1b7a52; }
.act-verdict[data-grade="v3"] { color: #b26b00; }
.act-verdict[data-grade="v4"] { color: #c0392b; }
.act-rows { margin: 0; display: grid; gap: 4px; }
.act-rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #9a93b0; }
.act-rows dt { color: #4a4163; }
.act-rows dd { margin: 0; font-weight: 700; }
.act-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--pixel); }
.act-total span { font-size: 12px; }
.act-total b { font-size: 22px; font-weight: 400; color: var(--pink); }
.act-save { display: flex; gap: 8px; }
.act-save input {
  flex: 1; min-width: 0;
  font: 15px var(--mono);
  padding: 8px 10px;
  border: 2px solid #1b1035;
  background: #fff;
  color: #1b1035;
  border-radius: 0;
}
.act-msg { margin: 0 !important; min-height: 1em; font-weight: 700; color: #1b7a52; text-align: center; }
.act .btn-ghost { color: #1b1035; border-color: #1b1035; justify-self: center; }

.game-side { display: grid; gap: 20px; }
.panel { background: var(--panel); border: 3px solid var(--line); padding: 22px; }
.panel h2 { font: 12px/1.5 var(--pixel); margin: 0 0 16px; color: var(--yellow); }
.panel p { margin: 0 0 18px; color: #d9d8e8; font-size: 15px; }
.panel-cta { border-color: var(--pink); box-shadow: 6px 6px 0 var(--pink); }

.rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: #d9d8e8; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.legend b { margin-left: auto; font: 11px var(--pixel); color: var(--yellow); font-weight: 400; }
.swatch { width: 28px; height: 14px; border: 2px solid #000; }

.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { font: 9px var(--pixel); color: var(--muted); text-align: left; padding: 0 6px 10px; font-weight: 400; }
.board td { padding: 7px 6px; border-top: 1px solid var(--line); }
.board td:first-child { color: var(--muted); width: 2.2em; }
.board tbody tr:first-child td { color: var(--yellow); }
.board td:nth-child(2) { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-empty td { color: var(--muted) !important; text-align: center; }

@media (max-width: 960px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-stage { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) {
  .crt { padding: 5px; border-width: 3px; box-shadow: 6px 6px 0 var(--orange); }
}

/* ---------- Подвал ---------- */

.site-footer { border-top: 3px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px 40px; align-items: start; }
.footer-contact { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer-contact strong { color: var(--text); }
.footer-links { flex-direction: column; gap: 8px !important; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; font-size: 12px !important; }

@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Контакты на главной ---------- */

.contact-card { background: var(--bg-2); border: 3px solid var(--line); padding: 22px; }
.contact-card h3 { font: 12px/1.5 var(--pixel); color: var(--yellow); margin: 0 0 16px; }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-size: 13px; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-size: 15px; }

/* ---------- Meistä ---------- */

.about-hero { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 48px; align-items: center; }
.judge-sign { display: grid; justify-items: center; transform: rotate(-6deg); animation: judge 3s ease-in-out infinite alternate; }
.judge-card {
  background: #d9a066; color: #2b1a0e;
  border: 4px solid #000; box-shadow: 6px 6px 0 #000;
  padding: 28px 22px;
  font: clamp(12px, 1.6vw, 16px) var(--pixel);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px);
}
.judge-card span { display: block; padding: 10px 12px; border: 3px solid #1b7a52; color: #1b7a52; }
.judge-stick { width: 16px; height: 110px; background: #8a5a2b; border: 3px solid #000; border-top: 0; }
@keyframes judge { from { transform: rotate(-6deg); } to { transform: rotate(4deg); } }

.story-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: start; }
.story p { font-size: 17px; color: #d9d8e8; max-width: 66ch; }
.story p:first-of-type::first-letter { font: 34px var(--pixel); color: var(--orange); float: left; margin: 6px 10px 0 0; }

.timeline-wrap { background: var(--panel); border: 3px solid var(--line); padding: 26px; }
.timeline-title { font: 12px/1.5 var(--pixel); color: var(--yellow); margin: 0 0 22px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 3px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; display: grid; place-content: center;
  font: 10px var(--pixel); color: var(--bg); background: var(--orange); box-shadow: 3px 3px 0 #000;
}
.timeline li:last-child .timeline-dot { background: var(--green); }
.timeline h3 { font: 12px/1.5 var(--pixel); margin: 4px 0 6px; }
.timeline p { margin: 0; font-size: 14px; color: #d9d8e8; }

.quote-section { background: var(--bg-2); }
.big-quote { margin: 0 auto; max-width: 860px; text-align: center; }
.big-quote blockquote { margin: 0; }
.big-quote p { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.6; margin: 0; }
.big-quote p::before { content: "“"; display: block; font: 48px/1 var(--pixel); color: var(--pink); margin-bottom: 16px; }
.big-quote figcaption { margin-top: 22px; font: 11px var(--pixel); color: var(--orange); }

.value-num { font: 12px var(--pixel); color: var(--orange); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.person-card {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--panel); border: 3px solid var(--orange); box-shadow: 8px 8px 0 var(--orange);
  padding: 28px; margin-bottom: 16px;
}
.avatar {
  width: 112px; height: 112px; display: grid; place-content: center;
  font: 30px var(--pixel); color: var(--bg); background: var(--yellow);
  border: 4px solid #000; box-shadow: 5px 5px 0 #000;
}
.person-card h3 { font: 18px/1.4 var(--pixel); margin: 4px 0 8px; }
.person-role { color: var(--green); margin: 0 0 12px; font-weight: 700; }
.person-card p { margin: 0 0 12px; color: #d9d8e8; max-width: 70ch; }
.person-contact { margin: 0 !important; }
.role-card { background: var(--bg-2); border: 3px solid var(--line); padding: 24px; }
.role-icon { display: inline-block; padding: 8px; background: var(--bg); border: 2px solid var(--line); }
.role-card h3 { font: 12px/1.5 var(--pixel); margin: 18px 0 10px; }
.role-card p { margin: 0; font-size: 15px; color: #d9d8e8; }

.office-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.office-card {
  font-style: normal; line-height: 1.7;
  background: var(--panel); border: 3px solid var(--text); box-shadow: 8px 8px 0 var(--green);
  padding: 26px;
}
.office-card .btn { margin-top: 12px; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  background: var(--orange); color: var(--bg);
  border: 4px solid #000; box-shadow: 8px 8px 0 #000;
  padding: 36px;
}
.cta-band .pixel-title { color: var(--bg); text-shadow: none; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 17px; }
.cta-band .btn-primary { background: var(--bg); color: var(--text); border-color: var(--bg); }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-hero, .story-grid, .office-grid { grid-template-columns: 1fr; gap: 32px; }
  .judge-sign { justify-self: start; }
  .judge-stick { height: 60px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .person-card { grid-template-columns: 1fr; padding: 22px; }
  .avatar { width: 80px; height: 80px; font-size: 22px; }
  .cta-band { padding: 26px; }
}

/* ---------- Юридические страницы ---------- */

.legal { max-width: 780px; }
.legal h2 { font: 13px/1.5 var(--pixel); color: var(--yellow); margin: 40px 0 14px; }
.legal p, .legal li { color: #d9d8e8; }
.legal ul { padding-left: 22px; display: grid; gap: 10px; }

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