/* ===== Tokens (цветовая схema референса: синий + белый, красные акценты) ===== */
:root {
  --blue: #005691;
  --blue-dark: #003f6b;
  --blue-light: #e8f1f8;
  --red: #e2001a;
  --red-dark: #b80016;
  --ink: #16222e;
  --muted: #5b6b78;
  --line: #e2e8ee;
  --bg: #f4f7fa;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 63, 107, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 63, 107, 0.08);
  --container: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* гасит горизонтальный сдвиг, не ломая sticky-шапку */
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(226, 0, 26, .28); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.logo__emblem { height: 44px; width: 44px; display: block; flex: none; }
.logo__text { color: var(--ink); font-weight: 600; }
.logo__text strong { color: var(--red); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--ink);
  background: none; border: none; font-size: 16px; cursor: pointer; font-family: inherit;
}
.nav__link:hover { background: var(--blue-light); color: var(--blue); }
.caret { font-size: 11px; }

.nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .16s ease; columns: 1;
}
.nav__item--has-menu.open .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown li a {
  display: block; padding: 9px 12px; border-radius: 7px; font-size: 15px; color: var(--ink);
}
.nav__dropdown li a:hover { background: var(--blue-light); color: var(--blue); }

.header__contact { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 800; font-size: 18px; color: var(--blue); white-space: nowrap; }
.header__phone:hover { color: var(--blue-dark); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--blue); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; padding: 64px 0 72px;
}
.hero::after {
  content: ""; position: absolute; top: -28%; right: -8%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(159,208,240,.22), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: #9fd0f0; margin-bottom: 14px; }
.hero__title { font-size: 42px; line-height: 1.15; font-weight: 800; margin-bottom: 18px; text-wrap: balance; }
.hero__subtitle { font-size: 18px; color: #dceaf5; margin-bottom: 24px; max-width: 560px; }

.hero__trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; max-width: 560px; }
.hero__trust li { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; display: grid; gap: 3px; }
.hero__trust strong { font-size: 16px; font-weight: 800; color: #fff; }
.hero__trust span { font-size: 13px; color: #cfe3f3; }

.hero__cta { display: flex; gap: 14px; max-width: 560px; }
.hero__cta .btn { flex: 1 1 0; }

/* ===== Lead card ===== */
.lead-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.lead-card__title { font-size: 24px; font-weight: 800; }
.lead-card__subtitle { color: var(--muted); font-size: 15px; margin: 8px 0 20px; }

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field__input {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border .15s ease;
}
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,86,145,.12); }
.field__input::placeholder { color: #9aa8b3; }
select.field__input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b78' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field__opt { color: #9aa8b3; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.lead-form__note { font-size: 12px; color: var(--muted); text-align: center; }
.lead-form__status { font-size: 14px; font-weight: 600; text-align: center; min-height: 1px; }
.lead-form__status.is-ok { color: #1a8a3a; }
.lead-form__status.is-err { color: var(--red); }

/* ===== Benefits ===== */
.benefits { margin-top: -36px; position: relative; z-index: 2; }
.benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit { display: flex; align-items: flex-start; gap: 16px; background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.benefit__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center;
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit__text h3 { font-size: 17px; margin-bottom: 5px; }
.benefit__text p { font-size: 14px; color: var(--muted); }

/* ===== Sections ===== */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title { font-size: 32px; font-weight: 800; color: var(--ink); }
.section-subtitle { color: var(--muted); font-size: 17px; margin-top: 10px; }

/* ===== Categories ===== */
.categories__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px;
  display: flex; flex-direction: column;
}
.cat-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cat-card__icon {
  flex: none; width: 86px; height: 86px; border-radius: 50%;
  background: #fff; border: 3px solid #d6e6f3; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; overflow: hidden;
}
.cat-card__icon img { width: 76px; height: 76px; object-fit: contain; display: block; }
.cat-card__title { font-size: 21px; font-weight: 800; }
.cat-card__list { display: grid; gap: 9px; margin-bottom: 20px; }
.cat-card__list li { position: relative; padding-left: 26px; color: #34424e; font-size: 15px; }
.cat-card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blue-light); border: 2px solid var(--blue);
}
.cat-card__cta { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.cat-card__cta span { color: var(--muted); font-size: 14px; }

/* ===== How ===== */
.how { background: var(--white); }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how__step { background: var(--bg); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.how__num { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; font-weight: 800; }
.how__step h3 { font-size: 19px; margin-bottom: 8px; }
.how__step p { color: var(--muted); font-size: 15px; }

/* ===== Prices ===== */
.prices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.price-card h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.price-card__value { font-size: 30px; font-weight: 800; color: var(--blue); margin: 8px 0 4px; }
.price-card__note { font-size: 14px; color: var(--muted); }
.prices__cta { text-align: center; margin-top: 36px; }

/* ===== Footer ===== */
.footer { background: var(--blue-dark); color: #cfe0ee; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.logo--footer .logo__text, .logo--footer .logo__text strong { color: #fff; }
.footer__about { font-size: 14px; margin-top: 14px; max-width: 360px; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer__phone { display: block; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer__phone:hover { color: #9fd0f0; }
.footer__links li a { display: block; padding: 4px 0; font-size: 14px; }
.footer__links li a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer__disclaimer { font-size: 12px; color: #9fb6c9; margin-bottom: 8px; }
.footer__copy { font-size: 13px; color: #9fb6c9; }

/* ===== Reviews ===== */
.reviews { background: var(--bg); }

/* карусель: стрелки + viewport + трек (одинаково на десктопе и мобиле) */
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel__viewport { flex: 1; min-width: 0; overflow: hidden; }
.carousel__track {
  --per: 3; --gap: 22px;
  display: flex; gap: var(--gap);
  transition: transform .4s ease; will-change: transform;
}
/* все карточки в одном flex-ряду -> автоматически равная высота */
.carousel__track .review { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
.carousel__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--blue);
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.carousel__arrow:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.carousel__arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }

.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 13px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__head > div { min-width: 0; }
.review__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c, var(--blue)); color: #fff; font-weight: 800; font-size: 18px;
  display: grid; place-items: center; text-transform: uppercase;
}
.review__name { font-weight: 700; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.review__meta { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.review__stars { color: #ffb400; font-size: 16px; letter-spacing: 3px; }
.review__text { color: #34424e; font-size: 15px; line-height: 1.6; flex: 1; }
.review__badge {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: #1a8a3a;
  background: #e6f6ec; border-radius: 999px; padding: 5px 12px;
}

/* ===== Stats ===== */
.stats { background: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 28px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat__value { display: block; font-size: 38px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat__label { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ===== Brands ===== */
.brands { background: var(--white); padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands__title { text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.brands__subtitle { text-align: center; color: var(--muted); font-size: 15px; max-width: 640px; margin: 0 auto 22px; }
.brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.brands__list li { font-weight: 800; font-size: 18px; color: var(--blue); background: var(--blue-light); border-radius: 999px; padding: 9px 22px; white-space: nowrap; }

/* ===== Categories note ===== */
.categories__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ===== Zone ===== */
.zone { background: var(--white); }
.zone__card { max-width: 860px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.zone__card p { color: #34424e; font-size: 16px; }
.zone__card p + p { margin-top: 12px; }
.zone__filter { color: var(--muted); font-size: 14px; }

/* ===== Utilities ===== */
.only-mobile { display: none; }

/* ===== FAB ===== */
.fab { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; place-items: center; box-shadow: 0 8px 22px rgba(226,0,26,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.fab svg { width: 26px; height: 26px; }

/* ===== Виджет обратного звонка ===== */
.cb-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.cb-modal[hidden] { display: none; }
.cb-modal__overlay { position: absolute; inset: 0; background: rgba(8, 30, 50, .55); }
.cb-modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; animation: cb-pop .2s ease;
}
@keyframes cb-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.cb-modal__close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.cb-modal__close:hover { color: var(--ink); }
.cb-modal__title { font-size: 22px; font-weight: 800; padding-right: 24px; }
.cb-modal__text { color: var(--muted); font-size: 15px; margin: 8px 0 18px; }
.cb-form { display: grid; gap: 12px; }
.cb-form__status { font-size: 14px; font-weight: 600; text-align: center; min-height: 1px; }
.cb-form__status.is-ok { color: #1a8a3a; }
.cb-form__status.is-err { color: var(--red); }
.cb-form__note { font-size: 12px; color: var(--muted); text-align: center; }

/* ===== Motion: появление при скролле + подъём карточек ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.benefit, .cat-card, .price-card, .how__step, .stat, .review {
  transition: transform .22s ease, box-shadow .22s ease, opacity .6s ease;
}
.benefit:hover, .cat-card:hover, .price-card:hover, .how__step:hover, .stat:hover, .review:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .benefit:hover, .cat-card:hover, .price-card:hover, .how__step:hover, .stat:hover, .review:hover { transform: none; box-shadow: var(--shadow-sm); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { --per: 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header__contact .btn { display: none; }
  .burger { display: flex; }
  .header__contact { margin-left: auto; }
  .header__inner { gap: 14px; }
  .logo { font-size: 18px; }
  .header__phone { font-size: 15px; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; margin: 0;
  }
  .nav.is-open .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; }
  .hero__title { font-size: 32px; }
  .categories__grid, .how__steps, .prices__grid, .benefits__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  /* отзывы: одна карточка во всю ширину, стрелки по центру снизу */
  .carousel { display: block; position: relative; padding-bottom: 56px; }
  .carousel__track { --per: 1; --gap: 14px; }
  .carousel__arrow { position: absolute; bottom: 0; width: 42px; height: 42px; font-size: 24px; }
  .carousel__arrow--prev { right: calc(50% + 7px); }
  .carousel__arrow--next { left: calc(50% + 7px); }
  .footer__inner { grid-template-columns: 1fr; }
  .fab { display: grid; }
  .only-mobile { display: inline-flex; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; }
  section { padding: 48px 0; }
  .brands__list li { font-size: 16px; padding: 8px 16px; }
  .zone__card { padding: 22px 20px; }
}
@media (max-width: 460px) {
  .benefits__grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 30px; }
  .hero__cta .btn { padding: 14px 12px; font-size: 15px; }
  .container { padding: 0 14px; }
  .header__inner { gap: 10px; }
  .header__phone { font-size: 14px; }
}

/* ===== Попап «Вызвать мастера» с диагностикой ===== */
.dm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.dm[hidden] { display: none; }
.dm__overlay { position: absolute; inset: 0; background: rgba(8, 30, 50, .55); }
.dm__card {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; animation: cb-pop .2s ease;
}
.dm__close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.dm__close:hover { color: var(--ink); }
.dm__title { font-size: 22px; font-weight: 800; padding-right: 24px; }
.dm__sub { color: var(--muted); font-size: 15px; margin: 8px 0 20px; }

.dm__step-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); margin: 0 0 14px; font-size: 16px;
}
.diag__step-num {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* фото-карточки техники */
.diag__techs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.diag__tech {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 14px 8px; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.diag__tech:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.diag__tech.is-active { border-color: var(--blue); background: var(--blue-light); }
.diag__tech-img { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.diag__tech-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.diag__tech-name { font-weight: 600; font-size: 14px; color: var(--ink); text-align: center; line-height: 1.25; }

/* чипы поломок — аккуратная сетка 2 колонки, как выбираемый список */
.diag__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diag__chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; line-height: 1.3; text-align: left;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.diag__chip::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.diag__chip:hover { border-color: var(--blue); }
.diag__chip.is-active { border-color: var(--blue); background: var(--blue-light); }
.diag__chip.is-active::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.diag__chip--other { grid-column: 1 / -1; border-style: dashed; color: var(--muted); }

/* шаг 2 и 3: заблокированы/скрыты до выбора предыдущего */
.dm__sym { margin-top: 22px; }
.dm__sym--locked { opacity: .4; pointer-events: none; }
.dm__finish { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; display: none; }
.dm__finish.is-on { display: block; animation: cb-pop .25s ease; }
.dm__solution {
  background: var(--blue-light); border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--ink); font-size: 15px; margin-bottom: 16px; line-height: 1.55;
}
.dm__solution b { color: var(--blue); }
.dm__solution-label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--blue); font-weight: 700; margin-bottom: 4px;
}
.dm__form { display: grid; gap: 12px; }
.dm__note { font-size: 12px; color: var(--muted); text-align: center; }
.dm__status { font-size: 14px; font-weight: 600; text-align: center; min-height: 1px; }
.dm__status.is-ok { color: #1a8a3a; }
.dm__status.is-err { color: var(--red); }

/* вся карточка кликабельна -> открывает попап */
.cat-card { cursor: pointer; }

/* «живость» кнопки в карточках: стрелка едет на ховер + мягкая пульсация,
   чтобы взгляд цеплялся и попап не выглядел мёртвым */
.cat-card__cta .btn--accent { position: relative; animation: cta-breathe 2.8s ease-in-out infinite; }
.cat-card__cta .btn--accent .cta-arrow { display: inline-block; color: #fff; transition: transform .18s ease; }
.cat-card__cta .btn--accent:hover .cta-arrow { transform: translateX(4px); }
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 0, 26, 0); }
  50% { box-shadow: 0 0 0 6px rgba(226, 0, 26, .10); }
}

@media (max-width: 560px) {
  .dm__card { padding: 24px 18px; }
  .diag__tech { padding: 10px 6px; }
  .diag__tech-img { width: 60px; height: 60px; }
  .diag__tech-name { font-size: 12.5px; }
  .diag__chips { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card__cta .btn--accent { animation: none; }
}
