:root {
  --bg: #e9edf1;
  --ink: #161b22;
  --mute: #5a6570;
  --line: #c5ced6;
  --paper: #f7f9fb;
  --accent: #0f766e;
  --accent-2: #b45309;
  --steel: #2a343e;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --pad: clamp(1rem, 3vw, 2rem);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, #dfe6ec 0%, var(--bg) 28%, #eef2f5 100%);
  min-height: 100dvh;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.shell {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0.75rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0;
}
.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}
.nav a { color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero: meter LEFT, copy RIGHT — not centered column */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.meter {
  position: relative;
  background: var(--steel);
  color: #e8eef3;
  border-radius: 2px;
  min-height: 320px;
  padding: 1.25rem 1.15rem 1.4rem;
  box-shadow: 12px 16px 0 rgba(15, 118, 110, 0.18);
  overflow: hidden;
}
.meter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #5eead4 55%, var(--accent-2));
}
.meter-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa7b3;
  margin: 0 0 1rem;
}
.bars {
  display: grid;
  gap: 1.1rem;
}
.bar-row { display: grid; gap: 0.35rem; }
.bar-row span {
  font-size: 0.82rem;
  color: #c9d3dc;
}
.track {
  height: 14px;
  background: #1c242d;
  border-radius: 1px;
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  border-radius: 1px;
  transform-origin: left center;
  animation: shrink-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fill.heavy {
  width: 92%;
  background: #f59e0b;
}
.fill.light {
  width: 38%;
  background: #2dd4bf;
  animation-delay: 0.18s;
}
@keyframes shrink-in {
  from { transform: scaleX(0.15); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}
.meter-note {
  margin: 1.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #b7c3ce;
  max-width: 28ch;
}

.copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 740;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.copy .lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mute);
  max-width: 38ch;
}
.copy .sample {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #f4f7fa;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 180ms ease, background 180ms ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.cta-note {
  font-size: 0.86rem;
  color: var(--mute);
  max-width: 28ch;
  line-height: 1.4;
}

/* Film strip — 3 frames, not 4 equal cards */
.strip {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 1.25rem 0 0.25rem;
  border-top: 1px solid var(--line);
}
.strip h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.frame {
  padding: 1.1rem 1rem 1.25rem;
  border-right: 1px solid var(--line);
}
.frame:last-child { border-right: 0; }
.frame b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.frame span {
  display: block;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.45;
}
.frame i {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

/* Left rail Q — not a second FAQ sheet */
.rail {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 0.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.rail h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.qa { margin: 0; }
.qa dt {
  margin: 0 0 0.35rem;
  font-weight: 650;
  font-size: 0.98rem;
}
.qa dd {
  margin: 0 0 1.15rem;
  color: var(--mute);
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 58ch;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.45;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }

.cookie {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: 1rem;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(22, 27, 34, 0.08);
  font-size: 0.86rem;
  z-index: 20;
}
.cookie[hidden] { display: none !important; }
.cookie button {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fill { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .meter { min-height: 240px; order: -1; }
  .frames { grid-template-columns: 1fr; }
  .frame { border-right: 0; border-bottom: 1px solid var(--line); }
  .frame:last-child { border-bottom: 0; }
  .rail { grid-template-columns: 1fr; }
  .copy h1 { max-width: 16ch; }
}

@media (max-width: 420px) {
  .nav a:last-child { display: none; }
}

/* Legal stubs (старые классы с lenta) */
.wrap { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; }
.prose {
  padding: 1.5rem 0 2.5rem;
  max-width: 62ch;
  line-height: 1.55;
}
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
