:root {
  --bg: #f3f7ff;
  --bg-alt: #edf3ff;
  --surface: #ffffff;
  --surface-strong: #f9fbff;
  --text: #0f2240;
  --muted: #4b5f81;
  --primary: #1b4de8;
  --accent: #17bac6;
  --border: #dbe6ff;
  --border-strong: #bfd2ff;
  --shadow: 0 18px 44px rgba(13, 31, 66, 0.08);
  --shadow-hover: 0 22px 50px rgba(13, 31, 66, 0.13);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(23, 186, 198, 0.15), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(27, 77, 232, 0.14), transparent 32%),
    var(--bg);
  line-height: 1.6;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  max-width: 900px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
    var(--bg-alt);
}

.section:not(.hero):not(.cta)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 3rem));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(27, 77, 232, 0.18),
    rgba(23, 186, 198, 0.24),
    rgba(27, 77, 232, 0.18),
    transparent
  );
}

.text-lg {
  font-size: 1.08rem;
  max-width: 980px;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(130deg, #0c1a33 0%, #162f66 55%, #0c1830 100%);
  color: #f5f9ff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 20%, rgba(16, 184, 200, 0.3), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(25, 71, 230, 0.35), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  opacity: 0.82;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 2.4rem;
  border: 1px solid rgba(197, 218, 255, 0.22);
  border-radius: 22px;
  backdrop-filter: blur(2px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(196, 215, 255, 0.34);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(12, 28, 58, 0.38);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: #d5e5ff;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.36rem 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: #fff;
}

.eyebrow {
  margin-bottom: 1rem;
  color: #b9ceff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero__subtitle {
  margin-top: 1.25rem;
  max-width: 760px;
  font-size: 1.08rem;
  color: #d7e5ff;
}

.btn {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  box-shadow: 0 14px 30px rgba(17, 57, 173, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(17, 57, 173, 0.34);
  filter: saturate(1.06);
}

.grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.24rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.timeline li {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1rem 3rem;
  min-height: 78px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.7rem;
  top: 50%;
  width: 0.45rem;
  height: 1px;
  background: rgba(77, 109, 176, 0.45);
}

.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  font-size: 0.82rem;
  font-weight: 700;
}

.benefits {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.benefits li {
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.2rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefits li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--primary), var(--accent));
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(23, 186, 198, 0.16), transparent 36%),
    radial-gradient(circle at 90% 70%, rgba(27, 77, 232, 0.24), transparent 38%),
    linear-gradient(160deg, #0f2244, #163569);
  color: #eef5ff;
}

.cta .btn {
  margin-top: 1.5rem;
}

.footer {
  background: linear-gradient(180deg, #0d1b36, #0b1831);
  color: #d6e2ff;
  text-align: center;
  padding: 2.4rem 0;
}

.footer__name {
  font-weight: 600;
}

.footer__tagline {
  margin-top: 0.4rem;
  color: #afc3ee;
}

.footer__copy {
  margin-top: 0.55rem;
  color: #8da4d9;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  filter: blur(2px);
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 36, 0.62);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 1.5rem));
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 28px 60px rgba(13, 31, 66, 0.28);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 12px);
  z-index: 50;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(23, 186, 198, 0.35);
  background: rgba(15, 34, 68, 0.96);
  color: #eaf3ff;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal__close {
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal__subtitle {
  margin-top: 0.35rem;
  color: var(--muted);
}

.consultation-form {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(27, 77, 232, 0.12);
}

.consultation-form__submit {
  margin-top: 0.2rem;
  width: 100%;
}

@media (max-width: 1120px) {
  .cards-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .timeline li:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .cards-5,
  .cards-3,
  .timeline,
  .benefits {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
  }

  .hero .container {
    padding: 1.55rem;
    border-radius: 16px;
  }

  .hero__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .section:not(.hero):not(.cta)::before {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .timeline li:not(:last-child)::after {
    display: none;
  }

  .modal__dialog {
    padding: 1.2rem;
  }

  .toast {
    width: calc(100% - 1rem);
    text-align: center;
  }
}
