:root {
  color-scheme: light;
  --blue: #0057a6;
  --blue-dark: #003f7d;
  --cyan: #00aeef;
  --red: #e31e24;
  --ink: #07244a;
  --muted: #58708d;
  --line: #c9d8ea;
  --bg: #edf4fb;
  --surface: #ffffff;
  --shadow: 0 24px 60px rgba(0, 57, 116, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 520px;
  content: "";
  background:
    linear-gradient(140deg, rgba(0, 63, 125, 0.96), rgba(0, 87, 166, 0.9)),
    var(--blue);
}

a {
  color: inherit;
}

.campaign-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  color: #ffffff;
  background: rgba(0, 87, 166, 0.92);
  border-bottom: 4px solid var(--red);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  padding: 6px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #ffffff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: #d7ecff;
  font-size: 13px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #e9f6ff;
  font-weight: 800;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  color: #ffffff;
}

.outline-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.outline-action {
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid #ffffff;
}

.primary-action {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 16px 36px rgba(227, 30, 36, 0.28);
}

.secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.light {
  color: #ffffff;
  background: transparent;
}

main {
  padding: 30px clamp(14px, 4vw, 48px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
  margin: -30px calc(clamp(14px, 4vw, 48px) * -1) 0;
  padding: 90px clamp(14px, 4vw, 48px) 56px;
  min-height: calc(100vh - 90px);
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(0, 63, 125, 0.98), rgba(0, 87, 166, 0.92)),
    var(--blue);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #bdeeff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
}

.hero-name,
.hero-title {
  display: block;
}

.hero-name-lockup {
  display: inline-block;
  --tri-top: 24%;
  --tri-mid: 74%;
  width: fit-content;
  max-width: 100%;
  color: transparent;
  background-image:
    linear-gradient(180deg, #ffffff 0 var(--tri-top), #00aeef var(--tri-top) var(--tri-mid), #e31e24 var(--tri-mid) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 22px rgba(0, 25, 64, 0.22);
}

.hero-name {
  color: inherit;
}

.hero-name-first {
  margin-bottom: 0.03em;
  padding-bottom: 0.03em;
}

.hero-name-last {
  margin-bottom: 0.18em;
  padding-bottom: 0.02em;
  font-size: 0.82em;
  line-height: 0.92;
}

.hero-title {
  color: #ffffff;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 700px;
  color: #e6f5ff;
  font-size: 20px;
  line-height: 1.55;
}

.candidate-status {
  max-width: 780px;
  margin: -4px 0 18px;
  color: #d8efff;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 620px;
}

.party-ribbon {
  position: absolute;
  top: 0;
  right: 8px;
  left: 8px;
  height: 170px;
  border-radius: var(--radius);
  background:
    rgba(0, 87, 166, 0.62)
    url("/assets/united-russia-banner.jpg") center / contain no-repeat;
  box-shadow: var(--shadow);
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 22px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(0, 63, 125, 0.4);
}

.placeholder span,
.placeholder small {
  display: block;
}

.placeholder span {
  font-size: 24px;
  font-weight: 900;
}

.placeholder small {
  margin-top: 8px;
  color: #dceeff;
  font-size: 14px;
}

.candidate-photo {
  position: absolute;
  top: 92px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 88px);
  height: 430px;
  min-height: 430px;
  aspect-ratio: 316 / 420;
  overflow: hidden;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.82);
  background: #f1f6fc;
  box-shadow: var(--shadow);
}

.candidate-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}

.hero-card {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: min(360px, 70%);
  padding: 20px;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.45;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-strip div {
  position: relative;
  padding: 22px;
  background: #ffffff;
}

.stats-strip div::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--blue);
}

.stats-strip div:nth-child(2)::before,
.stats-strip div:nth-child(4)::before {
  background: var(--red);
}

.stats-strip div:nth-child(3)::before {
  background: var(--cyan);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 42px;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  line-height: 1.4;
}

.section,
.image-band,
.cta-section {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading .eyebrow,
.band-copy .eyebrow,
.cta-section .eyebrow {
  color: var(--blue);
}

.section-heading p,
.band-copy p,
.program-grid p,
.process-grid p,
.control-list span,
.cta-section p,
.campaign-footer p,
.source-note {
  color: var(--muted);
  line-height: 1.62;
}

.facts-section {
  border-top: 5px solid var(--red);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.facts-grid div {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.facts-grid span,
.facts-grid strong {
  display: block;
}

.facts-grid span {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.facts-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.source-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: #eef7ff;
}

.source-note a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.process-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article,
.program-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.step {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 32px;
  font-weight: 900;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 63, 125, 0.95), rgba(0, 87, 166, 0.88)),
    var(--blue);
}

.image-band-text {
  grid-template-columns: minmax(0, 1fr);
}

.wide-photo {
  min-height: 360px;
  border-color: rgba(255, 255, 255, 0.62);
}

.image-band .band-copy .eyebrow {
  color: #bdeeff;
}

.band-copy p {
  color: #e6f5ff;
}

.blue-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 63, 125, 0.98), rgba(0, 87, 166, 0.88)),
    var(--blue);
}

.blue-section .section-heading .eyebrow,
.blue-section .section-heading p,
.blue-section .program-grid p {
  color: #e6f5ff;
}

.blue-section .program-grid article {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.control-list {
  display: grid;
  gap: 12px;
}

.control-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.control-list strong {
  color: var(--blue-dark);
  font-size: 20px;
}

.report-photo {
  min-height: 100%;
  border-color: #9dc5eb;
  color: var(--blue-dark);
  background: #eef7ff;
}

.report-photo img {
  width: 130px;
  margin-bottom: 18px;
}

.report-photo small {
  color: var(--muted);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(227, 30, 36, 0.94), rgba(0, 87, 166, 0.92)),
    var(--red);
}

.cta-section .eyebrow,
.cta-section p {
  color: #ffffff;
}

.campaign-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px clamp(16px, 4vw, 48px);
  color: #ffffff;
  background: var(--blue-dark);
  border-top: 4px solid var(--cyan);
}

.campaign-footer div {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

.campaign-footer img {
  width: 44px;
  height: 44px;
  padding: 5px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #ffffff;
}

.campaign-footer p {
  margin: 0;
  color: #d7ecff;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .campaign-header,
  .hero,
  .image-band,
  .control-layout,
  .cta-section,
  .campaign-footer {
    grid-template-columns: 1fr;
  }

  .header-nav {
    order: 3;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 600px;
  }

  .process-grid,
  .program-grid,
  .facts-grid,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .campaign-header {
    position: static;
  }

  .header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding-inline: 12px;
  }

  .hero {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-media {
    min-height: 520px;
  }

  .candidate-photo {
    top: 72px;
    left: 50%;
    right: auto;
    max-width: calc(100% - 24px);
    height: 370px;
    min-height: 370px;
  }

  .hero-card {
    width: calc(100% - 24px);
  }

  .process-grid,
  .program-grid,
  .facts-grid,
  .stats-strip,
  .control-list div {
    grid-template-columns: 1fr;
  }

  .section,
  .image-band,
  .cta-section {
    padding: 22px 16px;
  }

  .primary-action,
  .secondary-action,
  .outline-action {
    width: 100%;
  }
}
