/* === БИЛЕТ — лендинг ПДД 2026 === */
/* Направление: Советская инструкция × брутализм */

:root {
  --ink: #0A0A0A;
  --paper: #F2EFE6;
  --paper-2: #E8E4D6;
  --hi: #F5FF00;          /* кислотный жёлтый — единственный акцент */
  --hi-dim: #C9D100;
  --warn: #FF5A1F;        /* сигнальный оранжевый — для критичных */
  --ok: #00C853;          /* зелёная вспышка верного ответа */
  --line: #0A0A0A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* Курсор-стрелка для интерактивных элементов */
  cursor: default;
}

a, button, .topfail, [role="button"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 24 28'><circle cx='12' cy='12' r='11' fill='%23F5FF00' stroke='%230A0A0A' stroke-width='2'/><path d='M12 5 L12 19 M12 5 L8 9 M12 5 L16 9' stroke='%230A0A0A' stroke-width='2.5' fill='none' stroke-linecap='square'/></svg>") 12 12, pointer;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.01em;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--hi);
  transition: transform 0.15s;
}
.brand:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.brand-mark { display: flex; align-items: center; }
.brand-name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.brand-cycle { font-size: 11px; opacity: 0.6; }

.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.nav a:hover { border-bottom-color: var(--ink); }

.nav-go {
  background: var(--ink);
  color: var(--hi) !important;
  padding: 6px 10px;
  border-bottom: none !important;
  letter-spacing: 0.08em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-go:hover {
  background: var(--hi);
  color: var(--ink) !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--ink); color: var(--hi); }

@media (max-width: 720px) {
  .nav { display: none; }
  .brand-name { font-size: 18px; }
}

/* === HERO === */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 80px;
  border-bottom: 6px double var(--hi);
  position: relative;
  overflow: hidden;
}

/* лёгкая «штриховка асфальта» — диагональные тонкие линии */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -65deg,
    transparent 0 80px,
    rgba(245, 255, 0, 0.025) 80px 81px
  );
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--hi);
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-h1 .hl {
  background: var(--hi);
  color: var(--ink);
  padding: 0 0.1em;
  display: inline-block;
}
.hero-h1 .strike {
  position: relative;
  opacity: 0.55;
}
.hero-h1 .strike::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  height: 6px;
  background: var(--hi);
  transform: rotate(-3deg);
}

.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(242, 239, 230, 0.78);
  max-width: 560px;
}

@media (max-width: 880px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-sub br { display: none; }
}

/* DAYS COUNTER */

.days-counter {
  border: 3px solid var(--hi);
  padding: 20px 24px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(245, 255, 0, 0.06);
}
.days-counter-label { font-size: 11px; letter-spacing: 0.16em; color: var(--hi); }
.days-counter-number {
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  color: var(--hi);
  letter-spacing: -0.04em;
  font-family: 'JetBrains Mono', monospace;
}
.days-counter-suffix { font-size: 12px; letter-spacing: 0.2em; color: var(--paper); }
.days-slider {
  appearance: none; width: 100%; height: 4px; background: rgba(245, 255, 0, 0.25);
  margin-top: 12px; cursor: pointer;
}
.days-slider::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 24px; background: var(--hi);
  border: 2px solid var(--ink); cursor: pointer;
}
.days-slider::-moz-range-thumb {
  width: 16px; height: 24px; background: var(--hi);
  border: 2px solid var(--ink); cursor: pointer; border-radius: 0;
}

/* HERO MINI TEST */

.hero-test {
  border: 3px solid var(--paper);
  background: var(--ink);
  padding: 0;
}

.hero-test-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 2px solid var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--hi);
}
.hero-test-counter { color: var(--paper); }

.hero-test-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px;
}

.hero-test-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: 2px dashed rgba(242, 239, 230, 0.3);
  padding: 16px;
}

.hero-test-question {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.hero-test-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-opt {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 0;
  border: 2px solid var(--paper);
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: var(--paper);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.hero-opt:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
}
.hero-opt-letter {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  border-right: 2px solid var(--paper);
  transition: all 0.15s;
}
.hero-opt:hover:not(:disabled) .hero-opt-letter {
  background: var(--ink);
  color: var(--hi);
}
.hero-opt-text { padding: 14px 16px 14px 0; flex: 1; align-self: center; }

.hero-opt.is-correct {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--ink);
  animation: correct-flash 0.5s ease-out;
}
.hero-opt.is-correct .hero-opt-letter { background: var(--ink); color: var(--hi); border-right-color: var(--ink); }

.hero-opt.is-wrong {
  border-color: var(--paper);
  color: var(--paper);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--warn);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.hero-opt.is-dim { opacity: 0.35; }

@keyframes correct-flash {
  0% { background: rgba(0, 200, 83, 0.5); }
  60% { background: var(--ok); }
  100% { background: var(--hi); }
}

.hero-explanation {
  margin-top: 24px;
  padding: 20px;
  border: 2px solid var(--hi);
  background: rgba(245, 255, 0, 0.05);
  animation: slide-down 0.3s ease-out;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-explanation-label { font-size: 11px; letter-spacing: 0.18em; color: var(--hi); margin-bottom: 8px; }
.hero-explanation-text { font-size: 15px; line-height: 1.5; color: var(--paper); font-weight: 500; }

.hero-explanation-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .hero-test-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .hero-test-diagram { padding: 8px; }
  .hero-opt { font-size: 14px; }
}

/* HERO CTA */

.hero-cta-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-mega {
  background: var(--hi);
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
  padding: 22px 32px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 6px 6px 0 var(--paper);
}
.btn-mega:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--paper); }
.btn-mega:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--paper); }
.btn-mega-arrow {
  width: 36px; height: 36px;
  background: var(--ink); color: var(--hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.btn-mega-light { box-shadow: 6px 6px 0 var(--ink); }
.btn-mega-light:hover { box-shadow: 10px 10px 0 var(--ink); }
.btn-mega-light:active { box-shadow: 2px 2px 0 var(--ink); }

.hero-cta-meta { font-size: 12px; letter-spacing: 0.14em; color: rgba(242, 239, 230, 0.6); }

.btn-primary {
  background: var(--hi); color: var(--ink); font-weight: 800;
  padding: 12px 18px; font-size: 13px; letter-spacing: 0.1em;
  border: 2px solid var(--hi);
  transition: all 0.15s;
}
.btn-primary:hover { background: var(--ink); color: var(--hi); }

.btn-ghost {
  background: transparent; color: var(--paper);
  border: 2px solid var(--paper);
  padding: 12px 18px; font-size: 13px; letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* === SECTION TITLE === */

.section-title {
  margin-bottom: 56px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 32px;
  align-items: start;
}
.section-title-num {
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 700;
}
.section-title-h {
  grid-column: 2;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.section-title-sub {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 12px;
  color: rgba(10, 10, 10, 0.65);
  max-width: 640px;
}

/* === CHANGES === */

.changes { padding: 80px 0; background: var(--paper); }

.changes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
}

.change-card {
  background: var(--paper);
  padding: 24px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.15s;
}
.change-card:nth-child(3n) { border-right: none; }
.change-card:nth-last-child(-n+3) { border-bottom: none; }
.change-card:hover { background: var(--paper-2); }
.change-card.sev-high:hover { background: var(--hi); }

.change-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.change-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.change-bilet {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.change-card.sev-high { color: var(--ink); }
.change-card.sev-high:hover .change-bilet { background: var(--ink); color: var(--hi); border-color: var(--ink); }

.change-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.change-rows { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.change-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 8px;
  border-top: 1.5px solid rgba(10, 10, 10, 0.15);
  font-size: 14px;
  line-height: 1.4;
}
.change-row-label { font-size: 10px; letter-spacing: 0.16em; padding-top: 3px; opacity: 0.6; }
.change-row-text { font-weight: 600; }
.change-row.change-after .change-row-text { font-weight: 800; }

@media (max-width: 980px) { .changes-grid { grid-template-columns: repeat(2, 1fr); } .change-card:nth-child(3n) { border-right: 3px solid var(--ink); } .change-card:nth-child(2n) { border-right: none; } .change-card:nth-last-child(-n+3) { border-bottom: 3px solid var(--ink); } .change-card:nth-last-child(-n+2) { border-bottom: none; } }
@media (max-width: 600px) { .changes-grid { grid-template-columns: 1fr; } .change-card { border-right: none !important; border-bottom: 3px solid var(--ink) !important; } .change-card:last-child { border-bottom: none !important; } }

/* === MODES === */

.modes { padding: 80px 0; background: var(--ink); color: var(--paper); }
.modes .section-title { border-top-color: var(--paper); }
.modes .section-title-h { color: var(--paper); }
.modes .section-title-sub { color: rgba(242, 239, 230, 0.6); }

.modes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  border: 3px solid var(--paper);
}
.mode {
  padding: 28px;
  border-right: 3px solid var(--paper);
  border-bottom: 3px solid var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
  position: relative;
}
.mode-huge {
  grid-row: span 2;
  background: var(--hi);
  color: var(--ink);
  padding: 36px;
}
.mode-huge .mode-title { font-size: 64px; }
.mode-med { grid-row: span 1; }
.mode-small { grid-column: 2 / span 2; border-right: none; border-bottom: none; }
.mode-med:nth-of-type(3) { border-bottom: 3px solid var(--paper); }
.mode-med:last-of-type { border-right: none; }

.mode:hover:not(.mode-huge) { background: rgba(245, 255, 0, 0.08); }

.mode-head { display: flex; justify-content: space-between; align-items: center; }
.mode-num { font-size: 13px; letter-spacing: 0.16em; opacity: 0.7; }
.mode-subtitle { font-size: 12px; letter-spacing: 0.16em; opacity: 0.7; margin-bottom: 6px; }
.mode-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mode-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  border: 2px solid currentColor;
  align-self: flex-start;
}
.mode-desc { font-size: 15px; line-height: 1.4; font-weight: 500; opacity: 0.85; }

.mode-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-top: 2px solid currentColor;
  transition: padding 0.2s;
}
.mode-btn-arrow { transition: transform 0.2s; }
.mode-btn:hover .mode-btn-arrow { transform: translateX(8px); }

@media (max-width: 880px) {
  .modes-grid { grid-template-columns: 1fr; }
  .mode-huge { grid-row: span 1; }
  .mode { border-right: none !important; border-bottom: 3px solid var(--paper) !important; }
  .mode:last-child { border-bottom: none !important; }
  .mode-small { grid-column: auto; }
  .mode-huge .mode-title { font-size: 48px; }
}

/* === TOPFAILS === */

.topfails { padding: 80px 0; background: var(--paper); }
.topfails-list {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.topfail {
  display: grid;
  grid-template-columns: 80px 200px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1.5px solid rgba(10, 10, 10, 0.2);
  text-align: left;
  width: 100%;
  transition: background 0.15s;
  flex-wrap: wrap;
}
.topfail:last-child { border-bottom: none; }
.topfail:hover { background: var(--paper-2); }
.topfail.is-active { background: var(--ink); color: var(--paper); }

.topfail-rank {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.topfail-percent { display: flex; flex-direction: column; gap: 6px; }
.topfail-percent-num { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.topfail-percent-sign { font-size: 11px; letter-spacing: 0.14em; opacity: 0.7; }
.topfail-bar {
  height: 6px;
  background: rgba(10, 10, 10, 0.12);
  width: 100%;
  margin-top: 4px;
}
.topfail.is-active .topfail-bar { background: rgba(242, 239, 230, 0.18); }
.topfail-bar-fill {
  height: 100%;
  background: var(--hi);
  transition: width 0.4s ease-out;
}

.topfail-cat { font-size: 11px; letter-spacing: 0.14em; opacity: 0.65; margin-bottom: 4px; }
.topfail-text { font-size: 17px; font-weight: 700; line-height: 1.3; }

.topfail-action {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: right;
  font-weight: 700;
}
.topfail.is-active .topfail-action { color: var(--hi); }

.topfail-tryit {
  grid-column: 1 / -1;
  padding: 20px 0 8px;
  border-top: 1.5px dashed rgba(242, 239, 230, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  animation: slide-down 0.3s ease-out;
}
.topfail-tryit .mono { font-size: 11px; letter-spacing: 0.16em; color: var(--hi); }
.topfail-tryit .btn-ghost { align-self: flex-start; border-color: var(--hi); color: var(--hi); }

@media (max-width: 760px) {
  .topfail { grid-template-columns: 50px 1fr; gap: 12px; padding: 16px 8px; }
  .topfail-percent { grid-column: 2; }
  .topfail-q { grid-column: 1 / -1; }
  .topfail-action { grid-column: 1 / -1; text-align: left; }
}

/* === CALC === */

.calc-section { padding: 80px 0; background: var(--ink); color: var(--paper); }
.calc-section .section-title { border-top-color: var(--paper); }
.calc-section .section-title-h { color: var(--paper); }
.calc-section .section-title-sub { color: rgba(242, 239, 230, 0.6); }

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 3px solid var(--paper);
}

.calc-controls { padding: 32px; display: flex; flex-direction: column; gap: 32px; border-right: 3px solid var(--paper); }

.calc-row { display: flex; flex-direction: column; gap: 14px; }
.calc-label {
  font-size: 12px; letter-spacing: 0.14em;
  display: flex; justify-content: space-between; align-items: baseline;
}
.calc-val { font-size: 24px; color: var(--hi); font-weight: 900; }

.calc-slider {
  appearance: none; width: 100%; height: 8px;
  background: rgba(242, 239, 230, 0.15);
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 30px; background: var(--hi);
  border: 3px solid var(--paper); cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 30px; background: var(--hi);
  border: 3px solid var(--paper); cursor: pointer; border-radius: 0;
}

.calc-segments { display: flex; gap: 0; }
.calc-seg {
  flex: 1; padding: 12px 8px; border: 2px solid var(--paper);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  background: transparent; color: var(--paper);
  margin-left: -2px;
  transition: all 0.15s;
}
.calc-seg:first-child { margin-left: 0; }
.calc-seg.is-active { background: var(--hi); color: var(--ink); border-color: var(--hi); position: relative; z-index: 1; }
.calc-seg:hover:not(.is-active) { background: rgba(242, 239, 230, 0.08); }

.calc-output {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--hi);
  color: var(--ink);
  position: relative;
}
.calc-output::before {
  content: "";
  position: absolute; inset: 16px;
  border: 2px dashed var(--ink);
  pointer-events: none;
}

.calc-output-label { font-size: 12px; letter-spacing: 0.16em; }
.calc-percent {
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 8px 0;
  font-family: 'JetBrains Mono', monospace;
}
.calc-percent-sign { font-size: 0.4em; }

.calc-bar {
  height: 12px;
  background: var(--ink);
  margin-top: 8px;
  position: relative;
}
.calc-bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--paper);
  transition: width 0.4s ease-out;
}

.calc-verdict {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--hi);
  align-self: flex-start;
}

@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; }
  .calc-controls { border-right: none; border-bottom: 3px solid var(--paper); }
}

/* === REVIEWS === */

.reviews { padding: 80px 0; background: var(--paper); }
.reviews-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s;
}
.review:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }

.review-head { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px;
  background: var(--ink); color: var(--hi);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
  flex-shrink: 0;
}
.review-meta { flex: 1; min-width: 0; }
.review-name { font-size: 14px; font-weight: 800; }
.review-loc { font-size: 11px; letter-spacing: 0.08em; opacity: 0.65; }

.review-status {
  font-size: 10px; letter-spacing: 0.16em;
  padding: 4px 8px;
  background: var(--hi); color: var(--ink);
  font-weight: 800;
}

.review-bubble {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 880px) { .reviews-feed { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews-feed { grid-template-columns: 1fr; } }

/* === FAQ === */

.faq { padding: 80px 0; background: var(--paper); border-top: 3px solid var(--ink); }
.faq-list {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.faq-item { border-bottom: 1.5px solid rgba(10,10,10,0.2); }
.faq-item:last-child { border-bottom: none; }
.faq-item.is-open { background: var(--ink); color: var(--paper); }

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 24px 16px;
  text-align: left;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}
.faq-num { font-size: 14px; letter-spacing: 0.14em; opacity: 0.6; }
.faq-toggle {
  font-size: 28px;
  font-weight: 900;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid currentColor;
}

.faq-a-wrap { overflow: hidden; transition: max-height 0.35s ease-out; }
.faq-a {
  padding: 0 16px 24px 92px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 720px;
}
.faq-item.is-open .faq-a { color: rgba(242, 239, 230, 0.85); }

@media (max-width: 600px) {
  .faq-q { grid-template-columns: 40px 1fr auto; gap: 12px; font-size: 16px; padding: 20px 12px; }
  .faq-a { padding-left: 64px; font-size: 14px; }
}

/* === FINAL CTA === */

.finalcta {
  padding: 100px 0;
  background: var(--hi);
  color: var(--ink);
  border-top: 6px double var(--ink);
  border-bottom: 3px solid var(--ink);
}
.finalcta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.finalcta-eyebrow { font-size: 13px; letter-spacing: 0.18em; }
.finalcta-h {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.finalcta-h .hl {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em;
}
.finalcta-meta { font-size: 12px; letter-spacing: 0.16em; opacity: 0.75; }

/* === FOOTER === */

.footer { padding: 40px 0; background: var(--ink); color: var(--paper); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand { font-size: 13px; letter-spacing: 0.14em; }
.footer-links { display: flex; gap: 24px; justify-self: center; font-size: 11px; letter-spacing: 0.14em; }
.footer-links a { color: var(--paper); text-decoration: none; opacity: 0.65; }
.footer-links a:hover { opacity: 1; color: var(--hi); }
.footer-disc { font-size: 11px; letter-spacing: 0.06em; opacity: 0.5; max-width: 280px; text-align: right; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-links { justify-self: center; flex-wrap: wrap; justify-content: center; }
  .footer-disc { text-align: center; }
}

/* === ANIMATIONS === */

@keyframes truck-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px) rotate(-1deg); }
  40% { transform: translateX(2px) rotate(1deg); }
  60% { transform: translateX(-1px) rotate(-0.5deg); }
  80% { transform: translateX(1px) rotate(0.5deg); }
}

/* HERO ALSO has bottom-of-section yield-sign easter egg */
.yield-egg {
  position: absolute;
  bottom: 24px; right: 32px;
  color: var(--hi);
  opacity: 0.4;
  z-index: 2;
}
.yield-egg:hover { opacity: 1; }

/* selection */
::selection { background: var(--hi); color: var(--ink); }
::-moz-selection { background: var(--hi); color: var(--ink); }

/* === SCROLL PROGRESS (полоса разметки сверху) === */
.road-marking-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--ink);
  z-index: 100;
  overflow: hidden;
}
.road-marking-fill {
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--hi) 0 14px, transparent 14px 24px);
  transition: width 0.2s linear;
}

/* === MODES: ссылка вместо кнопки в .mode-btn === */
.mode-btn { text-decoration: none; color: inherit; }

/* === Скрытие через атрибут hidden поверх flex-контейнеров === */
.topfail-tryit[hidden],
.hero-explanation[hidden] { display: none !important; }

/* === ПОИСК В ШАПКЕ === */
.nav-search { display: flex; }
.nav-search input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  width: 160px;
  outline: none;
  transition: width 0.2s, background 0.15s, color 0.15s;
}
.nav-search input[type="search"]:focus {
  background: var(--ink);
  color: var(--hi);
  width: 240px;
}
.nav-search input::placeholder { color: rgba(10,10,10,0.5); letter-spacing: 0.16em; text-transform: uppercase; }
.nav-search input:focus::placeholder { color: rgba(245,255,0,0.5); }
@media (max-width: 720px) {
  .nav-search input[type="search"] { width: 110px; }
  .nav-search input[type="search"]:focus { width: 160px; }
}

/* === БЛОГ === */
.post-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(10,10,10,0.9);
}
.post-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 48px 0 16px;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.post-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.post-body h3 { font-size: 20px; font-weight: 800; margin: 32px 0 12px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hi);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.post-body a:hover { background: var(--hi); text-decoration: none; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-body th, .post-body td {
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  text-align: left;
  vertical-align: top;
}
.post-body th { background: var(--ink); color: var(--hi); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }
.post-body b, .post-body strong { font-weight: 800; }

/* ===================================== */
/* === ВНУТРЕННИЕ СТРАНИЦЫ (билеты, знаки, штрафы) === */
/* ===================================== */

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 48px;
  border-bottom: 6px double var(--hi);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-65deg, transparent 0 80px, rgba(245,255,0,0.025) 80px 81px);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }

.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.16em;
  color: rgba(242, 239, 230, 0.6);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--hi); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { border-bottom-color: var(--hi); }
.breadcrumbs-sep::before { content: "/"; opacity: 0.4; }

.page-h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(242,239,230,0.78);
  max-width: 720px;
}

.page-body { padding: 64px 0; background: var(--paper); }
.page-body-dark { background: var(--ink); color: var(--paper); }

/* === БИЛЕТЫ (сетка 40) === */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
}
.ticket-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.15s, color 0.15s;
}
.ticket-card:nth-child(5n) { border-right: none; }
.ticket-card:hover { background: var(--ink); color: var(--hi); }
.ticket-card-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.16em; opacity: 0.6; }
.ticket-card-h { font-size: 38px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.ticket-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; opacity: 0.7; margin-top: auto; }
.ticket-card-arrow { align-self: flex-end; font-size: 22px; font-weight: 900; }
@media (max-width: 880px) { .tickets-grid { grid-template-columns: repeat(3, 1fr); } .ticket-card:nth-child(5n) { border-right: 3px solid var(--ink); } .ticket-card:nth-child(3n) { border-right: none; } }
@media (max-width: 560px) { .tickets-grid { grid-template-columns: repeat(2, 1fr); } .ticket-card:nth-child(3n) { border-right: 3px solid var(--ink); } .ticket-card:nth-child(2n) { border-right: none; } }

/* === ВОПРОСЫ В БИЛЕТЕ === */
.questions-list { display: flex; flex-direction: column; border: 3px solid var(--ink); }
.q-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1.5px solid rgba(10,10,10,0.18);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.q-row:last-child { border-bottom: none; }
.q-row:hover { background: var(--paper-2); }
.q-row-num { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.q-row-text { font-size: 15px; font-weight: 700; line-height: 1.35; }
.q-row-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; opacity: 0.5; margin-bottom: 4px; }
.q-row-action { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; font-weight: 800; }
@media (max-width: 720px) { .q-row { grid-template-columns: 50px 1fr; } .q-row-action { display: none; } }

/* === СТРАНИЦА ОДНОГО ВОПРОСА === */
.q-card {
  border: 3px solid var(--ink);
  padding: 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.q-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.q-card-meta-item { padding: 4px 8px; border: 1.5px solid var(--ink); }
.q-card-text { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.3; letter-spacing: -0.005em; }
.q-card-options { display: flex; flex-direction: column; gap: 8px; }
.q-card-opt {
  display: flex; align-items: stretch; gap: 0;
  border: 2px solid var(--ink);
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.15s;
}
.q-card-opt-letter {
  background: var(--ink); color: var(--hi);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  display: flex; align-items: center;
}
.q-card-opt-text { padding: 14px 16px; flex: 1; align-self: center; }
.q-card-opt:hover:not(:disabled) { background: var(--paper-2); }
.q-card-opt.is-correct { background: var(--hi); border-color: var(--hi); }
.q-card-opt.is-correct .q-card-opt-letter { background: var(--ink); color: var(--hi); }
.q-card-opt.is-wrong { text-decoration: underline; text-decoration-color: var(--warn); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.q-card-opt.is-dim { opacity: 0.45; }

.q-explanation {
  margin-top: 8px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-explanation-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--hi); }
.q-explanation-text { font-size: 16px; line-height: 1.55; font-weight: 500; }

.q-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.q-nav a { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.1em; padding: 12px 18px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 800; transition: all 0.15s; }
.q-nav a:hover { background: var(--ink); color: var(--hi); }
.q-nav-prev::before { content: "← "; }
.q-nav-next::after { content: " →"; }

/* === ЗНАКИ === */
.signs-groups { display: flex; flex-direction: column; gap: 56px; }
.signs-group { display: flex; flex-direction: column; gap: 24px; }
.signs-group-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.signs-group-title .mono { font-size: 14px; opacity: 0.6; }
.signs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
}
.sign-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.15s;
}
.sign-card:nth-child(4n) { border-right: none; }
.sign-card:hover { background: var(--paper-2); }
.sign-card-img { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.sign-card-img svg { width: 100%; height: 100%; }
.sign-card-code { font-family: 'JetBrains Mono', monospace; font-weight: 900; font-size: 14px; }
.sign-card-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
@media (max-width: 880px) { .signs-grid { grid-template-columns: repeat(3, 1fr); } .sign-card:nth-child(4n) { border-right: 3px solid var(--ink); } .sign-card:nth-child(3n) { border-right: none; } }
@media (max-width: 560px) { .signs-grid { grid-template-columns: repeat(2, 1fr); } .sign-card:nth-child(3n) { border-right: 3px solid var(--ink); } .sign-card:nth-child(2n) { border-right: none; } }

/* === СТРАНИЦА ЗНАКА === */
.sign-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  border: 3px solid var(--ink);
}
.sign-detail-img { padding: 40px; background: var(--paper-2); border-right: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.sign-detail-img svg { width: 100%; max-width: 280px; }
.sign-detail-body { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.sign-detail-code { font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 0.16em; padding: 6px 10px; align-self: flex-start; background: var(--ink); color: var(--hi); }
.sign-detail-name { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.sign-detail-short { font-size: 18px; font-weight: 700; line-height: 1.4; }
.sign-detail-desc { font-size: 16px; font-weight: 500; line-height: 1.6; color: rgba(10,10,10,0.78); }
.sign-detail-fine { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 16px; border: 2px solid var(--warn); background: rgba(255,90,31,0.08); line-height: 1.5; }
.sign-detail-fine-label { color: var(--warn); font-weight: 800; letter-spacing: 0.16em; font-size: 11px; margin-bottom: 6px; }
@media (max-width: 760px) { .sign-detail { grid-template-columns: 1fr; } .sign-detail-img { border-right: none; border-bottom: 3px solid var(--ink); } }

/* === ШТРАФЫ === */
.fines-list {
  display: flex; flex-direction: column;
  border: 3px solid var(--ink);
}
.fine-row {
  display: grid;
  grid-template-columns: 110px 1fr 160px 100px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1.5px solid rgba(10,10,10,0.18);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.15s;
}
.fine-row:last-child { border-bottom: none; }
.fine-row:hover { background: var(--ink); color: var(--paper); }
.fine-row:hover .fine-row-amount { color: var(--hi); }
.fine-row-art { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; padding: 6px 8px; border: 1.5px solid currentColor; align-self: flex-start; }
.fine-row-text { font-size: 16px; font-weight: 700; line-height: 1.3; }
.fine-row-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; opacity: 0.55; margin-bottom: 4px; }
.fine-row-amount { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.fine-row-action { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; font-weight: 800; text-align: right; }
@media (max-width: 880px) { .fine-row { grid-template-columns: 90px 1fr 100px; gap: 12px; } .fine-row-action { display: none; } }
@media (max-width: 560px) { .fine-row { grid-template-columns: 1fr; gap: 4px; padding: 16px; } }

.fine-categories {
  display: flex; gap: 0;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border: 2px solid var(--ink);
}
.fine-cat-btn {
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  border-right: 2px solid var(--ink);
  transition: all 0.15s;
}
.fine-cat-btn:last-child { border-right: none; }
.fine-cat-btn:hover, .fine-cat-btn.is-active { background: var(--ink); color: var(--hi); }

/* === СТРАНИЦА ОДНОГО ШТРАФА === */
.fine-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border: 3px solid var(--ink);
}
.fine-detail-body { padding: 32px; display: flex; flex-direction: column; gap: 20px; border-right: 3px solid var(--ink); }
.fine-detail-art { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 6px 10px; border: 2px solid var(--ink); align-self: flex-start; letter-spacing: 0.06em; }
.fine-detail-h { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.fine-detail-short { font-size: 18px; font-weight: 700; line-height: 1.4; }
.fine-detail-text { font-size: 16px; line-height: 1.65; font-weight: 500; color: rgba(10,10,10,0.78); }
.fine-detail-side { background: var(--ink); color: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.fine-detail-side-block { display: flex; flex-direction: column; gap: 6px; }
.fine-detail-side-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--hi); }
.fine-detail-amount { font-family: 'JetBrains Mono', monospace; font-size: 38px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--hi); }
.fine-detail-points { font-size: 22px; font-weight: 800; }
.fine-detail-extra { font-size: 14px; line-height: 1.5; font-weight: 600; padding-top: 16px; border-top: 2px dashed rgba(245,255,0,0.4); }
@media (max-width: 760px) { .fine-detail { grid-template-columns: 1fr; } .fine-detail-body { border-right: none; border-bottom: 3px solid var(--ink); } }


/* === РЕКЛАМНЫЕ СЛОТЫ === */
.ad-slot { width: 100%; }
.ad-slot > .container { display: flex; justify-content: center; }
.ad-slot [id^="mp_custom_"] { max-width: 100%; }
.ad-horizontal { padding: 24px 0; background: var(--paper); }
.ad-vertical { padding: 32px 0; background: var(--paper); }
