:root {
  --ink: #172027;
  --muted: #5f6d78;
  --line: #dce4ea;
  --paper: #ffffff;
  --soft: #f4f8fa;
  --blue: #1167d8;
  --teal: #00a6a6;
  --coral: #ff684d;
  --graphite: #26323a;
  --shadow: 0 18px 55px rgba(23, 32, 39, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.22rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 234, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--graphite);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 7px;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #33434f;
  font-size: 0.96rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: #edf5ff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.2) 74%),
    url("../img/hero-ait.png") center right / cover no-repeat;
}

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

.hero-inner {
  padding: clamp(72px, 10vw, 136px) 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
}

.hero p {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #42525e;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
}

.button.ghost {
  color: var(--blue);
  background: #edf5ff;
}

.trust-strip {
  margin-top: clamp(48px, 8vw, 86px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(220, 228, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

.trust-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

section,
.page-hero {
  padding: clamp(58px, 8vw, 96px) 0;
}

.page-hero {
  background: linear-gradient(135deg, #f7fbff 0%, #eef9f6 52%, #fff7f4 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero p,
.section-lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.08rem;
}

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

.section-head p {
  max-width: 560px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card.highlight {
  border-color: rgba(17, 103, 216, 0.35);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 7px;
  color: #fff;
  background: var(--graphite);
}

.card:nth-child(2n) .card-icon {
  background: var(--teal);
}

.card:nth-child(3n) .card-icon {
  background: var(--coral);
}

.card p {
  margin-top: 12px;
}

.feature-band {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.visual-panel {
  min-height: 430px;
  padding: 28px;
  display: grid;
  align-content: end;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(23, 32, 39, 0.08), rgba(23, 32, 39, 0.82)),
    url("../img/hero-ait.png") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.visual-panel h3,
.visual-panel p {
  color: #fff;
}

.visual-panel p {
  margin-top: 8px;
  opacity: 0.88;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: #34434f;
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.process {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.cta {
  background: var(--graphite);
  color: #fff;
}

.cta h2,
.cta p {
  color: #fff;
}

.cta p {
  opacity: 0.82;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.contact-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 7px;
  color: #34434f;
  font-size: 0.94rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 20px;
}

.site-footer {
  padding: 42px 0;
  background: #101820;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-banner,
.cookie-settings {
  position: fixed;
  z-index: 90;
}

.cookie-banner {
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-box {
  width: min(880px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-box p {
  margin-top: 8px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cookie-settings {
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(16, 24, 32, 0.52);
}

.cookie-settings.is-visible {
  display: grid;
}

.settings-dialog {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cookie-option strong {
  display: block;
}

.cookie-option span {
  color: var(--muted);
  font-size: 0.92rem;
}

.switch {
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  position: relative;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b8c5cf;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--teal);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.76) 100%),
      url("../img/hero-ait.png") center / cover no-repeat;
  }

  .trust-strip,
  .grid.three,
  .grid.two,
  .split,
  .contact-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .section-head {
    display: grid;
  }

  .visual-panel {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero-inner {
    padding-top: 64px;
  }

  .actions,
  .cookie-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .card,
  .contact-card,
  .settings-dialog {
    padding: 20px;
  }
}
