/* ============================================================
   ИС Нева — стили сайта (обычный CSS, легко редактировать).
   Все цвета вынесены в переменные ниже — меняйте здесь.
   ============================================================ */

:root {
  --accent: #1f6feb;        /* фирменный синий */
  --accent-dark: #1552c4;   /* синий при наведении */
  --ink: #0b1220;           /* основной тёмный текст */
  --muted-ink: #5b6472;     /* серый второстепенный текст */
  --surface: #f4f7fb;       /* светлый фон блоков */
  --hairline: #e4eaf2;      /* цвет тонких границ */
  --success: #16a34a;       /* зелёный (галочки) */
  --white: #ffffff;
  --max: 1120px;            /* макс. ширина контента */
}

/* --------- Базовые сбросы --------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

/* Иконки-svg наследуют цвет через currentColor */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 20px; height: 20px; }

/* --------- Общие утилиты --------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin-top: 8px; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted-ink); }
.muted { color: var(--muted-ink); }
.accent-text { color: var(--accent); }
.section-head { max-width: 640px; }
.section-head .lead { margin-top: 12px; }

/* --------- Кнопки --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; border-radius: 999px;
  padding: 14px 28px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 20px -6px rgba(31,111,235,.4); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--hairline); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--accent); font-weight: 800; box-shadow: 0 10px 24px -8px rgba(0,0,0,.3); }
.btn-white:hover { transform: scale(1.03); }
.btn-block { width: 100%; }

/* --------- Шапка --------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 16px; font-weight: 700; transition: color .2s; }
.header-phone:hover { color: var(--accent); }
.btn-sm { padding: 9px 20px; font-size: 14px; border-radius: 999px; }
@media (max-width: 640px) { .header-phone { display: none; } }

/* --------- Hero --------- */
.hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.hero-dots {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #cdd8e8 1px, transparent 0);
  background-size: 26px 26px;
}
.hero .container { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .hero .container { grid-template-columns: 1fr 1fr; padding-top: 96px; padding-bottom: 96px; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline);
  background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--accent);
}
.hero h1 { margin-top: 20px; }
.hero p.lead { margin-top: 20px; max-width: 520px; line-height: 1.7; }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; } }
.hero-checks { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; color: var(--muted-ink); }
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.check-ic { color: var(--success); }
.hero-form { justify-self: stretch; }
@media (min-width: 768px) { .hero-form { justify-self: end; } }

/* --------- Карточки услуг / преимуществ / шагов --------- */
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.card { border: 1px solid var(--hairline); background: #fff; border-radius: 16px; padding: 24px; }
.card-hover { transition: transform .2s, border-color .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(31,111,235,.4); box-shadow: 0 12px 24px -12px rgba(15,23,42,.25); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--muted-ink); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(31,111,235,.1); color: var(--accent); transition: background-color .2s, color .2s;
}
.card-hover:hover .card-icon { background: var(--accent); color: #fff; }
.card-icon-sm { width: 44px; height: 44px; }
.card .small { font-size: 14px; }

/* Нумерация шагов */
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-size: 30px; font-weight: 800; color: var(--hairline); }

/* Секции с фоном */
.bg-surface { background: var(--surface); }
.bordered-y { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.bordered-t { border-top: 1px solid var(--hairline); }

/* --------- CTA-полоса --------- */
.cta { background: var(--accent); }
.cta .container { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 768px) { .cta .container { flex-direction: row; justify-content: space-between; text-align: left; } }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.cta p { margin-top: 8px; color: rgba(255,255,255,.85); font-size: 18px; }

/* --------- Контакты --------- */
.contacts { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-row {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--hairline);
  background: #fff; border-radius: 16px; padding: 20px; transition: border-color .2s;
}
a.contact-row:hover { border-color: var(--accent); }
.contact-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(31,111,235,.1); color: var(--accent); }
.contact-label { font-size: 14px; font-weight: 600; color: var(--muted-ink); }
.contact-value { font-size: 20px; font-weight: 800; }
.contact-value.sm { font-size: 18px; font-weight: 700; }

/* --------- Форма --------- */
.lead-form {
  width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--hairline);
  border-radius: 16px; padding: 28px; box-shadow: 0 24px 48px -24px rgba(15,23,42,.35);
}
.hero-form .lead-form { margin: 0; }
.lead-form h3 { font-size: 24px; font-weight: 800; }
.lead-form .sub { margin-top: 6px; color: var(--muted-ink); }
.form-fields { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; border: 1px solid var(--hairline); background: var(--surface);
  border-radius: 12px; padding: 12px 16px; font: inherit; color: var(--ink); outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(91,100,114,.7); }
.field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(31,111,235,.2); }
/* honeypot — скрытое поле для ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; font-weight: 600; color: #dc2626; }
.form-note { margin-top: 4px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted-ink); }
.spinner { width: 20px; height: 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------- Подвал --------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); }
.footer .top { display: flex; flex-direction: column; gap: 24px; padding: 40px 0; }
@media (min-width: 640px) { .footer .top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer .brand { display: flex; align-items: center; gap: 10px; }
.footer .brand .name { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.footer .brand .desc { display: block; font-size: 14px; }
.footer-phone { font-size: 20px; font-weight: 800; color: #fff; transition: color .2s; }
.footer-phone:hover { color: var(--accent); }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer .bottom .container { padding: 16px 20px; font-size: 12px; color: rgba(255,255,255,.5); }

/* --------- Анимация появления --------- */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.fade-up.delay { animation-delay: .1s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --------- Страница «Спасибо» --------- */
.thanks-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface); padding: 40px 20px; }
.thanks-card { max-width: 480px; text-align: center; background: #fff; border: 1px solid var(--hairline); border-radius: 20px; padding: 48px 32px; box-shadow: 0 24px 48px -24px rgba(15,23,42,.35); }
.thanks-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 999px; background: rgba(22,163,74,.12); color: var(--success); margin-bottom: 20px; }
.thanks-card h1 { font-size: 28px; font-weight: 800; }
.thanks-card p { margin-top: 12px; color: var(--muted-ink); font-size: 17px; }
.thanks-card .btn { margin-top: 28px; }
