:root {
  --navy: #16274a;
  --navy-soft: #45526e;
  --blue: #2e4da5;
  --blue-dark: #253e85;
  --green: #10a03f;
  --red: #c92c46;
  --amber: #f5a623;
  --bg: #ffffff;
  --tint: #f4f6fb;
  --border: #e3e8f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 39, 74, .08);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}

.logo__mark { width: 34px; height: 34px; }

.logo__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.logo__accent { color: var(--blue); }

.nav { display: flex; gap: 24px; }

.nav a {
  text-decoration: none;
  color: var(--navy-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

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

.header__phone {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.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); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(43, 78, 184, .07), transparent 65%),
    radial-gradient(500px 350px at 0% 100%, rgba(34, 162, 69, .06), transparent 65%);
  padding: 72px 0 64px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43, 78, 184, .08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 17px;
  color: var(--navy-soft);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
}

.hero__facts li { display: flex; flex-direction: column; }

.hero__facts strong { font-size: 20px; font-weight: 800; }

.hero__facts span { font-size: 13px; color: var(--navy-soft); }

.hero__visual { position: relative; justify-self: center; }

.hero__photos { display: flex; align-items: flex-end; }

.hero__photos img {
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero__photos img:first-child { width: 240px; height: 240px; }

.hero__photos img:last-child { width: 180px; height: 180px; margin-left: -48px; }

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 20px;
  text-align: center;
  white-space: nowrap;
}

.hero__badge strong { display: block; font-size: 15px; }

.hero__badge span { font-size: 12.5px; color: var(--navy-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}

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

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }

.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn--wa { background: #e8f8ee; color: #128c4b; }
.btn--wa:hover { background: #d4f2e0; }

.btn--tg { background: #e9f3fc; color: #1f7ac0; }
.btn--tg:hover { background: #d6e9f9; }

.btn--max { background: #ece9fb; color: #5747c8; }
.btn--max:hover { background: #ded9f7; }

/* ---------- sections ---------- */

.section { padding: 80px 0; }

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

.section__title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 16.5px;
  color: var(--navy-soft);
  max-width: 640px;
  margin-bottom: 40px;
}

.cards { display: grid; gap: 20px; }

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

/* ---------- service cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .25s, transform .25s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(43, 78, 184, .09);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card__icon svg { width: 24px; height: 24px; fill: var(--blue); }

.card h3 { font-size: 17px; margin-bottom: 10px; }

.card p { font-size: 14.5px; color: var(--navy-soft); }

/* ---------- plans ---------- */

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.plan--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  position: relative;
}

.plan h3 { font-size: 18px; margin-bottom: 8px; }

.plan__desc { font-size: 14.5px; color: var(--navy-soft); margin-bottom: 18px; }

.plan__price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }

.plan__price span { font-size: 15px; font-weight: 500; color: var(--navy-soft); }

.plan__tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin: 6px 0 22px;
}

.plan .btn { margin-top: auto; width: 100%; }

.plans__note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--navy-soft);
  text-align: center;
}

/* ---------- why ---------- */

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.why__list { list-style: none; display: grid; gap: 18px; }

.why__list li {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 20px 24px 20px 52px;
  font-size: 15px;
  color: var(--navy-soft);
  position: relative;
}

.why__list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

.why__list strong { color: var(--navy); }

/* ---------- team ---------- */

.person {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.person__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.person h3 { font-size: 20px; margin-bottom: 4px; }

.person__role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.person__body > p:not(.person__role) { font-size: 14.5px; color: var(--navy-soft); }

.person__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.person__link:hover { text-decoration: underline; }

/* ---------- faq ---------- */

.faq {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 28px 18px 0;
  position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  font-size: 14.5px;
  color: var(--navy-soft);
  padding-bottom: 20px;
  max-width: 640px;
}

/* ---------- contacts ---------- */

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contacts__list { list-style: none; display: grid; gap: 18px; margin-bottom: 28px; }

.contacts__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: 2px;
}

.contacts__list a {
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

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

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- form ---------- */

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 16px;
}

.form__title { font-size: 22px; }

.form label { display: grid; gap: 6px; }

.form label span { font-size: 13.5px; font-weight: 600; }

.form input,
.form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--tint);
  transition: border-color .2s, background .2s;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.form__submit { width: 100%; }

.form__consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.form__consent span {
  font-size: 13px;
  font-weight: 400;
  color: var(--navy-soft);
  line-height: 1.4;
}

.form__consent a { color: var(--blue); text-decoration: underline; }

/* ---------- legal pages ---------- */

.legal__inner { max-width: 760px; }

.legal h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.legal__updated {
  font-size: 13.5px;
  color: var(--navy-soft);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 19px;
  margin: 32px 0 10px;
}

.legal p {
  font-size: 15.5px;
  color: var(--navy-soft);
  margin-bottom: 4px;
}

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

/* ---------- footer ---------- */

.footer {
  background: var(--navy);
  color: #c6cede;
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}

.footer__brand { font-size: 19px; font-weight: 800; color: #fff; }

.footer__brand span { color: #7c96e8; }

.footer__tagline { font-size: 13px; }

.footer__contacts { display: grid; gap: 4px; margin-right: auto; }

.footer__contacts a { color: #fff; text-decoration: none; font-size: 14.5px; }

.footer__contacts a:hover { text-decoration: underline; }

.footer__copy { font-size: 13px; line-height: 1.7; }

.footer__copy a { color: #c6cede; }
.footer__copy a:hover { color: #fff; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { margin-bottom: 16px; }
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
  .header__phone { margin-left: auto; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.is-open a {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .cards--4, .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .person { flex-direction: column; align-items: center; text-align: center; }
  .hero { padding: 48px 0; }
  .hero__facts { gap: 20px; }
  .hero__photos img:first-child { width: 190px; height: 190px; }
  .hero__photos img:last-child { width: 145px; height: 145px; margin-left: -40px; }
  .header__phone { display: none; }
  .form { padding: 24px 20px; }
}
