:root {
  --ink: #091018;
  --muted: #586574;
  --line: #dfe6ee;
  --paper: #f7f9fb;
  --white: #ffffff;
  --cyan: #00a6c8;
  --teal: #0a6f72;
  --red: #d53445;
  --navy: #102438;
  --shadow: 0 24px 60px rgba(6, 18, 30, 0.16);
  --section-label-size: 13px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header[data-elevated="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 18px rgba(6, 18, 30, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 180ms ease;
}

.site-header[data-elevated="true"] .brand-logo {
  filter: none;
}

.brand-logo-full {
  width: 188px;
}

.brand-logo-symbol {
  display: none;
  width: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: currentColor;
  font-size: 14px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.site-header[data-elevated="true"] .language-switch {
  border-color: var(--line);
  background: var(--white);
}

.lang-btn {
  width: 38px;
  height: 31px;
  border: 0;
  border-radius: 6px;
  color: currentColor;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.lang-btn.is-active {
  color: var(--ink);
  background: var(--white);
}

.site-header[data-elevated="true"] .lang-btn.is-active {
  color: var(--white);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  padding: 140px clamp(20px, 5vw, 72px) 88px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("assets/hero-futureproof.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 20, 0.9) 0%, rgba(4, 12, 20, 0.7) 36%, rgba(4, 12, 20, 0.08) 70%),
    linear-gradient(180deg, rgba(3, 9, 15, 0.16) 0%, rgba(3, 9, 15, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: var(--section-label-size);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

html[lang="kk"] h1,
html[lang="ru"] h1 {
  max-width: 760px;
  font-size: clamp(40px, 5.7vw, 68px);
  line-height: 1.02;
}

.hero-text {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 96px);
  background: var(--white);
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.lead-stack p,
.section-heading p:not(.section-kicker),
.band-copy p:not(.section-kicker),
.contact-copy p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.services {
  background: var(--paper);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

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

.service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(6, 18, 30, 0.04);
}

.service-card.accent {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), #134b54);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.service-card.accent p {
  color: rgba(255, 255, 255, 0.76);
}

.dark-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 42px;
  color: var(--white);
  background: #07111c;
}

.dark-band h2 {
  margin-bottom: 18px;
}

.dark-band .section-kicker {
  color: #57d3dc;
}

.band-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.7);
}

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

.capability-list div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.partners {
  background: var(--white);
}

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

.partner-logo-tile {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 92px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.partner-logo-tile img {
  display: block;
  max-width: 100%;
  width: 184px;
  max-height: 54px;
  object-fit: contain;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 7vw, 86px);
  background: var(--paper);
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.feedback-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: #314154;
  font-size: 13px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #cad5df;
  border-radius: 8px;
  padding: 14px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.feedback-form textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #07111c;
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 850;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .mobile-nav {
    position: fixed;
    z-index: 19;
    top: 76px;
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 780px;
    padding-top: 120px;
  }

  .split,
  .dark-band,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-full {
    display: none;
  }

  .brand-logo-symbol {
    display: block;
    width: 38px;
  }

  .language-switch {
    gap: 2px;
  }

  .lang-btn {
    width: 34px;
  }

  .mobile-nav {
    top: 70px;
  }

  .hero {
    min-height: 78svh;
    padding: 104px 18px 58px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 12, 20, 0.9) 0%, rgba(4, 12, 20, 0.82) 48%, rgba(4, 12, 20, 0.34) 100%),
      linear-gradient(90deg, rgba(4, 12, 20, 0.68), rgba(4, 12, 20, 0.18));
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  html[lang="kk"] h1,
  html[lang="ru"] h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.48;
  }

  .section {
    padding: 68px 18px;
  }

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

  .service-card {
    min-height: auto;
  }

  .feedback-form {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
