:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #596579;
  --line: #dbe3ee;
  --blue: #1457d9;
  --blue-dark: #0b347f;
  --yellow: #ffd333;
  --green: #1f9d6a;
  --soft: #eef5ff;
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid rgba(219, 227, 238, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.main-nav,
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  min-height: calc(100vh - 78px);
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.lead {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue-dark);
  background: var(--surface);
}

.hero-visual {
  overflow: hidden;
  align-self: center;
  min-height: 430px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.tinted {
  background: var(--soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 7vw, 92px);
}

.rich-text {
  color: var(--muted);
  font-size: 1.06rem;
}

.rich-text p:first-child,
.section-heading p {
  margin-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 920px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.mini-card,
.impact-card {
  min-height: 170px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-card span,
.impact-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--blue);
  background: #edf4ff;
  border-radius: 50%;
  font-weight: 800;
}

.mini-card p,
.impact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(22px, 5vw, 52px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.05);
}

.project-media {
  min-height: 420px;
  overflow: hidden;
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .subtitle {
  margin: 10px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.project-card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  color: var(--blue-dark);
  background: #edf4ff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.future-projects,
.collaboration,
.cta {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.future-projects p,
.collaboration p,
.cta p {
  max-width: 900px;
  color: var(--muted);
}

.partner-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.partner-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.partner-logo {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-logo img {
  width: 100%;
  max-width: 310px;
  max-height: 132px;
  object-fit: contain;
}

.partner-logo span {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.cta {
  margin: 0 clamp(18px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 0;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta .button {
  margin-top: 10px;
  color: var(--blue-dark);
  border-color: #fff;
  background: #fff;
}

.contacts {
  display: block;
}

.contact-copy > p {
  max-width: 920px;
  color: var(--muted);
  font-size: 1.06rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.details div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.details dt {
  color: var(--ink);
  font-weight: 800;
}

.details dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #0b1220;
}

.site-footer img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.site-footer h2 {
  margin-top: 14px;
  font-size: 1.4rem;
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer nav {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
}

.legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

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

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .two-column,
  .project-card,
  .contacts,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .focus-grid,
  .impact-grid,
  .partner-groups,
  .details {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 360px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand span {
    max-width: 150px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .partner-logos {
    grid-template-columns: 1fr;
  }

}
