/* ============================================================
   Базовый CSS прототипов lider-aqua.ru (без внешних фреймворков)
   Цвета/шрифты/скругления задаются в theme-N.css через переменные
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #175aa7;
  --primary-d: #0f3f7c;
  --accent: #f59f00;
  --bg: #ffffff;
  --bg-alt: #f2f6fa;
  --text: #232a31;
  --muted: #6b7784;
  --border: #dde4ea;
  --ok: #2f9e44;
  --radius: 6px;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 2px 10px rgba(20, 40, 70, .08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; }
h1 { font-size: 34px; margin-bottom: 14px; }
h2 { font-size: 26px; margin-bottom: 10px; }
h3 { font-size: 19px; }
p  { margin-bottom: 10px; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 20px; margin-bottom: 10px; }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 46px 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: 26px; }
.sec-head p { color: var(--muted); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  font-family: var(--font-body);
}
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn-primary { background: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.hero .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: block; width: 100%; }

/* ---------- Бейджи / ярлыки ---------- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--primary);
}
.b-hit { background: #e8590c; }
.b-sale { background: #d6336c; }
.b-new { background: #2f9e44; }

.old-price { text-decoration: line-through; color: var(--muted); font-size: 14px; }

/* ---------- Верхняя строка (топбар) ---------- */
.topbar { background: var(--primary-d); color: rgba(255,255,255,.85); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: #fff; }
.topbar .tb-group { display: flex; gap: 18px; flex-wrap: wrap; }
.city-sel { cursor: pointer; border-bottom: 1px dashed rgba(255,255,255,.5); }
.socials { display: flex; gap: 8px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; font-size: 11px; font-weight: 700; text-decoration: none;
}

/* ---------- Шапка ---------- */
.header-main { background: #fff; border-bottom: 1px solid var(--border); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.logo-block { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 20px; font-family: var(--font-head);
}
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--text); }
.logo-name span { color: var(--primary); }
.logo-desc { font-size: 12.5px; color: var(--muted); max-width: 210px; }
.head-contacts { display: flex; align-items: center; gap: 26px; }
.phones { display: flex; flex-direction: column; gap: 2px; }
.phones a { font-weight: 700; font-size: 17px; color: var(--text); font-family: var(--font-head); white-space: nowrap; }
.phones .small { color: var(--muted); }
.head-addr { font-size: 13.5px; color: var(--muted); max-width: 180px; }
.head-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.head-cta .btn { padding: 10px 20px; }

/* ---------- Навигация ---------- */
.nav { background: var(--primary); position: relative; }
.nav ul { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 13px 15px; color: #fff; font-size: 15px; font-weight: 600;
  text-decoration: none;
}
.nav a:hover, .nav .active a { background: var(--primary-d); }
.nav-tgl { display: none; }
.burger {
  display: none; padding: 12px 20px; color: #fff; font-weight: 700; cursor: pointer;
  font-size: 15px; user-select: none;
}

/* ---------- Hero (первый экран) ---------- */
.hero { background: linear-gradient(160deg, var(--primary-d), var(--primary)); color: #fff; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.hero h1 { color: #fff; }
.hero .sub { font-size: 18px; opacity: .92; margin-bottom: 18px; }
.hero .price-lead { font-size: 30px; font-weight: 800; font-family: var(--font-head); margin-bottom: 6px; }
.hero .price-lead small { font-size: 16px; font-weight: 600; opacity: .85; }
.bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.bullets li { padding-left: 28px; position: relative; }
.bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-side { background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ---------- Полоса доверия ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--border); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.strip-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.strip-item b { display: block; font-size: 15px; }
.strip-item .ico {
  min-width: 34px; height: 34px; border-radius: 50%; background: var(--bg-alt);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}

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

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.card h3 a { color: var(--text); }
.card .price { font-size: 20px; font-weight: 800; font-family: var(--font-head); color: var(--primary); }
.card .price small { color: var(--muted); font-weight: 600; font-size: 13px; }
.card .features { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.card .features li::before { content: "— "; }
.card .btn { margin-top: auto; }

/* ---------- Заглушки изображений ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #e3e9ef, #e3e9ef 12px, #dbe2ea 12px, #dbe2ea 24px);
  border: 1px dashed #b9c4cf; border-radius: var(--radius);
  color: #7b8794; font-size: 13px; text-align: center; padding: 8px;
  width: 100%;
}
.ph-16x9 { aspect-ratio: 16/9; }
.ph-4x3 { aspect-ratio: 4/3; }
.ph-1x1 { aspect-ratio: 1/1; }
.ph-3x2 { aspect-ratio: 3/2; }
.ph-tall { aspect-ratio: 3/4; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg-alt); font-family: var(--font-head); font-size: 14px; }
.table tr:hover td { background: #fafcfe; }
.table .num { font-weight: 700; white-space: nowrap; color: var(--primary); }

/* ---------- Этапы работ ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 18px 16px 74px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
}
.steps h3 { margin-bottom: 4px; }
.steps .dur { color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- Кейсы ---------- */
.case { display: flex; flex-direction: column; gap: 8px; }
.case .where { font-weight: 700; }
.case-params { list-style: none; padding: 0; margin: 0; font-size: 14px; display: grid; gap: 4px; color: var(--muted); }
.case-params li b { color: var(--text); }
.case .cost { font-weight: 800; font-size: 18px; color: var(--primary); font-family: var(--font-head); }

/* ---------- Отзывы ---------- */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.review .text { font-size: 14.5px; }
.review .author { font-weight: 700; font-size: 14px; }
.review .author span { font-weight: 400; color: var(--muted); }
.rev-count { font-size: 14px; color: var(--muted); }
.rev-count b { color: var(--text); }

/* Рейтинг-виджет (заглушка Яндекс.Карт) */
.rating-widget {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.rating-widget .score { font-size: 34px; font-weight: 800; font-family: var(--font-head); color: var(--primary); }
.rating-widget .src { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 12px; font-size: 20px; color: var(--primary); font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; color: var(--muted); margin: 0; }

/* ---------- Формы ---------- */
.form-card .f-title { font-size: 18px; font-weight: 800; font-family: var(--font-head); margin-bottom: 4px; }
.form-card .f-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.form-row { margin-bottom: 11px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: var(--font-body); background: #fff; color: var(--text);
}
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-note a { color: var(--muted); text-decoration: underline; }

/* ---------- CTA-полоса с формой ---------- */
.cta-band { background: var(--primary); color: #fff; }
.cta-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 42px; padding-bottom: 42px; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; }
.cta-band .hero-side { box-shadow: none; }

/* ---------- Калькулятор (статичный макет) ---------- */
.calc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.calc-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.calc-steps span {
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
  background: var(--bg-alt); color: var(--muted);
}
.calc-steps span.on { background: var(--primary); color: #fff; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.calc-total {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px; flex-wrap: wrap;
}
.calc-total .sum { font-size: 24px; font-weight: 800; font-family: var(--font-head); color: var(--primary); }

/* ---------- Таймер акции ---------- */
.timer { display: inline-flex; gap: 8px; align-items: center; background: #fff3bf; color: #86640b; border-radius: var(--radius); padding: 8px 14px; font-weight: 700; font-size: 15px; }
.timer .t-sep { opacity: .5; }

/* ---------- Акция ---------- */
.promo {
  border: 2px dashed var(--accent); border-radius: var(--radius); background: #fff;
  padding: 22px; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.promo h3 { font-size: 21px; }
.promo .prom-price { font-size: 26px; font-weight: 800; font-family: var(--font-head); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; color: #b9c4cf; }

/* ---------- Заголовок внутренней страницы ---------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 30px; }
.page-head .lead { color: var(--muted); max-width: 820px; }

/* ---------- Листинг услуг ---------- */
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.listing-count { font-size: 14px; color: var(--muted); }
.listing-count b { color: var(--text); }
.sort-line { font-size: 14px; color: var(--muted); }
.sort-line b { color: var(--text); }
.cat-intro { max-width: 860px; color: var(--muted); margin-bottom: 24px; }

.subcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.subcat {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.subcat b { font-size: 15.5px; }
.subcat .small { color: var(--muted); }

/* ---------- Блог ---------- */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .ph { border-radius: 0; border-left: none; border-right: none; border-top: none; }
.blog-card .b-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.blog-meta span { display: inline-flex; gap: 4px; align-items: center; }
.blog-card h3 { font-size: 17px; }
.blog-card h3 a { color: var(--text); }
.blog-card .excerpt { font-size: 14px; color: var(--muted); }
.blog-card .more { font-weight: 700; font-size: 14px; margin-top: auto; }
.rubrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.rubrics a {
  padding: 7px 14px; border-radius: 20px; background: var(--bg-alt); color: var(--text);
  font-size: 14px; font-weight: 600;
}
.rubrics a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.rubrics a span { color: var(--muted); font-weight: 400; }
.show-more { text-align: center; margin-top: 28px; }

/* ---------- Статья ---------- */
.article { max-width: 820px; }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.article h2 { font-size: 23px; margin: 26px 0 10px; }
.article h3 { font-size: 18px; margin: 18px 0 8px; }
.article blockquote {
  border-left: 4px solid var(--accent); background: var(--bg-alt);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; font-style: italic;
}
.article blockquote .who { display: block; font-style: normal; font-weight: 700; font-size: 13.5px; margin-top: 8px; color: var(--muted); }
.cta-inline {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; flex-wrap: wrap;
}
.cta-inline b { font-size: 17px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related .blog-card h3 { font-size: 15.5px; }

/* ---------- Эксперты и цифры (тема 3) ---------- */
.expert { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.expert .ph { max-width: 96px; }
.expert b { font-size: 16px; display: block; }
.expert .role { color: var(--muted); font-size: 14px; }
.verified {
  display: flex; gap: 12px; align-items: center; background: #ebfbee; border: 1px solid #b2f2bb;
  border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px;
}
.verified .v-ico { font-size: 20px; }
.verified b { display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 12px; }
.stat .n { font-size: 32px; font-weight: 800; font-family: var(--font-head); color: var(--primary); }
.stat .l { font-size: 13.5px; color: var(--muted); }

/* ---------- Липкая CTA-плашка (тема 2) ---------- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.14); }
.sticky-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.sticky-cta .s-price { font-weight: 800; font-family: var(--font-head); font-size: 17px; }

/* ---------- Поиск по сайту (рекомендованный элемент шапки) ---------- */
.head-search { display: flex; align-self: center; }
.head-search input {
  width: 180px; padding: 10px 12px; font-size: 14px; font-family: var(--font-body);
  border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius);
}
.head-search button {
  border: none; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
  padding: 0 14px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-family: var(--font-body);
}

/* ---------- Плавающий мессенджер ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 24px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #2bb741; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa-float:hover { text-decoration: none; filter: brightness(1.05); }

/* ---------- Подвал ---------- */
.footer { background: #1d2733; color: #c6cdd6; font-size: 14px; margin-top: 50px; }
.footer .f-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; padding: 40px 0 26px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: var(--font-head); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a { color: #c6cdd6; }
.footer a:hover { color: #fff; }
.footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .logo-name { color: #fff; font-size: 19px; }
.footer .f-about { margin-bottom: 14px; }
.footer .f-contacts { display: grid; gap: 7px; }
.footer .f-contacts b { color: #fff; }
.requisites {
  border-top: 1px solid #333f4d; padding: 16px 0; font-size: 12.5px; color: #8e99a6; line-height: 1.6;
}
.f-bottom {
  border-top: 1px solid #333f4d; padding: 16px 0 22px; display: flex; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 13px; color: #8e99a6;
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero .container, .cta-band .container { grid-template-columns: 1fr; }
  .cols-3, .cols-4, .subcats, .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .strip .container { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr 1fr; }
  .footer .f-top { grid-template-columns: 1fr 1fr; }
  .topbar .tb-hide-m { display: none; }
  .head-addr { display: none; }
  .head-search { display: none; }
  /* бургер */
  .burger { display: block; }
  .nav ul { display: none; flex-direction: column; }
  .nav-tgl:checked ~ ul { display: flex; }
  .nav label.burger { display: block; }
}

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .hero .price-lead { font-size: 24px; }
  .cols-2, .cols-3, .cols-4, .subcats, .calc-grid, .related,
  .stats, .strip .container, .footer .f-top { grid-template-columns: 1fr; }
  .head-contacts { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .head-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .sticky-cta .container { flex-wrap: wrap; gap: 8px; }
  .sticky-cta .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .sticky-cta .s-price { font-size: 14px; }
  .sticky-cta { display: block; }
  .wa-float { bottom: 84px; }
  body { padding-bottom: 64px; } /* место под липкую плашку */
  .promo { flex-direction: column; align-items: flex-start; }
}
