/* hpservice.ru — редизайн 2026, mobile-first.
   Палитра Леком: сине-графит + спокойный сине-серый акцент (эталон infobez, тема «Мягкий»). */

:root {
  --bg: #f6f7fa;
  /* Полупрозрачные поверхности (Роман, 19.08.2026): сквозь карточки
     должен просматриваться фон-механизм из шестерён. Белого 74% хватает,
     чтобы текст остался контрастным, а рисунок читался. */
  --surface: rgba(255, 255, 255, .74);
  --surface-solid: #ffffff;
  --ink: #212a38;
  --muted: #5a6374;
  --line: #e2e6ee;
  --brand: #33405a;        /* тёмные секции, футер */
  --brand-2: #3d4b68;
  --accent: #5f7ac2;       /* декор, рамки, иконки */
  --accent-strong: #4763a9; /* ссылки и кнопки: контраст к белому >= 4.5 */
  --accent-tint: #edf1fa;
  --ok: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(33, 42, 56, .07), 0 8px 24px rgba(33, 42, 56, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.55rem, 4.5vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 58px; flex-wrap: nowrap; }
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.logo-link img { height: 26px; width: auto; display: block; }
/* Подпись под логотипом уступила место лок-апу «Официальный сервис HP»
   (утверждён 19.08.2026). Смысл её сохранён в первом экране и в подвале. */
.logo-sub { display: none; }

/* Лок-ап «Официальный сервис HP».
   Аудитория на 62% мобильная, поэтому на телефоне он не прячется, а ужимается:
   с 360 px — без разделителя и мельче, с 430 px — как в утверждённом макете.
   Уже 360 px (iPhone 5, старые Android) строка не держит — там только логотип
   Леком, заявление остаётся в первом экране и в подвале.
   Ширины выверены замером `.header-row.scrollWidth` на 320/360/375/390 px. */
.hp-official { display: none; align-items: center; gap: 6px; flex-shrink: 0; min-width: 0; }
@media (min-width: 360px) { .hp-official { display: inline-flex; } }
.hp-official-sep { display: none; width: 1px; height: 24px; background: var(--line); flex-shrink: 0; }
.hp-official-text { font-size: .74rem; font-weight: 600; color: var(--brand-2);
  letter-spacing: .01em; white-space: nowrap; }
.hp-official-mark { width: 21px; height: 21px; display: block; flex-shrink: 0; }
@media (min-width: 430px) {
  .hp-official { gap: 9px; }
  .hp-official-sep { display: block; }
  .hp-official-text { font-size: .88rem; }
  .hp-official-mark { width: 26px; height: 26px; }
}
@media (min-width: 768px) { .hp-official { gap: 11px; } .hp-official-text { font-size: .95rem; } }

.header-phone { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap;
  min-width: 44px; min-height: 44px; justify-content: center; padding: 0 6px; flex-shrink: 0; }
.header-phone svg { width: 18px; height: 18px; fill: var(--accent-strong); }
.header-phone .num { display: none; }
@media (min-width: 700px) { .header-phone .num { display: inline; } }

/* Метрика («Целевой звонок», счётчик 18416662) оборачивает каждый символ номера
   во вложенные <small> с убывающей прозрачностью — хвост номера становится
   невидимым. Возвращаем видимость, не трогая сам скрипт трекинга. */
a[href^="tel:"] small, .num small, .site-footer small {
  opacity: 1 !important; font-size: inherit !important; color: inherit !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius); border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.35;
  text-align: center; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #3b568f; text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--accent-strong); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-tint); text-decoration: none; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #e9edf7; text-decoration: none; }
.header-cta { display: none; flex-shrink: 0; }
/* CTA показываем только там, где рядом целиком помещается номер телефона */
@media (min-width: 1100px) { .header-cta { display: inline-flex; } }

/* Бургер */
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 9px; background: none; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Навигация */
.site-nav { display: none; border-top: 1px solid var(--line); background: rgba(255,255,255,.9); }
.nav-open .site-nav { display: block; max-height: calc(100vh - 58px); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.site-nav li > a, .site-nav li > button.nav-sub-toggle {
  display: flex; align-items: center; width: 100%; text-align: left; padding: 11px 16px; color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.4;
  background: none; border: 0; cursor: pointer; }
.site-nav li > a:hover { background: var(--accent-tint); text-decoration: none; }
.nav-sub { display: none; list-style: none; margin: 0; padding: 0 0 6px; }
.nav-sub.open { display: block; }
/* стрелка у пунктов с подменю: без неё непонятно, что пункт раскрывается */
.nav-sub-toggle::after {
  content: ""; width: 0; height: 0; margin-left: 8px; opacity: .55;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; transition: transform .15s; }
.nav-sub-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 8px 16px 8px 30px; color: var(--muted); font-size: .93rem; }
.nav-sub a:hover { background: var(--accent-tint); text-decoration: none; }

@media (min-width: 1024px) {
  .site-nav { display: block; border-top: 1px solid var(--line); }
  .site-nav > .container > ul { display: flex; align-items: stretch; padding: 0; gap: 2px; }
  .site-nav li { position: relative; display: flex; }
  /* ссылки и кнопки-раскрывашки должны быть одной высоты и на одной базовой линии,
     иначе пункты «прыгают» (было: у button своя метрика) */
  .site-nav li > a, .site-nav li > button.nav-sub-toggle {
    display: flex; align-items: center; width: auto; padding: 12px 13px;
    white-space: nowrap; border-radius: 6px 6px 0 0; }
  .site-nav li > button.nav-sub-toggle::after { margin-left: 7px; }
  .site-nav li:hover > a, .site-nav li:hover > button.nav-sub-toggle { background: var(--accent-tint); }
  .nav-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); padding: 6px 0; }
  .site-nav li:hover > .nav-sub, .site-nav li:focus-within > .nav-sub { display: block; }
  .nav-sub a { padding: 8px 16px; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; color: #b6bdc9; }

/* ---------- Секции ---------- */
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--brand); color: #e8ecf5; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #b9c8ea; }

/* ---------- Герой ---------- */
.hero { padding: 36px 0 40px; }
/* фото мастерской фоном: затемняем ровно настолько, чтобы текст читался,
   но фото оставалось заметным (правки Андрея и Романа 17.08.2026) */
.hero-photo { position: relative; color: #fff; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(22,29,42,.78) 0%, rgba(26,34,49,.62) 55%, rgba(33,42,56,.80) 100%),
              url("/img/hero-repair-800.jpg") center/cover no-repeat; }
@media (min-width: 900px) {
  /* слева затемняем сильнее (под текстом теперь руки, фон пёстрый),
     центр оставляем светлым — там открытый принтер, его должно быть видно */
  .hero-photo { background-image: linear-gradient(100deg, rgba(18,25,38,.93) 0%, rgba(20,27,40,.72) 34%, rgba(24,32,46,.28) 58%, rgba(33,42,56,.18) 100%),
                                   url("/img/hero-repair.jpg"); background-position: center left; }
}
/* селекторы с .hero: правило «.hero .lead» ниже по файлу имеет ту же специфичность,
   что «.hero-photo .lead», и перебивало белый цвет серым (жалоба 18.08.2026) */
.hero.hero-photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(10,14,22,.55); }
.hero.hero-photo .lead { color: #e6ebf5; text-shadow: 0 1px 12px rgba(10,14,22,.6); }
/* плашки полупрозрачные — фото должно просвечивать */
.hero-photo .hero-panel { background: rgba(20, 27, 40, .42); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(7px) saturate(120%); -webkit-backdrop-filter: blur(7px) saturate(120%); }
@media (prefers-reduced-transparency: reduce) {
  .hero-photo .hero-panel { background: rgba(20, 27, 40, .88); backdrop-filter: none; }
}

/* ---------- Фон: механизм из сцеплённых шестерён (как в lk.lekom.it) ---------- */
#gearsBg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: .2; color: var(--brand); }
#gearsBg svg { width: 100%; height: 100%; display: block; }
/* ⚠️ Шапку сюда добавлять НЕЛЬЗЯ: правило шло ниже, чем `position: sticky; z-index: 50`,
   и перебивало его — шапка переставала быть липкой, а выпадающие подменю уходили
   под карточки страницы (баг 19.08.2026). Механизму-фону хватает `main` и подвала. */
main, .site-footer { position: relative; z-index: 1; }
/* прозрачные секции пропускают механизм, секции с фоном — перекрывают */
.section-alt, .section-dark, .hero-photo { position: relative; z-index: 1; }
/* ⚠️ Здесь была ЛИШНЯЯ «}» — браузер обрывал разбор файла, и всё, что ниже,
   не применялось: телефон в герое оставался синим на тёмном фото (жалоба Андрея
   «номер полупрозрачный»), разъезжались «Полезные материалы» и форма. */
.btn-on-photo { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-on-photo:hover { background: rgba(255,255,255,.14); }
.section-form { text-align: center; }
.section-form .lead-form { margin-left: auto; margin-right: auto; text-align: left; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
@media (min-width: 900px) {
  .hero .hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
  .hero { padding: 56px 0 64px; }
}
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.06rem; color: var(--muted); max-width: 34em; margin: 0 0 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-panel { margin-top: 28px; background: var(--brand); color: #e8ecf5; border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .hero-panel { margin-top: 0; } }
.hero-panel .hp-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.hero-panel .hp-item + .hp-item { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-panel .hp-item svg { width: 22px; height: 22px; flex-shrink: 0; fill: #9db4e8; margin-top: 2px; }
.hero-panel b { color: #fff; }

/* ---------- Блок доверия (сертификаты и условия) ---------- */
/* Синяя полоса с сертификатами (правка Романа 18.08.2026) */
.trust-banner { background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 24px 24px 20px; }
.trust-banner-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 18px; }
.trust-banner-head img { align-self: center; }
.trust-tile-title { font-size: 1.22rem; font-weight: 700; line-height: 1.3; margin: 0; }
.trust-tile-sub { margin: 0 0 0 auto; font-size: .93rem; color: #c3cbdd; }
.trust-tile-sub a { color: #fff; text-decoration: underline; }
.trust-list { margin: 0; padding: 24px; list-style: none; background: var(--surface); border: 1px solid var(--line); }
.trust-list-below { margin-top: 14px; border-radius: 14px; box-shadow: var(--shadow); }
.trust-list li { position: relative; padding: 8px 0 8px 30px; font-size: .97rem; }
.trust-list li + li { border-top: 1px solid var(--line); }
.trust-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-strong);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11'/></svg>") center/contain no-repeat; }
.trust-list li::after {
  content: ""; position: absolute; left: 6px; top: 19px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* вложенные буллиты сертификатов внутри пункта списка (правки Андрея 18.08.2026) */
.trust-sub { list-style: none; margin: 6px 0 0; padding: 0; }
.trust-sub li { padding: 3px 0 3px 22px; border: 0; font-size: .93rem; color: var(--muted); position: relative; }
/* гасим галочку родительского списка и рисуем тире */
.trust-sub li::after { content: none; }
.trust-sub li::before { content: "—"; position: absolute; left: 0; top: 3px; color: var(--accent-strong);
  width: auto; height: auto; background: none; border-radius: 0;
  -webkit-mask: none; mask: none; }

/* ---------- Сертификаты лентой + просмотр со стрелками ---------- */
.cert-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: 12px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cert-item { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
  padding: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: zoom-in; font: inherit; color: var(--ink);
  text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cert-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.cert-item img { width: 100%; height: 128px; object-fit: contain; background: #fff; border-radius: 6px; }
.cert-item span { font-size: .84rem; color: var(--muted); }
/* внутри синей полосы карточки полупрозрачно-белые, подписи светлые */
.trust-banner .cert-item { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.trust-banner .cert-item:hover { border-color: rgba(255,255,255,.55); }
.trust-banner .cert-item span { color: #d7deec; }

.cert-view { position: fixed; inset: 0; z-index: 60; display: none; align-items: center;
  justify-content: center; background: rgba(12,16,26,.9); padding: 20px; }
.cert-view.open { display: flex; }
.cert-view img { max-width: min(92vw, 900px); max-height: 82vh; background: #fff;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cert-view-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: .95rem; }
.cert-view button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px;
  line-height: 1; cursor: pointer; }
.cert-view button:hover { background: rgba(255,255,255,.28); }
.cert-view .cv-prev { left: 14px; }
.cert-view .cv-next { right: 14px; }
.cert-view .cv-close { top: 16px; right: 16px; transform: none; width: 44px; height: 44px; font-size: 22px; }

/* ---------- Частые обращения (статистика заявок) ---------- */
.problems { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 800px) { .problems { grid-template-columns: 1fr 1fr; gap: 22px; } }
.problems-col { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 22px; }
.problems-col h3 { margin: 0 0 2px; }
.problems-col .muted { font-size: .87rem; margin: 0 0 14px; }
/* кольцевая диаграмма: сектора дорисовываются за 2 с при появлении блока в экране */
.pr-ring { position: relative; width: 180px; margin: 4px auto 16px; }
.pr-ring svg { width: 100%; height: auto; display: block; }
.pr-seg { transition: stroke-dasharray 2s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .pr-seg { transition: none; } }
.pr-ring-total { position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%);
  text-align: center; font-size: 1.45rem; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; }
.pr-ring-cap { position: absolute; left: 0; right: 0; top: 60%; text-align: center;
  font-size: .8rem; color: var(--muted); }
.pr-legend { list-style: none; margin: 0; padding: 0; }
.pr-legend li { display: grid; grid-template-columns: 12px 1fr 44px; align-items: center;
  gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.pr-legend li:first-child { border-top: 0; }
.pr-legend i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.pr-name { font-size: .93rem; }
.pr-share { font-size: .85rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
/* Без max-width: строка обрывалась на половине секции и рядом с широкими
   карточками читалась как обрезанная (Роман, 19.08.2026). */
.problems-note { margin-top: 16px; font-size: .88rem; }
.problems-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Полезные материалы: карусель как на new.lekom.ru ---------- */
.materials-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.materials-head h2 { margin: 2px 0 0; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-strong); }
.materials-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.materials-all { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px;
  border: 1.5px solid var(--accent); border-radius: var(--radius); color: var(--accent-strong);
  font-size: 14px; font-weight: 600; }
.materials-all:hover { background: var(--accent-tint); text-decoration: none; }
.materials-carousel { position: relative; margin-top: 20px; }
.materials-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.materials-grid::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .materials-grid { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .materials-grid { grid-auto-columns: calc((100% - 48px) / 4); } }
.material-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.material-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.material-img { position: relative; display: block; aspect-ratio: 16/9; background: #dfe4ee; }
.material-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.material-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.material-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent-strong); background: var(--accent-tint);
  padding: 2px 8px; border-radius: 999px; }
.material-body strong { font-size: .96rem; line-height: 1.35; }
.material-body time { font-size: .82rem; color: var(--muted); }
.materials-nav { position: absolute; top: calc(50% - 28px); transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--brand); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.materials-nav:disabled { opacity: .35; cursor: default; }
.materials-prev { left: -8px; }
.materials-next { right: -8px; }
@media (max-width: 639px) { .materials-nav { display: none; } }

/* ---------- Отзывы: слайдер ---------- */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reviews-head h2 { margin: 2px 0 0; }
.reviews-rating { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); box-shadow: var(--shadow); }
.reviews-rating:hover { border-color: var(--accent); text-decoration: none; }
.reviews-rating b { font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand); }
.reviews-rating > span { display: flex; flex-direction: column; gap: 2px; }
.reviews-count { font-size: .82rem; color: var(--muted); }
/* Полоска звёзд: серые звёзды, поверх — золотая обрезка по --fill (4,7 из 5 → 94%) */
.stars-bar { position: relative; display: inline-block; font-size: .95rem; line-height: 1;
  letter-spacing: .06em; color: #d6dae3; }
.stars-bar::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--fill, 100%);
  overflow: hidden; color: #f0a500; white-space: nowrap; }

.reviews-carousel { position: relative; margin-top: 20px; }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .reviews-track { grid-auto-columns: 48%; } }
@media (min-width: 1024px) { .reviews-track { grid-auto-columns: calc((100% - 32px) / 3); } }
.review-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; }
.review-card:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.review-stars { color: #f0a500; letter-spacing: .08em; font-size: 1rem; line-height: 1; }
.review-text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
.review-card.is-open .review-text { -webkit-line-clamp: unset; overflow: visible; }
.review-more { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--accent-strong); min-height: 32px; }
.review-more:hover { text-decoration: underline; }
.review-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-meta b { font-size: .92rem; }
.review-meta time { font-size: .82rem; color: var(--muted); }
.reviews-prev { left: -8px; }
.reviews-next { right: -8px; }
.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.reviews-dot { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; }
.reviews-dot::after { content: ""; position: absolute; inset: 8px 4px; border-radius: 999px;
  background: #cdd4e2; transition: background .2s, inset .2s; }
.reviews-dot[aria-current="true"]::after { background: var(--accent-strong); inset: 8px 2px; }
.reviews-note { margin-top: 16px; font-size: .85rem; max-width: 78ch; }
@media (max-width: 639px) { .reviews-prev, .reviews-next { display: none; } }

/* старая сетка видео — оставлена для внутренних страниц */
.video-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-card { display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.video-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #dfe4ee; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(20,27,40,.62); backdrop-filter: blur(2px); }
.video-play::after { content: ""; position: absolute; left: 20px; top: 16px;
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(15,20,30,.8); color: #fff;
  font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.video-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; }
.video-body strong { font-size: .95rem; line-height: 1.35; }
.video-body time { font-size: .82rem; color: var(--muted); }

/* ---------- Встроенный квиз вместо формы ---------- */
.quiz-embed { max-width: 900px; margin: 22px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); }
.quiz-embed iframe { width: 100%; border: 0; display: block; }

/* ---------- Карточки услуг ---------- */
.grid-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.card h3 { margin: 0 0 6px; color: var(--accent-strong); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }
.card .price-from { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ---------- Таблицы (цены + legacy) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0;
  /* тени-подсказки: справа/слева видно, что таблицу можно листать вбок */
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(33,42,56,.16), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(33,42,56,.16), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll; }
table.nice, .legacy-content table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .95rem; }
table.nice th, table.nice td, .legacy-content table th, .legacy-content table td {
  border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
table.nice th, .legacy-content table th { background: var(--accent-tint); font-weight: 600; }
table.nice tr:nth-child(even) td { background: #fafbfd; }

/* ---------- Статья / legacy-контент ---------- */
.page-main { padding: 8px 0 48px; }
@media (min-width: 1024px) {
  .page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
}
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; margin-top: 16px; }
@media (min-width: 768px) { .article { padding: 32px 36px; } }
.article h1 { margin-top: 0; }
.legacy-content { max-width: 72ch; }
.legacy-content img { border-radius: 8px; margin: .5em 0; }
.legacy-content p { margin: .9em 0; }
.legacy-content li { margin: .35em 0; }
.legacy-content h2, .legacy-content h3 { margin-top: 1.4em; }
.legacy-content font { font-family: inherit !important; font-size: inherit !important; }

/* Сайдбар */
.sidebar { margin-top: 24px; }
@media (min-width: 1024px) { .sidebar { margin-top: 16px; position: sticky; top: 130px; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.side-box h3 { margin-top: 0; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.side-box li:first-child { border-top: 0; }
.side-cta { background: var(--brand); color: #e8ecf5; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta p { font-size: .92rem; }

/* CTA-блок после статьи */
.cta-strip { margin-top: 28px; background: var(--accent-tint); border: 1px solid #d8e0f2; border-radius: var(--radius);
  padding: 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta-strip p { margin: 0; font-weight: 600; }
.cta-strip .cta-note { font-weight: 400; font-size: .88rem; color: var(--muted); }

/* ---------- Форма заявки ---------- */
.lead-form { max-width: 560px; }
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 4px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form textarea {
  width: 100%; padding: 11px 12px; font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  border: 1.5px solid #c9d1de; border-radius: 8px; background: #fff; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.lead-form .consent { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 14px 0; font-weight: 400; }
.lead-form .consent input { margin-top: 3px; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b3352e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Автоподсказки DaData */
.sug-wrap { position: relative; }
.sug-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff;
  border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: var(--shadow); max-height: 230px; overflow-y: auto; }
.sug-list div { padding: 8px 12px; cursor: pointer; font-size: .93rem; }
.sug-list div:hover { background: var(--accent-tint); }

/* ---------- Контакты ---------- */
.addr-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.addr-body { padding: 18px 20px 20px; }
.addr-map { line-height: 0; background: #e9edf3; }
/* карты крупнее — правки Андрея 18.08.2026 («миниатюры карт делаем больше») */
.addr-map iframe { width: 100%; height: 260px; border: 0; display: block; }
@media (min-width: 768px) { .addr-map iframe { height: 340px; } }
.addr-card h3 { margin-top: 0; }
.addr-card p { margin: .4em 0; font-size: .95rem; }
.addr-card .muted { color: var(--muted); font-size: .88rem; }

/* ---------- Модалка квиза ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(23, 30, 44, .6); display: none; }
.modal-overlay.open { display: flex; align-items: center; justify-content: center; padding: 12px; }
.modal-box { position: relative; width: 100%; max-width: 720px; height: min(86vh, 700px);
  background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
/* display:block — иначе строчный iframe тянет за собой базовую линию строки,
   бокс становится на 7 px выше содержимого и низ квиза подрезается. */
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 19px; line-height: 1; cursor: pointer; }

/* ---------- Футер ---------- */
.site-footer { background: var(--brand); color: #c3cbdd; font-size: .92rem; margin-top: 48px; }
.site-footer a { color: #c3cbdd; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 28px; padding: 40px 0 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-top h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { padding: 3px 0; }
.footer-logo img { height: 24px; width: auto; }
.footer-about { margin-top: 12px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0 22px; }
.footer-bottom .disclaimer { font-size: .8rem; color: #97a2ba; max-width: 760px; margin: 0 0 10px; }
/* На тёмном фоне слоган — светло-серый, не зелёный (Роман, 19.08.2026):
   зелёный на сине-графитовом читается как чужой акцент и тянет на себя
   внимание. Зелёный #16a34a остаётся вариантом для светлых подвалов. */
.footer-slogan { font-family: Caveat, cursive; font-size: 1.45rem; color: #c3cbdd; cursor: pointer; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }

/* Админ-модалка (слоган) */
.admin-modal { position: fixed; inset: 0; z-index: 95; background: rgba(23, 30, 44, .6); display: none; align-items: center; justify-content: center; padding: 16px; }
.admin-modal.open { display: flex; }
.admin-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 24px; max-width: 420px; width: 100%; }
.admin-card h3 { margin-top: 0; }
.admin-card input { width: 100%; padding: 10px; border: 1.5px solid #c9d1de; border-radius: 8px;
  font-family: inherit; font-size: 16px; }
.admin-card .row { display: flex; gap: 10px; margin-top: 14px; }

/* Cookie-баннер (152-ФЗ) */
#lekom-cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 480px; margin: auto;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
  border-radius: 12px; z-index: 99; display: none; }
#lekom-cookie-banner p { margin: 0 0 12px; font-size: .85rem; }
#lekom-cookie-banner button { margin-right: 10px; }

/* Кнопка «наверх» на длинных статьях не нужна: страницы короткие. */

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Правки мобильного ревью 18.08.2026 ───────────────────────────────────── */

/* Карта не должна перехватывать прокрутку страницы: пока по ней не тапнули,
   жесты идут листанию (как cooperative gestures у Google Maps). */
.addr-map { position: relative; }
.map-guard { position: absolute; inset: 0; z-index: 2; display: flex;
  align-items: center; justify-content: center; text-align: center;
  background: rgba(33, 42, 56, .12); color: #fff; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: opacity .2s var(--ease-out-quint, ease); }
.map-guard span { background: rgba(33, 42, 56, .82); padding: 9px 14px; border-radius: 999px; }
.map-guard.off { opacity: 0; pointer-events: none; }

/* Тач-таргеты: в футере, у точек карусели и у мелких кнопок было 20–38 px */
.site-footer li a, .site-footer li { min-height: 44px; display: flex; align-items: center; }
.site-footer .footer-top li { padding: 2px 0; }
.footer-meta a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.reviews-dot { width: 44px; height: 44px; }
.reviews-dot::after { inset: 19px 15px; }
.reviews-dot[aria-current="true"]::after { inset: 19px 13px; }
.btn-sm { min-height: 44px; padding: 9px 16px; }
.logo-link { min-height: 44px; }

/* Cookie-баннер: под модалками (был поверх) и без переноса кнопок на 360 px */
#lekom-cookie-banner { z-index: 80; }
#lekom-cookie-banner button { margin-right: 8px; margin-top: 4px; }
@media (max-width: 380px) { #lekom-cookie-banner { padding: 14px 15px; } }

/* «Как дойти пешком» — раскрывающийся блок в карточке сервисного центра.
   Маршруты взяты с нашего же старого сайта (_prod_mirror/address/*.html). */
.addr-route { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.addr-route summary { cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--accent-strong);
  min-height: 44px; display: flex; align-items: center; }
.addr-route[open] summary { margin-bottom: 6px; }
.addr-route p { font-size: .9rem; margin: 0 0 8px; }
.route-videos-h { margin: 26px 0 12px; }
.route-videos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .route-videos { grid-template-columns: 1fr 1fr; } }

/* ---------- Инфографика посещаемости (под слоганом в подвале) ---------- */
.admin-modal.wide .admin-card { max-width: 720px; max-height: 88vh; overflow-y: auto; }
.stats-box { margin-top: 14px; }
.st-note { font-size: .8rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.st-h { margin: 22px 0 8px; font-size: .95rem; }
.st-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .st-tiles { grid-template-columns: repeat(3, 1fr); } }
.st-tiles > div { background: var(--accent-tint); border-radius: 8px; padding: 10px 12px; }
.st-tiles b { display: block; font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-tiles span { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.st-bars { display: grid; gap: 7px; }
.st-bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; }
.st-bar-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-bar-top i { font-style: normal; color: var(--muted); font-weight: 400; }
.st-bar-track { display: block; height: 6px; border-radius: 3px; background: var(--accent-tint); margin-top: 3px; }
.st-bar-track i { display: block; height: 100%; border-radius: 3px; background: var(--accent-strong); }
.st-spark { width: 100%; height: 110px; display: block; }
.st-spark polyline { fill: none; stroke: var(--accent-strong); stroke-width: 2; vector-effect: non-scaling-stroke; }
.st-spark polygon { fill: var(--accent-tint); }
.st-spark-ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.st-tab { overflow-x: auto; }
.st-tab table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.st-tab th, .st-tab td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-tab th:first-child, .st-tab td:first-child { text-align: left; }
.admin-tech { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 10px; }
.admin-tech summary { cursor: pointer; font-size: .85rem; color: var(--muted); min-height: 34px; }
.admin-tech p { font-size: .82rem; color: var(--muted); }

/* Видео-инструкция «как добраться» в карточке сервисного центра */
.addr-video { margin: 12px 0 0; }
.addr-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 8px;
  background: #33405a; }
.addr-video figcaption { margin-top: 6px; font-size: .82rem; color: var(--muted); }
