:root {
  --canvas: #f4f7f7;
  --paper: #ffffff;
  --ink: #142126;
  --ink-soft: #526167;
  --line: #ced9dc;
  --line-strong: #9fb2b8;
  --accent: #0f5663;
  --accent-dark: #0b414b;
  --accent-pale: #d9e9eb;
  --accent-wash: #eaf2f3;
  --red: #b3483e;
  --gold: #c48a2c;
  --slate: #78878c;
  --background: var(--canvas);
  --foreground: var(--ink);
  --card: var(--paper);
  --card-foreground: var(--ink);
  --popover: var(--paper);
  --popover-foreground: var(--ink);
  --primary: var(--accent);
  --primary-foreground: #ffffff;
  --secondary: var(--accent-wash);
  --secondary-foreground: var(--ink);
  --muted: var(--accent-wash);
  --muted-foreground: var(--ink-soft);
  --border: var(--line);
  --input: var(--line);
  --ring: #5c8d96;
}

* {
  box-sizing: border-box;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: rgba(15, 86, 99, 0.12); }
::selection { color: var(--ink); background: #b9d7db; }
[id] { scroll-margin-top: 24px; }

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.survey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding-inline: 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.survey-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.survey-button:focus-visible {
  outline: 3px solid #96c5cb;
  outline-offset: 3px;
}

.survey-button svg { width: 17px; height: 17px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(159, 178, 184, .22) 50%, transparent calc(50% + 1px)),
    linear-gradient(rgba(159, 178, 184, .14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 64px;
}

.hero::after {
  position: absolute;
  right: -240px;
  bottom: -300px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(15, 86, 99, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 84px rgba(15, 86, 99, .025), 0 0 0 168px rgba(15, 86, 99, .02);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: end;
}

.eyebrow,
.aside-label,
.person-role {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 890px;
  margin: 22px 0 0;
  font-size: clamp(42px, 5.7vw, 76px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.01;
  text-wrap: balance;
}

.expert-address {
  padding: 8px 0 4px 24px;
  border-left: 1px solid var(--accent);
}

.expert-address > p:not(.aside-label) {
  max-width: 35ch;
  margin: 18px 0 26px;
  color: #29393f;
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}

.button-note,
.cta-action > span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .015em;
}

.section { padding-block: clamp(82px, 10vw, 132px); }

.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.context-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 9vw, 128px);
}

.context-copy {
  max-width: 760px;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}

.prose p {
  margin: 0 0 22px;
  color: #2f4046;
  font-size: 18px;
  line-height: 1.72;
  text-wrap: pretty;
}

.prose p:last-child { margin-bottom: 0; }

.people-section {
  padding-block: clamp(56px, 7vw, 84px);
  border-block: 1px solid var(--line);
  background: var(--accent-wash);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
}

.person {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  min-width: 0;
  padding: 34px;
  background: var(--accent-wash);
}

.portrait-photo {
  display: block;
  width: 128px;
  height: 128px;
  aspect-ratio: 1 / 1;
  align-self: start;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  object-fit: cover;
}

.portrait-rusanovskiy {
  filter: grayscale(1) contrast(1.04);
  object-position: 52% 26%;
}

.portrait-astafyev {
  object-position: 50% 16%;
}

.person h2 {
  margin: 10px 0 12px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.person > div:last-child > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.passport-section {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.passport-grid {
  display: grid;
  grid-template-columns: minmax(310px, .88fr) minmax(0, 1.12fr);
  gap: clamp(54px, 9vw, 116px);
  align-items: start;
}

.passport-intro {
  position: sticky;
  top: 32px;
}

.passport-summary {
  max-width: 58ch;
  margin-top: 30px;
}

.passport-summary p {
  margin: 0 0 18px;
  color: #33444a;
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.passport-summary p:last-child { margin-bottom: 0; }

.research-accordion { border-top: 1px solid var(--line-strong); }
.research-accordion details { border-bottom: 1px solid var(--line); }
.research-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.research-accordion summary::-webkit-details-marker { display: none; }
.research-accordion summary::after {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.research-accordion details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.research-accordion summary:focus-visible {
  outline: 3px solid #96c5cb;
  outline-offset: 4px;
}
.accordion-content {
  padding-bottom: 24px;
  color: #33444a;
}
.research-accordion p { margin: 0 0 15px; line-height: 1.7; text-wrap: pretty; }
.research-accordion ol { margin: 0; padding-left: 22px; }
.research-accordion li { margin: 0 0 12px; padding-left: 6px; line-height: 1.65; }

.chart-section { background: var(--canvas); }

.chart-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

.chart-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
}

.chart-frame {
  margin-top: 52px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0 4px 24px;
  border-bottom: 1px solid var(--line);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #35464c;
  font-size: 13px;
  font-weight: 500;
}

.chart-legend i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.legend-fact { background: #26383e; }
.legend-gas { background: var(--accent); }
.legend-expert {
  background: repeating-linear-gradient(135deg, #f0f3f3 0 5px, #9ca9ad 5px 7px);
}
.legend-electric {
  background: repeating-linear-gradient(135deg, #fff8e9 0 5px, #c48a2c 5px 7px);
}
.legend-deficit {
  background: repeating-linear-gradient(45deg, #eef1f2 0 5px, #78878c 5px 7px);
}

.chart-scroll {
  overflow-x: auto;
  padding: 24px 2px 6px;
  scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.column-chart {
  width: 100%;
  min-width: 980px;
  font-variant-numeric: tabular-nums;
}

.chart-unit {
  margin: 0 0 14px 58px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

.chart-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.y-axis {
  display: flex;
  height: 400px;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1;
  text-align: right;
}

.plot-stack { min-width: 900px; }

.plot-zone {
  position: relative;
  height: 400px;
  border-bottom: 1px solid var(--line-strong);
}

.chart-gridlines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, var(--line) 1px, transparent 1px);
  background-size: 100% calc(100% / 7);
  pointer-events: none;
}

.plot-groups {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 18px;
  padding-inline: 12px;
}

.period-bars {
  position: relative;
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
}

.bar {
  position: relative;
  width: 42px;
  height: var(--bar-height);
  min-height: 28px;
  border-radius: 4px 4px 0 0;
}

.fact-bar { background: #26383e; }
.gas-bar { background: var(--accent); }

.unknown-bar {
  width: 42px;
  border: 1px dashed currentColor;
  opacity: .82;
}

.electric-bar {
  color: #9a691f;
  background: repeating-linear-gradient(135deg, #fffaf0 0 7px, #d9aa58 7px 9px);
}

.deficit-bar {
  color: #65757a;
  background: repeating-linear-gradient(45deg, #f1f4f4 0 7px, #94a0a4 7px 9px);
}

.bar-value {
  position: absolute;
  top: -27px;
  left: 50%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
}

.bar-code {
  position: absolute;
  bottom: 9px;
  left: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
}

.unknown-bar .bar-code { color: currentColor; }

.unknown-bar > strong {
  position: absolute;
  top: 42%;
  left: 50%;
  color: currentColor;
  font-size: 30px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}

.expert-range {
  position: absolute;
  bottom: var(--range-bottom);
  width: 42px;
  height: var(--range-height);
  min-height: 150px;
  border: 1px dashed #718086;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(238, 242, 243, .96) 0 8px, rgba(139, 153, 158, .48) 8px 10px);
  color: #526167;
}

.expert-range > strong {
  position: absolute;
  top: 28%;
  left: 50%;
  font-size: 42px;
  font-weight: 450;
  line-height: 1;
  color: #b8322b;
  transform: translate(-50%, -50%);
}

.range-copy {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 84px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #b8322b;
  text-align: center;
  transform: translateX(-50%);
}

.range-maximum,
.range-minimum {
  position: absolute;
  left: 50%;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  transform: translateX(-50%);
}

.range-maximum { top: -22px; }
.range-minimum { bottom: -22px; }

.x-axis-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 18px;
  padding: 16px 12px 0;
}

.x-axis-labels p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.x-axis-labels strong { display: block; font-weight: 650; }
.x-axis-labels span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 10px; }

.chart-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border-block: 1px solid var(--line);
}

.chart-notes p {
  margin: 0;
  padding: 22px 26px 22px 0;
}

.chart-notes p + p {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.chart-notes strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.status-check {
  color: #2d7a52;
  font-size: 17px;
}

.chart-note-expert strong,
.chart-note-expert > span,
.status-question {
  color: #b8322b;
}

.chart-notes span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.chart-notes .status-check,
.chart-notes .status-question {
  display: inline;
  margin: 0 0 0 4px;
  font-size: 17px;
  line-height: 1;
}

.chart-notes .status-check { color: #2d7a52; }
.chart-notes .status-question { color: #b8322b; }

.chart-source {
  max-width: 92ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.scenarios-section { border-top: 1px solid var(--line); }

.scenarios-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

.scenarios-heading > p { margin: 0; }

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-block: 1px solid var(--line-strong);
}

.scenario { padding: 30px 30px 34px 0; }
.scenario + .scenario { padding-left: 30px; border-left: 1px solid var(--line); }
.scenario-number { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.scenario h3 {
  margin: 26px 0 16px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.scenario p { margin: 0; color: var(--ink-soft); line-height: 1.68; text-wrap: pretty; }

.final-cta {
  padding-block: clamp(76px, 9vw, 112px);
  background: #102f37;
  color: #fff;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: center;
}

.final-cta h2 { max-width: 820px; }
.final-cta .survey-button { border-color: #fff; background: #fff; color: var(--accent-dark); }
.final-cta .survey-button:hover { background: var(--accent-pale); }
.final-cta .cta-action > span { color: #b8cdd1; text-align: center; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding: 84px 0; }
  .hero-grid,
  .context-section,
  .passport-grid,
  .chart-heading,
  .scenarios-heading,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }
  .expert-address { max-width: 560px; margin-top: 10px; }
  .people-grid { grid-template-columns: 1fr; }
  .passport-intro { position: static; }
  .scenario-list { grid-template-columns: 1fr; }
  .scenario { padding: 28px 0; }
  .scenario + .scenario { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .cta-action { justify-self: start; }
  .cta-action > span { text-align: left !important; }
}

@media (max-width: 680px) {
  .page-shell { width: min(100% - 32px, 1120px); }
  .hero { padding-block: 64px 72px; }
  .hero h1 { font-size: clamp(37px, 12vw, 54px); }
  .expert-address { padding-left: 18px; }
  .section { padding-block: 72px; }
  .context-copy { padding-left: 18px; }
  .person { grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 26px 0; }
  .portrait-photo { width: 92px; height: 92px; }
  .person h2 { font-size: 20px; }
  .chart-frame { margin-inline: -16px; padding: 22px 16px; border-right: 0; border-left: 0; border-radius: 0; }
  .chart-notes { grid-template-columns: 1fr; }
  .chart-notes p { padding: 18px 0; }
  .chart-notes p + p { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
}

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