/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:root {
  --primary: #0a66c2;
  --primary-dark: #064a8c;
  --primary-light: #e7f1fb;
  --accent: #ffffff;
  --bg-soft: #f4f8fc;
  --text: #0f1a2b;
  --muted: #5a6a7e;
  --border: #dfe7f1;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --shadow-sm: 0 2px 6px rgba(10, 30, 60, .06);
  --shadow-md: 0 8px 24px rgba(10, 30, 60, .08);
  --shadow-lg: 0 20px 50px rgba(10, 30, 60, .15);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

/* ========= LAYOUT ========= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__title {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
}
.section__cta { text-align: center; margin-top: 36px; }

/* ========= HEADER ========= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 18px rgba(10,30,60,.05); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo__icon { display: inline-flex; }
.logo__img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 480px) {
  .logo__img { height: 38px; }
  .logo__text { font-size: 18px; }
}
.logo--light { color: #fff; }

.nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s ease;
}
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.header__phone svg { color: var(--primary); }
.header__cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 10px;
  transition: background .15s ease;
}
.burger:hover { background: var(--primary-light); }
.burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  min-height: 44px;
  text-align: center;
  user-select: none;
}
.btn--sm { padding: 9px 16px; font-size: 14px; min-height: 38px; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 16px; min-height: 52px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(10,102,194,.28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10,102,194,.34); }
.btn--primary:active { transform: translateY(0); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.btn--whatsapp:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,211,102,.36); }
.btn--ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }

/* ========= HERO ========= */
.hero {
  position: relative;
  padding: 40px 0 60px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(10,102,194,.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.hero__lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 560px;
}
.hero__lead strong { color: var(--text); font-weight: 700; }
.hero__pains {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.hero__pains li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========= HERO PHOTO (featured) ========= */
.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__photo-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

/* ===== Бейдж рейтинга сверху на фото ===== */
.hero__photo-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 30, 60, 0.18);
  font-size: 13px;
  line-height: 1;
  animation: ratingPop .55s cubic-bezier(.22, 1.4, .36, 1) both;
}
.hero__photo-rating-stars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}
.hero__photo-rating-text {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero__photo-rating-text strong {
  color: var(--text);
  font-weight: 800;
  margin-right: 2px;
}
@keyframes ratingPop {
  0%   { transform: scale(.6) translateY(-4px); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .hero__photo-rating {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
  }
}
.hero__photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  flex-shrink: 0;
}
.hero__photo-badge > div { line-height: 1.2; }
.hero__photo-badge > div strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.hero__photo-badge > div span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.25;
}

/* ========= LEAD FORM ========= */
.hero__form-wrap { position: relative; }
.lead-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.lead-form__title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.lead-form__sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead-form__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.field { display: block; margin-bottom: 12px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field__label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 48px;
  color: var(--text);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230a66c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 8px;
  padding-right: 44px;
  cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10,102,194,.15);
}
.field.is-error input, .field.is-error textarea, .field.is-error select {
  border-color: #e54848;
  box-shadow: 0 0 0 4px rgba(229,72,72,.12);
}

.lead-form--dark {
  background: #fff;
  color: var(--text);
}

/* ===== Success-карточка вместо формы после отправки ===== */
.lead-form__success {
  text-align: center;
  padding: 18px 4px;
  animation: leadSuccessIn .35s ease both;
}
.lead-form__success-icon {
  display: inline-flex;
  margin-bottom: 14px;
  animation: leadSuccessPop .5s cubic-bezier(.22,1.4,.36,1) both;
}
.lead-form__success-icon svg circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: leadSuccessCircle .55s ease forwards;
}
.lead-form__success-icon svg polyline {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: leadSuccessCheck .35s ease .35s forwards;
}
.lead-form__success-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lead-form__success-text {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.45;
}
.lead-form__success-text strong { color: var(--primary); }
.lead-form__success-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
@keyframes leadSuccessIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes leadSuccessPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes leadSuccessCircle { to { stroke-dashoffset: 0; } }
@keyframes leadSuccessCheck  { to { stroke-dashoffset: 0; } }

/* Honeypot — невидим для людей, ловит ботов */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Состояние кнопки во время отправки */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}
.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ========= CARDS / SERVICES ========= */
.grid {
  display: grid;
  gap: 18px;
}
.grid--services {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.grid--adv {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.grid--reviews {
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.card--photo { padding: 0; }
.card--photo .card__body { padding: 18px 20px 22px; }
.card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-light);
}
.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__photo img { transform: scale(1.05); }
.card__photo .card__icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  background: rgba(10, 102, 194, .92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(10,30,60,.18);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  margin-bottom: 14px;
}
.card__icon--solo { margin-bottom: 14px; }
.card__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.card__text { color: var(--muted); font-size: 14px; }

/* ========= ADVANTAGES ========= */
.adv {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.adv__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  margin-bottom: 14px;
}
.adv__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.adv__text { color: var(--muted); font-size: 14px; }

/* ========= STEPS ========= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  position: absolute;
  top: -18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.step__title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step__text { color: var(--muted); font-size: 14px; }

/* ========= REVIEWS ========= */
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review__stars { display: inline-flex; gap: 2px; margin-bottom: 10px; }
.review__text {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.55;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.review__author strong { display: block; }
.review__author span { color: var(--muted); font-size: 13px; }
.review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  border-radius: 50%;
  font-size: 18px;
}

/* ========= CTA SECTION ========= */
.cta {
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 0;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.cta__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #fff;
}
.cta__lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
}
.cta__contacts { display: grid; gap: 12px; }
.cta__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  transition: background .15s ease, transform .12s ease;
  color: #fff;
}
.cta__contact:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  flex-shrink: 0;
}
.cta__contact small { display: block; font-size: 12px; color: rgba(255,255,255,.75); }
.cta__contact strong { display: block; font-size: 16px; font-weight: 700; }
.cta__contact--wa .cta__icon { background: var(--wa); }

/* ========= FOOTER ========= */
.footer {
  background: #0a1623;
  color: rgba(255,255,255,.75);
  padding-top: 50px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 30px;
}
.footer__brand .logo { margin-bottom: 12px; }
.footer__desc { font-size: 14px; max-width: 360px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  transition: color .15s ease;
}
.footer__nav a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 12px; }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ========= FLOATING CONTACT STACK ========= */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.fab--call { background: var(--primary); box-shadow: 0 10px 24px rgba(10,102,194,.45); }
.fab--call:hover { background: var(--primary-dark); transform: scale(1.06); box-shadow: 0 14px 30px rgba(10,102,194,.55); }
.fab--wa { background: var(--wa); box-shadow: 0 10px 24px rgba(37,211,102,.45); }
.fab--wa:hover { background: var(--wa-dark); transform: scale(1.06); box-shadow: 0 14px 30px rgba(37,211,102,.55); }
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid;
  animation: fabPulse 1.8s ease-out infinite;
  pointer-events: none;
}
.fab__pulse--call { border-color: var(--primary); animation-delay: .35s; }
.fab__pulse--wa { border-color: var(--wa); }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.55); opacity: 0; }
}
.fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: var(--shadow-md);
}
.fab__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text);
}
.fab:hover .fab__tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ===== Мобильная версия: широкая нижняя панель ===== */
@media (max-width: 640px) {
  .fab-stack {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 22px rgba(10, 30, 60, 0.10);
  }
  .fab {
    flex: 1 1 0;
    width: auto;
    height: 56px;
    border-radius: 14px;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(10, 30, 60, 0.18);
  }
  .fab--call { box-shadow: 0 6px 16px rgba(10, 102, 194, 0.32); }
  .fab--wa   { box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32); }
  .fab:hover { transform: none; }
  .fab__pulse { display: none; }
  .fab__tooltip {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: none;
    background: transparent;
    color: #fff;
    padding: 0;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }
  .fab__tooltip::after { display: none; }

  /* Чтобы контент не уходил за нижнюю панель */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ========= MODAL ========= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,26,43,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
.modal__icon {
  display: inline-flex;
  margin-bottom: 14px;
}
.modal__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal__text { color: var(--muted); margin-bottom: 22px; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ========= MOBILE NAV (DRAWER) ========= */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 30px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav.is-open {
    display: flex;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 16px 6px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  body.is-locked { overflow: hidden; }
}

/* ========= TABLET ========= */
@media (min-width: 641px) {
  .section { padding: 80px 0; }
  .grid--services { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--adv { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--reviews { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .cta__contacts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ========= DESKTOP ========= */
@media (min-width: 1025px) {
  .container { padding: 0 28px; }
  .section { padding: 96px 0; }
  .nav { display: flex; position: static; flex-direction: row; padding: 0; background: none; opacity: 1; transform: none; pointer-events: auto; border: 0; }
  .burger { display: none; }
  .header__phone { display: inline-flex; }
  .header__cta { display: inline-flex; }
  .hero { padding: 80px 0 100px; }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "content form"
      "photo   form";
    gap: 40px 60px;
  }
  .hero__content { grid-area: content; }
  .hero__photo { grid-area: photo; aspect-ratio: 16 / 9; }
  .hero__form-wrap { grid-area: form; align-self: start; }
  .grid--services { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid--adv { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--reviews { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .cta__grid { grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
  .fab-stack { right: 28px; bottom: 28px; }
}

/* ========= EXTRA SMALL ========= */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .lead-form { padding: 22px 18px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .hero__title { font-size: 52px; }
}

/* ========= REDUCED MOTION ========= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
