/* Базовые переменные темы и общие параметры интерфейса. */
:root {
  --bg: #f5f8f7;
  --card: #fff;
  --ink: #152f42;
  --muted: #5e7380;
  --line: #d9e5e8;
  --accent: #1ea68e;
  --accent-2: #2a7fff;
  --warm: #ffcf66;
  --danger: #f1634c;
  --shadow: 0 24px 60px rgba(21, 47, 66, 0.12);
  --radius: 28px;
  --header-offset: 96px;
}
/* Нормализация и глобальные элементы. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
/* Повторно используемые блоки: контейнеры, кнопки, заголовки секций. */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.section {
  padding: 41px 0;
  scroll-margin-top: var(--header-offset);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.section-head {
  max-width: 790px;
  margin: 0 0 34px;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 36px;
  align-items: end;
  max-width: none;
}
.section-head h2,
.hero h1,
.contacts-page h1,
.reviews-page h1,
.policy h1 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}
.section-head h2 {
  font-size: clamp(31px, 4vw, 52px);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.05em;
}
.section-head p,
.hero__lead,
.page-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 14px 0 0;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 26px rgba(30, 166, 142, 0.26);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #158f7a;
}
.btn--ghost {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
/* Шапка сайта и навигация (десктоп/мобайл). */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 247, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.topbar.is-scrolled {
  box-shadow: 0 8px 28px rgba(21, 47, 66, 0.14);
}
.topbar__line {
  background: var(--ink);
  color: white;
  font-size: 14px;
}
.topbar__line-inner {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar__line a {
  text-decoration: none;
  font-weight: 800;
}
.topbar__main {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar--simple .topbar__main {
  min-height: 82px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__text small {
  color: var(--muted);
  font-size: 12px;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
}
.nav a:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: white;
}
.mobile-nav a {
  display: block;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
/* Первый экран (hero) и карточки преимуществ. */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 62px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(42, 127, 255, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 25%,
      rgba(30, 166, 142, 0.14),
      transparent 30%
    );
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 34px 48px;
  align-items: start;
}
.hero__lead {
  max-width: 720px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}
.hero__chips span,
.brand-tags span,
.area-list span {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 750;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero__details {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.hero__notice {
  margin-top: 24px;
  padding: 18px;
  border-left: 5px solid var(--warm);
  border-radius: 20px;
  background: white;
  color: var(--muted);
  max-width: 720px;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-width: 980px;
}
.hero__metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(21, 47, 66, 0.06);
}
.hero__metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}
.hero__metrics span {
  color: var(--muted);
  font-size: 14px;
}
.hero__visual {
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  align-self: start;
  margin-top: -18px;
}
.quick-help__grid,
.workstyle__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.quick-help article,
.workstyle article,
.symptom-card,
.case-list article,
.review-card,
.contact-cards article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(21, 47, 66, 0.06);
}
.quick-help article span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--warm);
  font-weight: 900;
}
.quick-help h3,
.workstyle h3,
.symptom-card h3,
.case-list h3,
.review-card h2,
.contact-cards h2 {
  margin: 18px 0 8px;
}
.quick-help p,
.workstyle p,
.symptom-card p,
.case-list p,
.review-card p,
.contact-cards p {
  color: var(--muted);
  margin: 0;
}
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.symptom-card {
  position: relative;
  overflow: hidden;
}
.symptom-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.symptom-card h3 {
  margin-top: 8px;
}
/* Секции с диагностикой, прайсом, кейсами и процессом работы. */
.diagnostics {
  background: #fff;
}
.diagnostics__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}
.diagnostics__text {
  position: sticky;
  top: calc(var(--header-offset) + 16px);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 13px;
}
.check-list li {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.check-list li:before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 8px;
}
.diagnostics__cards {
  display: grid;
  gap: 20px;
}
.diagnostics__cards article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.diagnostics__cards img {
  border-radius: 22px;
}
.diagnostics__cards h3 {
  margin: 0 0 8px;
}
.diagnostics__cards p {
  margin: 0;
  color: var(--muted);
}
.price-table {
  display: grid;
  gap: 10px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 160px;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  align-items: center;
}
.price-row--head {
  background: var(--ink);
  color: white;
  font-weight: 900;
}
.price-row span:nth-child(2) {
  color: var(--muted);
}
.price-row--head span:nth-child(2) {
  color: white;
}
.price-row b {
  justify-self: end;
}
.cases {
  background: linear-gradient(135deg, #eef8f5, #f6f8ff);
}
.cases__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.cases__image {
  margin-top: 28px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.case-list {
  display: grid;
  gap: 16px;
}
.case-list article span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.reviews-preview {
  background: #fff;
}
.reviews-preview__actions {
  align-self: center;
}
.review-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.workstyle__grid article {
  min-height: 190px;
}
.brands__grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 40px;
  align-items: center;
}
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.brands img {
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.service-area__box {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 36px;
  background: var(--ink);
  color: white;
  border-radius: 44px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.service-area .eyebrow {
  color: var(--warm);
}
.service-area p {
  color: rgba(255, 255, 255, 0.78);
}
.area-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: start;
}
.area-list span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}
.faq__list {
  display: grid;
  gap: 12px;
}
.faq__item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq__question:after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 22px;
}
.faq__question[aria-expanded="true"]:after {
  content: "−";
}
.faq__answer {
  padding: 0 24px 22px;
}
.faq__answer p {
  margin: 0;
  color: var(--muted);
}
.cta__box {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 44px;
  padding: 42px;
  box-shadow: var(--shadow);
}
/* Формы, модальное окно и нижний фиксированный блок звонка. */
.lead-form {
  display: grid;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  background: white;
  color: var(--ink);
}
.lead-form small {
  color: var(--muted);
}

.form__consent {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.form__consent a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.form__message {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
}
.form__message--ok {
  color: var(--accent);
}
.form__message--error {
  color: var(--danger);
}
.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: var(--shadow);
}
.sticky-call a,
.sticky-call button {
  color: white;
  text-decoration: none;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
}
.sticky-call button {
  background: var(--accent);
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 34, 0.58);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  width: min(460px, calc(100% - 28px));
  margin: 8vh auto;
  background: white;
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  background: var(--bg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
/* Футер и внутренние страницы. */
.footer {
  padding: 40px 0 20px;
  background: #102636;
  color: white;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 22px;
}
.footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}
.footer a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 8px 0;
}
.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.footer__chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.footer__bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer__bottom p {
  margin: 0;
  font-size: 13px;
}
.page-main {
  min-height: 70vh;
}
.contacts-page__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}
.contacts-page h1,
.reviews-page h1,
.policy h1 {
  font-size: clamp(36px, 5vw, 62px);
}
.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.review-card__rating {
  margin: 0 0 12px;
  color: #f3b52f;
  letter-spacing: 0.1em;
  font-size: 22px;
}
.rating-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.rating-field legend {
  font-weight: 850;
}
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rating-input label {
  font-size: 34px;
  line-height: 1;
  color: #c9d7dd;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: #f3b52f;
}
.rating-input label:active {
  transform: scale(0.95);
}
.review-form {
  margin-top: 24px;
  margin-bottom: 28px;
}
.policy {
  max-width: 860px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
}
.policy h2 {
  margin-top: 32px;
}
/* Анимации появления блоков при прокрутке. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Адаптация под планшеты и небольшие ноутбуки. */
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .topbar__main .btn {
    display: none;
  }
  .mobile-nav.is-open {
    display: block;
  }
  .hero__grid,
  .diagnostics__grid,
  .cases__layout,
  .brands__grid,
  .service-area__box,
  .cta__box,
  .contacts-page__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    max-width: 680px;
    margin-top: 0;
  }
  .hero__details {
    margin-top: 0;
  }
  .hero__metrics {
    grid-template-columns: 1fr;
  }
  .quick-help__grid,
  .symptom-grid,
  .workstyle__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagnostics__text {
    position: static;
  }
  .price-row {
    grid-template-columns: 1fr;
  }
  .price-row b {
    justify-self: start;
  }
  .section-head--split {
    grid-template-columns: 1fr;
  }
  .sticky-call {
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }
  .footer__grid {
    display: grid;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* Адаптация под мобильные устройства. */
@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .section {
    padding: 29px 0;
  }
  .topbar__line-inner {
    display: none;
  }
  .topbar__line {
    height: 4px;
  }
  .logo__text small {
    display: none;
  }
  .hero {
    padding-top: 38px;
  }
  .hero__chips span {
    font-size: 14px;
    padding: 8px 11px;
  }
  .quick-help__grid,
  .symptom-grid,
  .workstyle__grid {
    grid-template-columns: 1fr;
  }
  .diagnostics__cards article {
    grid-template-columns: 1fr;
  }
  .price-row {
    border-radius: 18px;
  }
  .cta__box,
  .service-area__box {
    padding: 24px;
    border-radius: 28px;
  }
  .footer {
    padding-bottom: 92px;
  }
  .sticky-call a {
    font-size: 14px;
  }
  .hero__actions .btn {
    width: 100%;
  }
}
