@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #151b21;
  --muted: #66707a;
  --line: #e4e8ed;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue: #123f7a;
  --blue-soft: #eaf2fb;
  --cyan: #1aa4c8;
  --orange: #f0a12b;
  --shadow: 0 22px 60px rgba(18, 63, 122, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Arial, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(18, 63, 122, 0.12);
  box-shadow: 0 12px 34px rgba(21, 27, 33, 0.08);
}

.site-header .brand {
  flex: 0 1 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 220ms ease;
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 63, 122, 0.18);
}

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

.brand strong {
  overflow-wrap: anywhere;
}

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

.nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #344354;
  font-size: 14px;
  font-weight: 700;
}

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

.nav a.active {
  color: var(--blue);
}

.nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav .nav-callback {
  padding: 10px 14px;
  color: var(--white);
  background: var(--orange);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(240, 161, 43, 0.22);
}

.nav .nav-callback::after {
  display: none;
}

.nav .nav-callback:hover {
  color: var(--white);
  background: #f4aa3c;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.nav-toggle:hover {
  border-color: rgba(18, 63, 122, 0.28);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 79px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) 42px;
  background:
    linear-gradient(90deg, rgba(11, 30, 54, 0.92) 0%, rgba(18, 63, 122, 0.78) 45%, rgba(18, 63, 122, 0.25) 100%),
    url("assets/hero-kazexpert.png") center/cover;
  color: var(--white);
  animation: heroIn 800ms ease both;
  background-position: center;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding-bottom: 18px;
}

.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(900px, 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    filter 720ms ease;
  filter: blur(3px);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-slide.is-exiting {
  opacity: 0;
  transform: translateY(-12px) scale(0.99);
  filter: blur(2px);
}

.slider-dots {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.slider-dot {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition:
    width 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

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

.slider-dot.is-active {
  width: 64px;
  background: var(--orange);
}

.hero-copy,
.hero-slider {
  max-width: 820px;
  animation: riseIn 720ms ease 80ms both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 900px;
  font-size: clamp(40px, 6.8vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

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

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 63, 122, 0.16);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(240, 161, 43, 0.28);
}

.btn.primary:hover {
  background: #f4aa3c;
}

.btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.48);
}

.btn.outline {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: riseIn 740ms ease 220ms both;
  isolation: isolate;
}

.hero-services article {
  min-width: 0;
  min-height: 240px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-services article:hover {
  z-index: 1;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(18, 63, 122, 0.16);
  transform: translateY(-4px);
}

.hero-services h2 {
  max-width: 100%;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.hero-services span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 220ms ease;
}

.hero-services article:hover span {
  transform: rotate(-3deg) scale(1.04);
}

.hero-services p {
  color: var(--muted);
}

.hero-services a {
  color: var(--blue);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.text-link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.section-action.left {
  justify-content: flex-start;
}

.partner,
.section,
.certificates,
.cta {
  padding: clamp(58px, 8vw, 102px) clamp(20px, 5vw, 72px);
}

.partner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  background: var(--white);
}

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

.feature-grid article,
.service-card,
.news-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(21, 27, 33, 0.05);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-grid article:hover,
.service-card:hover,
.news-grid article:hover,
.content-card:hover,
.document-grid article:hover {
  border-color: rgba(18, 63, 122, 0.16);
  box-shadow: 0 18px 42px rgba(18, 63, 122, 0.12);
  transform: translateY(-4px);
}

.feature-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.feature-grid p,
.section-title p:not(.eyebrow),
.about-panel p,
.service-card p,
.news-grid p,
.cta p {
  color: var(--muted);
}

.section-title {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-title.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.about-panel > div:first-child {
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.numbers article {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 150px;
  padding: clamp(22px, 2.2vw, 32px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #175d9f);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.numbers article::after {
  position: absolute;
  inset: auto -30% -40% 35%;
  height: 100px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.numbers article:hover {
  box-shadow: 0 18px 40px rgba(18, 63, 122, 0.22);
  transform: translateY(-4px);
}

.numbers strong {
  display: block;
  color: var(--white);
  font-size: clamp(44px, 4.1vw, 64px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.numbers span {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.35;
}

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

.services-preview {
  background: var(--white);
}

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

.service-card span,
.news-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.service-card:hover span,
.news-grid article:hover span {
  color: var(--white);
  background: var(--blue);
}

.feature-grid article,
.service-card,
.news-grid article,
.certificate-row article,
.content-card,
.document-grid article {
  min-width: 0;
  overflow-wrap: break-word;
}

.certificates {
  color: var(--white);
  background: #0f2d4f;
}

.certificates .section-title {
  margin-bottom: 28px;
}

.certificates .eyebrow {
  color: #ffc260;
}

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

.certificate-row article {
  min-height: 130px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.certificate-row article:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.news-grid time {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: var(--white);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
  justify-content: flex-start;
}

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

label {
  display: grid;
  gap: 8px;
  color: #334252;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 63, 122, 0.12);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.8);
  background: #101820;
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--white);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.2;
}

.footer address {
  max-width: 760px;
  font-style: normal;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
}

.footer span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.45;
}

.page-hero {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 30, 54, 0.94), rgba(18, 63, 122, 0.74)),
    url("assets/hero-kazexpert.png") center/cover;
  animation: heroIn 760ms ease both;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(36px, 5.2vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
}

.content-card,
.document-grid article {
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(21, 27, 33, 0.05);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

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

.plain-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
}

.plain-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}

.muted-section {
  background: var(--blue-soft);
}

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

.service-grid.detailed .service-card {
  min-height: 360px;
}

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

.document-grid span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.document-grid p,
.contact-details p {
  color: var(--muted);
}

.compact-cta {
  align-items: center;
}

.contact-page {
  background: var(--white);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list a,
.contact-list span {
  padding: 14px 16px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.contact-list a:hover {
  background: #dfeefa;
  transform: translateX(3px);
}

.map-section {
  background: var(--paper);
}

.map-frame {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(18, 63, 122, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--stagger-index, 0) * 70ms);
}

@keyframes heroIn {
  from {
    background-position: center 18px;
  }
  to {
    background-position: center;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .nav {
    order: 3;
    flex-basis: 100%;
  }

  .hero-services,
  .partner,
  .about-panel,
  .cta,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .news-grid,
  .certificate-row,
  .document-grid,
  .numbers.horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav a {
    padding: 13px 10px;
  }

  .nav .nav-callback {
    margin-top: 6px;
    text-align: center;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 220px;
    font-size: 14px;
    line-height: 1.15;
  }

  .hero {
    min-height: auto;
  }

  .hero-slider {
    min-height: 470px;
  }

  .feature-grid,
  .service-grid,
  .news-grid,
  .certificate-row,
  .numbers,
  .numbers.horizontal,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .numbers strong {
    font-size: 48px;
  }

  .footer,
  .footer address {
    text-align: left;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 34px;
  }

  .hero-services h2 {
    font-size: 28px;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}
