/* =========================================================
   АнгелСервис — основные стили
   Структура:
   1. Токены (цвета, отступы, тени)
   2. База
   3. Общие компоненты (контейнер, секции, кнопки)
   4. Шапка и навигация
   5. Секции страницы: hero → услуги → проблемы → о компании → отзывы → контакты
   6. Подвал и кнопка звонка
   7. Анимации появления
   8. Адаптив
   9. Многостраничность: выпадающее меню, внутренние страницы, галерея, отзывы
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* Фирменные цвета (из исходного сайта и логотипа) */
  --blue: #006fca;
  --blue-700: #0a4f94;
  --blue-900: #072a4d;
  --blue-50: #eef5fc;
  --orange: #ff5b00;
  --orange-600: #e65200;
  --orange-50: #fff3eb;

  --ink: #252121;
  --ink-2: #4d4848;
  --muted: #7a7575;
  --line: #e7e7ea;
  --line-strong: #d4d4d8;
  --bg: #ffffff;
  --gray: #f5f5f6;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 12px 32px -16px rgba(7, 42, 77, .22);

  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 104px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
button { font: inherit; cursor: pointer; }
mark { background: var(--orange-50); color: var(--orange-600); padding: 0 .25em; border-radius: 4px; font-weight: 600; }
:focus-visible { outline: 3px solid rgba(0, 111, 202, .4); outline-offset: 2px; border-radius: 6px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 3. Общие компоненты ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray); }

.section__head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--wide { max-width: 860px; }
.section__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section__lead { margin: 14px 0 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-2); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--hero { color: #ff8a4c; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { color: var(--ink); border-color: var(--line-strong); background: var(--gray); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- 4. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--header-h); }
.header__logo { flex: none; }
.header__logo img { width: 220px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 15.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 24px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.header__phone:hover { color: var(--orange); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue-900);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  filter: blur(1.5px) saturate(.9);
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 42, 77, .96) 0%, rgba(7, 42, 77, .86) 45%, rgba(7, 42, 77, .55) 100%),
    linear-gradient(0deg, rgba(7, 42, 77, .7) 0%, transparent 40%);
}
.hero__inner { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 112px); padding-bottom: 40px; }
.hero__title { max-width: 760px; font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.03em; }
.hero__lead { max-width: 640px; margin: 22px 0 34px; font-size: clamp(15.5px, 1.4vw, 17.5px); color: rgba(255, 255, 255, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  max-width: 760px; margin: clamp(48px, 7vw, 80px) 0 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.stats dt { white-space: nowrap; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.stats dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

/* Фото услуги; если фото нет — фирменная плашка с иконкой */
.service__media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
}
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__media img { transform: scale(1.05); }
.service__icon {
  position: absolute; left: 16px; bottom: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; background: #fff; color: var(--blue);
  box-shadow: 0 6px 16px -6px rgba(7, 42, 77, .4);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.service:not(.service--photo) .service__icon {
  left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none;
}
.service:not(.service--photo) .service__icon svg { width: 30px; height: 30px; }
.service__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: var(--orange); color: #fff; }
.service__body { display: grid; gap: 6px; flex: 1; align-content: start; padding: 16px 44px 18px 18px; }
.service__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.service__short { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.service__arrow {
  position: absolute; right: 18px; bottom: 18px;
  color: var(--muted); font-size: 18px; line-height: 1;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.service:hover .service__arrow { color: var(--orange); transform: translateX(4px); }


.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.offers--single { grid-template-columns: minmax(0, 1fr); }
.offer {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--blue-900); color: #fff;
}
.offer p { margin: 0; }
.offer__free {
  grid-row: 1 / 3;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--orange); font-size: 15px; font-weight: 800; letter-spacing: .03em;
}
.offer__what { font-size: 17.5px; font-weight: 700; line-height: 1.3; }
.offer__when { font-size: 14px; color: rgba(255, 255, 255, .7); }
.offer__when a { color: #fff; font-weight: 700; }
.offer__when a:hover { color: #ffb27f; }

/* ---------- Проблемы ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 32px); }
.problem { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.problem:first-child { padding-top: 0; border-top: 0; }
.problem__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; font-size: 21px; font-weight: 800; }
.problem__title span { font-size: 14px; font-weight: 800; color: var(--orange); letter-spacing: .04em; }
.problem p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about__item {
  padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff;
}
.about__item h3 { margin-bottom: 14px; font-size: 20px; font-weight: 800; }
.about__item p { color: var(--ink-2); font-size: 15.5px; }
.about__item > :last-child { margin-bottom: 0; }
.about__note { font-weight: 700; color: var(--ink) !important; }

.checks, .steps { margin: 0 0 1em; padding: 0; list-style: none; }
.checks li, .steps li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 15.5px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006fca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800;
}

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: 16px; padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--blue); color: #fff;
}
.cta-band__text { margin: 0; max-width: 760px; font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; line-height: 1.5; }
.cta-band .btn { flex: none; }

.seo-note { max-width: 860px; margin: 28px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Отзывы ---------- */
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Контакты ---------- */


/* Форма */

/* ---------- 6. Подвал ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .65); font-size: 14.5px; padding: 56px 0 28px; }
.footer__inner {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__logo { display: inline-block; margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; }
.footer__logo img { width: 200px; }
.footer__brand p { margin: 0; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__label { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: var(--orange); }
.footer__phone { font-size: 20px; font-weight: 800; color: #fff !important; }
.footer__phone:hover { color: var(--orange) !important; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Модальное окно */
body.is-locked { overflow: hidden; }

/* ---------- 7. Анимации появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 8. Адаптив ---------- */
@media (max-width: 1200px) {
  .nav { gap: 22px; }
  .header__phone { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  /* Мобильное меню */
  .burger { display: inline-flex; }
  .header__actions { display: none; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px;
    background: #fff; border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav__link { padding: 16px 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
  .nav__phone { font-size: 22px; font-weight: 800; color: var(--ink); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .offers, .about { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stats dd { font-size: 12px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header__logo img { width: 180px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats__item { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; gap: 12px; }
  .stats dt { font-size: 22px; }
  .stats dd { margin: 0; font-size: 13.5px; }
  .services { gap: 10px; }
  .services, .services.services--3 { grid-template-columns: 1fr; } /* .services--3 из блока 1024px иначе перебивает */
  .service { flex-direction: row; }
  .service__media { flex: none; width: 112px; aspect-ratio: auto; min-height: 92px; }
  .service__media img { position: absolute; inset: 0; }
  .service--photo .service__icon { display: none; }
  .service:not(.service--photo) .service__icon { width: 44px; height: 44px; }
  .service:not(.service--photo) .service__icon svg { width: 22px; height: 22px; }
  .service__body { align-content: center; padding: 12px 36px 12px 14px; }
  .service__title { font-size: 15px; }
  .service__arrow { right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .service:hover .service__arrow { transform: translate(4px, -50%); }
  .offer { grid-template-columns: 1fr; row-gap: 8px; }
  .offer__free { grid-row: auto; justify-self: start; padding: 6px 12px; font-size: 13.5px; }
  .about__item { padding: 24px 20px; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   9. Многостраничность: меню, внутренние страницы
   ========================================================= */

/* ---------- Активный пункт и выпадающее меню «Услуги» ---------- */
.nav__link { display: inline-flex; align-items: center; gap: 4px; }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }
.nav__chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav__group { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: -20px; z-index: 60;
  display: grid; min-width: 320px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__dropdown a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__dropdown a:hover { background: var(--gray); color: var(--ink); }
.nav__group:hover .nav__dropdown,
.nav__group.is-open .nav__dropdown,
.nav__group:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.nav__group:hover .nav__chevron { transform: rotate(180deg); }

/* ---------- Шапка внутренней страницы ---------- */
.page-head { padding: clamp(36px, 5vw, 56px) 0 clamp(32px, 4vw, 44px); background: var(--gray); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--orange); }
.page-head__title { max-width: 860px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.025em; }
.page-head__lead { max-width: 760px; margin: 14px 0 0; font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--ink-2); }

.section--tight { padding: clamp(40px, 5vw, 64px) 0 var(--section-y); }
.section__title--sm { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }

/* ---------- Раскладка «текст + сайдбар» ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ---------- Текст страницы ---------- */
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 .7em; font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; color: var(--ink); line-height: 1.25; }
.prose h3 { margin: 0 0 .4em; font-size: 18px; font-weight: 800; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose > .btn { margin-top: 12px; }
.prose__lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--ink); }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--orange);
  font-size: 19px; font-style: italic; font-weight: 600; color: var(--ink);
}
.prose__figure { margin: 1.6em 0; }
.prose__figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose__figure--narrow img { max-width: 360px; }

.highlight {
  margin: 0 0 1.4em; padding: 20px 24px;
  border-radius: var(--radius); border: 1px solid #ffdcc6;
  background: var(--orange-50); color: var(--ink);
}
.highlight p:last-child { margin-bottom: 0; }
.highlight--blue { border-color: var(--blue-50); background: var(--blue-50); }


.contact-card { margin-top: 2em; padding: 24px; border-radius: var(--radius); background: var(--gray); color: var(--ink); }
.contact-card__title { margin: 0 0 10px !important; font-weight: 800; }
.contact-card__list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.contact-card__list a { font-weight: 800; color: var(--ink); text-decoration: none; }
.contact-card__list a:hover { color: var(--orange); }
.contact-card__list span { color: var(--muted); }
.contact-card__foot { margin: 0 !important; }

/* Списки */
.num-list, .check-list, .feature-list { margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; gap: 12px; }
.num-list { counter-reset: num; }
.num-list li { counter-increment: num; position: relative; padding-left: 44px; }
.num-list li::before {
  content: counter(num); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font-size: 13.5px; font-weight: 800; line-height: 1;
}
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006fca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.feature-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list strong { display: block; margin-bottom: 4px; font-size: 17px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 6px; background: var(--gray); font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }

.reasons { display: grid; gap: 12px; margin-bottom: 1.4em; }
.reasons__item { padding: 20px 22px; border-radius: var(--radius); background: var(--gray); }
.reasons__item p { margin: 0; }

/* Таблицы */
.table-wrap { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--gray); color: var(--ink); font-weight: 800; }
.table-wrap td:last-child { white-space: nowrap; font-weight: 700; color: var(--ink); }
.table-wrap small { font-weight: 500; color: var(--muted); white-space: normal; }
.table-wrap .compare td:last-child { white-space: normal; font-weight: 400; color: var(--ink-2); }
.table-wrap .compare td:first-child { color: var(--ink); }

/* ---------- Сайдбар ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.sidebar__cta { padding: 24px; border-radius: var(--radius-lg); background: var(--blue-900); color: #fff; }
.sidebar__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.sidebar__phone { display: block; margin-bottom: 4px; font-size: 22px; font-weight: 800; color: #fff; }
.sidebar__phone:hover { color: #ffb27f; }
.sidebar__note { margin: 0 0 18px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.sidebar__note a { color: #fff; font-weight: 700; }
.sidebar__menu { display: grid; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sidebar__label { margin: 8px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sidebar__menu a { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sidebar__menu a:hover { background: var(--gray); color: var(--ink); }
.sidebar__menu a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }

/* ---------- Услуги: страница-список ---------- */
.services--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Контакты: страница ---------- */
.video { margin-top: clamp(40px, 5vw, 64px); }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }

/* ---------- Галерея «Из нашей практики» ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.gallery__item { margin: 0; }
.gallery__link { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--gray); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__item figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; padding: 24px;
  background: rgba(5, 18, 33, .94);
  visibility: hidden; opacity: 0;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__caption { max-width: 760px; text-align: center; color: #fff; font-size: 15.5px; }
.lightbox__nav, .lightbox__close {
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px;
  transition: background-color .2s var(--ease);
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; top: 18px; right: 18px; font-size: 28px; }

/* ---------- Страница отзывов ---------- */
.site-reviews { display: grid; gap: 14px; }
.site-review { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.site-review blockquote { margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.site-review blockquote p { margin: 0 0 .5em; }
.site-review blockquote p:last-child { margin: 0; }
.site-review figcaption { font-size: 14px; font-weight: 800; color: var(--ink); }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .section__title { max-width: 640px; margin: 0 auto; }
.not-found__code { margin: 0 0 8px; font-size: clamp(72px, 12vw, 140px); font-weight: 800; line-height: 1; color: var(--blue); letter-spacing: -.04em; }
.not-found__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Скрытое поле-ловушка для спам-ботов */

/* ---------- Адаптив внутренних страниц ---------- */
@media (max-width: 1024px) {
  .nav__group { display: grid; }
  .nav__link--parent .nav__chevron { display: none; }
  .nav__dropdown {
    position: static; min-width: 0; padding: 4px 0 8px 12px;
    border: 0; box-shadow: none; border-radius: 0;
    /* visibility: inherit, а не visible: иначе список услуг закрытого (невидимого) меню
       перехватывает касания по странице и открывает не ту услугу */
    opacity: 1; visibility: inherit; transform: none; transition: none;
    border-bottom: 1px solid var(--line);
  }
  .nav__group:hover .nav__dropdown,
  .nav__group:focus-within .nav__dropdown,
  .nav__group.is-open .nav__dropdown { visibility: inherit; }
  .nav__dropdown::before { display: none; }
  .nav__dropdown a { padding: 8px 0; font-size: 15.5px; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--orange); }

  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .prose { max-width: none; }
  .services--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .gallery__item figcaption { font-size: 13px; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 12px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__img { max-height: calc(100vh - 200px); }
  .table-wrap td:last-child { white-space: normal; }
  .prose__figure--narrow img { max-width: 100%; }
  .highlight { padding: 18px; }
}

@media (max-width: 640px) {
  .btn { max-width: 100%; }
  .reviews-actions .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
}


/* =========================================================
   10. Правки 2026: слоган, «нестандартные задачи», маршрут, звонок
   ========================================================= */

/* Полоса со слоганом над шапкой */
.topbar { background: var(--blue-900); color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; }
.topbar__slogan { font-weight: 700; color: #fff; }
.topbar__meta { display: flex; gap: 20px; white-space: nowrap; }
.topbar a { color: rgba(255, 255, 255, .8); }
.topbar a:hover { color: #ffb27f; }

.hero__slogan {
  max-width: 640px; margin: 18px 0 0; padding-left: 16px;
  border-left: 3px solid var(--orange);
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; line-height: 1.4; color: #fff;
}

.btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.nav__phone-alt { font-size: 15px; font-weight: 700; color: var(--ink-2); }

/* «Нестандартная задача? Это к нам» */
.nonstandard {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  margin: 24px 0 0; padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--orange-50); border: 1px solid #ffdcc6; color: var(--ink);
}
.nonstandard__icon { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--orange); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nonstandard__title { margin: 0 0 4px !important; font-size: 19px; font-weight: 800; line-height: 1.3; }
.nonstandard__text { margin: 0 !important; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.nonstandard .btn { white-space: nowrap; text-decoration: none; }
.prose .nonstandard { margin-top: 2em; }

/* Факты на странице «О компании» */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.facts li { padding: 18px; border-radius: var(--radius); background: var(--gray); font-size: 14px; line-height: 1.45; }
.facts strong { display: block; font-size: 22px; line-height: 1.2; color: var(--blue); }

/* Контакты строкой */
.contact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.contact-strip > div { padding: 18px 20px; border-radius: var(--radius); background: var(--gray); }
.contact-strip dt { margin-bottom: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-strip dd { margin: 0; font-size: 15px; line-height: 1.6; }
.contact-strip a { font-weight: 700; color: var(--ink); }
.contact-strip a:hover { color: var(--orange); }
.contact-strip__main { font-size: 19px; }

/* Карта с маршрутом к воротам */
.route { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; scroll-margin-top: calc(var(--header-h) + 16px); }
.route__map { min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); background: var(--gray); }
.route__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.route__info { display: flex; flex-direction: column; }
.route__steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: rs; display: grid; gap: 12px; }
.route__steps li { counter-increment: rs; position: relative; padding-left: 44px; font-size: 16px; line-height: 1.5; }
.route__steps li::before {
  content: counter(rs); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; font-weight: 800;
}
.route__addr { margin: 0 0 20px; font-weight: 700; color: var(--ink-2); }
.route__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* Фото работ на странице услуги */
.gallery--service { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.6em 0 0; }
.prose .gallery__link { text-decoration: none; }

/* Кнопка звонка внизу экрана на телефоне */
.callbar { display: none; }

@media (max-width: 1024px) {
  .route { grid-template-columns: 1fr; }
  .route__map, .route__map iframe { min-height: 380px; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .topbar__meta { display: none; }
}

@media (max-width: 640px) {
  .topbar { font-size: 12.5px; }
  .topbar__inner { justify-content: center; text-align: center; min-height: 0; }
  .nonstandard { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
  .nonstandard .btn { justify-self: stretch; }
  .facts { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .gallery--service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route__actions .btn { flex: 1 1 100%; }

  .callbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; border-radius: 14px;
    background: var(--orange); color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 12px 28px -10px rgba(230, 82, 0, .7);
  }
  .callbar:hover { color: #fff; background: var(--orange-600); }
  .callbar .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .footer { padding-bottom: 96px; }
  body.is-locked .callbar { display: none; }
}


/* =========================================================
   11. Главная 2026-10: продающий первый экран
   ========================================================= */

.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* Первый экран: слоган — заголовок, справа карточка «С чем приезжают» */
.hero--sell .hero__bg { filter: blur(1px) saturate(.9); }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero__title--slogan { max-width: 720px; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; }
.hero__title--slogan span { color: #ff8a4c; }
.hero__lead--short { max-width: 560px; margin: 22px 0 32px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, .88); }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: clamp(32px, 4vw, 44px) 0 0; padding: 0; list-style: none;
}
.trust li {
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; color: rgba(255, 255, 255, .8); white-space: nowrap;
}
.trust strong { color: #fff; font-weight: 800; }

.hero-card {
  padding: 26px; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
}
.hero-card__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hero-card__list { margin: 0 0 18px; padding: 0; list-style: none; }
.hero-card__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink);
}
.hero-card__list a::after { content: "→"; color: var(--muted); transition: transform .25s var(--ease), color .25s var(--ease); }
.hero-card__list a:hover { color: var(--blue); }
.hero-card__list a:hover::after { color: var(--orange); transform: translateX(3px); }
.hero-card__foot p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.hero-card__foot strong { color: var(--ink); }

/* «Отказали в другом сервисе?» — тёмная полоса-аргумент */
.hard-case {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--blue-900) radial-gradient(circle at 85% 20%, rgba(255, 91, 0, .22), transparent 45%);
  color: #fff;
}
.hard-case__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.hard-case__title { margin-bottom: 16px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.hard-case__text p:last-child { margin: 0; font-size: 16.5px; color: rgba(255, 255, 255, .78); }
.hard-case__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hard-case__list li {
  position: relative; padding: 14px 18px 14px 50px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 700;
}
.hard-case__list li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.hard-case__btn { justify-self: start; }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why__item { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.why__item svg {
  width: 48px; height: 48px; padding: 12px; margin-bottom: 18px; border-radius: 12px;
  background: var(--blue-50); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.why__item h3 { margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.why__item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* 4 шага */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; }
.flow li::before {
  content: counter(flow); display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 17px; font-weight: 800;
}
.flow h3 { margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.flow p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

html:not(.theme-dark) .contact-strip--white > div { background: #fff; }

/* Свёрнутый подробный текст внизу главной */
.more { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.more__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 800;
}
.more__summary::-webkit-details-marker { display: none; }
.more__summary .icon { transition: transform .25s var(--ease); }
.more[open] .more__summary .icon { transform: rotate(180deg); }
.more__body { max-width: 860px; padding: 0 24px 28px; }
.more__body h2 { margin-top: .4em; }
.more__body h3 { margin-top: 1.4em; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { max-width: 560px; }
  .hard-case__inner { grid-template-columns: minmax(0, 1fr); }
  .why, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero__title--slogan { font-size: 34px; }
  .hero__lead--short { font-size: 16.5px; margin: 16px 0 24px; }
  .btn--lg { min-height: 54px; font-size: 16px; }
  .trust li { font-size: 13px; padding: 7px 12px; }
  .hero-card { padding: 20px; }
  .why, .flow { grid-template-columns: 1fr; }
  .hard-case__btn { justify-self: stretch; }
  .more__summary { padding: 16px 18px; font-size: 16px; }
  .more__body { padding: 0 18px 22px; }
}


/* =========================================================
   12. Главная: тёплый визуал вместо белого фона
   ========================================================= */
:root {
  --tint: #eef4fb;
  --sand: #fbf6f0;
  --shadow-soft: 0 1px 2px rgba(7, 42, 77, .06), 0 10px 30px -14px rgba(7, 42, 77, .18);
}

/* Фоны секций */
.section--tint {
  background:
    radial-gradient(rgba(0, 111, 202, .09) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--tint) 0%, #f7fafd 100%);
}
.section--sand { background: var(--sand); }

/* Подзаголовок-«таблетка» над заголовками */
.section .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--orange-50); border: 1px solid #ffdcc6;
}
.section .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Первый экран: время работы с «живой» точкой */
.hero__meta { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.hero__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.hero__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ddc84; opacity: .5; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.hero--sell { border-radius: 0 0 clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.hero-card { position: relative; }
.hero-card { border-top: 5px solid var(--orange); }

/* Карточки услуг: мягкая тень на цветном фоне */
.section--tint .service { border-color: transparent; box-shadow: var(--shadow-soft); }
.section--tint .service:hover { box-shadow: 0 18px 40px -16px rgba(7, 42, 77, .35); }
.section--tint .offer { box-shadow: var(--shadow-soft); }

/* Истории клиентов */
.stories-section { background: #fff; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 28px 26px 24px;
  border-radius: var(--radius-lg); background: var(--sand);
}
.story::before {
  content: "“"; position: absolute; right: 22px; top: 6px;
  font-size: 88px; font-weight: 800; line-height: 1; color: var(--orange); opacity: .25;
}
.story__tag {
  align-self: flex-start; margin: 0 0 14px; padding: 4px 10px; border-radius: 6px;
  background: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue);
}
.story blockquote { flex: 1; margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.story figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.story figcaption strong { display: block; font-size: 15px; color: var(--ink); }
.story__avatar {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff; font-weight: 800;
}
.stories__more { margin: 24px 0 0; font-weight: 800; }

/* Почему мы: белые карточки на тёплом фоне, иконки чередуются */
.section--sand .why__item { border-color: transparent; background: #fff; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease); }
.section--sand .why__item:hover { transform: translateY(-3px); }
.why__item:nth-child(even) svg { background: var(--orange-50); stroke: var(--orange); }

/* 4 шага: соединительная линия */
#steps .flow li { background: var(--gray); }
#steps .flow li::before { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--gray); }
@media (min-width: 1025px) {
  #steps .flow { position: relative; }
  #steps .flow::before {
    content: ""; position: absolute; left: 44px; right: 44px; top: 46px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 16px); opacity: .45;
  }
  #steps .flow li { background: transparent; padding-top: 26px; }
  #steps .flow li::before { box-shadow: 0 0 0 8px #fff; }
}

/* Контакты */
#contacts.section--gray { background: var(--sand); }
#contacts .contact-strip > div { box-shadow: var(--shadow-soft); }
#contacts .route__map { box-shadow: var(--shadow-soft); }

@media (max-width: 1024px) {
  .stories { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 640px) {
  .hero__meta { font-size: 13.5px; }
  .story { padding: 22px 20px 20px; }
}
.hero--sell { z-index: 3; }
.hero--sell + .section { margin-top: calc(-1 * clamp(20px, 3vw, 40px)); padding-top: calc(var(--section-y) + clamp(20px, 3vw, 40px)); }


/* =========================================================
   13. Тёмная тема (html.theme-dark) — включается кнопкой в шапке
   ========================================================= */
.theme-dark {
  --d-bg: #06111f;
  --d-alt: #081829;
  --d-card: rgba(255, 255, 255, .045);
  --d-card-hover: rgba(255, 255, 255, .07);
  --d-line: rgba(255, 255, 255, .09);
  --d-text: rgba(255, 255, 255, .74);
  --d-muted: rgba(255, 255, 255, .5);
  --d-link: #6cb8ff;
}
.theme-dark body { background: var(--d-bg); color: var(--d-text); }
/* :where — нулевая специфичность, чтобы не перебивать цвета кнопок, подвала и т.п. */
:where(.theme-dark) a { color: var(--d-link); }
:where(.theme-dark) a:hover { color: #ff8a4c; }
.theme-dark mark { background: rgba(255, 91, 0, .16); color: #ffb27f; }

/* Шапка */
/* размытие — на подложке ::before: backdrop-filter на самой шапке ломает мобильное меню (position: fixed) */
.theme-dark .header { background: transparent; }
.theme-dark .header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 17, 31, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.theme-dark .header.is-scrolled { border-color: var(--d-line); }
.theme-dark .header__logo { padding: 7px 12px; border-radius: var(--radius-sm); background: #fff; }
.theme-dark .header__logo img { width: 200px; }
.theme-dark .nav__link { color: rgba(255, 255, 255, .78); }
.theme-dark .nav__link:hover { color: #fff; }
.theme-dark .nav__dropdown { background: #0b1d33; border-color: var(--d-line); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); }
.theme-dark .nav__dropdown a { color: rgba(255, 255, 255, .78); }
.theme-dark .nav__dropdown a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.theme-dark .burger span { background: #fff; }
.theme-dark .header .btn--primary { color: #fff; }

/* Секции: прозрачные, чтобы был виден общий тёмный фон */
.theme-dark .section { background: transparent; }
.theme-dark .section--alt { background: var(--d-alt); }
.theme-dark .section__title { color: #fff; }
.theme-dark .section__lead { color: var(--d-text); }
.theme-dark .section .eyebrow { background: rgba(255, 91, 0, .12); border-color: rgba(255, 91, 0, .32); color: #ff8a4c; }

/* Первый экран: фото остаётся, карточка — «стекло» */
.theme-dark .hero--sell + .section { margin-top: 0; padding-top: var(--section-y); }
.theme-dark .hero-card {
  background: rgba(10, 26, 46, .72); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); border-top: 4px solid var(--orange);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.theme-dark .hero-card__list a { color: #fff; border-color: rgba(255, 255, 255, .12); }
.theme-dark .hero-card__list a:hover { color: #ffb27f; }
.theme-dark .hero-card__list a::after { color: rgba(255, 255, 255, .45); }
.theme-dark .hero-card__foot p { color: var(--d-text); }
.theme-dark .hero-card__foot strong { color: #fff; }

/* Карточки */
.theme-dark .service, .theme-dark .why__item, .theme-dark .flow li, .theme-dark .story,
.theme-dark .contact-strip > div {
  background: var(--d-card); border: 1px solid var(--d-line); box-shadow: none; color: #fff;
}
.theme-dark .service:hover { background: var(--d-card-hover); border-color: rgba(255, 91, 0, .45); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); color: #fff; }
.theme-dark .service__title { color: #fff; }
.theme-dark .service__short { color: var(--d-muted); }
.theme-dark .service__arrow { color: var(--d-muted); }
.theme-dark .service__media { background: linear-gradient(135deg, #0b2747 0%, #0a4f94 100%); }

.theme-dark .offer { background: linear-gradient(135deg, rgba(255, 91, 0, .14) 0%, rgba(255, 255, 255, .03) 100%); border: 1px solid rgba(255, 91, 0, .3); box-shadow: none; }

.theme-dark .hard-case { background: #0a2240 radial-gradient(circle at 85% 20%, rgba(255, 91, 0, .25), transparent 45%); }

.theme-dark .flow li::before { box-shadow: 0 0 0 6px rgba(255, 91, 0, .15); }
.theme-dark .flow li:nth-child(even)::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(0, 111, 202, .22); }
.theme-dark .flow h3, .theme-dark .why__item h3 { color: #fff; }
.theme-dark .flow p, .theme-dark .why__item p { color: var(--d-text); }

.theme-dark .why__item svg { background: rgba(0, 111, 202, .18); stroke: var(--d-link); }
.theme-dark .why__item:nth-child(even) svg { background: rgba(255, 91, 0, .16); stroke: #ff8a4c; }
.theme-dark .why__item { transition: transform .3s var(--ease), border-color .3s var(--ease); }
.theme-dark .why__item:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }

.theme-dark .stories-section { background: var(--d-alt); }
.theme-dark .story { border-top: 4px solid var(--orange); }
.theme-dark .story:nth-child(2) { border-top-color: var(--blue); }
.theme-dark .story__tag { background: rgba(255, 255, 255, .08); color: var(--d-link); }
.theme-dark .story blockquote { color: rgba(255, 255, 255, .9); }
.theme-dark .story figcaption { color: var(--d-muted); }
.theme-dark .story figcaption strong { color: #fff; }

/* Отзывы Яндекса и контакты */
.theme-dark .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.theme-dark .btn--outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.theme-dark .contact-strip dt { color: var(--d-muted); }
.theme-dark .contact-strip dd { color: var(--d-text); }
.theme-dark .contact-strip a { color: #fff; }
.theme-dark .contact-strip a:hover { color: #ff8a4c; }
.theme-dark .route__steps li { color: var(--d-text); }
.theme-dark .route__steps strong { color: #fff; }
.theme-dark .route__addr { color: var(--d-muted); }
.theme-dark .route__map { border: 1px solid var(--d-line); }
.theme-dark .video__frame { border: 1px solid var(--d-line); }

/* Свёрнутый текст */
.theme-dark .more { border-color: var(--d-line); background: var(--d-card); }
.theme-dark .more__summary { color: #fff; }
.theme-dark .more__body, .theme-dark .more__body p { color: var(--d-text); }
.theme-dark .more__body h2, .theme-dark .more__body h3 { color: #fff; }
.theme-dark .seo-note { color: var(--d-muted); }

.theme-dark .footer { background: #040c17; border-top: 1px solid var(--d-line); }

/* Мобильное меню */
@media (max-width: 1024px) {
  .theme-dark .nav { background: var(--d-bg); border-color: var(--d-line); }
  .theme-dark .nav__link { color: #fff; border-color: var(--d-line); }
  .theme-dark .nav__dropdown { background: transparent; box-shadow: none; border-color: var(--d-line); }
  .theme-dark .nav__phone-alt { color: var(--d-text); }
}
@media (max-width: 640px) {
  .theme-dark .header__logo { padding: 5px 9px; }
  .theme-dark .header__logo img { width: 160px; }
}

/* «4 шага» на тёмном: без пунктира и белых обводок со светлой версии */
.theme-dark #steps .flow::before { display: none; }
.theme-dark #steps .flow li { background: var(--d-card); padding-top: 26px; }
.theme-dark #steps .flow li::before { box-shadow: 0 0 0 6px rgba(255, 91, 0, .15); }
.theme-dark #steps .flow li:nth-child(even)::before { box-shadow: 0 0 0 6px rgba(0, 111, 202, .22); }


/* ---------- 14. Кнопка смены темы ---------- */
.theme-toggle {
  flex: none; width: 44px; height: 44px; margin-left: -16px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle:active { transform: rotate(-30deg); }
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s var(--ease), transform .4s var(--ease); }
/* светлая тема — показываем луну (включить тёмную), тёмная — солнце */
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-dark .theme-toggle { background: rgba(255, 255, 255, .06); border-color: var(--d-line); color: #ffb27f; }
.theme-dark .theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-dark .theme-toggle__sun { opacity: 1; transform: none; }
.theme-dark .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }

@media (max-width: 1024px) {
  .header__inner { gap: 8px; }
  .theme-toggle { margin-left: auto; }
}

/* ---------- 15. Фирменный курсор: стрелка, но в цветах сервиса ---------- */
@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 3v20l5.2-4.8 3.4 7.8 3.8-1.6-3.4-7.6H21Z' fill='none' stroke='%23072a4d' stroke-width='3.6' stroke-linejoin='round'/%3E%3Cpath d='M5 3v20l5.2-4.8 3.4 7.8 3.8-1.6-3.4-7.6H21Z' fill='%23ff5b00' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, auto; }
  a, button, summary, label, [role="button"], .more__summary, .js-lightbox, .btn, .burger, .theme-toggle {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M5 3v20l5.2-4.8 3.4 7.8 3.8-1.6-3.4-7.6H21Z' fill='none' stroke='%23072a4d' stroke-width='3.6' stroke-linejoin='round'/%3E%3Cpath d='M5 3v20l5.2-4.8 3.4 7.8 3.8-1.6-3.4-7.6H21Z' fill='%23006fca' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, pointer;
  }
}

/* ---------- 16. Светлая тема главной: чередование секций ---------- */
/* только для светлой темы — иначе перебивают тёмные цвета */
html:not(.theme-dark) .section--alt { background: var(--gray); }
html:not(.theme-dark) .section--alt .contact-strip > div { background: #fff; }
html:not(.theme-dark) #steps.section--alt .flow li::before { box-shadow: 0 0 0 8px var(--gray); }

/* ---------- 17. Тёмная тема внутренних страниц ---------- */
.theme-dark .page-head { background: var(--d-alt); }
.theme-dark .breadcrumbs, .theme-dark .breadcrumbs a { color: var(--d-muted); }
.theme-dark .breadcrumbs a:hover { color: #ff8a4c; }
.theme-dark .page-head__title { color: #fff; }
.theme-dark .page-head__lead { color: var(--d-text); }

.theme-dark .prose { color: var(--d-text); }
.theme-dark .prose h2, .theme-dark .prose h3, .theme-dark .prose strong, .theme-dark .prose blockquote, .theme-dark .prose__lead { color: #fff; }
.theme-dark .prose__figure img { border-color: var(--d-line); }
.theme-dark .highlight { background: rgba(255, 91, 0, .1); border-color: rgba(255, 91, 0, .3); color: #fff; }
.theme-dark .highlight--blue { background: rgba(0, 111, 202, .14); border-color: rgba(0, 111, 202, .32); }
.theme-dark .contact-card { background: var(--d-card); border: 1px solid var(--d-line); color: #fff; }
.theme-dark .contact-card__list a { color: #fff; }
.theme-dark .contact-card__list span { color: var(--d-muted); }

.theme-dark .num-list li::before { background: rgba(0, 111, 202, .2); color: var(--d-link); }
.theme-dark .check-list li::before, .theme-dark .checks li::before { background-color: rgba(0, 111, 202, .22); }
.theme-dark .feature-list li { border-color: var(--d-line); background: var(--d-card); }
.theme-dark .feature-list strong { color: #fff; }
.theme-dark .tags li { background: var(--d-card); color: #fff; }
.theme-dark .reasons__item { background: var(--d-card); }
.theme-dark .facts li { background: var(--d-card); }
.theme-dark .facts strong { color: var(--d-link); }

.theme-dark .table-wrap { border-color: var(--d-line); }
.theme-dark .table-wrap th { background: var(--d-alt); color: #fff; }
.theme-dark .table-wrap th, .theme-dark .table-wrap td { border-color: var(--d-line); }
.theme-dark .table-wrap td:last-child, .theme-dark .table-wrap .compare td:first-child { color: #fff; }
.theme-dark .table-wrap .compare td:last-child { color: var(--d-text); }
.theme-dark .table-wrap small { color: var(--d-muted); }

.theme-dark .sidebar__cta { background: #0a2240; border: 1px solid var(--d-line); }
.theme-dark .sidebar__phone, .theme-dark .sidebar__note a { color: #fff; }
.theme-dark .sidebar__menu { border-color: var(--d-line); background: var(--d-card); }
.theme-dark .sidebar__menu a { color: var(--d-text); }
.theme-dark .sidebar__menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.theme-dark .sidebar__menu a[aria-current="page"] { background: rgba(0, 111, 202, .2); color: var(--d-link); }
.theme-dark .sidebar__label { color: var(--d-muted); }

.theme-dark .nonstandard { background: rgba(255, 91, 0, .1); border-color: rgba(255, 91, 0, .3); color: #fff; }
.theme-dark .nonstandard__text { color: var(--d-text); }

.theme-dark .gallery__link { background: var(--d-card); }
.theme-dark .gallery__item figcaption { color: var(--d-text); }
.theme-dark .site-review { border-color: var(--d-line); background: var(--d-card); }
.theme-dark .site-review blockquote { color: var(--d-text); }
.theme-dark .site-review figcaption { color: #fff; }
.theme-dark .not-found__code { color: var(--d-link); }


/* ---------- 18. Единый фон без полос между секциями ----------
   Один фон на всю страницу (body::before, закреплён за окном), секции прозрачные.
   Тёмные блоки (первый экран, «Отказали…», подвал) растворяются в нём по краям. */
body { background: var(--bg); }
.theme-dark body { background: var(--d-bg); }
body::before {
  content: ""; position: fixed; inset: -15%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 18%, rgba(0, 111, 202, .07), transparent 70%),
    radial-gradient(38% 34% at 88% 62%, rgba(255, 140, 60, .07), transparent 70%),
    radial-gradient(46% 40% at 30% 92%, rgba(0, 111, 202, .05), transparent 70%);
  animation: bg-drift 40s ease-in-out infinite alternate;
}
.theme-dark body::before {
  background:
    radial-gradient(42% 38% at 12% 18%, rgba(0, 111, 202, .16), transparent 70%),
    radial-gradient(38% 34% at 88% 62%, rgba(255, 91, 0, .07), transparent 70%),
    radial-gradient(46% 40% at 30% 92%, rgba(10, 79, 148, .14), transparent 70%);
}
@keyframes bg-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Все полосы-секции — прозрачные, чтобы был виден общий фон */
.section, .section--gray, .section--sand, .section--tint, .stories-section, .page-head,
#contacts.section--gray,
html:not(.theme-dark) .section--alt,
.theme-dark .section--alt, .theme-dark .stories-section, .theme-dark .page-head { background: transparent; }

/* Кольца вокруг номеров шагов были цвета полосы — на общем фоне не нужны */
html:not(.theme-dark) #steps .flow li::before,
html:not(.theme-dark) #steps.section--alt .flow li::before { box-shadow: none; }

/* Плавные края у тёмных блоков */
:root { --fade: clamp(64px, 9vw, 120px); }
.hero--sell, .theme-dark .hero--sell { border-radius: 0; }
.hero--sell + .section, .theme-dark .hero--sell + .section { margin-top: 0; padding-top: var(--section-y); }
.hero {
  -webkit-mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent);
}
.hero__inner { padding-bottom: calc(40px + var(--fade)); }

.hard-case {
  padding: calc(clamp(56px, 7vw, 88px) + var(--fade) * .6) 0;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}

.footer, .theme-dark .footer {
  border-top: 0;
  padding-top: calc(56px + var(--fade));
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade));
          mask-image: linear-gradient(transparent, #000 var(--fade));
}

/* =========================================================
   10. Отзывы с Яндекс.Карт
   ========================================================= */

.page-head + .section { padding-top: clamp(12px, 2vw, 24px); }

/* ---------- Отзывы Яндекса: общие элементы ---------- */
.ya-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ya-score strong { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); }
.ya-stars { color: #ffb400; letter-spacing: 1px; font-size: 16px; }
.ya-stars span { color: var(--line-strong); }

.ya-review {
  display: flex; flex-direction: column; gap: 10px; margin: 0;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.ya-review__head { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.ya-review__head strong { display: block; font-size: 15px; color: var(--ink); }
.ya-review__avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue); font-weight: 800;
}
.ya-review__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.ya-review__text--clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.ya-review__more { margin-top: auto; font-size: 14px; font-weight: 700; }

/* ---------- Главная: лента отзывов, листается ---------- */
.ya-carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ya-carousel__nav { display: flex; gap: 8px; }
.ya-carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 18px; font-weight: 800; color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.ya-carousel__btn:hover { border-color: var(--orange); color: var(--orange); }
.ya-carousel__btn:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--ink); }
.ya-carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; overscroll-behavior-x: contain;
}
.ya-carousel__track > .ya-review { scroll-snap-align: start; }
@media (max-width: 1024px) { .ya-carousel__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) {
  .ya-carousel__track { grid-auto-columns: 86%; }
  .ya-carousel__nav { display: none; }
}

/* ---------- Страница отзывов: все отзывы подряд ---------- */
.ya-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ya-grid { display: block; columns: 2 380px; column-gap: 16px; }
.ya-grid > * { break-inside: avoid; margin-bottom: 16px; }
.ya-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ya-review:target { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }

.theme-dark .ya-score { color: var(--d-text); }
.theme-dark .ya-score strong, .theme-dark .ya-review__head strong { color: #fff; }
.theme-dark .ya-stars span { color: rgba(255, 255, 255, .2); }
.theme-dark .ya-review { background: var(--d-card); border-color: var(--d-line); }
.theme-dark .ya-review__head, .theme-dark .ya-note { color: var(--d-muted); }
.theme-dark .ya-review__text { color: var(--d-text); }
.theme-dark .ya-review__avatar { background: rgba(0, 111, 202, .2); color: var(--d-link); }
.theme-dark .ya-review:target { box-shadow: 0 0 0 3px rgba(255, 91, 0, .25); }
.theme-dark .ya-carousel__btn { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.theme-dark .ya-carousel__btn:disabled { color: #fff; border-color: rgba(255, 255, 255, .25); }

/* Подпись автора и лицензии у фото с Wikimedia Commons */
.gallery__credit { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none !important; }
.gallery__credit:hover { color: var(--orange); }
.theme-dark .gallery__credit { color: var(--d-muted); }


/* Номер телефона не разрывается переносом строки */
a[href^="tel:"] { white-space: nowrap; }

/* Длинные слова («электрооборудования») на узких экранах переносятся, а не вылезают за край */
h1, h2, h3, .page-head__title, .ya-review__text, .site-review blockquote { overflow-wrap: break-word; hyphens: auto; }

/* Длинные надписи на кнопках отзывов переносятся на узких экранах */
.ya-summary .btn, .reviews-actions .btn { white-space: normal; text-align: center; }
