/* ==========================================================================
   Dinamica Detailing — основной файл стилей
   Палитра и типографика утверждены (вариант A + C).
   Все размеры/цвета — в переменных ниже, менять проще здесь.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #101013;
  --bg-card: #101013;
  --bg-card-hover: #131317;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --text: #f2f2f4;
  --text-soft: #a8a8b0;
  --text-dim: #6f6f78;
  --text-faint: #4a4a53;

  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-lg: 18px;

  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- типографика ---------- */
/* строка-адрес в первом экране */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #8c8c96;
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, .28);
}

h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
h1 em, h2 em { font-style: normal; color: #9a9aa4; }

/* выделенное слово в заголовке — «видно» */
h1 .hl {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: #fff;
  font-size: 1.14em;
  letter-spacing: -.045em;
  text-shadow: 0 0 42px rgba(255, 255, 255, .18);
}
h1 .hl::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: .02em;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .1));
  transform: scaleX(1);
  transform-origin: left;
  animation: hl-underline 1.1s .4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes hl-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 52ch;
}

.sec-label {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 16px 28px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, opacity .18s, border-color .18s, color .18s, background .18s;
}
.btn-primary { background: var(--text); color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: #d6d6de;
  border: 1px solid rgba(255, 255, 255, .18);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: auto;
}
.logo-mark { height: 34px; }
.logo-word { height: 26px; }
.logo-foot .logo-word { height: 34px; }
@media (max-width: 900px) {
  .logo-mark { height: 30px; }
  .logo-word { height: 23px; }
}
@media (max-width: 720px) {
  .logo-mark { height: 26px; }
  .logo-word { height: 20px; }
}
.menu {
  display: flex;
  gap: 30px;
  font-size: 13.5px;
}
.menu a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .18s;
}
.menu a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #d6d6de;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: #fff; }

/* ---------- шапка: меню на телефоне ----------
   До 900px горизонтальное меню не помещается в строку, поэтому оно уходит
   в панель под шапкой, а открывается кнопкой-бургером. Раньше здесь просто
   стояло .menu { display: none }: на телефоне в шапке оставались логотип и
   телефон, а в калькулятор, работы и отзывы можно было попасть только через
   подвал в самом низу страницы. Панель закрывается повторным нажатием,
   переходом по ссылке, по Esc и нажатием мимо неё. Без JS она остаётся
   закрытой, но ссылки на всё нужное есть в подвале. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px; /* иконка визуально встаёт по краю контента */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #e8e8ee;
  transition: transform .25s ease, opacity .18s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* «Рассчитать» внутри мобильной панели: на десктопе не нужна — там такая
   же кнопка стоит справа в шапке */
.menu-cta { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-right { gap: 14px; }

  /* панель прижата к шапке: top: 100% — это её высота, 78px */
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 78px);
    padding: 6px 20px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 16px;
    background: rgba(10, 10, 12, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .site-header.is-open .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu > a:not(.menu-cta) {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .menu-cta {
    display: flex;
    align-self: stretch;
    margin-top: 18px;
    padding: 15px 24px;
  }

  /* пока панель открыта, шапка непрозрачна, иначе сквозь неё читается текст */
  .site-header.is-open {
    background: rgba(10, 10, 12, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  body.menu-open { overflow: hidden; }
}

/* телефон в панели — это ссылка-кнопка, поэтому цвет текста берём у кнопки:
   правило .menu a выше красит ссылки в серый и на светлой кнопке не читается */
.menu a.menu-cta,
.menu a.menu-cta:hover { color: #0a0a0c; }

/* На узких экранах логотип, телефон и бургер не помещаются в строку:
   162 + 14 + 164 = 340px при 305px места на 360-м экране. Ужимаем всё
   понемногу, чтобы номер остался целиком и ничего не вылезало за край. */
@media (max-width: 430px) {
  .logo { gap: 8px; }
  .logo-word { height: 18px; }
  .nav-right { gap: 10px; }
  .phone { font-size: 12px; letter-spacing: .02em; }
}

/* на самых узких (320px) места хватает только логотипу и бургеру;
   позвонить можно кнопкой в первом экране и из подвала */
@media (max-width: 359px) {
  .phone { display: none; }
}

/* ---------- герой с видео ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px 0 40px;
}
.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: radial-gradient(90% 70% at 72% 22%, #2e3138 0%, #191b1f 44%, #0b0c0e 100%);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(96deg, rgba(8, 8, 10, .96) 0%, rgba(8, 8, 10, .88) 34%, rgba(8, 8, 10, .6) 58%, rgba(8, 8, 10, .4) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, .8) 0%, rgba(8, 8, 10, 0) 26%, rgba(8, 8, 10, .14) 62%, var(--bg) 100%);
}
.hero .lead {
  color: #b0b0b8;
  max-width: 56ch;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 46px;
}
/* 12 услуг: при 780px двенадцатый чип падал на отдельную третью строку,
   поэтому блок шире — тогда получается ровно два ряда по шесть. */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 920px;
}
.pill {
  font-size: 14px;
  color: #b4b4bd;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 13px 24px;
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}
.pill:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #f2f2f4;
}

/* ---------- секции ---------- */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.sec-head .sec-note {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 36ch;
  padding-bottom: 4px;
}

/* ---------- услуги ---------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.svc {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: border-color .2s, background .2s, transform .2s;
}
.svc:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.svc > *:not(.fx) { position: relative; z-index: 2; }
.svc .num {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.svc h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.svc p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  flex: 1;
}

/* ---------- анимации услуг ---------- */
.fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.svc:is(:hover, .is-live) .fx { opacity: 1; }

/* полировка — блик, проходящий по поверхности */
.fx-sheen::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-18deg);
}
.svc:is(:hover, .is-live) .fx-sheen::before { animation: sheen 1.9s ease-in-out infinite; }
@keyframes sheen {
  0%   { left: -60%; }
  70%  { left: 130%; }
  100% { left: 130%; }
}

/* керамика — гидрофоб: вода собирается в круглые бусины и скатывается */
.fx-beads {
  background-image:
    radial-gradient(circle at 13% 24%, rgba(255, 255, 255, .9) 0 .7px, rgba(255, 255, 255, .46) 1.4px 2.4px, rgba(255, 255, 255, .12) 3.2px, transparent 4px),
    radial-gradient(circle at 36% 13%, rgba(255, 255, 255, .9) 0 .8px, rgba(255, 255, 255, .5) 1.6px 2.9px, rgba(255, 255, 255, .14) 3.8px, transparent 4.7px),
    radial-gradient(circle at 59% 29%, rgba(255, 255, 255, .85) 0 .6px, rgba(255, 255, 255, .4) 1.2px 2.1px, rgba(255, 255, 255, .1) 2.9px, transparent 3.6px),
    radial-gradient(circle at 83% 17%, rgba(255, 255, 255, .9) 0 .9px, rgba(255, 255, 255, .52) 1.8px 3.2px, rgba(255, 255, 255, .15) 4.2px, transparent 5.2px),
    radial-gradient(circle at 23% 62%, rgba(255, 255, 255, .88) 0 .8px, rgba(255, 255, 255, .48) 1.6px 2.8px, rgba(255, 255, 255, .13) 3.7px, transparent 4.6px),
    radial-gradient(circle at 49% 75%, rgba(255, 255, 255, .8) 0 .6px, rgba(255, 255, 255, .38) 1.2px 2px, rgba(255, 255, 255, .1) 2.8px, transparent 3.5px),
    radial-gradient(circle at 73% 59%, rgba(255, 255, 255, .85) 0 .7px, rgba(255, 255, 255, .44) 1.4px 2.5px, rgba(255, 255, 255, .12) 3.3px, transparent 4.1px),
    radial-gradient(circle at 91% 76%, rgba(255, 255, 255, .82) 0 .7px, rgba(255, 255, 255, .4) 1.3px 2.2px, rgba(255, 255, 255, .1) 3px, transparent 3.8px),
    radial-gradient(circle at 9% 89%, rgba(255, 255, 255, .85) 0 .8px, rgba(255, 255, 255, .42) 1.5px 2.6px, rgba(255, 255, 255, .11) 3.5px, transparent 4.4px),
    radial-gradient(circle at 62% 90%, rgba(255, 255, 255, .76) 0 .5px, rgba(255, 255, 255, .34) 1px 1.8px, rgba(255, 255, 255, .08) 2.5px, transparent 3.2px);
}
/* два шарика скатываются по кузову — круглые, без «хвостов» */
.fx-beads::before,
.fx-beads::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 27%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, rgba(255, 255, 255, .95) 0 1.6px, rgba(255, 255, 255, .62) 2.6px, rgba(255, 255, 255, .3) 6px, rgba(255, 255, 255, .1) 11px, transparent 13px);
  opacity: 0;
  transform: translateY(0) scale(.6);
}
.fx-beads::after {
  left: 69%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 33% 28%, rgba(255, 255, 255, .95) 0 1.2px, rgba(255, 255, 255, .58) 2px, rgba(255, 255, 255, .26) 4.6px, rgba(255, 255, 255, .08) 8.4px, transparent 10px);
}
.svc:is(:hover, .is-live) .fx-beads::before { animation: beadRoll 2.8s cubic-bezier(.42, .02, .58, .98) infinite; }
.svc:is(:hover, .is-live) .fx-beads::after { animation: beadRoll 2.8s cubic-bezier(.42, .02, .58, .98) 1.4s infinite; }
@keyframes beadRoll {
  0%   { opacity: 0;   transform: translateY(0)    scale(.55); }
  16%  { opacity: .95; transform: translateY(9px)  scale(1); }
  72%  { opacity: .9;  transform: translateY(84px) scale(1.02); }
  100% { opacity: 0;   transform: translateY(112px) scale(.92); }
}

/* защитная плёнка — щит, который «включается» */
.fx-shield::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 26px;
  transform: scale(.6) rotate(-8deg);
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-shield::before { animation: shield 1.8s ease-out infinite; }
@keyframes shield {
  0%   { transform: scale(.6) rotate(-8deg); opacity: 0; }
  35%  { opacity: .9; }
  100% { transform: scale(1.5) rotate(6deg); opacity: 0; }
}

/* химчистка — пузырьки поднимаются */
.fx-bubbles {
  background-image:
    radial-gradient(circle at 20% 90%, rgba(255, 255, 255, .42) 0 4px, transparent 5px),
    radial-gradient(circle at 46% 96%, rgba(255, 255, 255, .32) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 92%, rgba(255, 255, 255, .38) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 98%, rgba(255, 255, 255, .26) 0 3px, transparent 4px);
}
.svc:is(:hover, .is-live) .fx-bubbles { animation: bubbles 3s linear infinite; }
@keyframes bubbles {
  0%   { background-position: 0 10px, 0 16px, 0 8px, 0 20px; opacity: .3; }
  60%  { opacity: .9; }
  100% { background-position: 6px -60px, -5px -76px, 4px -66px, -3px -84px; opacity: 0; }
}
/* часть пузырьков лопается */
.fx-bubbles::before,
.fx-bubbles::after {
  content: "";
  position: absolute;
  left: 34%;
  top: 46%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  opacity: 0;
}
.fx-bubbles::after { left: 69%; top: 33%; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.svc:is(:hover, .is-live) .fx-bubbles::before { animation: pop 3s ease-out .6s infinite; }
.svc:is(:hover, .is-live) .fx-bubbles::after { animation: pop 3s ease-out 2s infinite; }
@keyframes pop {
  0%   { transform: scale(.5); opacity: .95; }
  40%  { transform: scale(1.25); opacity: .6; }
  55%  { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

/* мойка — пена поднимается и растворяется */
.fx-drops {
  background-image:
    radial-gradient(circle at 22% 76%, rgba(255, 255, 255, .4) 0 13px, transparent 14px),
    radial-gradient(circle at 48% 90%, rgba(255, 255, 255, .3) 0 9px, transparent 10px),
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, .34) 0 16px, transparent 17px),
    radial-gradient(circle at 90% 88%, rgba(255, 255, 255, .24) 0 10px, transparent 11px),
    radial-gradient(circle at 10% 52%, rgba(255, 255, 255, .2) 0 8px, transparent 9px);
  filter: blur(1px);
}
.svc:is(:hover, .is-live) .fx-drops { animation: foam 3.4s ease-in-out infinite; }
@keyframes foam {
  0%   { background-position: 0 16px, 0 10px, 0 18px, 0 12px, 0 22px; opacity: .3; }
  45%  { background-position: 5px -8px, -3px -14px, 4px -12px, -2px -16px, -5px -10px; opacity: .95; }
  100% { background-position: 9px -32px, -6px -38px, 7px -36px, -4px -40px, -9px -34px; opacity: 0; }
}

/* тонировка — стекло затемняется */
.fx-dim {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 55%, transparent 100%);
  clip-path: inset(0 0 0 100%);
}
.svc:is(:hover, .is-live) .fx-dim { animation: dim 1.8s ease-in-out infinite; }
@keyframes dim {
  0%   { clip-path: inset(0 0 0 100%); }
  45%  { clip-path: inset(0 0 0 0%); }
  75%  { clip-path: inset(0 0 0 0%); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* шумоизоляция — звуковые волны */
.fx-rings::before,
.fx-rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-rings::before { animation: rings 2.2s ease-out infinite; }
.svc:is(:hover, .is-live) .fx-rings::after { animation: rings 2.2s ease-out .7s infinite; }
@keyframes rings {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* реставрация — «строчка» прошивает и возвращает фактуру */
.fx-glow::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 63%;
  border-top: 2px dashed rgba(255, 255, 255, .5);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.fx-glow::after {
  content: "";
  position: absolute;
  inset: -20% -50%;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .26) 50%, transparent 56%);
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-glow::before { animation: stitch 2.8s cubic-bezier(.45, .05, .25, 1) infinite; }
.svc:is(:hover, .is-live) .fx-glow::after { animation: sweep 2.8s ease-in-out infinite; }
@keyframes stitch {
  0%   { transform: scaleX(0); opacity: 0; }
  12%  { opacity: 1; }
  58%  { transform: scaleX(1); opacity: 1; }
  82%  { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes sweep {
  0%, 22%   { transform: translateX(-35%); opacity: 0; }
  45%       { opacity: .9; }
  78%, 100% { transform: translateX(35%); opacity: 0; }
}

/* малярно-кузовной цех — из сопла бьёт факел краски, туман расходится и тает */
.fx-spray {
  background-image:
    radial-gradient(circle at 16% 70%, rgba(255, 255, 255, .82) 0 .8px, transparent 1.9px),
    radial-gradient(circle at 26% 62%, rgba(255, 255, 255, .66) 0 .7px, transparent 1.7px),
    radial-gradient(circle at 35% 76%, rgba(255, 255, 255, .74) 0 .9px, transparent 2px),
    radial-gradient(circle at 46% 57%, rgba(255, 255, 255, .56) 0 .6px, transparent 1.5px),
    radial-gradient(circle at 58% 68%, rgba(255, 255, 255, .5) 0 .7px, transparent 1.7px),
    radial-gradient(circle at 69% 50%, rgba(255, 255, 255, .4) 0 .6px, transparent 1.5px),
    radial-gradient(circle at 79% 60%, rgba(255, 255, 255, .32) 0 .5px, transparent 1.4px),
    radial-gradient(circle at 89% 42%, rgba(255, 255, 255, .24) 0 .5px, transparent 1.3px);
}
.fx-spray::before {
  content: "";
  position: absolute;
  left: -16px;
  bottom: -20px;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .46), rgba(255, 255, 255, .16) 40%, transparent 70%);
  transform: scale(.3);
  transform-origin: 8% 92%;
  opacity: 0;
  filter: blur(2px);
}
.svc:is(:hover, .is-live) .fx-spray { animation: sprayMist 2.4s ease-out infinite; }
.svc:is(:hover, .is-live) .fx-spray::before { animation: sprayPuff 2.4s ease-out infinite; }
@keyframes sprayMist {
  0%   { opacity: 0;   transform: translate(-12px, 8px); }
  25%  { opacity: .85; }
  100% { opacity: 0;   transform: translate(30px, -26px); }
}
@keyframes sprayPuff {
  0%   { opacity: 0;  transform: scale(.3); }
  20%  { opacity: .8; }
  100% { opacity: 0;  transform: scale(1.15); }
}

/* автотелье — строчка прошивает карточку, за иглой идёт нить */
.fx-seam::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 60%;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .78) 0 7px, transparent 7px 14px);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.fx-seam::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 60%;
  width: 7px;
  height: 7px;
  margin: -2.5px 0 0 -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 1.6px, rgba(255, 255, 255, .45) 2.6px, transparent 4px);
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-seam::before { animation: seamRun 3s cubic-bezier(.4, .05, .3, 1) infinite; }
.svc:is(:hover, .is-live) .fx-seam::after { animation: needleRun 3s cubic-bezier(.4, .05, .3, 1) infinite; }
@keyframes seamRun {
  0%   { transform: scaleX(0); opacity: 0; }
  10%  { opacity: 1; }
  58%  { transform: scaleX(1); opacity: 1; }
  78%  { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes needleRun {
  0%   { left: 8%;  opacity: 0; }
  10%  { opacity: 1; }
  58%  { left: 92%; opacity: 1; }
  72%  { left: 92%; opacity: 0; }
  100% { left: 92%; opacity: 0; }
}

/* антикор — защитный слой поднимается по днищу и растворяется */
.fx-coat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(255, 255, 255, .04) 64%, rgba(255, 255, 255, .11) 100%);
  clip-path: inset(100% 0 0 0);
}
.fx-coat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-coat::before { animation: coatRise 2.8s ease-in-out infinite; }
.svc:is(:hover, .is-live) .fx-coat::after { animation: coatEdge 2.8s ease-in-out infinite; }
@keyframes coatRise {
  0%   { clip-path: inset(100% 0 0 0); opacity: 0; }
  20%  { opacity: 1; }
  62%  { clip-path: inset(0 0 0 0); opacity: 1; }
  86%  { clip-path: inset(0 0 0 0); opacity: 0; }
  100% { clip-path: inset(100% 0 0 0); opacity: 0; }
}
@keyframes coatEdge {
  0%   { bottom: 0%;   opacity: 0; }
  18%  { opacity: .9; }
  62%  { bottom: 100%; opacity: .9; }
  78%  { bottom: 100%; opacity: 0; }
  100% { bottom: 0%;   opacity: 0; }
}

/* удаление вмятин — вмятину вдавливают, она выходит обратно с бликом */
.fx-dent::before {
  content: "";
  position: absolute;
  left: 66%;
  top: 52%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  box-shadow: inset 0 12px 20px rgba(0, 0, 0, .55), inset 0 -3px 8px rgba(255, 255, 255, .3);
  opacity: 0;
}
.fx-dent::after {
  content: "";
  position: absolute;
  left: 66%;
  top: 52%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 62%);
  opacity: 0;
}
.svc:is(:hover, .is-live) .fx-dent::before { animation: dentPress 2.6s ease-in-out infinite; }
.svc:is(:hover, .is-live) .fx-dent::after { animation: dentPop 2.6s ease-out infinite; }
@keyframes dentPress {
  0%   { opacity: 0;   transform: scale(1.25); }
  18%  { opacity: .9;  transform: scale(1); }
  46%  { opacity: .9;  transform: scale(.72); }
  70%  { opacity: .9;  transform: scale(1.02); }
  86%  { opacity: 0;   transform: scale(1.12); }
  100% { opacity: 0;   transform: scale(1.12); }
}
@keyframes dentPop {
  0%, 58% { opacity: 0;   transform: scale(.7); }
  66%     { opacity: .85; transform: scale(.95); }
  84%     { opacity: 0;   transform: scale(1.5); }
  100%    { opacity: 0;   transform: scale(1.5); }
}

/* ---------- калькулятор ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 18px;
  align-items: start;
}
.calc-form,
.calc-total {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 30px;
  /* без этого содержимое диктует минимальную ширину колонки и карточка
     вылезает за экран на телефоне (см. .svc-opt ниже) */
  min-width: 0;
}
.calc-form {
  background: linear-gradient(160deg, #131317 0%, #0d0d10 60%);
}
.calc-form h3,
.calc-total h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.calc-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
/* ---------- выпадающие списки калькулятора ---------- */
.sel { position: relative; }

.sel-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.sel-btn:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.sel-btn:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}
.sel-ico { display: flex; flex: 0 0 auto; color: #8a8a94; transition: color .18s; }
.sel-val {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sel-arrow {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid var(--text-soft);
  border-bottom: 1.5px solid var(--text-soft);
  transform: rotate(45deg);
  transition: transform .26s cubic-bezier(.3, .8, .2, 1), border-color .18s;
}
.sel.is-open .sel-btn { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .05); }
.sel.is-open .sel-arrow { transform: rotate(-135deg); border-color: var(--text); }
.sel.is-open .sel-ico { color: #dcdce2; }

/* панель: выезжает сверху вниз */
.sel-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #131317;
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .95), 0 2px 10px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  /* visibility переключаем без задержки при открытии, но прячем только после закрытия */
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .25, 1), visibility 0s linear .3s;
}
.sel.is-open .sel-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .25, 1), visibility 0s;
}

.sel-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sel-opt:hover,
.sel-opt.is-active { background: rgba(255, 255, 255, .06); color: var(--text); }
.sel-opt:focus { outline: none; }
.sel-opt:focus-visible {
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.sel-opt[aria-selected="true"] { color: var(--text); }
.sel-opt .mark {
  display: flex;
  flex: 0 0 14px;
  width: 14px;
  opacity: 0;
  transition: opacity .15s;
}
.sel-opt .mark svg { width: 14px; height: 14px; }
.sel-opt[aria-selected="true"] .mark { opacity: 1; }

/* пункты списка выезжают по очереди */
.sel.is-open .sel-opt {
  animation: optIn .34s cubic-bezier(.2, .8, .25, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 40ms);
}
@keyframes optIn {
  from { opacity: 0; transform: translateY(-9px); }
  to   { opacity: 1; transform: none; }
}

/* нативный select остаётся источником значения для расчёта, но не виден */
.sel-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* подсветка поля при смене значения */
.sel.is-flash .sel-btn { animation: fieldPop .55s ease; }
@keyframes fieldPop {
  0%   { border-color: rgba(255, 255, 255, .8); box-shadow: 0 0 0 0 rgba(255, 255, 255, .32); }
  100% { border-color: var(--line-strong); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
.sel.is-flash .sel-ico { animation: icoPop .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes icoPop {
  0%   { transform: scale(.6); color: #fff; }
  55%  { transform: scale(1.18); color: #fff; }
  100% { transform: scale(1); }
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* Класс .svc-list делят два разных блока: список услуг в калькуляторе
   (#servicesList) и маркированный список в тексте страниц услуг, у которого
   ниже стоит display: grid. Побеждало последнее правило, и калькулятор
   оказался grid-ом с единственным треком по min-content: как только услуга
   раскрывалась, трек становился шире колонки и страница на 320px уезжала
   вбок на 41px. Раскладку калькулятора держим на id — у него приоритет
   выше любого класса, и перебить её из блока страниц услуг больше нельзя.
   min-width: 0 у группы обязателен: иначе flex-строка снова упирается
   в min-content раскрытых вариантов. */
#servicesList {
  display: flex;
  flex-direction: column;
  /* 12px — то, как список выглядел до этой правки (значение приходило из
     правила страниц услуг). В блоке калькулятора стояло 8, но менять
     внешний вид без просьбы не будем. */
  gap: 12px;
}
#servicesList .svc-group { min-width: 0; }
.svc-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 13px 15px;
  font-size: 14px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
  user-select: none;
}
.svc-opt:hover { border-color: var(--line-strong); }
.svc-opt.on {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}
.svc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.svc-opt:focus-within {
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.svc-opt .box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .28);
  flex-shrink: 0;
  position: relative;
  transition: background .16s, border-color .16s;
}
.svc-opt.on .box {
  background: var(--text);
  border-color: var(--text);
}
.svc-opt.on .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #0a0a0c;
  border-bottom: 2px solid #0a0a0c;
  transform: rotate(40deg);
}
.svc-opt .name { flex: 1; min-width: 0; }
.svc-opt .ico {
  display: flex;
  flex-shrink: 0;
  color: #7e7e88;
  transition: color .16s;
}
.svc-opt .ico svg { width: 18px; height: 18px; }
.svc-opt.on .ico { color: #eaeaef; }
.svc-opt .sum { font-size: 13px; color: var(--text-faint); white-space: nowrap; }
.svc-opt.on .sum { color: #c9c9d2; }
.svc-opt .sum.is-hint { color: var(--text-dim); }

/* Строка услуги раньше не сжималась ниже слова «Шумоизоляция» (125px), и на
   360-м экране карточка вылезала за правый край. Теперь это правило живёт
   в мобильном блоке @media (max-width: 560px): там строка не переносится,
   название ужимается, а приставка «от» скрыта — см. комментарий ниже. */

/* --- вложенные варианты услуги (плёнка, реставрация салона) --- */
.svc-group { display: flex; flex-direction: column; }
.svc-variants {
  margin-left: 15px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  /* скрытая панель не должна ловить фокус с клавиатуры */
  visibility: hidden;
  transition: max-height .34s cubic-bezier(.22, .61, .36, 1), opacity .26s ease,
    margin-top .3s ease, visibility .34s;
}
.svc-variants.is-open { opacity: 1; margin-top: 8px; visibility: visible; }
.var-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 0 0 2px;
}
.var-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color .16s, background .16s, color .16s;
}
.var-opt:hover { border-color: var(--line-strong); }
.var-opt.on {
  border-style: solid;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}
.var-opt input { position: absolute; opacity: 0; pointer-events: none; }
.var-opt:focus-within {
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1);
}
.var-opt .box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  flex-shrink: 0;
  position: relative;
  transition: background .16s, border-color .16s;
}
.var-opt.on .box { background: var(--text); border-color: var(--text); }
.var-opt.on .box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border-right: 2px solid #0a0a0c;
  border-bottom: 2px solid #0a0a0c;
  transform: rotate(40deg);
}
.var-opt .name { flex: 1; min-width: 0; }
.var-opt .sum { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.var-opt.on .sum { color: #c9c9d2; }

/* подпись группы в списке зон плёнки */
.var-cap {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 10px 0 0;
}
.var-hint + .var-cap { margin-top: 2px; }

/* --- позиция плёнки: галочка, количество, тип --- */
.var-opt {
  flex-wrap: wrap;
  row-gap: 0;
  cursor: default;
  padding-top: 8px;
  padding-bottom: 8px;
}
.var-opt.is-package {
  border-style: solid;
  border-color: var(--line-strong);
}
.var-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}
.var-opt .var-main .name { padding-right: 2px; }

.var-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-right: 2px;
}
.var-qty[hidden] { display: none; }
.var-step {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color .16s, border-color .16s, background .16s;
}
.var-step:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .05);
}
.var-step:disabled { opacity: .28; cursor: default; }
.var-qty-val {
  min-width: 18px;
  text-align: center;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.var-opts {
  flex: 1 1 100%;
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.var-opts[hidden] { display: none; }
.var-chip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.var-chip:hover { border-color: var(--line-strong); color: var(--text-soft); }
.var-chip.on {
  border-style: solid;
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.var-chip i { font-style: normal; opacity: .72; white-space: nowrap; }

/* тип пакета, который уже входит в другую услугу: вкрапления с кузова
   в полировке и керамике — чип гаснет, повод написан прямо в нём */
.var-chip.is-off {
  opacity: .6;
  border-style: dotted;
  cursor: default;
}
.var-chip.is-off:hover { border-color: var(--line); color: var(--text-faint); }
.var-chip .chip-mute { font-style: normal; color: var(--text-faint); }

/* «снять старую плёнку» — одна компактная кнопка под отмеченной зоной */
.var-opts.var-strip { margin-top: 6px; }
.var-strip .var-chip { flex: 0 1 auto; }
.var-strip .var-chip.on { border-color: rgba(255, 255, 255, .5); }

.var-note {
  display: none;
  flex: 1 1 100%;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
}
.var-opt.on .var-note { display: block; }

/* позиция недоступна: входит в пакет или вытесняется другим выбором */
.var-opt.is-off {
  opacity: .4;
  border-style: dashed;
}
.var-opt.is-off:hover { border-color: var(--line); }
.var-opt.is-off .var-main { cursor: default; }

/* причина, по которой позиция погашена — видна в самой строке */
.var-lock {
  display: none;
  flex: 1 1 100%;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
}
.var-opt.is-off .var-lock:not(:empty) { display: block; }

/* мойка уже входит в выбранную услугу: подпись видна и у доступной строки,
   иначе непонятно, почему цена ниже прайса */
.var-opt.is-gift .var-lock:not(:empty) { display: block; }

.calc-total {
  position: sticky;
  top: 96px;
}
.calc-total .lbl {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.total-value {
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.total-value small {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
}
/* «по фото» вместо суммы: цифр нет, поэтому кегль спокойнее числа */
.total-value .val-quote {
  font-size: .66em;
  letter-spacing: 0;
  color: var(--text-soft);
}
.total-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  min-height: 20px;
}
.calc-rows {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 22px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--text-soft);
}
.calc-row b { color: var(--text); font-weight: 500; white-space: nowrap; }
.calc-row.muted { color: var(--text-faint); }
.calc-row.muted b { color: var(--text-soft); font-weight: 400; }
.calc-row.sub {
  padding-left: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.calc-row.sub b { font-weight: 400; color: var(--text-soft); }
.calc-empty {
  font-size: 13px;
  color: var(--text-faint);
  padding: 6px 0;
}
.calc-fine {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}
/* две сноски подряд (скидка + предварительный расчёт) — без двойного отступа */
.calc-fine + .calc-fine {
  margin-top: 4px;
}

/* кнопки «смета в мессенджер» */
.send-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.send-row .btn { padding: 14px 10px; font-size: 13px; }
.send-row .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.send-note {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  margin-top: 10px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
}
.send-note.on { opacity: 1; transform: none; }

/* реакция итоговой карточки на изменение выбора */
.calc-total.is-bump { animation: totalBump .5s ease; }
@keyframes totalBump {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); border-color: var(--line); }
}
.total-value.is-bump { animation: valuePop .4s ease; }
@keyframes valuePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- прозрачный путь ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 26px 24px;
  position: relative;
  transition: border-color .2s, background .2s;
}
.step:hover { border-color: var(--line-strong); background: var(--bg-card-hover); }
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8f8f99;
  transition: color .2s, border-color .2s, background .2s;
}
.step-ico svg { width: 18px; height: 18px; }
.step:hover .step-ico {
  color: #ececf1;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
}
.step .n {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-faint);
  display: block;
}
.step h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}
.step p { font-size: 13px; line-height: 1.62; color: var(--text-dim); }
.steps-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  margin: 0 0 14px;
}

/* ---------- примеры работ ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  margin: 0;
  background: radial-gradient(110% 90% at 70% 20%, #23252b 0%, #16171b 46%, #0d0e10 100%);
  transition: border-color .25s, transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s cubic-bezier(.22, .61, .36, 1);
}
.shot:hover,
.shot:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
}
.shot-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
}
/* зум ведём по обёртке, а не по самой картинке: «замазанные» зоны
   позиционируются в процентах и должны увеличиваться вместе с кадром */
.shot-media {
  position: absolute;
  inset: 0;
  display: block;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.19, .72, .28, 1);
  will-change: transform;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* по умолчанию кадры приглушены — при наведении проявляются */
  filter: brightness(.78) saturate(.92) contrast(1.03);
  transition: filter .55s cubic-bezier(.4, 0, .2, 1);
}
.shot:hover img,
.shot:focus-within img {
  filter: brightness(1.06) saturate(1.08) contrast(1.02);
}
.shot:hover .shot-media,
.shot:focus-within .shot-media {
  transform: scale(1.06);
}
.shot-link:focus-visible {
  outline: 2px solid var(--accent, #d4d4dc);
  outline-offset: -2px;
}
.shot::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-140%) skewX(-12deg);
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .13) 50%, transparent 60%);
}
.shot:hover::before,
.shot:focus-within::before {
  animation: shotSheen .95s cubic-bezier(.25, .6, .3, 1) forwards;
}
@keyframes shotSheen {
  0% { opacity: 0; transform: translateX(-140%) skewX(-12deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(140%) skewX(-12deg); }
}
/* мягкая вуаль поверх кадра: гаснет при наведении, чтобы фото «загоралось» */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 10, .06) 0%, rgba(8, 8, 10, .18) 58%, rgba(8, 8, 10, .28) 100%);
  opacity: 1;
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1);
}
.shot:hover::after,
.shot:focus-within::after {
  opacity: 0;
}
/* номерные знаки размыты в самих файлах (assets/img/works, _work/bake_censors.py),
   поэтому плашек поверх фотографий больше нет */
.shot .cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 13px;
  color: #e4e4ea;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .85);
  pointer-events: none;
}
.shot .sub {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
}

/* полноэкранный просмотр фото */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(6, 6, 8, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
/* сцена встаёт ровно по границам показанного кадра — внутри неё лежат и
   «замазанные» зоны, поэтому они совпадают с фото при любом размере окна */
.lightbox-stage {
  position: absolute;
  opacity: 0;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  will-change: transform, opacity;
  /* переход не задаём: открытие/закрытие анимирует JS (Web Animations API),
     потому что CSS-переход стартовал не всегда и кадр вырастания пропадал */
}
.lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.lightbox.is-open .lightbox-stage { opacity: 1; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: #d8d8de;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: background .2s, color .2s, opacity .24s ease;
}
.lightbox.is-open .lightbox-close { opacity: 1; transition-delay: .1s, .1s, .1s; }
.lightbox-close:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
/* листание по галерее: стрелки по краям и клавиши влево-вправо */
.lightbox-nav {
  position: absolute;
  top: 50%;
  margin-top: -23px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  color: #d8d8de;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: background .2s, color .2s, opacity .24s ease;
}
.lightbox-nav[hidden] { display: none; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox.is-open .lightbox-nav { opacity: 1; transition-delay: .1s, .1s, .1s; }
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
@media (max-width: 700px) {
  .lightbox-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shot,
  .shot img,
  .shot-media { transition: none; }
  .shot:hover,
  .shot:focus-within { transform: none; }
  .shot:hover .shot-media,
  .shot:focus-within .shot-media { transform: none; }
  .shot:hover::before,
  .shot:focus-within::before { animation: none; }
  .lightbox,
  .lightbox-stage,
  .lightbox-close,
  .lightbox-nav { transition: none; }
}

/* ---------- вопросы и мифы ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.faq-col { display: flex; flex-direction: column; gap: 10px; }
.faq-col-title {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 4px 6px;
}
details.item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
details.item[open] {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}
details.item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 50px 19px 22px;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  transition: color .18s;
}
.q-txt { flex: 1; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform .25s cubic-bezier(.3, .8, .2, 1), color .25s;
}
details.item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--text);
}
details.item .answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .3s cubic-bezier(.3, .8, .2, 1), opacity .22s ease;
}
details.item[open] .answer {
  height: auto;
  opacity: 1;
}
.answer-inner {
  padding: 0 22px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- призыв ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { font-size: 14px; color: var(--text-dim); max-width: 52ch; }

/* ---------- подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #08080a;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 34ch;
  line-height: 1.7;
  margin-bottom: 20px;
}
.foot-phone {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  margin-bottom: 6px;
}
.foot-note { font-size: 12px; color: var(--text-faint); }
.foot-title {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a, .foot-links span {
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .18s;
}
.foot-links a:hover { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12px;
  color: var(--text-faint);
}
.foot-bottom a { color: var(--text-faint); text-decoration: none; }
.foot-bottom a:hover { color: var(--text-soft); }

/* ---------- юридические страницы (политика конфиденциальности, 404) ---------- */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 34px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-soft);
}
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--text-soft); }
.legal .legal-upd { margin-top: 34px; font-size: 13px; color: var(--text-faint); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* Уже десктопа колонка становится менее 909px, и блок 920px перестаёт
   помещаться целиком: двенадцатый чип уезжал один в третий ряд.
   Здесь держим блок 700px — тогда ряды ложатся 5/4/3 без сирот. */
@media (max-width: 990px) {
  .chips { max-width: 700px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav-right .btn { display: none; }
  .hero { min-height: 88vh; padding-top: 116px; }
  .section { padding: 60px 0; }
  /* якорные переходы: заголовок секции не уходит под фиксированную шапку */
  section[id] { scroll-margin-top: 30px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-total { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  /* На страницах услуг кадров ровно три, и при двух колонках они ложились
     2+1: последний стоял один, справа оставался пустой угол. Растягиваем его
     на обе колонки полосой 16/9 — кадр читается как «панорама» раздела.
     max-height держит полосу в узде на планшете: там при 900px во всю ширину
     кадр был бы выше плитки в полтора раза. */
  .shot:nth-child(3):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }
  .faq { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .calc-form, .calc-total { padding: 22px; }
}

@media (max-width: 560px) {
  /* Карточки услуг на телефоне — обычный список в одну колонку, компактными
     строками. Никакой горизонтальной прокрутки и привязки к границам:
     блок прокручивается вместе со страницей. */
  .grid-services {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .steps { grid-template-columns: 1fr; }
  /* Примеры работ на телефоне — по два кадра в ряд: во всю ширину каждая
     плитка 350×263 превращала шесть кадров в 1 700px прокрутки. */
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc {
    padding: 14px 16px;
    min-height: 0;
    border-radius: 12px;
  }
  .svc .num {
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: .18em;
  }
  .svc h3 { font-size: 15px; margin-bottom: 3px; }
  .svc p { font-size: 12.5px; line-height: 1.45; }
  /* Калькулятор на телефоне: в строке услуги приставку «от» не показываем
     (её span скрыт), поэтому цена остаётся справа от названия, а не уезжает
     второй строкой под него. Строка не переносится — сжимается название. */
  .svc-opt {
    flex-wrap: nowrap;
    row-gap: 0;
  }
  .svc-opt .name { min-width: 0; overflow-wrap: break-word; }
  .svc-opt .sum { margin-left: 0; flex: 0 0 auto; }
  .svc-opt .sum .from { display: none; }
  /* Длинную подсказку услуги (у мойки — 767 знаков) на телефоне не показываем:
     под раскрытой услугой она занимает пол-экрана. */
  .var-hint { display: none; }
  .hero-actions .btn { width: 100%; }
  .kicker { font-size: 11px; }
  .foot-bottom { flex-direction: column; }
  /* услуг стало двенадцать — на телефоне чипсы держим компактными */
  .chips { gap: 8px; }
  .pill { font-size: 12.5px; padding: 9px 15px; }
}

/* ---------- режим «уменьшенное движение» ----------
   Раньше здесь стояло «отключить все animation» — и из-за этого у пользователей
   с выключенной анимацией в Windows (или с включённой настройкой «уменьшить
   движение») не работали эффекты карточек услуг: они запускаются только
   наведением мыши и живут внутри карточки, то есть не «укачивают».
   Теперь глушим только то, что играет само: подчёркивание в заголовке
   и плавный скролл. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 .hl::after { animation: none !important; }
}

/* ==========================================================================
   СТРАНИЦЫ УСЛУГ
   Один шаблон на все восемь услуг: первый экран, текст с боковой колонкой,
   галерея работ и вопросы. Классы начинаются с .svc-, чтобы не спорить
   с карточками на главной.
   ========================================================================== */

/* карточка услуги на главной стала ссылкой */
a.svc {
  text-decoration: none;
  color: inherit;
}
a.svc:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .5);
  outline-offset: 3px;
}
a.svc h3::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
a.svc:hover h3::after,
a.svc:focus-visible h3::after {
  opacity: 1;
  transform: none;
}

.svc-hero {
  position: relative;
  isolation: isolate;
  padding: 122px 0 56px;
}
.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 62% at 24% 42%, rgba(120, 128, 148, .16), transparent 70%);
}
.svc-hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin-bottom: 20px;
  /* длинное слово не должно вылезать за экран: на 320px
     «Политика конфиденциальности» шире строки на 11px */
  overflow-wrap: break-word;
  hyphens: auto;
}
.svc-hero .lead { max-width: 60ch; }

/* хлебные крошки */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .18s;
}
.crumbs a:hover { color: var(--text-soft); }
.crumbs .sep { color: var(--text-faint); }
.crumbs .cur { color: var(--text-soft); }

.svc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 28px;
}
.svc-meta .chip {
  font-size: 12.5px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, .02);
}
.svc-meta .chip b {
  color: var(--text);
  font-weight: 600;
}

/* текст слева, справка справа */
.svc-body { padding-top: 54px; }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 48px;
  align-items: start;
}
.svc-copy h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 38px 0 12px;
}
.svc-copy h2:first-child { margin-top: 0; }
.svc-copy p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 70ch;
}
.svc-copy h2 + p { margin-top: 0; }
.svc-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.svc-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, .42);
}
.svc-list li b {
  display: block;
  font-weight: 600;
  color: var(--text);
}
.svc-list-desc {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  opacity: .82;
}

.svc-aside {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}

.card-offer {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.card-offer .tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #0a0a0c;
  background: #e9e9ee;
  border-radius: 6px;
  padding: 5px 10px;
}
.card-offer h3 {
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 14px 0 10px;
}
.card-offer p {
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--text-soft);
}
.card-offer .note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.card-price,
.card-related {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--bg-card);
}
.card-price .title,
.card-related .title {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
}
.price-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.price-row b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.card-price .hint {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.card-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .18s;
}
.card-related a:last-child { border-bottom: 0; padding-bottom: 0; }
.card-related a:hover { color: #fff; }
.card-related a::after { content: "→"; color: var(--text-faint); }

/* галерея работ внутри страницы услуги */
.svc-works .gallery { margin-top: 26px; }

/* вопросы — одна колонка */
.svc-faq { max-width: 900px; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr; gap: 34px; }
  .svc-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-offer { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .svc-hero { padding-top: 108px; }
}
@media (max-width: 720px) {
  .svc-aside { grid-template-columns: 1fr; }
  .svc-copy h2 { margin-top: 30px; }
}
@media (max-width: 560px) {
  .svc-hero { padding-top: 96px; }
  .svc-meta .chip { font-size: 12px; padding: 7px 12px; }
}

/* рейтинг в первом экране страницы услуги */
.svc-hero .hero-actions { margin-bottom: 0; }
.svc-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .18s;
}
.svc-rating b { color: var(--text); font-weight: 600; }
.svc-rating .rev-stars { color: var(--text); }
.svc-rating:hover { color: var(--text); }
.svc-rating:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------- отзывы ---------------------------- */

.rev-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}

.rev-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rev-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.rev-stars {
  font-size: 13px;
  letter-spacing: .18em;
  line-height: 1;
}

.rev-count {
  font-size: 13.5px;
  color: var(--text-soft);
}

.rev-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.rev-asof {
  font-size: 12px;
  color: var(--text-dim);
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rev-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--bg-card);
}

.rev-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-ava {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-strong);
}

.rev-who {
  flex: 1;
  min-width: 0;
}

.rev-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rev-date {
  font-size: 12px;
  color: var(--text-dim);
}

.rev-rate {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .16em;
  color: #d8d8de;
}

.rev-text {
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1080px) {
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .rev-grid { grid-template-columns: 1fr; }
  .rev-bar { padding: 16px 18px; }
}

@media (max-width: 560px) {
  .rev-value { font-size: 26px; }
  .rev-actions { width: 100%; justify-content: space-between; }
}
