/* Air Engineering Kazakhstan — landing styles
   Mobile-first, CSS variables, no external CSS frameworks */

:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --ink: #152033;
  --graphite: #243044;
  --muted: #5d6d7e;
  --line: rgba(18, 42, 68, 0.12);
  --white: #ffffff;
  --bg: #f5f8fb;
  --ice: #e7f3fb;
  --sky: #1a7fbf;
  --sky-deep: #0e5f96;
  --accent: #00b3a4;
  --accent-dark: #008f83;
  --warm: #ff7a3c;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 18px;
  --header: 76px;
  --max: 1160px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.06);
}

.header__inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  flex: 0 0 auto;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--sky) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 127, 191, 0.28);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__text small {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: none;
  gap: 18px;
  margin-left: auto;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--graphite);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.header__contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  line-height: 1.2;
  margin-left: 8px;
}

.header__contacts a {
  font-weight: 800;
  color: var(--navy);
}

.header__contacts span {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

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

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

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 179, 164, 0.28);
}

.btn--accent:hover {
  background: var(--accent-dark);
}

.btn--warm {
  background: var(--warm);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 60, 0.28);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn--header {
  display: none;
  padding: 10px 16px;
  font-size: 14px;
}

.burger {
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 51, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 45;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 50;
  transform: translateX(104%);
  transition: transform 0.3s ease;
  padding: 22px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer nav a {
  padding: 12px 4px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.drawer__phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(0, 179, 164, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(26, 127, 191, 0.35), transparent 55%),
    linear-gradient(160deg, #071525 0%, #0e2c4a 55%, #13466d 100%);
  color: #fff;
  padding: 42px 0 64px;
}

.hero__grid {
  display: grid;
  gap: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 0 0 22px;
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 179, 164, 0.2);
  color: #7dffe9;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  background: rgba(7, 21, 37, 0.35);
  border-radius: 16px;
  padding: 14px;
}

.stat b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.brands {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brands span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2,
.panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

.section-head p,
.panel p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  color: var(--sky-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.grid-cards {
  display: grid;
  gap: 16px;
}

.card,
.case,
.step,
.room {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover,
.case:hover,
.room:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 179, 164, 0.35);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ice);
  color: var(--sky-deep);
  margin-bottom: 14px;
}

.card h3,
.case h3,
.room h3,
.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.card p,
.case p,
.room p,
.step p {
  margin: 0 0 14px;
  color: var(--muted);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sky-deep);
  font-weight: 800;
  cursor: pointer;
  font-size: 14.5px;
}

.linkish:hover {
  color: var(--accent-dark);
}

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

.room {
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.room strong {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
  margin-bottom: 6px;
}

.cases {
  display: grid;
  gap: 16px;
}

.case__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step__num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

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

.adv {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.adv b {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.adv span {
  color: var(--muted);
}

/* CTA form */
.cta {
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(0, 179, 164, 0.2), transparent 60%),
    linear-gradient(160deg, #0b1f33, #123a5c);
  color: #fff;
}

.cta .section-head h2,
.cta .eyebrow {
  color: #fff;
}

.cta .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.form-wrap {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--graphite);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5dee7;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  background: #fbfcfd;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 179, 164, 0.35);
  border-color: var(--accent);
}

.form-note,
.form-status {
  font-size: 13px;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--accent-dark);
  font-weight: 700;
}

.form-status.is-error {
  color: #c0392b;
  font-weight: 700;
}

.field-error {
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  min-height: 0;
}

/* Footer */
.footer {
  background: #081624;
  color: rgba(255, 255, 255, 0.82);
  padding: 42px 0 24px;
}

.footer__grid {
  display: grid;
  gap: 22px;
}

.footer a:hover {
  color: #fff;
}

.footer h3 {
  margin: 0 0 10px;
  color: #fff;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  font-size: 13px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 36, 0.62);
}

.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  max-height: min(88vh, 760px);
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.reveal-on {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .grid-cards,
  .rooms,
  .cases,
  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__grid,
  .cta-grid,
  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .nav,
  .header__contacts,
  .btn--header {
    display: flex;
  }

  .burger {
    display: none;
  }

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

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

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

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

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

  .hero {
    padding: 72px 0 84px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-on {
    opacity: 1;
    transform: none;
  }
}
