:root {
  --brand-blue: #005eff;
  --brand-blue-dark: #004bcc;
  --brand-red: #ff143d;
  --navy: #12283e;
  --ink: #172333;
  --muted: #697482;
  --paper: #f2f4f6;
  --white: #ffffff;
  --line: #e0e4e8;
  --shadow: 0 14px 38px #0d243b12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding-top: 76px;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.language-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

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

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - 1320px) / 2));
  background: var(--white);
  box-shadow: 0 5px 24px #12263a14;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 230px;
  max-height: 46px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: #364252;
  font-size: 14px;
  font-weight: 600;
}

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

.nav-right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-blue);
  box-shadow: 0 5px 14px #005eff26;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
  background: var(--brand-blue-dark);
  box-shadow: 0 8px 18px #005eff33;
}

.button.secondary {
  border: 1px solid #d8dfe6;
  background: var(--white);
  box-shadow: none;
  color: #26374a;
}

.button.secondary:hover {
  background: #f4f7fa;
}

.language-state {
  display: none !important;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f4f6;
}

.language-switch-button {
  min-width: 39px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344256;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
}

.language-switch-button:hover,
.language-switch-button:focus {
  outline: none;
  background: #e5edf5;
}

.language-switch-button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.language-switch-button.is-active {
  background: var(--brand-blue);
  box-shadow: 0 3px 9px #005eff3a;
  color: var(--white);
}

.hero {
  width: 100%;
  margin: 0;
  padding: 16px max(16px, calc((100% - 1320px) / 2)) 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: 100%;
  max-width: 1320px;
  min-height: 580px;
  align-items: center;
  gap: 5%;
  margin: 0 auto;
  padding: clamp(38px, 5.2vw, 72px) clamp(8px, calc(50% - 580px), 80px);
  border-radius: 18px;
  background-color: #12283e;
  background-image: linear-gradient(90deg, #101d2bef 0%, #102b45d9 50%, #0a345b8f 100%), url("https://primeminister.kz/assets/media/kaz-turk_1.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 50px #102c461f;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 7px;
  background: #eff3f6;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-eyebrow {
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff1c;
  color: var(--white);
  letter-spacing: 0.06em;
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-red);
}

.hero h1 {
  max-width: 700px;
  margin: 22px 0 15px;
  color: var(--white);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--white);
  font-style: normal;
}

.lead {
  max-width: 550px;
  margin-bottom: 0;
  color: #e5edf3;
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .button {
  min-height: 48px;
}

.hero-actions .button.secondary {
  border: 0;
  background: var(--white);
}

.trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: #d7e2ec;
  font-size: 13px;
}

.trust strong {
  color: var(--white);
  font-size: 18px;
}

.trust-divider {
  height: 30px;
  border-left: 1px solid #ffffff70;
}

.visual {
  width: 100%;
  height: clamp(310px, 36vw, 470px);
  overflow: hidden;
  border-radius: 15px;
  background: #e9edf0;
  box-shadow: 0 22px 55px #0004;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: clamp(66px, 8vw, 104px) 0;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-head h2,
.how-grid h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-head p {
  max-width: 440px;
  margin: 0;
  color: #6b7480;
  font-size: 16px;
  line-height: 1.65;
}

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

.card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid #edf0f2;
  border-radius: 16px;
  background: #f3f5f7;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px #152d4418;
}

.card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: #e1f0fa;
  color: var(--brand-blue);
}

.card-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: #626e7c;
  font-size: 14px;
  line-height: 1.7;
}

.section-process {
  background: #f1f3f5;
}

.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #e8ebee;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 42px #182b3d0a;
}

.how-intro-block {
  max-width: 420px;
}

.how-grid h2 {
  margin-top: 18px;
}

.how-intro {
  max-width: 360px;
  margin: 16px 0 0;
  color: #6a7582;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 17px;
  padding: 0 0 28px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 22px;
  border-left: 1px solid #dbe4eb;
  content: "";
}

.step-num {
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.step h3 {
  margin: 3px 0 5px;
  color: #1d2938;
  font-size: 18px;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: #6a7582;
  font-size: 14px;
}

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

.warehouse {
  padding: 26px;
  border: 1px solid #edf0f2;
  border-radius: 16px;
  background: #f3f5f7;
}

.warehouse .type {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warehouse h3 {
  margin: 12px 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
}

.warehouse address {
  min-height: 72px;
  color: #65717d;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.warehouse .mode {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
}

.social-proof {
  padding-top: 0;
  padding-bottom: clamp(64px, 8vw, 96px);
}

.social-proof-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #ebedf0;
  border-radius: 18px;
  background: var(--paper);
}

.social-proof-card h2 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.social-proof-card p {
  max-width: 640px;
  margin: 0;
  color: #67727f;
}

.social-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.social-actions .button,
.social-links .button {
  white-space: nowrap;
}

.section-registration {
  padding-top: 0;
}

.register {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 42px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 18px;
  background: linear-gradient(130deg, #12283e 0%, #173c5b 100%);
  box-shadow: 0 20px 52px #102c461a;
  color: var(--white);
}

.register .eyebrow {
  background: #ffffff1c;
  color: var(--white);
}

.register h2 {
  margin: 16px 0 13px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.register p {
  max-width: 440px;
  color: #e0e8ef;
}

.register .note {
  margin: 0;
  color: #bacbd8;
  font-size: 13px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form input,
.form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #ffffff4a;
  border-radius: 9px;
  outline: none;
  background: #ffffff12;
  color: var(--white);
  font-size: 16px;
}

.form input::placeholder,
.form select {
  color: #e0e8ef;
}

.form select option {
  color: var(--ink);
}

.form input:focus,
.form select:focus {
  border-color: #72c4f5;
}

.form .full {
  grid-column: 1 / -1;
}

.form button {
  min-height: 50px;
  border-radius: 9px;
  background: var(--brand-red);
  box-shadow: none;
}

.form button:hover {
  background: #d90027;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 48px;
}

.contact strong {
  color: var(--ink);
  font-size: 15px;
}

.contact p {
  margin: 0;
  color: #687482;
  font-size: 13px;
}

.contact .button.secondary {
  border-color: #dce2e8;
  color: var(--brand-blue);
}

.site-footer {
  border-top: 1px solid #e2e6ea;
  color: #707a85;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 38px;
}

.wa-float {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 12px;
  background: #22b56b;
  box-shadow: 0 8px 24px #063b6028;
  color: var(--white);
  font-size: 25px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.language-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #0b1827ad;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.language-overlay[hidden] {
  display: none !important;
}

.language-modal {
  width: min(540px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid #ffffffc9;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 90px #061a2e55;
  text-align: center;
}

.language-logo {
  display: block;
  width: 210px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 16px;
}

.language-kicker {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.language-hint {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: 14px;
}

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

.language-choice {
  min-height: 84px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6f8;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.language-choice:hover,
.language-choice:focus {
  transform: translateY(-2px);
  outline: none;
  border-color: var(--brand-blue);
  background: #eef5ff;
}

.language-choice:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.language-choice.is-current {
  border-color: var(--brand-blue);
  background: #eaf2ff;
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}

.language-native {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.language-secondary {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.language-choice:active,
.language-switch-button:active,
.button:active {
  transform: translateY(1px);
}

@media (min-width: 801px) and (max-width: 1000px) {
  .topbar nav {
    display: none;
  }

  .brand-logo {
    width: 190px;
  }

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

  .cards > :last-child,
  .warehouse-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 801px) and (max-height: 850px) {
  .hero {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: calc(100vh - 96px);
    min-height: 0;
    gap: 4%;
    padding: clamp(18px, 3.5vh, 30px) clamp(8px, calc(50% - 580px), 80px);
  }

  .hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(36px, 3.8vw, 50px);
    line-height: 1;
  }

  .hero .lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 13px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 12px;
  }

  .trust {
    gap: 10px;
    margin-top: 13px;
    font-size: 11px;
  }

  .visual {
    height: clamp(260px, 29vw, 380px);
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 66px;
  }

  .topbar {
    height: 66px;
    padding: 0 12px;
  }

  .brand-logo {
    width: 190px;
    max-height: 40px;
  }

  .topbar nav,
  .nav-cta {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .language-switch {
    gap: 1px;
    padding: 3px;
  }

  .language-switch-button {
    min-height: 38px;
    min-width: 35px;
    padding: 7px 6px;
  }

  .hero {
    padding: 10px 9px 26px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 15px;
    border-radius: 13px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 62px);
  }

  .hero .lead {
    font-size: 15px;
  }

  .visual {
    width: min(100%, 520px);
    height: clamp(245px, 72vw, 380px);
    justify-self: center;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }

  .cards,
  .warehouse-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .card {
    min-height: 0;
    padding: 23px;
  }

  .section-process .how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 21px;
  }

  .how-grid h2 {
    font-size: 36px;
  }

  .warehouse {
    padding: 22px;
  }

  .warehouse address {
    min-height: 0;
  }

  .social-proof-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .social-actions,
  .social-links {
    width: 100%;
  }

  .social-actions .button,
  .social-links .button {
    flex: 1 1 210px;
    white-space: normal;
  }

  .register {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 29px 22px;
  }

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

  .form .full {
    grid-column: auto;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wa-float {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 168px;
  }

  .hero-grid {
    padding: 27px 15px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .trust {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-actions,
  .social-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-actions .button,
  .social-links .button {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .language-modal {
    padding: 25px 18px;
  }

  .language-options {
    gap: 7px;
  }

  .language-choice {
    min-height: 78px;
    padding: 10px 5px;
  }

  .language-native {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 145px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions .button {
    padding-inline: 12px;
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
