/* ============ ООО «Монтаж Групп» — стили сайта v3 (светлая тема) ============ */
:root {
  --bg: #f6f8fb;
  --bg-soft: #eef2f8;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e3e9f2;
  --line-strong: #cdd8e8;
  --accent: #1c62b8;
  --accent-2: #2f7dd1;
  --accent-dark: #124a8f;
  --accent-glow: rgba(47, 125, 209, .28);
  --text: #16233a;
  --muted: #5b6b84;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 10px 34px -14px rgba(22, 48, 90, .16);
  --shadow-hover: 0 26px 50px -20px rgba(22, 48, 90, .26);
  --header-bg: rgba(255, 255, 255, .75);
  --header-bg-scrolled: rgba(255, 255, 255, .94);
  --font-head: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

/* ---------- Тёмная тема ---------- */
[data-theme="dark"] {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --panel: #0f1726;
  --panel-solid: #111a2c;
  --line: #1c293f;
  --line-strong: #2b3d5f;
  --accent: #4da3ff;
  --accent-2: #63b1ff;
  --accent-dark: #1c5cb0;
  --accent-glow: rgba(61, 138, 235, .3);
  --text: #e8eef7;
  --muted: #93a5c4;
  --shadow: 0 10px 34px -14px rgba(0, 0, 0, .5);
  --shadow-hover: 0 26px 50px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(7, 11, 20, .7);
  --header-bg-scrolled: rgba(7, 11, 20, .92);
}
[data-theme="dark"] .bg-glow { opacity: .14; }
[data-theme="dark"] #glow-b { opacity: .1; }
[data-theme="dark"] .obj-img.placeholder {
  background:
    linear-gradient(rgba(77,163,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,.06) 1px, transparent 1px),
    linear-gradient(160deg, #101a2e, #0a1120);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
[data-theme="dark"] .obj-img.placeholder::after { color: #45587c; }
[data-theme="dark"] .form-ok { background: rgba(46,160,67,.14); border-color: rgba(63,185,80,.4); color: #7ee2a8; }
[data-theme="dark"] .map-frame iframe { filter: grayscale(.4) invert(.9) hue-rotate(185deg) contrast(.9); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.section { padding: 96px 0; position: relative; }
.section-sub { color: var(--muted); margin-bottom: 48px; max-width: 620px; font-size: 1.04rem; }
.accent {
  background: linear-gradient(100deg, var(--accent), #4b9be0 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Живой фон ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -2; display: block; background: var(--bg); }
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 58vw; height: 58vw; border-radius: 50%;
  filter: blur(120px); opacity: .35;
  background: radial-gradient(circle, rgba(90, 160, 230, .5), transparent 65%);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity 1.2s;
}
#glow-a { top: -24vw; right: -18vw; }
#glow-b { bottom: -28vw; left: -20vw; opacity: .22; }

/* ---------- Прогресс-бар ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 300; box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.32,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: var(--header-bg-scrolled); box-shadow: 0 6px 24px -14px rgba(22, 48, 90, .18); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 12px; color: var(--text);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  display: grid; place-items: center;
  font-size: .82rem; color: #fff; letter-spacing: .02em;
  box-shadow: 0 6px 16px -6px var(--accent-glow);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark.has-img { background: #fff; box-shadow: none; border: 1px solid var(--line); border-radius: 50%; }
.nav { display: flex; gap: 2px; }
.nav a {
  color: var(--muted); padding: 9px 14px; border-radius: 8px;
  font-size: .93rem; font-weight: 600; transition: .2s; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--text); }
.header-phone { color: var(--text); font-weight: 800; white-space: nowrap; font-size: .95rem; }
.burger {
  display: none; background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 1.2rem; border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
}
.theme-btn {
  background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--muted);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  display: grid; place-items: center; transition: .2s; flex: none;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent-2); }
.theme-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none; transition: .25s; text-align: center;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-dark));
  color: #fff; box-shadow: 0 10px 26px -10px var(--accent-glow);
}
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--accent-glow); }
.btn-primary:hover::before { left: 130%; }
.btn-outline { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 100px; position: relative; }
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 26px; font-weight: 800;
}
.hero-label::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--accent-2); }
.hero h1 { margin-bottom: 22px; max-width: 820px; }
.hero p { color: var(--muted); max-width: 600px; margin-bottom: 36px; font-size: 1.1rem; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; margin-top: 70px; flex-wrap: wrap; border-top: 1px solid var(--line-strong); }
.hero-stat { padding: 26px 44px 0 0; margin-right: 44px; }
.hero-stat b {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--accent); display: block; line-height: 1.1;
}
.hero-stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Номера секций ---------- */
.sec-label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 800;
}
.sec-label::after { content: ""; flex: 0 0 44px; height: 2px; border-radius: 2px; background: var(--line-strong); }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 125, 209, .07), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,125,209,.1), rgba(47,125,209,.16));
  border: 1px solid rgba(47, 125, 209, .25);
  color: var(--accent);
}
.card .icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.02rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); font-size: .93rem; }

/* карточка услуги с фотографией */
.card.has-photo { padding: 0; }
.card.has-photo .card-body { padding: 22px 26px 26px; }
.svc-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card.has-photo:hover .svc-img img { transform: scale(1.06); }

/* ---------- Объекты ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--panel-solid); color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700; transition: .25s;
}
.filter-btn:hover { color: var(--accent); border-color: var(--accent-2); }
.filter-btn.active {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-dark)); border-color: transparent;
  color: #fff; box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.obj-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.obj-card:hover { border-color: var(--line-strong); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.obj-img { aspect-ratio: 16/10; background: var(--bg-soft); position: relative; overflow: hidden; }
.obj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.obj-card:hover .obj-img img { transform: scale(1.06); }
.obj-img.placeholder {
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(47,125,209,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,125,209,.07) 1px, transparent 1px),
    linear-gradient(160deg, #eef3fa, #e4ebf5);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.obj-img.placeholder::after {
  content: "Фотоотчёт готовится";
  color: #93a5c0; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.obj-body { padding: 22px 24px 24px; flex: 1; }
.obj-tag {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  color: var(--accent); text-transform: uppercase;
  background: rgba(47,125,209,.09); border: 1px solid rgba(47,125,209,.22);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.obj-body h3 { font-size: .98rem; margin-bottom: 8px; }
.obj-meta { color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.obj-body p { color: var(--muted); font-size: .9rem; }

/* ---------- Галерея объектов ---------- */
.gallery { max-width: 900px; margin: 0 auto; }
.gal-main { position: relative; }
.gal-frame {
  border-radius: 18px; overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover);
  aspect-ratio: 16/10; position: relative;
}
.gal-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .35s ease;
}
.gal-frame img.fading { opacity: 0; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: .2s;
  box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px;
}
.gal-arrow:hover { color: var(--accent); border-color: var(--accent-2); transform: translateY(-50%) scale(1.06); }
.gal-arrow.prev { left: -24px; }
.gal-arrow.next { right: -24px; }
.gal-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 48px 28px 22px;
  background: linear-gradient(transparent, rgba(5, 10, 20, .82));
  color: #fff; pointer-events: none;
}
.gal-caption h3 { color: #fff; font-size: 1.05rem; margin: 8px 0 4px; }
.gal-caption .gal-meta { color: rgba(220, 232, 248, .85); font-size: .85rem; }
.gal-counter {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  background: rgba(5, 10, 20, .6); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gal-thumbs {
  display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.gal-thumb {
  flex: 0 0 92px; aspect-ratio: 16/11; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; opacity: .6; transition: .2s;
  background: var(--bg-soft); padding: 0;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb.active { border-color: var(--accent-2); opacity: 1; }

/* ---------- Список объектов ---------- */
.obj-list { list-style: none; max-width: 900px; margin: 0 auto; }
.obj-list li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  border-radius: 12px; transition: background .2s;
}
.obj-list li:hover { background: var(--panel); }
.obj-num {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--accent); flex: 0 0 34px; padding-top: 2px;
}
.obj-li-body { flex: 1; }
.obj-li-body h3 { font-size: .98rem; margin-bottom: 4px; }
.obj-li-body p { color: var(--muted); font-size: .88rem; }
.obj-li-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.obj-photo-link {
  background: none; border: none; color: var(--accent); font-family: var(--font-body);
  font-size: .82rem; font-weight: 700; cursor: pointer; padding: 0;
  border-bottom: 1px dashed var(--accent); transition: .2s;
}
.obj-photo-link:hover { color: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 720px) {
  .gal-arrow.prev { left: 10px; }
  .gal-arrow.next { right: 10px; }
  .obj-list li { flex-wrap: wrap; gap: 10px; padding: 16px 12px; }
  .obj-li-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 220px at 85% 15%, rgba(120, 180, 240, .35), transparent),
    linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 20px;
  padding: 56px 52px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 74, 143, .55);
}
.cta::before {
  content: ""; position: absolute; top: -60%; right: -10%; width: 340px; height: 340px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
}
.cta::after {
  content: ""; position: absolute; top: -40%; right: -4%; width: 220px; height: 220px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
}
.cta h2 { margin-bottom: 8px; color: #fff; }
.cta p { color: rgba(230, 240, 252, .85); max-width: 480px; }
.cta .btn-primary {
  background: #fff; color: var(--accent-dark); box-shadow: 0 12px 30px -10px rgba(0, 20, 50, .4);
}
.cta .btn-primary::before { background: linear-gradient(100deg, transparent, rgba(47,125,209,.15), transparent); }

/* ---------- Форма ---------- */
.form { display: grid; gap: 14px; max-width: 540px; }
.form input, .form textarea {
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-size: .97rem; font-family: var(--font-body); width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(47,125,209,.14); }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); }
.form-ok {
  display: none; background: #e8f7ee; border: 1px solid #7fd39a;
  color: #1e7d43; padding: 13px 16px; border-radius: 10px; font-size: .93rem;
}

/* ---------- Таблица реквизитов ---------- */
.req-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.req-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--muted); width: 40%; }

/* ---------- Контакты ---------- */
.contact-list { display: grid; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow);
}
.contact-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.contact-item .ci {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,125,209,.1), rgba(47,125,209,.16));
  border: 1px solid rgba(47,125,209,.25); color: var(--accent);
}
.contact-item .ci svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.contact-item b { display: block; font-size: .76rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text); font-size: .98rem; font-weight: 700; }
.map-frame { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 340px; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Подвал ---------- */
.footer { background: #10203a; padding: 56px 0 28px; }
.footer .logo, .footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; margin-bottom: 34px; }
.footer h4 { font-size: .82rem; margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; }
.footer p, .footer a, .footer li { color: #93a5c4; font-size: .9rem; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: #cfe2ff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #7488ab; font-size: .8rem;
}

/* ---------- Cookie-баннер ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 18px 22px; display: none; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; max-width: 720px; margin: 0 auto;
  box-shadow: 0 20px 60px -20px rgba(22, 48, 90, .35);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { color: var(--muted); font-size: .84rem; flex: 1; min-width: 220px; }

/* ---------- Плавающие кнопки мессенджеров ---------- */
.msg-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; gap: 12px;
}
.msg-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.msg-btn svg { width: 28px; height: 28px; }
.msg-btn:hover { transform: translateY(-3px) scale(1.05); }
.msg-btn.wa { background: #2eb943; }
.msg-btn.tg { background: #2f9bd8; }
.msg-btn.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: waPulse 2.4s ease-out infinite; border: 2px solid #2eb943;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { opacity: 0; }
}
.msg-btn { position: relative; }
@media (max-width: 720px) {
  .msg-float { left: 14px; bottom: 14px; }
  .msg-btn { width: 50px; height: 50px; }
}

/* ---------- Кнопка вверх ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--panel-solid); color: var(--text); font-size: 1.05rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: .25s;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-2); color: var(--accent); transform: translateY(-3px); }

/* ---------- Модалка ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(16, 32, 58, .45); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-back.show { display: flex; }
.modal {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px; width: 100%; max-width: 480px; position: relative;
  box-shadow: 0 40px 90px -30px rgba(10, 30, 60, .5);
  animation: modalIn .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 20px; font-size: 1.2rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.3rem; cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--text); }

/* ---------- Страничный заголовок ---------- */
.page-head { padding: 84px 0 60px; border-bottom: 1px solid var(--line); position: relative; }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 640px; font-size: 1.05rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Баннер (шапка-изображение, подключается при наличии) ---------- */
.hero-banner {
  margin-top: 44px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover);
}
.hero-banner img { width: 100%; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 90px 0 76px; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--panel-solid); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px 24px 18px;
    box-shadow: 0 20px 40px -20px rgba(22, 48, 90, .25);
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header-phone { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .section { padding: 56px 0; }
  .hero { padding: 68px 0 56px; }
  .hero-stat { padding-right: 24px; margin-right: 24px; }
}
