/* admin01.ru — modern.css v30 (tech-minimal)
   Подключать ПОСЛЕДНИМ в <head>. */


:root {
  --ui: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #0a1424; --navy: #10304a; --text: #2a3646; --muted: #6b7a8c;
  --accent: #0a8f9a; --accent-dark: #077078; --glow: #19c3cf; --green: #3ddc97;
  --accent-soft: #e3f2f3; --red: #e81820; --red-dark: #c40f17; --bg: #f4f6f8; --surface: #fff; --line: #e1e6ec;
}
html { scroll-behavior: smooth; }
body, body.cd-fixed-background {
  background: var(--bg) !important; background-image: none !important;
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
body .container.ww {
  max-width: 1200px; background: var(--surface);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  box-shadow: none !important; padding-bottom: 0;
}
body h1, body h2, body h3, body h4 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
body h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
body h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
body h3 { font-size: 1.3rem; }
body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body a:hover { color: var(--accent-dark); }
body a:focus-visible, body .btn:focus-visible, body .form-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body b, body strong { font-weight: 650; }

/* ---------- Шапка ---------- */
body .tel a { font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
body .tel small a { font-size: .9rem; font-weight: 500; color: var(--accent); }
body a[href*="youtube"] .mdi, body a[href*="twitter"] .mdi, body a[href*="vk.com"] .mdi {
  font-size: 1.9rem !important; color: var(--muted) !important; transition: color .15s, transform .2s; display: inline-block;
}
body a[href*="youtube"]:hover .mdi, body a[href*="twitter"]:hover .mdi, body a[href*="vk.com"]:hover .mdi { color: var(--accent) !important; transform: translateY(-2px); }
body .mdi-call-made, body .mdi-remote-desktop { color: var(--accent) !important; }
body .mdi-remote-desktop { font-size: 1.9rem !important; }

/* ---------- Меню ---------- */
body .navbar { background: #14395a !important; padding: 0 1rem; box-shadow: none !important; }
body .navbar .nav-link, body .navbar-brand { color: #c9d4e0 !important; font-weight: 500; }
body .navbar .nav-link { padding: 1rem .9rem; border-bottom: 2px solid transparent; border-radius: 0; transition: color .15s, border-color .15s, background-color .15s; }
body .navbar .nav-link:hover, body .navbar .nav-link:focus { color: #fff !important; border-bottom-color: var(--glow); background: rgba(255,255,255,.05); }
body .navbar .active > .nav-link { color: #fff !important; border-bottom-color: var(--glow); }
body .dropdown-menu { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(10,20,36,.12); padding: .35rem; }
body .dropdown-item { border-radius: 4px; transition: background-color .15s, padding-left .15s; }
body .dropdown-item:hover { background: var(--accent-soft); color: var(--accent-dark); padding-left: 1.7rem; }
@media (max-width: 991.98px) { body .navbar .nav-link { padding: .7rem .5rem; } }

/* ---------- Слайдер и логотипы ---------- */
body #slider1_container { box-shadow: none !important; }
body .owl-carousel .item { display: flex; align-items: center; justify-content: center; height: 56px; }
body .owl-carousel .item img { max-height: 44px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; transition: transform .25s; }
body .owl-carousel .item img:hover { transform: scale(1.08); }

/* ---------- Карточки (общие, в т.ч. внутренние страницы) ---------- */
body .card {
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px;
  background: var(--surface); box-shadow: none !important; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
body .card-header {
  background: transparent; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em;
  text-transform: none !important; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line);
}
body .card-body { padding: 1.4rem; }
body .card > img, body .card-img-top { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .5s; }
body blockquote, body .blockquote { font-size: 1rem; line-height: 1.75; margin: 0; }
body .card-body blockquote, body .card-body blockquote p, body .card-body li, body .card-body p { color: var(--text) !important; }
body .card-body b, body .card-body strong { color: var(--ink) !important; }
body .card-body p, body .card-body li { font-size: 1.03rem; line-height: 1.75; }
body .blockquote small, body blockquote small { font-size: 1rem; }
body .card-body ul { list-style: none; padding-left: 0; margin: 0; }
body .card-body ul li { position: relative; padding: .4rem 0 .4rem 1.3rem; border-bottom: 1px solid var(--line); transition: padding-left .2s, color .2s; }
body .card-body ul li:last-child { border-bottom: 0; }
body .card-body ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; transition: transform .2s; }

/* Три колонки на главной: ровные заголовки, подъём и зум картинки при наведении */
@media (min-width: 768px) {
  body .row > [class*="col-md-4"] > .card { height: calc(100% - 1rem); }
  body .col-card > .card-header { min-height: 6.4rem; display: flex; align-items: flex-start; padding-top: 1.35rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) { body .col-card > .card-header { min-height: 8.4rem; font-size: 1.02rem; } }
body .col-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 32px rgba(10,20,36,.14) !important; }
body .col-card:hover > img { transform: scale(1.05); }
body .col-card .card-body ul li:hover { padding-left: 1.7rem; color: var(--accent-dark) !important; }
body .col-card .card-body ul li:hover::before { transform: scale(1.5); }

/* ---------- Четыре блока внизу главной ---------- */
body .sections { margin-top: .5rem; }
body .sec {
  --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 88%;
  position: relative; display: grid; grid-template-columns: minmax(250px, 340px) 1fr; align-items: center;
  margin: 0 0 .9rem; border: 1px solid rgba(25,195,207,.18); border-radius: 14px; overflow: hidden;
  color: #e4eef6;
  background-image:
    radial-gradient(460px 240px at var(--gx) 0%, rgba(25,195,207,.30), transparent 70%),
    linear-gradient(115deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 0;
  transition: background-position .8s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body .sec:hover {
  background-position: 0 0, 100% 0;
  transform: translateY(-3px); border-color: rgba(25,195,207,.7);
  box-shadow: 0 16px 36px rgba(10,20,36,.30), 0 0 0 1px rgba(25,195,207,.25);
}
body .sec-1 { --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 90%; }
body .sec-2 { --c1: #1b6485; --c2: #0d7385; --c3: #17456b; --gx: 10%; }
body .sec-3 { --c1: #17456b; --c2: #1a587a; --c3: #0d7385; --gx: 85%; }
body .sec-4 { --c1: #1a587a; --c2: #0d7385; --c3: #17456b; --gx: 12%; }
body .sec-head { display: flex; flex-direction: column; align-items: flex-start; padding: 2.2rem 1.5rem 2.2rem 2.4rem; }
body .sec .mdi {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 14px; background: rgba(25,195,207,.16); color: var(--glow); font-size: 1.8rem; line-height: 1;
  transition: transform .35s ease, background-color .35s ease;
}
body .sec:hover .mdi { transform: rotate(-8deg) scale(1.12); background: rgba(25,195,207,.28); }
body .sec-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
body .sec-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: .9rem; background: var(--glow); border-radius: 2px; transition: width .4s ease; }
body .sec:hover .sec-title::after { width: 96px; }
body .sec-body { padding: 2.2rem 2.6rem 2.2rem 1rem; }
body .sec-body p { margin: 0; font-size: 1.08rem; line-height: 1.8; color: inherit; text-align: left; }
body .sec-body b { color: #fff; font-weight: 650; }
@media (max-width: 991.98px) {
  body .sec { grid-template-columns: 1fr; }
  body .sec-head { padding: 1.8rem 1.4rem .6rem; }
  body .sec-body { padding: .4rem 1.4rem 1.8rem; }
  body .sec-body p { font-size: 1rem; }
}

/* ---------- Появление при прокрутке ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, background-position .8s ease, box-shadow .3s, border-color .3s; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- Кнопки, формы, модальные окна, таблицы ---------- */
body .btn { border-radius: 6px; font-weight: 600; padding: .6rem 1.2rem; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
body .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10,143,154,.25); }
body .btn-primary, body .btn-success, body .btn-info, body .btn-orange { background-color: var(--accent); border-color: var(--accent); color: #fff; }
body .btn-primary:hover, body .btn-success:hover, body .btn-info:hover, body .btn-orange:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
body .btn-outline-light { border-color: #3a4a60; color: #dbe5ef; }
body .btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
body .form-control { border: 1px solid #c8d1dc; border-radius: 6px; padding: .6rem .8rem; height: auto; background: #fff; }
body .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body .modal-content { border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(10,20,36,.25); }
body .modal-header { border-bottom: 1px solid var(--line); }
body .modal-title { font-size: 1.3rem; }
body .table { color: var(--text); }
body .table thead th { background: var(--accent-soft); color: var(--ink); border-bottom: 2px solid var(--accent); }
body .table td, body .table th { border-top: 1px solid var(--line); }
body hr { border-top: 1px solid var(--line); }
body .container.ww img:not(.card-img-top) { border-radius: 4px; }

/* ---------- Подвал ---------- */
body .container[style*="6c6c6c"] { background-color: #17456b !important; }
body .container[style*="6c6c6c"] .nav-link { color: #d5e3ee; font-size: .95rem; transition: color .15s; }
body .container[style*="6c6c6c"] .nav-link:hover { color: #fff; }
body .container[style*="6c6c6c"] a { color: #c9d4e0; }
body .container[style*="6c6c6c"] a:hover { color: #fff; }
body .container[style*="6c6c6c"] .col-md-4 { border-left-color: #2a3a52 !important; }
body .container[style*="6c6c6c"] hr { border-top-color: #2a3a52; }

/* ---------- Мобильные и «уменьшить анимацию» ---------- */
@media (max-width: 767.98px) {
  body { font-size: 15.5px; }
  body .container.ww { border-left: 0; border-right: 0; }
  body .card > img, body .card-img-top { height: 170px; }
  body .card-body { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body *, body *::before, body *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ===== v9 ===== */

/* ---------- Три колонки: та же тёмная переливающаяся гамма, что у блоков ---------- */
body .col-card, body .container.ww > .container[style*="6c6c6c"] {
  --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 90%;
  background-color: #17456b;
  background-image:
    radial-gradient(460px 240px at var(--gx) 0%, rgba(25,195,207,.30), transparent 70%),
    linear-gradient(115deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 0;
  border: 1px solid rgba(25,195,207,.2);
  color: #e4eef6;
}
body .col-card { transition: background-position .8s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
body .col-card:hover { background-position: 0 0, 100% 0; border-color: rgba(25,195,207,.75); box-shadow: 0 16px 36px rgba(10,20,36,.32), 0 0 0 1px rgba(25,195,207,.25) !important; }
body .row > .col-md-4:nth-child(2) .col-card { --c1: #1b6485; --c2: #0d7385; --c3: #17456b; --gx: 10%; }
body .row > .col-md-4:nth-child(3) .col-card { --c1: #17456b; --c2: #1a587a; --c3: #0d7385; --gx: 85%; }
body .col-card > .card-header { color: #fff; border-bottom: 1px solid rgba(25,195,207,.22); }
body .col-card .card-body blockquote, body .col-card .card-body li, body .col-card .card-body p { color: #e4eef6 !important; }
body .col-card .card-body ul li { border-bottom-color: rgba(255,255,255,.09); }
body .col-card .card-body ul li::before { background: var(--glow); }
body .col-card .card-body ul li:hover { color: #fff !important; }

/* ---------- Шапка ---------- */
body .container.ww > .row:has(.tel) {
  align-items: center; margin: 0; padding: .3rem 1.2rem;
  background-image:
    radial-gradient(520px 220px at 96% 0%, rgba(25,195,207,.20), transparent 70%),
    linear-gradient(90deg, #fff 0%, #eef6f8 55%, #e0eff2 100%);
  background-size: 100% 100%, 100% 100%;
  border-bottom: 1px solid var(--line);
}
body .container.ww > .row:has(.tel) a > img.m-4 { margin: .8rem 1rem .8rem 0 !important; }
body .tel.m-4 { margin: .8rem 0 !important; padding-left: 1rem; border-left: 3px solid var(--glow); line-height: 1.35; }
body .tel a:first-child { font-size: 1.65rem; }
body .tel small { display: block; margin-top: .35rem; }
body .tel small a {
  display: inline-block; padding: .2rem .85rem; border: 1px solid var(--accent); border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--accent); transition: background-color .2s, color .2s;
}
body .tel small a:hover { background: var(--accent); color: #fff; }
body .tel small a:hover .mdi { color: #fff !important; }
body .container.ww > .row:has(.tel) > .col-md-5 .row { justify-content: flex-end; align-items: center; margin: 0; }
body .container.ww > .row:has(.tel) > .col-md-5 .row > [class*="col-md-2"] { flex: 0 0 auto; width: auto; max-width: none; padding: 0 .3rem; }
body .container.ww > .row:has(.tel) > .col-md-5 .row > [class*="col-md-2"]:not(:has(a)) { display: none; }
body .container.ww > .row:has(.tel) a[href*="youtube"], body .container.ww > .row:has(.tel) a[href*="twitter"], body .container.ww > .row:has(.tel) a[href*="vk.com"] {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: background-color .2s, border-color .2s, transform .2s;
}
body .container.ww > .row:has(.tel) a[href*="youtube"] .mdi, body .container.ww > .row:has(.tel) a[href*="twitter"] .mdi, body .container.ww > .row:has(.tel) a[href*="vk.com"] .mdi { font-size: 1.5rem !important; line-height: 1; transform: none; }
body .container.ww > .row:has(.tel) a[href*="youtube"]:hover, body .container.ww > .row:has(.tel) a[href*="twitter"]:hover, body .container.ww > .row:has(.tel) a[href*="vk.com"]:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
body .container.ww > .row:has(.tel) a[href*="youtube"]:hover .mdi, body .container.ww > .row:has(.tel) a[href*="twitter"]:hover .mdi, body .container.ww > .row:has(.tel) a[href*="vk.com"]:hover .mdi { color: #fff !important; }
body .container.ww > .row:has(.tel) a[href="#rZakaz"] {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; margin-left: .5rem;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
body .container.ww > .row:has(.tel) a[href="#rZakaz"]::after { content: "Расчёт стоимости"; }
body .container.ww > .row:has(.tel) a[href="#rZakaz"] .mdi { color: #fff !important; font-size: 1.4rem !important; line-height: 1; }
body .container.ww > .row:has(.tel) a[href="#rZakaz"]:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,143,154,.3); }

/* ---------- Подвал ---------- */
body .container.ww > .container[style*="6c6c6c"] {
  max-width: none; width: auto; margin: .6rem 8px 1rem; padding: 1.8rem 1.6rem 1.4rem;
  border-radius: 14px; font-size: .95rem; text-align: center;
}
body .container[style*="6c6c6c"] > hr, body .container[style*="6c6c6c"] > .row:nth-of-type(2) { display: none; }
body .container[style*="6c6c6c"] .row { margin: 0; padding: 0 !important; }
body .container[style*="6c6c6c"] .row > [class*="col-md-"] { flex: 0 0 100%; max-width: 100%; padding: 0; }
body .container[style*="6c6c6c"] ul.nav { justify-content: center; gap: .1rem 1.8rem; }
body .container[style*="6c6c6c"] .nav-link { padding: .35rem 0; border-bottom: 1px solid transparent; color: #d5e3ee; font-weight: 500; letter-spacing: .01em; transition: color .15s, border-color .15s; }
body .container[style*="6c6c6c"] .nav-link:hover { color: #fff; border-bottom-color: var(--glow); }
body .container[style*="6c6c6c"] [itemscope] {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 2.4rem;
  margin-top: 1.2rem; padding-top: 1.2rem !important; border-left: 0 !important; border-top: 1px solid rgba(25,195,207,.2); text-align: center !important;
}
body .container[style*="6c6c6c"] [itemscope] p { margin: 0 !important; color: #d5e3ee; }
body .container[style*="6c6c6c"] [itemprop="name"] { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
body .container[style*="6c6c6c"] [itemprop="telephone"] { font-weight: 600; color: #fff; }
body .container[style*="6c6c6c"] [itemscope] a { color: #6fe0e8; }
body .container[style*="6c6c6c"] [itemscope] a:hover { color: #fff; }
@media (max-width: 767.98px) {
  body .container.ww > .container[style*="6c6c6c"] { margin: .5rem 0 0; border-radius: 0; padding: 1.4rem 1rem; }
  body .container[style*="6c6c6c"] ul.nav { gap: .1rem 1.2rem; }
}

/* ===== v10: красные акценты в цвет логотипа ===== */
body .navbar .nav-link:hover, body .navbar .nav-link:focus, body .navbar .active > .nav-link { border-bottom-color: var(--red); }
body .sec-title::after { background: var(--red); }
body .tel.m-4 { border-left-color: var(--red); }
body .tel .mdi-call-made { color: var(--red) !important; }
body .container.ww > .row:has(.tel) a[href="#rZakaz"] { background: var(--red); }
body .container.ww > .row:has(.tel) a[href="#rZakaz"]:hover { background: var(--red-dark); box-shadow: 0 8px 18px rgba(232,24,32,.30); }
body #slider1_container .bn-btn { background: var(--red); }
body #slider1_container .bn-btn:hover { background: var(--red-dark); }
body .btn-primary, body .btn-success, body .btn-info, body .btn-orange { background-color: var(--red); border-color: var(--red); }
body .btn-primary:hover, body .btn-success:hover, body .btn-info:hover, body .btn-orange:hover { background-color: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 16px rgba(232,24,32,.28); }
body .container[style*="6c6c6c"] .nav-link:hover { border-bottom-color: var(--red); }

/* ===== v11: живой фон ===== */
body .sec, body .col-card { isolation: isolate; }
body .sec > *, body .col-card > * { position: relative; z-index: 1; }

/* 1. Подсветка под курсором */
body .sec::before, body .col-card::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: var(--mx, 50%); top: var(--my, 50%); width: 560px; height: 560px; margin: -280px 0 0 -280px;
  background: radial-gradient(circle, rgba(150,240,250,.32) 0%, rgba(150,240,250,.10) 42%, transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
body .sec:hover::before, body .col-card:hover::before { opacity: 1; }

/* 2. Медленно дрейфующее свечение («северное сияние») */
body .sec::after, body .col-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -30%; left: -15%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(25,195,207,.24), transparent);
  animation: aurora 18s ease-in-out infinite alternate;
}
body .sec-2::after { animation-duration: 23s; animation-delay: -7s; }
body .sec-3::after { animation-duration: 20s; animation-delay: -12s; }
body .sec-4::after { animation-duration: 26s; animation-delay: -3s; }
body .row > .col-md-4:nth-child(2) .col-card::after { animation-duration: 22s; animation-delay: -9s; }
body .row > .col-md-4:nth-child(3) .col-card::after { animation-duration: 25s; animation-delay: -4s; }
@keyframes aurora {
  from { transform: translateX(0) scale(1); }
  to   { transform: translateX(95%) scale(1.2); }
}

/* 3. Полоса прогресса чтения */
#readbar { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--red); z-index: 2000; pointer-events: none; }

/* ===== v13: шрифт интерфейса, кнопка «Обратный звонок», интерактивная карта ===== */
body .tel, body .tel a, body .btn, body #slider1_container .bn-btn,
body .container.ww > .row:has(.tel) a[href="#rZakaz"] { font-family: var(--ui); }

/* «Обратный звонок»: компактная кнопка, шрифт как у меню */
body .container.ww .tel small { display: block; margin-top: .4rem; font-size: inherit; line-height: 1; }
body .container.ww .tel small a {
  display: inline-flex !important; align-items: center; gap: 5px; margin: 0;
  padding: 2px 10px 2px 8px !important;
  border: 1px solid rgba(10,143,154,.45) !important; border-radius: 999px !important;
  background: transparent !important; box-shadow: none !important; animation: none !important;
  color: var(--accent-dark) !important;
  font-family: inherit !important; font-size: 12px !important; font-weight: 500 !important;
  letter-spacing: 0 !important; word-spacing: 0 !important; line-height: 1.5 !important;
  text-transform: none !important; text-decoration: none !important;
  transition: background-color .2s, color .2s, border-color .2s;
}
body .container.ww .tel small a::before {
  content: ""; flex: none; width: 11px; height: 11px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .container.ww .tel small a .mdi { display: none !important; }
body .container.ww .tel small a:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; transform: none; }

/* Интерактивная карта */
body .sec.netmap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; gap: 0 2.2rem; padding: 2.2rem 2.4rem; }
body .netmap:hover { transform: none; }
.nm-head { grid-column: 1 / -1; margin-bottom: 1.4rem; }
.nm-hint { margin: .9rem 0 0; color: #d5e3ee; font-size: 1rem; }
.nm-stage { position: relative; width: 100%; min-width: 0; }
.nm-stage::before { content: ""; display: block; padding-top: 75%; }
.nm-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.nm-line { stroke: rgba(255,255,255,.22); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.nm-line.on { stroke: #7be8f0; stroke-width: 2.5; stroke-dasharray: 7 7; animation: nmflow .9s linear infinite; }
@keyframes nmflow { to { stroke-dashoffset: -14; } }
.nm-node {
  position: absolute; transform: translate(-50%, -50%); width: 62px; height: 62px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.10); color: #e4eef6; cursor: pointer;
  transition: transform .25s ease, background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.nm-hub { width: 84px; height: 84px; }
.nm-ico { width: 52%; height: 52%; }
.nm-label {
  position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  font-family: var(--ui); font-size: .74rem; font-weight: 600; letter-spacing: .01em; color: #e4eef6; white-space: nowrap; text-shadow: 0 1px 3px rgba(10,20,36,.5);
}
.nm-node:hover, .nm-node:focus-visible, .nm-node.is-active {
  background: var(--accent); border-color: #7be8f0; color: #fff; transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 6px rgba(25,195,207,.22), 0 0 26px rgba(25,195,207,.55); outline: none;
}
.nm-node[data-id="security"] .nm-label { top: auto; bottom: calc(100% + 7px); }
.nm-info { align-self: center; min-height: 230px; padding: 1.5rem 1.7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(10,20,36,.28); }
.netmap.is-ready .nm-panel { display: none; }
.netmap.is-ready .nm-panel.is-active { display: block; animation: nmfade .35s ease; }
@keyframes nmfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nm-panel + .nm-panel { margin-top: 1.4rem; }
.netmap.is-ready .nm-panel + .nm-panel { margin-top: 0; }
.nm-ptitle { font-family: var(--ui); font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nm-ptitle::after { content: ""; display: block; width: 40px; height: 3px; margin: .7rem 0 1rem; background: var(--red); border-radius: 2px; }
.nm-panel ul { list-style: none; margin: 0; padding: 0; }
.nm-panel li { position: relative; padding: .35rem 0 .35rem 1.5rem; color: #e4eef6; line-height: 1.6; }
.nm-panel li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 5px; border-left: 2px solid #7be8f0; border-bottom: 2px solid #7be8f0; transform: rotate(-45deg); }
@media (max-width: 991.98px) {
  body .sec.netmap { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
  .nm-stage { margin-bottom: 1.2rem; }
  .nm-stage::before { padding-top: 108%; }
  .nm-node { width: 50px; height: 50px; } .nm-hub { width: 66px; height: 66px; }
  .nm-label { font-size: .62rem; white-space: normal; width: 76px; text-align: center; line-height: 1.15; }
  .nm-info { min-height: 0; padding: 1.2rem; }
}

/* ===== v14: заголовки h2, подпись «Наши клиенты», завершающий призыв ===== */
body h2.sec-title, body h2.card-header { margin: 0; }
body h2.card-header { font-size: 1.1rem; }
.clients-title { margin: 1.2rem 0 0; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

body .sec.cta { grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.4rem; padding: 2.4rem 2.6rem; }
body .cta-text p { margin: .9rem 0 0; font-size: 1.08rem; line-height: 1.7; color: #e4eef6; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.cta-main, .cta-ghost {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--ui); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.cta-main { background: var(--red); color: #fff; border: 1px solid var(--red); }
.cta-main:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232,24,32,.35); }
.cta-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cta-ghost:hover { background: #fff; color: var(--accent-dark); border-color: #fff; transform: translateY(-2px); }
.cta-phone { width: 100%; color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: -.01em; }
.cta-phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 991.98px) {
  body .sec.cta { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; }
  .cta-main, .cta-ghost { flex: 1 1 auto; text-align: center; }
}

/* ===== v17: полоса клиентов компактнее ===== */
body .row.p-4:has(.owl-carousel) { padding: .55rem 1.5rem .9rem !important; }

/* ===== v18: Safari-исправления, helpdesk, почта в шапке ===== */
.nm-info { min-width: 0; }
.nm-panel li { font-size: .97rem; }
@media (min-width: 992px) { .nm-info { min-height: 330px; } }
@media (max-width: 991.98px) { .nm-info { min-height: 15rem; } }
.nm-help {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem 1.2rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1rem 1.3rem; border-radius: 12px;
  background: rgba(10,20,36,.28); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--red);
}
.nm-help-tag { flex: none; padding: .2rem .75rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.nm-help p { margin: 0; flex: 1 1 300px; color: #e4eef6; font-size: 1.02rem; line-height: 1.6; }

/* Адрес почты картинкой (в тексте страницы адреса нет) */
body .container.ww .tel small::after {
  content: ""; display: inline-block; vertical-align: middle; margin-left: 14px;
  width: 142px; height: 19px; background: url("/img/mail-support.png") left center / contain no-repeat;
}

/* ===== v21: карточки услуг (чанк uslugi_list_tpl) ===== */
body .svc-card {
  --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 90%;
  position: relative; isolation: isolate; color: #e4eef6;
  border: 1px solid rgba(25,195,207,.2); border-top: 1px solid rgba(25,195,207,.2); border-radius: 14px; overflow: hidden;
  background-color: #17456b;
  background-image:
    radial-gradient(420px 220px at var(--gx) 0%, rgba(25,195,207,.28), transparent 70%),
    linear-gradient(115deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  background-size: 100% 100%, 240% 100%; background-position: 0 0, 0 0;
  transition: background-position .8s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body .row > [class*="col-md-4"] > .svc-card { height: calc(100% - 2rem); }
body .row > .col-md-4:nth-child(3n+2) .svc-card { --c1: #1b6485; --c2: #0d7385; --c3: #17456b; --gx: 10%; }
body .row > .col-md-4:nth-child(3n+3) .svc-card { --c1: #17456b; --c2: #1a587a; --c3: #0d7385; --gx: 85%; }
body .svc-card > * { position: relative; z-index: 1; }
body .svc-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; top: -30%; left: -15%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(25,195,207,.22), transparent); animation: aurora 22s ease-in-out infinite alternate;
}
body .svc-card:hover { background-position: 0 0, 100% 0; transform: translateY(-4px); border-color: rgba(25,195,207,.75); box-shadow: 0 16px 36px rgba(10,20,36,.30), 0 0 0 1px rgba(25,195,207,.25) !important; }

body .svc-card > .card-header {
  display: flex; align-items: center; min-height: 5rem; margin: 0; padding: 1rem 1.3rem;
  background: transparent; color: #fff; border-bottom: 1px solid rgba(25,195,207,.22);
  font-size: 1.08rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
}
body .svc-card .svc-img { display: block; overflow: hidden; line-height: 0; }
body .svc-card .svc-img img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
body .svc-card:hover .svc-img img { transform: scale(1.05); }
body .svc-card > .card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.3rem 1.3rem; }
body .svc-card .svc-desc {
  flex: 1; margin: 0 0 1.1rem; font-size: .97rem; line-height: 1.6; color: #d5e3ee !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body .svc-card .svc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
body .svc-card .svc-price {
  background: var(--red); border: 1px solid var(--red); color: #fff; border-radius: 999px;
  padding: .42rem 1rem; font-size: .95rem; font-weight: 700; line-height: 1.2; box-shadow: none;
}
body .svc-card .svc-price:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; box-shadow: 0 8px 18px rgba(232,24,32,.35); }
body .svc-card .svc-more {
  display: inline-flex; align-items: center; gap: .35rem; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .42rem .95rem; font-size: .9rem; font-weight: 600; line-height: 1.2;
}
body .svc-card .svc-more:hover { background: #fff; border-color: #fff; color: var(--accent-dark); box-shadow: none; }
body .svc-card .svc-more .mdi { transition: transform .2s; }
body .svc-card .svc-more:hover .mdi { transform: translateX(4px); }
@media (max-width: 767.98px) { body .row > [class*="col-md-4"] > .svc-card { height: auto; } }

/* ===== v22: тарифы и страница услуги ===== */

/* --- Тарифы: карточки используют стиль .svc-card, добавляем значки и широкую последнюю карточку --- */
.tarif-icons { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.3rem 0; }
.tarif-icons:not(:has(.tarif-chip)) { display: none; }
.tarif-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #e4eef6; font-size: 1.3rem; line-height: 1;
  transition: background-color .2s, transform .2s;
}
.tarif-chip:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
body .svc-card .tarif-content { flex: 1; margin-bottom: 1.1rem; }
body .svc-card .tarif-content p, body .svc-card .tarif-content li, body .svc-card .tarif-content blockquote { color: #e4eef6 !important; font-size: .97rem; line-height: 1.6; }
body .svc-card .tarif-content p { margin: 0 0 .7rem; }
body .svc-card .tarif-content ul { list-style: none; padding: 0; margin: 0; }
body .svc-card .tarif-content ul li { border-bottom: 1px solid rgba(255,255,255,.12); padding: .45rem 0 .45rem 1.3rem; position: relative; }
body .svc-card .tarif-content ul li:last-child { border-bottom: 0; }
body .svc-card .tarif-content ul li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 9px; height: 5px; background: none; border-left: 2px solid #7be8f0; border-bottom: 2px solid #7be8f0; border-radius: 0; transform: rotate(-45deg); }
body .svc-card .tarif-content b, body .svc-card .tarif-content strong { color: #fff !important; }

/* Если тарифов не кратно трём, последний показывается широкой полосой: картинка слева, текст справа */
body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card {
    display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-areas: "img head" "img icons" "img body"; grid-template-rows: auto auto 1fr;
  }
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card > .svc-img { grid-area: img; height: 100%; }
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card > .svc-img img { height: 100%; object-fit: cover; }
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card > .card-header { grid-area: head; }
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card > .tarif-icons { grid-area: icons; }
  body .tarif-grid > .col-md-4:last-child:nth-child(3n+1) .svc-card > .card-body { grid-area: body; }
}

/* --- Страница услуги: шапка, статья, навигация --- */
body .svc-hero {
  --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 88%;
  position: relative; isolation: isolate; overflow: hidden; color: #e4eef6;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); gap: 1.5rem 2.4rem; align-items: center;
  margin: .4rem 0 1.8rem; padding: 2.2rem 2.4rem;
  border: 1px solid rgba(25,195,207,.2); border-radius: 14px; background-color: #17456b;
  background-image: radial-gradient(460px 240px at var(--gx) 0%, rgba(25,195,207,.30), transparent 70%), linear-gradient(115deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
}
body .svc-hero > * { position: relative; z-index: 1; }
body .svc-hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; top: -30%; left: -15%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(25,195,207,.22), transparent); animation: aurora 20s ease-in-out infinite alternate;
}
body .svc-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
body .svc-hero-price { margin: 0 0 1.2rem; font-size: 1.2rem; font-weight: 600; color: #e4eef6; }
body .svc-hero-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 999px;
  background: var(--red); border: 1px solid var(--red); color: #fff; font-weight: 600; box-shadow: none;
}
body .svc-hero-btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232,24,32,.35); }
body .svc-hero-img img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(10,20,36,.3); }
body .svc-hero-img img[src=""] { display: none; }

body .svc-article { max-width: 860px; margin: 0 auto 1rem; font-size: 1.06rem; line-height: 1.85; color: #243449; }
body .svc-article p { margin: 0 0 1.2rem; color: #243449; }
body .svc-article > p:first-of-type { font-size: 1.2rem; line-height: 1.75; color: var(--ink); }
body .svc-article h2, body .svc-article h3 { margin: 2rem 0 1rem; }
body .svc-article ul { list-style: none; margin: 0 0 1.4rem; padding: 1.1rem 1.4rem; background: #f2f8f9; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
body .svc-article ul li { position: relative; margin: 0; padding: .35rem 0 .35rem 1.5rem; color: #243449; }
body .svc-article ul li::before { content: ""; position: absolute; left: 0; top: .98em; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; }
body .svc-article img { max-width: 100%; height: auto; }

body .svc-nav { margin: 1.8rem 0 1.6rem; }
body .svc-nav, body .svc-nav ul { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; list-style: none; padding: 0; margin-left: 0; margin-right: 0; }
body .svc-nav > ul { flex: 1 1 100%; margin-top: 0; margin-bottom: 0; }
body .svc-nav li { flex: 1 1 220px; margin: 0; padding: 0; }
body .svc-nav a {
  display: block; height: 100%; padding: .95rem 1.2rem; text-align: center; text-decoration: none; font-weight: 600; color: var(--ink);
  background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
body .svc-nav a:hover { background: linear-gradient(115deg, #17456b, #0d7385); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,20,36,.2); }

@media (max-width: 767.98px) {
  body .svc-hero { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; }
  body .svc-hero-img { order: -1; }
}

/* ===== v23: рекомендуемые программы (чанк soft_list_tpl) ===== */
body .soft-grid { justify-content: center; }
body .soft-grid > [class*="col-"] > .svc-card { height: calc(100% - 2rem); }
body .soft-grid > div:nth-child(3n+2) .svc-card { --c1: #1b6485; --c2: #0d7385; --c3: #17456b; --gx: 10%; }
body .soft-grid > div:nth-child(3n+3) .svc-card { --c1: #17456b; --c2: #1a587a; --c3: #0d7385; --gx: 85%; }
body .soft-card .soft-logo { position: relative; margin: 1.1rem 1.1rem 0; padding-top: 74%; overflow: hidden; background: #fff; border-radius: 12px; }
body .soft-card .soft-logo img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 84%; max-height: 84%; width: auto; height: auto; transition: transform .4s ease; }
body .soft-card:hover .soft-logo img { transform: translate(-50%, -50%) scale(1.05); }
body .soft-card > .card-body { padding-top: 1rem; }
body .soft-card .svc-desc { font-size: .93rem; line-height: 1.6; -webkit-line-clamp: 4; }
body .soft-card .svc-desc b, body .soft-card .svc-desc strong { color: #fff !important; }
body .soft-card .svc-foot .soft-dl { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1rem; }
@media (max-width: 767.98px) { body .soft-grid > [class*="col-"] > .svc-card { height: auto; } }

/* ===== v24: подвал на внутренних страницах (лежит под колонкой, а не внутри) выровнен по её ширине ===== */
body > .container[style*="6c6c6c"] {
  --c1: #17456b; --c2: #1b6485; --c3: #0d7385; --gx: 90%;
  max-width: 1200px; width: 100%; margin: 0 auto 1rem; padding: 1.8rem 1.6rem 1.4rem;
  border: 1px solid rgba(25,195,207,.2); border-top: 0; border-radius: 0 0 14px 14px;
  background-color: #17456b;
  background-image: radial-gradient(460px 240px at var(--gx) 0%, rgba(25,195,207,.30), transparent 70%), linear-gradient(115deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
  background-size: 100% 100%, 240% 100%; background-position: 0 0, 0 0;
  color: #e4eef6; font-size: .95rem; text-align: center;
}
@media (max-width: 767.98px) { body > .container[style*="6c6c6c"] { margin: 0; border-radius: 0; padding: 1.4rem 1rem; } }

/* ===== v25: единая сетка отступов на внутренних страницах (на главной не затрагивается) ===== */
html:not(:has(#netmap)) .container.ww { padding-left: 0 !important; padding-right: 0 !important; }
html:not(:has(#netmap)) .container.ww > .row:not(:has(.tel)):not(.p-4) { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html:not(:has(#netmap)) .container.ww > .row:not(:has(.tel)):not(.p-4) > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
/* подвал под колонкой: тот же отступ, что у блоков (11 px от края колонки) */
body > .container[style*="6c6c6c"] { width: calc(100% - 22px); max-width: 1178px; margin: 1rem auto; border: 1px solid rgba(25,195,207,.2); border-radius: 14px; }

/* ===== v25: «Вопрос-ответ» (чанк vopros_list_tpl) ===== */
body .row > [class*="col-md-6"] > .svc-card { height: calc(100% - 2rem); }
body .row > .col-md-6:nth-child(2n) .svc-card { --c1: #1b6485; --c2: #0d7385; --c3: #17456b; --gx: 10%; }
body .faq-card > .card-header a { color: #fff; text-decoration: none; }
body .faq-card > .card-header a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
body .faq-card .svc-desc { -webkit-line-clamp: 4; }
.faq-num {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.3; color: #e4eef6;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
}
@media (max-width: 767.98px) { body .row > [class*="col-md-6"] > .svc-card { height: auto; } }

/* ===== v26: вопросы, «О компании», карта ===== */
body .faq-hero { grid-template-columns: minmax(0, 1fr); }
body .faq-hero h1 { margin-bottom: 0; }
body .faq-article > p:first-of-type { font-size: inherit; line-height: inherit; color: #243449; }
body .about-article { max-width: 980px; }
body .map-wrap { margin: 1.2rem 0 1.8rem; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
body .map-wrap:empty { display: none; }
body .map-wrap iframe { display: block; width: 100% !important; min-height: 380px; border: 0; }
body .map-wrap > div, body .map-wrap > ymaps { max-width: 100%; }

/* ===== v27: сертификаты, отзывы, 404, навигация с длинными названиями ===== */
body .cert-card {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  grid-template-areas: "img head" "img body"; grid-template-rows: auto 1fr;
}
body .cert-card > .cert-img { grid-area: img; padding: 1.1rem; }
body .cert-card > .card-header { grid-area: head; }
body .cert-card > .card-body { grid-area: body; }
body .cert-img a { display: block; padding: 10px; line-height: 0; background: #fff; border-radius: 12px; transition: transform .3s ease, box-shadow .3s ease; }
body .cert-img a:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px rgba(10,20,36,.35); }
body .cert-img img { display: block; width: 100%; height: auto; }
body .cert-card .cert-text, body .cert-card .cert-text p, body .cert-card .cert-text li { color: #e4eef6 !important; font-size: 1rem; line-height: 1.7; }
body .cert-card .cert-text p { margin: 0 0 .8rem; }
body .cert-card .cert-text b, body .cert-card .cert-text strong { color: #fff !important; }
body .otz-card > .card-body::before {
  content: "\201C"; display: block; height: 1.7rem; margin-bottom: .2rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 3.8rem; line-height: .8; color: rgba(123,232,240,.55);
}
@media (max-width: 767.98px) {
  body .cert-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "img" "body"; }
  body .cert-card > .cert-img { max-width: 320px; margin: 0 auto; }
}

body .err-code { margin: 0 0 .3rem; font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: rgba(123,232,240,.9); }
body .err-hero .svc-hero-price { max-width: 46ch; line-height: 1.6; }

/* навигация «назад / к списку / вперёд»: длинные названия переносятся и не вылезают за границы */
body .svc-nav, body .svc-nav * { min-width: 0; max-width: 100%; box-sizing: border-box; }
body .svc-nav li { float: none !important; display: block; }
body .svc-nav a { float: none !important; display: block; white-space: normal !important; overflow-wrap: anywhere; hyphens: auto; line-height: 1.4; }

/* ===== v28: навигация на телефоне, длинный текст в статьях, формы и всплывающие окна ===== */

/* навигация: слова не ломаются по буквам; на телефоне кнопки друг под другом */
body .svc-nav a { overflow-wrap: break-word; word-break: normal; hyphens: manual; text-align: center; }
@media (max-width: 767.98px) {
  body .svc-nav, body .svc-nav ul { flex-direction: column; gap: .6rem; }
  body .svc-nav li, body .svc-nav a { width: 100%; flex: 0 0 auto; }
  body .svc-nav a { text-align: left; padding: .85rem 1.1rem; }
}

/* статьи: длинные пути, ссылки и код переносятся, широкие таблицы и картинки не растягивают страницу */
body .svc-article { min-width: 0; overflow-wrap: anywhere; }
body .svc-article pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #f2f8f9; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
body .svc-article code { overflow-wrap: anywhere; word-break: break-word; }
body .svc-article table { display: block; max-width: 100%; overflow-x: auto; }
body .svc-article img, body .svc-article iframe, body .svc-article video { max-width: 100%; }
body .svc-article iframe { height: auto; min-height: 220px; }
body .container.ww { overflow-x: clip; }

/* всплывающие окна */
body .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(10,20,36,.35); }
body .modal-header { align-items: center; padding: 1.1rem 1.4rem; background: linear-gradient(115deg, #17456b, #0d7385); border-bottom: 0; }
body .modal-header .modal-title, body .modal-header .ztname { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 700; }
body .modal-header .close { margin: 0; padding: 0; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-shadow: none; opacity: .85; background: rgba(255,255,255,.14); transition: background-color .2s, opacity .2s; }
body .modal-header .close:hover { opacity: 1; background: rgba(255,255,255,.28); }
body .modal-header .close i { display: none; }
body .modal-header .close::after { content: "\00d7"; font-size: 1.7rem; line-height: 30px; }
body .modal-body { padding: 1.4rem 1.5rem 1.6rem; }

/* форма */
body .zf fieldset.zf-group { min-width: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
body .zf legend { width: auto; margin: 0 0 .7rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
body .zf-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
body .zf-count { padding: .75rem .8rem; background: #f2f8f9; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
body .zf-count:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body .zf-count label { display: flex; align-items: center; gap: .4rem; margin: 0 0 .45rem; font-size: .82rem; font-weight: 600; color: var(--text); }
body .zf-count .mdi { color: var(--accent); font-size: 1.15rem; line-height: 1; }
body .zf-count .form-control { padding: .35rem .4rem; text-align: center; font-size: 1.05rem; font-weight: 700; }
body .zf-field { margin-bottom: 1rem; }
body .zf label { margin-bottom: .35rem; font-size: .9rem; font-weight: 600; color: var(--text); }
body .zf-req { color: var(--red); }
body .zf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
body .zf .input-group-text { background: var(--accent-soft); border-color: #c8d1dc; color: var(--accent-dark); }
body .zf .error { display: block; margin-top: .25rem; font-size: .82rem; color: var(--red-dark); }
body .zf .error:empty { display: none; }
body .zf input.field[name="work-email"] { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body .zf-consent { margin: .4rem 0 1rem; padding-left: 1.6rem; }
body .zf-consent .form-check-input { margin-top: .3rem; accent-color: var(--accent); }
body .zf-consent label { margin-bottom: 0; font-weight: 600; }
body .zf-law { margin: .4rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
body .zf-actions { margin-top: 1rem; }
body .zf-actions .btn { width: 100%; padding: .85rem 1.2rem; font-size: 1.05rem; }
@media (max-width: 575.98px) {
  body .zf-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .zf-two { grid-template-columns: 1fr; }
  body .modal-body { padding: 1.1rem 1rem 1.3rem; }
}

/* ===== v29: навигация «назад / к списку / вперёд» на телефоне — при любой разметке pdoNeighbors ===== */
@media (max-width: 767.98px) {
  body .svc-nav, body .svc-nav * { display: block !important; width: 100% !important; max-width: 100% !important; float: none !important; flex: none !important; }
  body .svc-nav a { margin: 0 0 .6rem; padding: .85rem 1.1rem; text-align: left; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
  body .svc-nav a:last-child { margin-bottom: 0; }
}

/* ===== v30: капча в узких окнах ===== */
@media (max-width: 399.98px) { body .zf .g-recaptcha { transform: scale(.9); transform-origin: 0 0; margin-bottom: -6px; } }
