:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-muted: #eef0f2;
  --text: #15171a;
  --muted: #62676f;
  --line: #dde1e5;
  --graphite: #2f343a;
  --graphite-soft: #474d55;
  --graphite-light: #f0f1f2;
  --shadow: 0 24px 70px rgba(21, 23, 26, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 248, 0.88);
  border-bottom: 1px solid rgba(221, 225, 229, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--graphite);
  border-radius: var(--radius);
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lang-button {
  min-width: 42px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.lang-button.is-active {
  color: #fff;
  background: var(--graphite);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: max(720px, calc(100vh - 72px));
  padding: 76px 0 104px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--graphite-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: normal;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  overflow-wrap: break-word;
  word-break: normal;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hero-text,
.agents-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--graphite);
  box-shadow: 0 14px 30px rgba(47, 52, 58, 0.24);
}

.button-secondary {
  color: var(--graphite);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-visual {
  min-width: 0;
  overflow: hidden;
  background: #17191c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  gap: 7px;
  padding: 16px;
  background: #24282d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  background: #7d838a;
  border-radius: 50%;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.metric-card,
.flow-card,
.agent-card {
  min-height: 150px;
  padding: 18px;
  color: #fff;
  background: #22262b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.metric-card span,
.flow-row span:last-child {
  color: #b9bec5;
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 18px 0;
  font-size: 42px;
}

.progress {
  overflow: hidden;
  height: 8px;
  background: #111316;
  border-radius: 99px;
}

.progress span {
  display: block;
  height: 100%;
  background: #cfd3d8;
}

.flow-card,
.agent-card {
  grid-column: span 2;
}

.flow-card {
  display: grid;
  gap: 12px;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  background: #191c20;
  border-radius: 7px;
}

.flow-dot {
  width: 10px;
  height: 10px;
  background: #cfd3d8;
  border-radius: 50%;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  background: linear-gradient(135deg, #2f343a, #191c20);
}

.agent-badge {
  display: grid;
  width: 56px;
  flex: 0 0 56px;
  height: 56px;
  place-items: center;
  color: var(--graphite);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 800;
}

.agent-card p {
  margin: 0;
  color: #e4e7ea;
  line-height: 1.55;
}

.stats-strip {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 96px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stats-strip div {
  padding: 26px;
  background: var(--surface);
}

.stats-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: normal;
}

.services,
.agents,
.process,
.contact-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 36px;
}

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

.service-card {
  min-width: 0;
  min-height: 270px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 34px;
  color: #fff;
  background: var(--graphite);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.service-card p,
.timeline p,
.agent-list span {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: normal;
}

.agents {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

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

.agent-list div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-list strong {
  font-size: 19px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline div {
  min-width: 0;
  padding: 24px;
  background: var(--graphite-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 28px;
  color: #fff;
  background: var(--graphite);
  border-radius: 50%;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding-bottom: 64px;
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-card a,
.contact-card div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
}

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

.contact-card p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.site-footer span {
  color: var(--text);
}

html[lang="kk"] h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
}

html[lang="kk"] .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-top: 4px;
  }

  .hero,
  .agents,
  .contact-section {
    grid-template-columns: 1fr;
  }

  html[lang="kk"] .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-visual {
    width: 100%;
    max-width: 640px;
  }

  .card-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .lang-button {
    min-width: 36px;
  }

  .main-nav {
    font-size: 13px;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1.1;
  }

  h2 {
    font-size: 31px;
  }

  .hero-text,
  .agents-copy p {
    max-width: none;
    font-size: 16px;
  }

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

  .visual-grid,
  .stats-strip,
  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .agent-card {
    grid-column: auto;
  }

  .agent-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-strip {
    margin-bottom: 48px;
  }

  .services,
  .agents,
  .process,
  .contact-section {
    padding: 56px 0;
  }

  .service-card {
    min-height: auto;
    padding: 22px;
  }

  html[lang="kk"] h2 {
    font-size: 27px;
    line-height: 1.14;
  }

  html[lang="kk"] .eyebrow {
    font-size: 11px;
    line-height: 1.45;
  }

  html[lang="kk"] .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 58px;
  }

  html[lang="kk"] .hero-text,
  html[lang="kk"] .agents-copy p {
    font-size: 15px;
    line-height: 1.62;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 30px;
  }
}
