:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-strong: #eaf0f5;
  --text: #102033;
  --muted: #5e7185;
  --blue-950: #08213d;
  --blue-850: #0f3157;
  --blue-650: #1f5d91;
  --green: #22a06b;
  --green-dark: #11794f;
  --red: #e24a42;
  --border: #d6e0e8;
  --shadow: 0 24px 65px rgba(15, 49, 87, 0.16);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(245, 248, 251, 0.92);
  border-bottom: 1px solid rgba(214, 224, 232, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--blue-850);
  border-radius: 50%;
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue-850);
}

.header-actions {
  display: flex;
  gap: 6px;
  justify-content: end;
}

.lang-switch {
  min-width: 40px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch.is-active {
  color: #fff;
  background: var(--blue-850);
  border-color: var(--blue-850);
}

.nav-toggle {
  display: none;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 42px;
  min-height: calc(100vh - 73px);
  align-items: center;
  width: 100%;
  padding: 68px max(20px, calc((100vw - 1160px) / 2)) 52px;
  background:
    linear-gradient(105deg, rgba(245, 248, 251, 0.98) 0%, rgba(245, 248, 251, 0.9) 42%, rgba(245, 248, 251, 0.42) 100%),
    radial-gradient(circle at 5% 12%, rgba(34, 160, 107, 0.16), transparent 28%),
    #f5f8fb;
}

.hero__content h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__lead {
  margin: 26px 0 0;
  color: var(--blue-850);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 750;
  line-height: 1.25;
}

.hero__text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--blue-850);
  font-size: 13px;
  font-weight: 850;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 49, 87, 0.08);
}

.hero-proof span:nth-child(3) {
  border-left-color: var(--red);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button--ghost {
  color: var(--blue-850);
  background: #fff;
  border-color: var(--border);
}

.button--plain {
  color: var(--blue-850);
  background: transparent;
}

.hero__media {
  display: grid;
  gap: 16px;
  align-self: center;
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  height: clamp(430px, 58vh, 560px);
  min-height: 0;
  background: #dbe9f5;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-image-card > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.hero-image-card--photo {
  background: var(--blue-950);
}

.hero-image-card--photo > img {
  object-position: center 42%;
}

.hero-image-card__overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #fff;
  background: rgba(8, 33, 61, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-image-card__overlay span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.voting-promo {
  width: 100%;
  padding: 34px max(20px, calc((100vw - 1160px) / 2)) 56px;
  background: #ffffff;
}

.voting-promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.58fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.voting-promo__banner-link,
.voting-promo__instruction-link {
  display: block;
  border-radius: 8px;
}

.voting-promo__banner-link:hover,
.voting-promo__banner-link:focus-visible,
.voting-promo__instruction-link:hover,
.voting-promo__instruction-link:focus-visible {
  outline: 3px solid rgba(31, 93, 145, 0.24);
  outline-offset: 4px;
}

.voting-promo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f6f9fd;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 49, 87, 0.14);
}

.voting-promo__banner {
  aspect-ratio: 16 / 9;
}

.voting-promo__instruction-link {
  max-height: 540px;
  aspect-ratio: 2345 / 2400;
  align-self: center;
}

.voting-promo__instruction {
  height: 100%;
}

.section__intro {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.95fr);
  gap: 18px 24px;
  max-width: 780px;
  margin-bottom: 42px;
}

.section__intro--wide {
  max-width: 980px;
}

.section-number {
  grid-row: span 2;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  padding-top: 10px;
  border-top: 2px solid var(--green);
}

.section__intro h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy h3 {
  margin-top: 0;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
}

.mission-box {
  margin-top: 10px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-650));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission-box h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.mission-box p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.path-timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 34px;
}

.path-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--border);
}

.path-timeline article {
  position: relative;
  padding: 0 0 0 18px;
}

.path-timeline article::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.path-timeline article.is-active::before {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 160, 107, 0.18);
}

.path-timeline time {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.path-timeline h3 {
  margin: 5px 0;
  font-size: 18px;
}

.path-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline article,
.demo-cards article,
.news-card,
.contact-link {
  background: var(--surface);
}

.timeline article {
  min-height: 230px;
  padding: 24px;
}

.timeline time {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

h3 {
  margin: 12px 0 8px;
  color: var(--blue-950);
  font-size: 20px;
  line-height: 1.25;
}

.timeline p,
.demo-cards p,
.news-card p {
  margin: 0;
  color: var(--muted);
}

.demography {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
}

.demography .section__intro,
.demography .demo-grid {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  gap: 28px;
  align-items: start;
}

.demo-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 896 / 817;
  min-height: 0;
  padding: clamp(10px, 1.4vw, 18px);
  background: #dfe8ef;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.demo-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.demo-cards {
  display: grid;
  gap: 12px;
}

.demo-cards article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.demo-cards ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.demo-cards li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-weight: 650;
}

.demo-cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-size: 13px;
  font-weight: 780;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--text);
  background: #f9fbfd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

.activity-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

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

.activity-grid article,
.news-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.activity-grid article {
  min-height: 235px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.activity-card-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.activity-card-header h3 {
  margin: 0;
}

.activity-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.activity-icon--blue {
  color: var(--blue-850);
  background: rgba(31, 93, 145, 0.12);
}

.activity-icon--green {
  color: var(--green-dark);
  background: rgba(34, 160, 107, 0.13);
}

.activity-icon--red {
  color: var(--red);
  background: rgba(226, 74, 66, 0.12);
}

.activity-icon--orange {
  color: #b85b15;
  background: rgba(237, 137, 54, 0.14);
}

.activity-grid p {
  margin: 0;
  color: var(--muted);
}

.projects {
  padding-top: 50px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--blue-950);
  font-size: 13px;
  text-transform: uppercase;
  background: var(--surface-strong);
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--text);
  font-weight: 800;
}

.expertise-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 850;
  border-radius: 999px;
}

.expertise-tag--blue {
  color: var(--blue-850);
  background: rgba(31, 93, 145, 0.12);
}

.expertise-tag--green {
  color: var(--green-dark);
  background: rgba(34, 160, 107, 0.13);
}

.expertise-tag--red {
  color: var(--red);
  background: rgba(226, 74, 66, 0.12);
}

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

.news-card {
  display: grid;
  grid-template-rows: 220px auto 1fr;
  gap: 14px;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(15, 49, 87, 0.13);
  box-shadow: 0 16px 40px rgba(15, 49, 87, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(226, 74, 66, 0.38);
  box-shadow: 0 22px 55px rgba(15, 49, 87, 0.16);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #dfe8ef;
}

.news-card span,
.news-card h3,
.news-card p {
  margin-inline: 22px;
}

.news-card span {
  align-self: end;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 22px;
}

.news-card p {
  padding-bottom: 24px;
  font-weight: 700;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.news-modal[hidden] {
  display: none;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 44, 0.72);
  backdrop-filter: blur(8px);
}

.news-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.news-modal__dialog img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #dfe8ef;
}

.news-modal__body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 52px);
}

.news-modal__body time {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-modal__body h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.news-modal__body p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.news-modal__source {
  justify-self: start;
  margin-top: 8px;
  color: var(--blue-850);
  font-weight: 900;
  text-decoration-color: rgba(15, 49, 87, 0.28);
  text-underline-offset: 4px;
}

.news-modal__source:hover,
.news-modal__source:focus-visible {
  color: var(--red);
}

.news-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue-950);
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.contacts {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  background: var(--blue-950);
  color: #fff;
}

.contacts .section__intro,
.contacts .contact-links {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.contacts .section__intro h2,
.contacts .section-number {
  color: #fff;
}

.contacts .section__intro p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-link {
  display: flex;
  min-height: 136px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  color: var(--blue-950);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.contact-link span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: var(--blue-850);
  border-radius: 50%;
}

.contact-link strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(20px, calc((100vw - 1160px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #06182c;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    justify-self: end;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--blue-850);
  }

  .site-nav {
    position: fixed;
    inset: 73px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    position: absolute;
    right: 76px;
  }

  .hero,
  .demo-grid,
  .contact-links,
  .about-grid,
  .voting-promo__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .voting-promo__instruction-link {
    width: min(100%, 520px);
    max-height: none;
    justify-self: center;
  }

  .timeline,
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-modal__dialog {
    grid-template-columns: 1fr;
  }

  .news-modal__dialog img {
    height: 300px;
    min-height: 300px;
  }

  .demo-visual {
    width: min(100%, 680px);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    right: 66px;
  }

  .section {
    padding-block: 64px;
  }

  .voting-promo {
    padding-block: 20px 42px;
  }

  .voting-promo__grid {
    gap: 12px;
  }

  .hero__media {
    gap: 10px;
  }

  .hero-image-card {
    height: clamp(320px, 58vh, 380px);
    min-height: 340px;
  }

  .hero-image-card > img {
    min-height: 340px;
  }

  .timeline,
  .activity-grid,
  .news-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-rows: 190px auto 1fr;
    min-height: 390px;
  }

  .news-card img {
    height: 190px;
  }

  .news-modal {
    padding: 14px;
  }

  .news-modal__dialog {
    max-height: calc(100vh - 28px);
  }

  .news-modal__body p {
    font-size: 16px;
  }

  .section__intro {
    grid-template-columns: 1fr;
  }

  .section-number {
    grid-row: auto;
    width: 54px;
  }

  .demo-visual {
    aspect-ratio: 896 / 817;
    padding: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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