/* ===== Переменные и сброс (светлая палитра) ===== */
:root {
  --brand: #4d80c4;        /* основной синий */
  --brand-mid: #4374b8;    /* синий для цветных блоков */
  --brand-dark: #305d9e;   /* тёмно-синий для ховеров/акцентов */
  --brand-soft: #e9f1fb;   /* лёгкий голубой фон */
  --accent: #e0a544;       /* тёплый золотой акцент */
  --accent-dark: #c98f2b;
  --heading: #29344a;      /* тёмный графит для заголовков */
  --text: #4e5766;
  --muted: #828b9c;
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --border: #e4ebf4;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(48, 93, 158, 0.10);
  --shadow-lg: 0 20px 60px rgba(48, 93, 158, 0.16);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  font-size: 17px;
  letter-spacing: .5px;
}
.logo__text { font-size: 14px; line-height: 1.15; color: var(--heading); text-transform: uppercase; letter-spacing: 1px; }
.logo__text b { color: var(--brand); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text b { color: var(--accent); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--heading); transition: color .2s; }
.nav__link:hover { color: var(--brand); }

.header__contacts { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; color: var(--brand-dark); font-size: 16px; white-space: nowrap; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--brand-dark); border-radius: 2px; transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero (светлый) ===== */
.hero {
  background: linear-gradient(160deg, var(--brand-soft) 0%, #f6faff 55%, #ffffff 100%);
  color: var(--text);
  padding: 70px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.hero__badge {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero__title { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; color: var(--heading); }
.hero__subtitle { font-size: 18px; color: var(--text); max-width: 560px; margin-bottom: 26px; }
.hero__points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.hero__points li { position: relative; padding-left: 30px; font-size: 16px; color: var(--text); }
.hero__points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 12px; font-weight: 700;
}
.hero__points b { color: var(--heading); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__card {
  background: #fff;
  color: var(--heading);
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero__card-title { font-size: 22px; color: var(--heading); margin-bottom: 6px; }
.hero__card-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

/* ===== Формы ===== */
.mini-form { display: flex; flex-direction: column; gap: 12px; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--heading);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(77,128,196,.15);
}
textarea { resize: vertical; }
.mini-form__note { font-size: 11px; color: var(--muted); text-align: center; }

.form-status { font-size: 14px; text-align: center; margin-top: 4px; min-height: 1px; }
.form-status.is-ok { color: #1a8a4a; font-weight: 600; }
.form-status.is-err { color: #c0392b; font-weight: 600; }
.form-status.is-loading { color: var(--muted); }

/* ===== Секции ===== */
.section { padding: 80px 0; }
.section--muted { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section__tag {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title { font-size: 36px; color: var(--heading); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.section__lead { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* ===== Карточки услуг ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--brand-soft);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card__title { font-size: 18px; color: var(--heading); margin-bottom: 10px; }
.card__text { font-size: 14.5px; color: var(--muted); }

/* ===== О компании (с фото) ===== */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.about__text .section__head { text-align: left; margin: 0 0 24px; }
.about__lead { font-size: 17px; color: var(--text); margin-bottom: 22px; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.about__list li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--text); }
.about__list li b { color: var(--heading); }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800;
}
.about__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 150px); gap: 16px; }
.about__photos .photo:first-child { grid-row: span 2; }

/* Фото-блоки с плавным фолбэком (если картинка не загрузится — покажется градиент) */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow);
  min-height: 120px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s; }
.photo:hover img { transform: scale(1.05); }

/* ===== Преимущества ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 60px; }
.feature { background: #fff; border-radius: var(--radius); padding: 30px 24px; border: 1px solid var(--border); }
.feature__num { font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.feature__title { font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.feature__text { font-size: 14.5px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; background: linear-gradient(135deg, var(--brand), var(--brand-mid)); border-radius: var(--radius); color: #fff; }
.stat__num { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.stat__label { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 8px; }

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step__num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 800;
  border-radius: 50%;
  margin-bottom: 18px;
}
.step__title { font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.step__text { font-size: 14.5px; color: var(--muted); }

/* ===== Команда (с фото) ===== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 4 / 5; }
.member__photo.photo { border-radius: 0; box-shadow: none; }
.member__body { padding: 20px; }
.member__name { font-size: 18px; color: var(--heading); font-weight: 700; }
.member__role { font-size: 14px; color: var(--brand); font-weight: 600; margin: 4px 0 10px; }
.member__desc { font-size: 14px; color: var(--muted); }

/* ===== Цены ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.price-card--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); transform: scale(1.03); }
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 20px;
}
.price-card__title { font-size: 19px; color: var(--heading); margin-bottom: 12px; }
.price-card__price { font-size: 30px; font-weight: 800; color: var(--brand-dark); margin-bottom: 22px; }
.price-card__list { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.price-card__list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text); }
.price-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pricing__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }

/* ===== Отзывы ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.review::before { content: "“"; font-size: 70px; color: var(--accent); opacity: .3; position: absolute; top: 6px; left: 20px; font-family: Georgia, serif; }
.review__text { font-size: 15px; color: var(--text); font-style: italic; position: relative; margin-bottom: 16px; }
.review__author { font-weight: 700; color: var(--heading); font-size: 14px; }

/* ===== Форма заявки (lead) ===== */
.lead { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); padding: 80px 0; }
.lead__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.lead__title { font-size: 34px; color: #fff; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.lead__sub { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 24px; }
.lead__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.lead__list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.95); }
.lead__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.lead__phone { color: rgba(255,255,255,.9); font-size: 16px; }
.lead__phone a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); }

.lead-form { background: #fff; padding: 34px; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px; }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; color: var(--heading); font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ===== Контакты ===== */
.contacts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.contacts__info { display: flex; flex-direction: column; gap: 22px; }
.contacts__item { display: flex; flex-direction: column; gap: 4px; }
.contacts__item b { color: var(--heading); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.contacts__item a, .contacts__item span { font-size: 17px; color: var(--text); }
.contacts__item a:hover { color: var(--brand); }
.contacts__socials { display: flex; gap: 14px; margin-top: 4px; }
.contacts__socials a { color: var(--brand); font-weight: 600; font-size: 15px; }
.contacts__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; }

/* ===== Подвал ===== */
.footer { background: var(--heading); color: rgba(255,255,255,.72); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.footer__col a { color: rgba(255,255,255,.72); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__desc { font-size: 14px; line-height: 1.6; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer__bottom-inner a:hover { color: var(--accent); }

/* ===== Плавающая кнопка ===== */
.fab {
  display: none;
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  place-items: center;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,165,68,.5); }
  70% { box-shadow: 0 0 0 16px rgba(224,165,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,165,68,0); }
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .cards, .features, .steps, .team { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 38px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; right: 0;
    width: 260px; height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s ease;
    margin-left: 0;
  }
  .nav.active { transform: translateX(0); }
  .nav__link { padding: 14px 24px; border-bottom: 1px solid var(--border); width: 100%; }
  .burger { display: flex; }
  .header__contacts .btn { display: none; }
  .header__phone { font-size: 14px; }

  .hero__inner, .lead__inner, .contacts, .about__grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .pricing, .reviews { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .fab { display: grid; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .cards, .features, .steps, .stats, .team { grid-template-columns: 1fr; }
  .hero__title { font-size: 30px; }
  .section__title { font-size: 27px; }
  .section { padding: 56px 0; }
  .lead-form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .about__photos { grid-template-rows: repeat(2, 130px); }
}
