/* ==========================================================================
   tpl-service.css — Чистовой модуль шаблона «Ремонт и обслуживание окон» (v3)
   Включает: Диагностику, Калькулятор сметы, Анти-обман, 18 брендов,
   Штатных мастеров, Кейсы «Было -> Стало» и 10 округов Москвы
   ========================================================================== */

.diag-box > *, .diag-symptoms > *, .addons-grid > *,
.rcalc-layout > *, .rcalc-profiles > *, .rcalc-checks > *, .rcalc-bottom > *,
.honest-grid > *, .vs-replace-bar > *, .brand-matrix > *,
.masters-grid > *, .ba-grid > *, .districts-grid > * {
  min-width: 0;
}

.hdr__nav a.is-current-nav {
  color: var(--emerald);
}

.kit-collage img {
  background: #FFFFFF;
}

/* ---------- 1. Калибровка галереи и выравнивание колонок в Первом экране ---------- */
@media (min-width: 981px) {
  .p-hero__grid {
    align-items: stretch;
  }

  .p-gal {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .p-gal__stage {
    flex: 1;
    min-height: 380px;
  }
}

.p-thumb {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-width: 2px;
  border-radius: 15px;
}

.p-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px #FFFFFF;
  pointer-events: none;
  z-index: 2;
}

.p-thumb img {
  width: 100%;
  height: 82px;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.p-buybox__offer--service .p-buybox__price-head {
  flex-wrap: nowrap;
}

.p-buybox__offer--service .p-buybox__price-line {
  flex-wrap: nowrap;
  gap: 8px;
}

.p-buybox__offer--service .p-buybox__price-line strong {
  font-size: 29px;
  white-space: nowrap;
}

.p-buybox__offer--service .p-buybox__price-line s {
  font-size: 14.5px;
  white-space: nowrap;
}

/* ---------- 2. Панель 12 подуслуг ремонта окон (ровная сетка 6×2 на десктопе) ---------- */
.svc-tags-bar {
  position: relative;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}

.svc-tags-bar__lbl {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.svc-tags-bar__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.svc-tags-bar__list a {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.16s var(--ease);
}

.svc-tags-bar__list a:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #FFFFFF;
}

.svc-tags-bar__list a.is-promo-tag {
  background: var(--sage);
  border-color: var(--sage-border);
  color: var(--sage-ink);
  font-weight: 700;
}

.svc-tags-bar__list a.is-promo-tag:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

/* ---------- 3. Интерактивная диагностика поломки по 6 симптомам ---------- */
.diag-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.diag-symptoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.diag-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.18s var(--ease);
}

.diag-btn:hover {
  border-color: #B4C1D3;
  transform: translateY(-2px);
}

.diag-btn__num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
}

.diag-btn b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}

.diag-btn small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.38;
  color: var(--muted);
}

.diag-btn.is-active {
  background: #FFFFFF;
  border-color: var(--emerald);
  box-shadow: 0 10px 26px rgba(14, 124, 82, 0.13), 0 0 0 1px var(--emerald);
}

.diag-btn.is-active .diag-btn__num {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

.diag-btn.is-active b {
  color: var(--sage-ink);
}

.diag-result {
  scroll-margin-top: 86px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.diag-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.diag-result__time {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.diag-result h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.diag-result__block {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 13px 16px;
}

.diag-result__block--sage {
  background: #F2FAF6;
  border-color: var(--sage-border);
}

.diag-result__block small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.diag-result__block--sage small {
  color: var(--emerald);
}

.diag-result__block p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
}

.diag-result__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.diag-result__price span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.diag-result__price strong {
  display: block;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Витрина услуг + Ровные карточки дооснащения за 1 визит ---------- */
.p-card__stage--photo {
  padding: 0;
  background: #F8FAFC;
}

.p-card__stage--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card__stage--photo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.p-card:hover .p-card__stage--photo img {
  transform: scale(1.05);
}

.addons-box {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 26px 28px;
}

.addons-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.addons-box__head h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.addons-box__head small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.addon-card {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.addon-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

.addon-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.addon-card__tag {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.addon-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.26;
  min-height: 2.52em;
  color: var(--ink);
}

.addon-card h4 a:hover {
  color: var(--emerald);
}

.addon-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted-2);
}

.addon-card__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.addon-card__foot strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 5. Онлайн-калькулятор сметы ремонта окон ---------- */
.rcalc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 20px;
  align-items: stretch;
}

.rcalc-card {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.rcalc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rcalc-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rcalc-prof {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.rcalc-prof b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.rcalc-prof small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.rcalc-prof:hover {
  border-color: var(--emerald);
  background: #FFFFFF;
}

.rcalc-prof.is-active {
  background: var(--sage);
  border-color: var(--emerald);
}

.rcalc-prof.is-active b {
  color: var(--sage-ink);
}

.rcalc-prof.is-active small {
  color: #145B3E;
}

.rcalc-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rcalc-check {
  position: relative;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s var(--ease);
}

.rcalc-check input,
.rcalc-combo input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rcalc-check__box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  border: 1.5px solid #B8C4D4;
  background: #FFFFFF;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.16s var(--ease);
}

.rcalc-check__box svg {
  width: 13px;
  height: 13px;
}

.rcalc-check__txt {
  flex: 1;
  min-width: 0;
}

.rcalc-check__txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.rcalc-check__txt small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.rcalc-check__price {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rcalc-check:hover {
  border-color: #B4C1D3;
  background: #FFFFFF;
}

.rcalc-check.is-checked,
.rcalc-check:has(input:checked) {
  background: #F3FBF7;
  border-color: var(--emerald);
}

.rcalc-check.is-checked .rcalc-check__box,
.rcalc-check:has(input:checked) .rcalc-check__box,
.rcalc-combo:has(input:checked) .rcalc-check__box {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #FFFFFF;
}

.rcalc-check.is-checked .rcalc-check__price,
.rcalc-check:has(input:checked) .rcalc-check__price {
  color: var(--sage-ink);
}

.rcalc-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-top: 4px;
}

.rcalc-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcalc-stepper {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pcalc-stepper button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(17, 19, 23, 0.06);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.pcalc-stepper button:hover {
  background: var(--emerald);
  color: #FFFFFF;
}

.pcalc-stepper input {
  width: 46px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  outline: none;
}

.rcalc-combo {
  position: relative;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px dashed var(--sage-border);
  background: #F4FBF7;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.rcalc-combo:hover {
  border-color: var(--emerald);
}

.rcalc-combo b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sage-ink);
  line-height: 1.25;
}

.rcalc-combo small {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.rcalc-summary {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.rcalc-summary .pill {
  align-self: flex-start;
}

.rcalc-summary h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.pcalc-dl {
  margin: 0;
  display: grid;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 16px;
}

.pcalc-dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}

.pcalc-dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pcalc-dl dt {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.pcalc-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  line-height: 1.32;
}

.pcalc-dl dd.is-free {
  color: var(--emerald);
}

.pcalc-total {
  margin-top: auto;
  background: #F4FBF7;
  border: 1px solid var(--sage-border);
  border-radius: 18px;
  padding: 16px 18px;
}

.pcalc-total > span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.pcalc-total__nums {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.pcalc-total__nums strong {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pcalc-total__nums s {
  font-size: 15px;
  font-weight: 600;
}

.pcalc-total > small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.35;
}

#rcalcOrderBtn {
  padding: 0 18px;
  font-size: 14.5px;
}

.pcalc-msgr > small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}

.pcalc-msgr .calc-side__msgr {
  margin-top: 0;
}

/* ---------- 6. Защита от накруток + Однострочный блок выгоды ремонта ---------- */
.honest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.honest-card {
  border-radius: var(--r-card);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.honest-card--warn {
  background: #FAFBFB;
  border: 1px solid #E8D7D7;
}

.honest-card--good {
  background: #F4FBF7;
  border: 1.5px solid var(--sage-border);
  box-shadow: 0 14px 36px rgba(14, 124, 82, 0.08);
}

.honest-card__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.honest-card__badge--warn {
  background: #FEE2E2;
  color: #B91C1C;
}

.honest-card__badge--good {
  background: var(--emerald);
  color: #FFFFFF;
}

.honest-card__head h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.honest-list {
  display: grid;
  gap: 12px;
}

.honest-list li {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.honest-ico {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.honest-ico svg {
  width: 14px;
  height: 14px;
}

.honest-list--bad .honest-ico {
  background: #FEE2E2;
  color: #DC2626;
}

.honest-list--good .honest-ico {
  background: var(--sage);
  color: var(--emerald);
}

.honest-list b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.honest-list small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--muted-2);
}

/* Плашка сравнения со стоимостью нового окна */
.vs-replace-bar {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: center;
}

.vs-replace-bar__text .pill {
  margin-bottom: 8px;
}

.vs-replace-bar__text h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.vs-replace-bar__text p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.vs-replace-bar__cta {
  margin-top: 14px;
}

.vs-replace-bar__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.vs-mini {
  border-radius: 18px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.vs-mini--muted {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  justify-content: flex-start;
}

.vs-mini--emerald {
  background: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(14, 124, 82, 0.22);
}

.vs-mini small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.vs-mini--emerald small {
  color: rgba(255, 255, 255, 0.84);
}

.vs-mini strong {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vs-mini--muted strong {
  color: var(--muted-2);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.55);
}

.vs-mini span {
  font-size: 12px;
  line-height: 1.38;
  color: var(--muted-2);
}

.vs-mini--emerald span {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- 7. Матрица 18 брендов профилей и фурнитуры ---------- */
.apertures-grid--white .aperture-card {
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.brand-matrix {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.brand-matrix__group {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.brand-matrix__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.brand-matrix__title b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.brand-matrix__title small {
  font-size: 12px;
  color: var(--muted);
}

.brand-matrix__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.brand-chip {
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.brand-chip b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: var(--ink);
  line-height: 1.22;
  white-space: nowrap;
}

.brand-chip small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.brand-chip:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.brand-chip:hover b,
.brand-chip:hover small {
  color: #FFFFFF;
}

/* ---------- 8. Правая колонка прайса + Штатные инженеры (ровные теги в 1 ряд) ---------- */
.price-aside--tinted {
  background: var(--surface);
  box-shadow: none;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.price-aside--tinted ul {
  gap: 10px;
}

.price-aside--tinted .btn--block {
  margin-top: auto;
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.master-card {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.master-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(17, 19, 23, 0.08);
}

.master-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.master-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0E7C52 0%, #095236 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(14, 124, 82, 0.22);
}

.master-avatar--slate {
  background: linear-gradient(135deg, #334155 0%, #1E293B 100%);
  box-shadow: 0 8px 18px rgba(30, 41, 59, 0.2);
}

.master-avatar--amber {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.master-avatar--wood {
  background: linear-gradient(135deg, #7C5335 0%, #4E321D 100%);
  box-shadow: 0 8px 18px rgba(78, 50, 29, 0.2);
}

.master-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.master-avatar__dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16A34A;
  border: 2.5px solid #FFFFFF;
}

.master-card__id {
  min-width: 0;
}

.master-card__pass {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.master-card__id b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.master-card__id small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.master-card__specs {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow: hidden;
}

.master-card__specs span {
  height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.master-card__stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: var(--surface);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.master-card__stats b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.master-card__stats small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

/* ---------- 9. Подвал заглавного кейса + Карточки «Было → Стало» в ₽ ---------- */
.case-spotlight__foot--nowrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.case-spotlight__foot--nowrap .case-spotlight__meta {
  font-size: 13px;
  white-space: nowrap;
}

.case-spotlight__foot--nowrap .btn {
  flex-shrink: 0;
}

.ba-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ba-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ba-card__media {
  position: relative;
  min-height: 220px;
  background: #E2E8F0;
  overflow: hidden;
}

.ba-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ba-card:hover .ba-card__media img {
  transform: scale(1.05);
}

.ba-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ba-card__body h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.ba-pair {
  display: grid;
  gap: 7px;
}

.ba-pair__row {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted-2);
}

.ba-pair__row span {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 6px;
}

.ba-pair__row.is-before span {
  background: #FEE2E2;
  color: #B91C1C;
}

.ba-pair__row.is-after {
  border-color: var(--sage-border);
  background: #F7FCFA;
  color: var(--ink-soft);
}

.ba-pair__row.is-after span {
  background: var(--sage);
  color: var(--sage-ink);
}

.ba-metrics {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ba-metrics span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ba-metrics strong {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- 10. Ровные шапки отзывов + Сетка 10 округов Москвы ---------- */
.review__top > div {
  min-width: 0;
}

.review__level {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-leave-bar {
  margin-top: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.reviews-leave-bar--tinted {
  background: var(--surface);
  box-shadow: none;
}

.reviews-leave-bar--tinted .btn--light {
  background: #FFFFFF;
}

.reviews-leave-bar__info .verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.reviews-leave-bar__info .verified svg {
  width: 18px;
  height: 18px;
  color: #1D6BF3;
}

.reviews-leave-bar__info small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.districts-box {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 22px 24px;
}

.districts-box__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.districts-box__head b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.districts-box__head span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--emerald);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.district-btn {
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid var(--line-soft);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.district-btn b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.district-btn small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.district-btn:hover {
  border-color: var(--emerald);
  background: var(--sage);
  transform: translateY(-2px);
}

.district-btn:hover b {
  color: var(--sage-ink);
}

.district-btn:hover small {
  color: #145B3E;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ШАБЛОНА РЕМОНТА ОКОН (Планшеты и Смартфоны)
   ========================================================================== */
@media (max-width: 1150px) {
  .svc-tags-bar__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .diag-box,
  .rcalc-layout,
  .honest-grid,
  .vs-replace-bar,
  .brand-matrix,
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .addons-grid,
  .masters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .districts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .p-thumb {
    border-radius: 12px;
  }

  .p-thumb::after {
    box-shadow: inset 0 0 0 2px #FFFFFF;
  }

  .p-thumb img {
    height: 60px;
  }

  .p-buybox__offer--service .p-buybox__price-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .p-buybox__offer--service .p-buybox__price-line strong {
    font-size: 25px;
  }

  /* 12 подуслуг в однострочную свайп-ленту */
  .svc-tags-bar {
    padding: 9px 12px;
    border-radius: 16px;
    gap: 8px;
    overflow: hidden;
  }

  .svc-tags-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(244, 246, 249, 0) 0%, var(--surface) 92%);
  }

  .svc-tags-bar__lbl {
    display: none;
  }

  .svc-tags-bar__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 18px;
    gap: 6px;
  }

  .svc-tags-bar__list::-webkit-scrollbar {
    display: none;
  }

  .svc-tags-bar__list a {
    flex-shrink: 0;
    padding: 0 11px;
    overflow: visible;
  }

  /* Компактные строчные кнопки симптомов на смартфоне */
  .diag-symptoms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .diag-btn {
    padding: 10px 10px;
    min-height: 54px;
    border-radius: 15px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .diag-btn__num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    font-size: 12px;
  }

  .diag-btn b {
    font-size: 12px;
    line-height: 1.22;
  }

  .diag-btn small {
    display: none;
  }

  .diag-result {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .diag-result h3 {
    font-size: 17.5px;
  }

  .diag-result__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .diag-result__foot .btn {
    width: 100%;
  }

  /* Дооснащение 2×2 с однострочным подвалом (цена + кнопка) */
  .addons-box {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .addons-box__head h3 {
    font-size: 18px;
  }

  .addons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .addon-card {
    padding: 13px 11px;
    border-radius: 16px;
  }

  .addon-card__tag {
    display: none;
  }

  .addon-card h4 {
    font-size: 13.5px;
    min-height: 2.5em;
  }

  .addon-card p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .addon-card__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .addon-card__foot strong {
    font-size: 13.5px;
  }

  .addon-card__foot .btn {
    width: auto;
    height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  /* Калькулятор ремонта на смартфоне */
  .rcalc-card,
  .rcalc-summary {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .rcalc-profiles,
  .rcalc-checks,
  .rcalc-bottom {
    grid-template-columns: 1fr;
  }

  .rcalc-prof {
    padding: 11px 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .rcalc-prof small {
    margin-top: 0;
  }

  .rcalc-qty-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    padding: 7px 8px 7px 14px;
  }

  .rcalc-qty-wrap .pcalc-stepper {
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .pcalc-total__nums strong {
    font-size: 27px;
  }

  #rcalcOrderBtn {
    padding: 0 14px;
    font-size: 13.5px;
    gap: 8px;
  }

  /* Анти-обман и выгода ремонта на смартфоне */
  .honest-card,
  .vs-replace-bar {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .honest-card__head h3,
  .vs-replace-bar__text h3 {
    font-size: 18px;
  }

  .vs-replace-bar__cta {
    width: 100%;
  }

  .vs-replace-bar__cards {
    grid-template-columns: 1fr;
  }

  /* 18 брендов в просторной 2-колоночной сетке + широкая 9-я плашка */
  .brand-matrix__group {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .brand-matrix__pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .brand-matrix__pills > :nth-child(9) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand-chip {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .brand-chip b {
    font-size: 12.5px;
  }

  .brand-chip small {
    font-size: 12px;
  }

  /* Видимость всех 3 табов прайс-листа на узком экране */
  #price .tabs .tab {
    padding: 0 12px;
    font-size: 12.5px;
  }

  /* Свайп-карусели для 4 штатных мастеров и 4 кейсов «Было -> Стало» */
  .masters-grid,
  .ba-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 4px;
  }

  .masters-grid::-webkit-scrollbar,
  .ba-grid::-webkit-scrollbar {
    display: none;
  }

  .master-card,
  .ba-card {
    scroll-snap-align: start;
  }

  .case-spotlight__foot--nowrap {
    flex-wrap: wrap;
  }

  .case-spotlight__foot--nowrap .case-spotlight__meta {
    white-space: normal;
  }

  .case-spotlight__foot--nowrap .btn {
    width: 100%;
  }

  .ba-card {
    grid-template-columns: 1fr;
  }

  .ba-card__media {
    min-height: 172px;
  }

  .ba-card__body {
    padding: 15px 14px;
  }

  /* 10 округов Москвы в 2 колонки на смартфоне */
  .districts-box {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .districts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .district-btn {
    padding: 10px 11px;
  }

  .district-btn b {
    font-size: 13px;
  }

  .district-btn small {
    font-size: 12px;
  }

  .reviews-leave-bar {
    padding: 16px;
    border-radius: 20px;
  }

  .reviews-leave-bar .btn {
    width: 100%;
  }
}
/* --- Patch v3.1: Final Audit Refinements --- */
.brand-chip {
  overflow: hidden;
}

.brand-chip b,
.brand-chip small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.vs-mini--emerald {
  width: 100%;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

button.vs-mini--emerald:hover {
  background: var(--emerald-hover, #0B6643);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 124, 82, 0.28);
}

.vs-mini__cta {
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sage-ink);
  background: #FFFFFF;
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(8, 84, 55, 0.18);
}

.p-card__unit {
  font-style: normal;
}

.ba-card {
  cursor: pointer;
}

.ba-card:hover {
  border-color: #B8C4D4;
}

.ba-metrics strong {
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.ba-card:hover .ba-metrics strong {
  background: var(--emerald);
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .svc-cards-grid .p-card {
    padding: 10px;
  }

  .svc-cards-grid .p-card__foot--dual {
    gap: 5px;
    flex-wrap: nowrap;
  }

  .svc-cards-grid .p-card__price .now {
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }

  .svc-cards-grid .p-card__price .now small {
    font-size: 12px;
    margin-right: 2px;
  }

  .svc-cards-grid .p-card__unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }

  .svc-cards-grid .p-card__btns .btn--xs {
    height: 30px;
    padding: 0 8.5px;
    font-size: 12px;
  }

  .diag-btn {
    padding: 9px 8.5px;
    gap: 6.5px;
  }

  .diag-btn__num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 12px;
  }

  .diag-btn b {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}
/* --- Patch v4: Stage 1 final audit (SVG schemes, masters, certs, micro-UX) --- */

/* Инженерная SVG-схема главного слайда Hero */
.p-gal__stage--scheme {
  background: #F8FAFC;
}

.p-hero-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p-hero-illustration use {
  pointer-events: none;
}

/* Иконки симптомов в самодиагностике */
.diag-btn__ico {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s var(--ease);
}

.diag-btn__ico svg {
  width: 18px;
  height: 18px;
}

.diag-btn.is-active .diag-btn__ico {
  background: var(--emerald);
  color: #FFFFFF;
}

/* Векторные портреты-бейджи штатных инженеров */
.master-avatar__fig {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.master-avatar__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  z-index: 2;
}

.master-avatar__badge svg {
  width: 11px;
  height: 11px;
}

/* Белая секция мастеров: карточки получают светлый фон */
.masters-grid--tinted .master-card {
  background: var(--surface);
  box-shadow: none;
}

.masters-grid--tinted .master-card__stats {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
}

.masters-grid--tinted .master-card__specs span {
  background: #FFFFFF;
}

/* Карточки «Было → Стало»: SVG-схемы и явный призыв */
.ba-card__media--scheme {
  background: #F8FAFC;
}

.ba-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-card__cta {
  flex-basis: 100%;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ba-card:hover .ba-card__cta {
  text-decoration: underline;
}

/* Стрелка-аффорданс в карточках округов Москвы */
.district-btn {
  position: relative;
  padding-right: 26px;
}

.district-btn::after {
  content: "→";
  position: absolute;
  top: 11px;
  right: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: var(--emerald);
}

/* FAQ: левая колонка intro + ask без пустой дыры */
.faq__side {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.faq__intro,
.faq__ask {
  grid-column: auto;
  grid-row: auto;
  height: auto;
}

.faq__list {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* Усиленные макеты сертификатов (гербовая шапка, плашки, печать ОТК) */
.cert-sheet-mock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #F8FAFC, #EEF2F7);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.cert-sheet-mock__emblem {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sage), #CFF0DF);
  color: var(--emerald);
  box-shadow: inset 0 0 0 1px var(--sage-border);
}

.cert-sheet-mock strong {
  font-size: 12.5px;
}

.cert-sheet-mock em {
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 12px;
}

.cert-sheet-mock__lines {
  gap: 8px;
  margin-top: 18px;
}

.cert-sheet-mock__lines i {
  height: 6px;
  background: #D3DCE8;
}

.cert-sheet-mock__lines i:nth-child(1) {
  width: 58%;
  background: #C3CEDA;
}

.cert-sheet-mock__num {
  font-size: 12px;
  color: var(--muted-2);
}

.cert-sheet-mock__stamp {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(29, 107, 243, 0.6);
  color: rgba(29, 107, 243, 0.85);
  font-size: 12px;
  box-shadow: inset 0 0 0 2px rgba(29, 107, 243, 0.14);
  transform: rotate(-14deg);
}

/* Воздух между ценой и кнопкой «Подробнее» в карточках услуг (десктоп) */
@media (min-width: 768px) {
  .svc-cards-grid .p-card__foot--dual {
    gap: 14px;
  }
}

/* Градиентная подсказка свайпа для скроллящихся полос вкладок (мобильные) */
@media (max-width: 767px) {
  #price .tabs,
  #prodSpecsTabs .tabs,
  #serviceTabs .seo-tabs {
    position: relative;
  }

  #price .tabs::after,
  #prodSpecsTabs .tabs::after,
  #serviceTabs .seo-tabs::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 0;
    bottom: 5px;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(233, 238, 245, 0) 0%, #E9EEF5 92%);
    border-radius: 0 11px 11px 0;
  }

  .diag-btn__num {
    display: none;
  }

  .diag-btn__ico {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
  }

  .diag-btn__ico svg {
    width: 14px;
    height: 14px;
  }
}

/* Переключатели способа связи в сетку 2×2 на узких экранах */
/* channels keep 3 columns down to 340px */

@media (max-width: 1100px) {
  .faq__side {
    grid-column: auto;
    grid-row: auto;
    position: static;
    align-self: auto;
  }
}

/* ===== SEO-PROSE v1 ===== */
/* «Подробно об услуге»: липкое содержание + читаемый текст */
.seo-prose {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-top: 30px;
}
.seo-prose__aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.seo-prose__toc {
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 18px 16px 8px;
}
.seo-prose__toc-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #97A3B4;
  padding: 0 4px 8px;
}
.seo-prose__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: seotoc;
}
.seo-prose__toc-list li {
  margin: 0;
  counter-increment: seotoc;
}
.seo-prose__toc-list a {
  position: relative;
  display: block;
  padding: 8px 4px 8px 30px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid #F1F4F8;
  transition: color .2s;
}
.seo-prose__toc-list li:first-child a { border-top: 0; }
.seo-prose__toc-list a::before {
  content: counter(seotoc, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald);
  opacity: .75;
}
.seo-prose__toc-list a:hover { color: var(--emerald); }
.seo-prose__ask {
  background: linear-gradient(180deg, #E4F4EC 0%, #F4FBF8 100%);
  border-radius: 20px;
  padding: 18px;
}
.seo-prose__ask b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: #085437;
  margin-bottom: 6px;
}
.seo-prose__ask p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #3C6B59;
  margin: 0 0 12px;
}
.seo-prose__ask .btn { width: 100%; justify-content: center; }
.seo-prose__content {
  min-width: 0;
  counter-reset: seoblock;
}
.seo-prose__lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: #3A4150;
  margin: 0 0 4px;
}
.seo-prose__lead ul,
.seo-prose__lead ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.seo-prose__lead li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #525866;
}
.seo-block {
  counter-increment: seoblock;
  padding: 24px 0;
  border-top: 1px solid #EDF1F6;
  scroll-margin-top: 100px;
}
.seo-block:first-child { padding-top: 4px; border-top: 0; }
.seo-block h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 14px;
  scroll-margin-top: 100px;
}
.seo-block h3::before {
  content: counter(seoblock);
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 9px;
  background: #E4F4EC;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
}
.seo-block ul,
.seo-block ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.seo-block li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #525866;
}
.seo-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E4F4EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C52' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.seo-block ol { counter-reset: seolit; }
.seo-block ol li { counter-increment: seolit; }
.seo-block ol li::before {
  content: counter(seolit);
  position: absolute;
  left: 0;
  top: 3px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: #E4F4EC;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
}
.seo-block strong { color: var(--ink); font-weight: 700; }
.seo-block a { color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; }
.seo-block p { font-size: 15.5px; line-height: 1.62; color: #525866; margin: 0 0 10px; }

@media (max-width: 1024px) {
  .seo-prose { grid-template-columns: 1fr; gap: 26px; }
  .seo-prose__aside { position: static; order: -1; }
  .seo-prose__toc-list { columns: 2; column-gap: 22px; }
  .seo-prose__toc-list a { break-inside: avoid; }
  .seo-prose__ask { display: none; }
}
@media (max-width: 640px) {
  .seo-prose__toc-list { columns: 1; }
  .seo-block { padding: 20px 0; }
  .seo-block h3 { font-size: 17.5px; gap: 10px; }
  .seo-block h3::before { width: 24px; height: 24px; font-size: 12px; border-radius: 8px; }
  .seo-block li, .seo-block p { font-size: 15px; }
}
/* пустые секции-подзаголовки (без абзацев) */
.seo-block--group { counter-increment: none; padding-bottom: 4px; }
.seo-block--group h3 { font-size: 17px; color: var(--muted); margin-bottom: 6px; }
.seo-block--group h3::before { display: none; }
.seo-block--group + .seo-block { border-top: 0; padding-top: 0; }
/* ===== /SEO-PROSE v1 ===== */

/* ==========================================================================
   МОБИЛЬНЫЙ ФИКС FAQ (перекрывает desktop-раскладку выше)
   ========================================================================== */
@media (max-width: 1100px) {
  .faq {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .faq__intro,
  .faq__list,
  .faq__ask,
  .faq__side {
    grid-column: 1 !important;
    grid-row: auto !important;
    position: static !important;
    height: auto !important;
    width: 100% !important;
  }

  .faq__list {
    align-content: start;
  }
}
