/* ============================================================
   Аква-Юг Новороссийск — редизайн 2026
   Без внешних зависимостей: системные шрифты, чистый CSS.
   ============================================================ */

:root {
  --navy-950: #071d31;
  --navy-900: #0a2540;
  --navy-800: #0d3358;
  --blue-700: #0e6ba8;
  --blue-600: #1180c9;
  --blue-500: #2b9adf;
  --sky-100: #eaf4fb;
  --sky-050: #f3f8fc;
  --bg: #f5f8fb;
  --white: #ffffff;
  --ink: #16283a;
  --ink-soft: #4a5f73;
  --line: #dbe6ef;
  --ok: #178a4c;
  --err: #c0392b;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 8px rgba(10, 37, 64, .06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, .08), 0 12px 32px rgba(10, 37, 64, .10);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(30px, 4.5vw, 46px); }
h2 { font-size: clamp(25px, 3.4vw, 34px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }

.section { padding: 72px 0; }
.section-tint { background: var(--bg); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-blue { border-color: var(--blue-600); color: var(--blue-700); }
.btn-outline-blue:hover { background: var(--sky-100); color: var(--blue-700); }
.btn svg { flex: none; }
.btxt-short { display: none; }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--navy-950);
  color: #b9cbdd;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #e4eef7; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item svg { opacity: .7; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  /* 160 — выше оверлея мобильного меню (140), ниже модалки (200) и лайтбокса (300):
     панель бургера живёт внутри шапки, при 100 она тонет под оверлеем и ссылки не нажимаются */
  z-index: 160;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.logo:hover { color: var(--navy-900); }
.logo-mark { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.logo-tag { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .09em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  white-space: nowrap;
}
.main-nav > li > a:hover { background: var(--sky-050); color: var(--blue-700); }
.main-nav > li.active > a { color: var(--blue-700); }
.main-nav .caret { width: 10px; height: 10px; opacity: .55; }

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 110;
}
.main-nav li:hover > .submenu,
.main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.submenu a:hover { background: var(--sky-050); color: var(--blue-700); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { text-align: right; line-height: 1.25; }
.header-phone a { font-weight: 800; color: var(--navy-900); font-size: 17px; white-space: nowrap; }
.header-phone a:hover { color: var(--blue-700); }
.header-phone span { display: block; font-size: 12px; color: var(--ink-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

/* фото, вставленное через админку (кнопка «Фото» / drag&drop на текст) */
.e-ins { max-width: 100%; height: auto; display: block; margin: 12px 0; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(43, 154, 223, .35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(14, 107, 168, .4), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, #11487c 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 70px;
  background: var(--white);
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero .kicker { color: #9fd6f8; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #c9dcec;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
  color: #dcebf7;
}
.hero-chip svg { color: #7fc7f0; }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(3, 18, 33, .45);
  border: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  left: -22px;
  bottom: 26px;
  background: #fff;
  color: var(--navy-900);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero-badge .num { font-size: 30px; font-weight: 800; color: var(--blue-600); line-height: 1; }
.hero-badge .lbl { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }

/* ---------- Плашки цифр ---------- */
.stats { margin-top: -46px; position: relative; z-index: 5; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--blue-700); line-height: 1.1; }
.stat-card .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

/* ---------- Карточки услуг ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c4d9ea; }
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 870 / 400; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--ink-soft); font-size: 15px; margin: 0; flex: 1; }
.card-link { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { transition: transform .18s; }
.card:hover .card-link svg { transform: translateX(3px); }

.icon-card { text-align: left; padding: 26px 24px; }
.icon-card .ic {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- О компании ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.about-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about-list svg { flex: none; color: var(--blue-600); margin-top: 3px; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-media img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); object-fit: cover; width: 100%; height: 100%; }
.about-media img:first-child { grid-row: span 1; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-500);
  letter-spacing: .05em;
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Заявка + контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; margin-bottom: 22px; }
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.contact-card .ic {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sky-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 15px; margin: 0 0 2px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contact-card a { font-weight: 700; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 300px;
}

/* ---------- Форма ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px 30px 26px;
}
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-card .form-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.f-field input, .f-field select, .f-field textarea {
  font: inherit;
  font-size: 15.5px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfdfe;
  color: var(--ink);
  width: 100%;
  transition: border-color .15s, background .15s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
}
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field.invalid input, .f-field.invalid textarea { border-color: var(--err); }
.f-field .f-err { color: var(--err); font-size: 12.5px; display: none; }
.f-field.invalid .f-err { display: block; }

.f-file-zone {
  border: 1.5px dashed #b9d2e5;
  border-radius: 10px;
  background: var(--sky-050);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.f-file-zone:hover { border-color: var(--blue-500); background: var(--sky-100); }
.f-file-zone input[type="file"] { display: none; }
.f-file-zone .f-file-ic { color: var(--blue-700); flex: none; }
.f-file-zone b { font-size: 14.5px; display: block; }
.f-file-zone small { color: var(--ink-soft); display: block; font-size: 12.5px; }
.f-file-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.f-file-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--sky-050);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 18px; }
.f-check input { margin-top: 3px; accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.f-check a { text-decoration: underline; }

.f-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.f-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

.f-alert { border-radius: 10px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 16px; display: none; }
.f-alert.err { display: block; background: #fdeeea; color: #a93226; border: 1px solid #f5c6bc; }
.f-alert.ok { display: block; background: #e9f7ef; color: #14663c; border: 1px solid #bfe5cf; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .ic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e9f7ef;
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hp-field { position: absolute; left: -4000px; top: -4000px; opacity: 0; height: 1px; width: 1px; }

/* ---------- CTA-полоса ---------- */
.cta-strip {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(43, 154, 223, .3), transparent 60%),
    linear-gradient(120deg, var(--navy-900), #10457a);
  border-radius: 20px;
  color: #fff;
  padding: 42px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin-bottom: 6px; font-size: clamp(22px, 3vw, 30px); }
.cta-strip p { color: #c9dcec; margin: 0; }

/* ---------- Контентная страница ---------- */
.page-hero {
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(43, 154, 223, .3), transparent 60%),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 52px 0 58px;
}
.breadcrumb { font-size: 14px; color: #9db8ce; margin-bottom: 14px; }
.breadcrumb a { color: #cfe2f1; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .lead { color: #c9dcec; font-size: 17.5px; max-width: 760px; margin: 12px 0 0; }

.article { max-width: 820px; }
.article .lead { font-size: 18.5px; color: var(--ink); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article .note {
  background: var(--sky-050);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-500);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15.5px;
  color: var(--ink);
  margin: 0 0 1.2em;
}

/* ---------- Сертификаты ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .18s, box-shadow .18s;
  text-align: center;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; }
.cert-card .cert-name { padding: 12px; font-weight: 700; color: var(--navy-900); font-size: 15px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 34, .88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--navy-950);
  color: #a7bccf;
  font-size: 14.5px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 40px;
  padding: 54px 0 40px;
}
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-tag { color: #7d97ad; }
.site-footer p { margin-bottom: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #c4d6e5; }
.footer-links a:hover { color: #fff; }
.footer-contacts a { color: #e4eef7; font-weight: 600; }
.footer-contacts a:hover { color: #fff; }
.footer-messengers { display: flex; gap: 10px; margin-top: 14px; }
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .03em;
  text-decoration: none;
}
.soc-vk { background: none; padding: 0; }
.soc-vk img { width: 100%; height: 100%; display: block; border-radius: 10px; }
.soc-max { background: #fff; padding: 7px; }
.soc-max img { width: 24px; height: 24px; display: block; border-radius: 6px; }
.footer-messengers a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: #cfe2f1;
}
.footer-messengers a:hover { background: rgba(255,255,255,.14); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7d97ad;
}

/* ---------- Попап «Оставить заявку» ---------- */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 34, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lead-overlay.open { display: flex; }
.lead-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
  padding: 26px 24px 18px;
  position: relative;
  animation: lead-in .18s ease;
}
@keyframes lead-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.lead-card h3 { margin: 0 0 4px; font-size: 22px; }
.lead-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }
.lead-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--sky-050); border: 0;
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.lead-close:hover { background: var(--sky-100); color: var(--navy-900); }
.lead-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.lead-opt:hover { border-color: var(--blue-500); background: var(--sky-050); transform: translateY(-1px); color: var(--ink); }
.lead-opt:last-child { margin-bottom: 0; }
.lead-opt .lead-t { font-weight: 700; display: block; }
.lead-opt small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 1px; }
.lead-opt .soc { flex: none; }
.soc-mail { background: var(--sky-100); color: var(--blue-700); padding: 9px; width: 38px; height: 38px; box-sizing: border-box; }
.soc-call { background: var(--sky-100); color: var(--blue-700); padding: 9px; width: 38px; height: 38px; box-sizing: border-box; }

/* ---------- Плавающие мессенджеры ---------- */
.float-messengers {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.float-messengers a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .18s;
}
.float-messengers a:hover { transform: scale(1.08); color: #fff; }
.fm-vk { background: none; }
.fm-vk img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.fm-max { background: #fff; }
.fm-max img { width: 30px; height: 30px; display: block; border-radius: 8px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 72px; }
  .hero-photo { max-width: 480px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .header-cta .header-phone { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  /* на мобильных верхняя полоска не нужна: адрес есть в контактах и подвале */
  .topbar { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
  .btxt { display: none; }
  .btxt-short { display: inline; }
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(84vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 76px 16px 20px;
    box-shadow: -12px 0 40px rgba(7, 20, 34, .18);
    transform: translateX(105%);
    transition: transform .22s;
    overflow-y: auto;
    z-index: 150;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > li > a { padding: 12px 14px; font-size: 16.5px; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 14px;
    min-width: 0;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 34, .5);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }

  .hero-actions .btn { flex: 1; }
  .hero-badge { left: 10px; }
  .cards-grid, .cards-grid.cols-4, .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { gap: 12px; }
  .about-media { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .cta-strip { padding: 30px 24px; }
  .form-card { padding: 22px 18px; }
  .float-messengers { right: 12px; bottom: 12px; }
  .float-messengers a { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px; }
  .stat-card .num { font-size: 26px; }
  .cert-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
}
