/* Шрифты: бесплатные аналоги шрифтов макета (SIL Open Font License).
   Gilroy и Euclid Circular A → Onest (вариативный, 500–700), Nico Moji → Audiowide. */
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* только знак рубля */
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+20BD; }
@font-face { font-family: "Audiowide"; src: url("../fonts/audiowide-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #16171c;
  --surface: #202329;
  --field: #25282f;
  --accent: #00e5ff;
  --text: #fff;
  --muted: #c5c5c5;
  --muted-2: #8d8d8d;
  --dark-text: #2c2c2c;
  --line: #25282f;
  --error: #e5372b;
  --glow: 0 0 14px rgba(0, 229, 255, .55), 0 0 4px rgba(0, 229, 255, .6);
  --card-gradient: linear-gradient(144deg, #1b1d21 12.8%, #21232a 97.9%);
  --font: "Onest", system-ui, sans-serif;
  --font-display: "Audiowide", "Onest", sans-serif;
  --container: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.muted { color: var(--muted); font-size: 16px; }
.accent { color: var(--accent); }
.phone { font-weight: 700; font-size: 18px; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  min-width: 185px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  font-size: 18px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn--fill { background: var(--accent); color: var(--dark-text); }
/* наведение по UI kit — свечение, цвета не меняются */
.btn:hover { box-shadow: var(--glow); }
.btn--outline { background: transparent; color: var(--accent); }
.btn--lg { height: 55px; min-width: 298px; font-size: 22px; filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, .8)); }
.btn--block { width: 100%; height: 60px; font-size: 22px; }

/* Header */
.header { position: relative; z-index: 40; padding-top: 15px; }
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--line);
}
.header__menu { display: flex; gap: 18px; }
.header__menu a { color: var(--muted); font-size: 16px; }
.header__menu a:hover, .header__services a:hover, .footer a:hover { color: var(--accent); }

.socials { display: flex; gap: 15px; align-items: center; }
.socials a { transition: opacity .2s; }
.socials a:hover { opacity: .7; }

.header__main {
  display: flex;
  align-items: center;
  gap: 39px;
  padding: 20px 0;
  border-bottom: 2px solid var(--line);
}
/* логотип вместо надписи; надпись «Центр детейлинга…» остаётся для поисковиков и экранных читалок */
.header__brand { display: flex; flex: none; align-items: center; }
.header__logo { flex: none; width: auto; height: 56px; }
.header__contacts { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.header__actions { display: flex; gap: 10px; margin-left: auto; }

.header-search { position: relative; flex: 0 1 338px; min-width: 180px; }
.header-search input {
  width: 100%;
  height: 45px;
  padding: 0 50px 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.header-search input::placeholder { color: var(--muted-2); opacity: 1; }
/* по UI kit: при фокусе и вводе лупа скрывается, обводки нет */
/* лупа видна всегда, кроме момента, когда в поле есть текст — тогда на её месте крестик */
.header-search input:not(:placeholder-shown) + button { opacity: 0; pointer-events: none; }
.header-search input:user-invalid { box-shadow: inset 0 0 0 1px var(--error); }
.header-search button {
  position: absolute;
  top: 50%;
  right: 15px;
  translate: 0 -50%;
  padding: 0;
  border: 0;
  background: none;
}

.header__services {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 25px;
  font-size: 18px;
  white-space: nowrap;
}

.burger { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero { margin-top: 20px; }
.hero__slide {
  position: relative;
  height: 564px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
}
.hero__img {
  position: absolute;
  top: -20px;
  left: 187px;
  width: calc(100% - 187px + 137px);
  height: calc(100% + 80px);
  object-fit: cover;
  object-position: left center;
}
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 543px;
  z-index: 1;
  background: linear-gradient(98deg, var(--bg) 44%, rgba(78, 78, 78, 0) 96%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  max-width: 760px;
  padding: 90px 30px 0;
}
.hero__title { font-size: 40px; font-weight: 500; }
.hero__text { font-size: 24px; max-width: 640px; }
.hero__dots { position: absolute; z-index: 2; left: 50%; bottom: 25px; translate: -50% 0; }

.dots { display: flex; gap: 8px; }
.dots > * { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #d9d9d9; transition: width .35s, background-color .35s; }
.dots > button { cursor: pointer; }
.dots > button:hover { background: #fff; }
.dots > .is-active, .dots > .is-active:hover { width: 47px; background: var(--accent); }
.dots--center { justify-content: center; margin-top: 30px; }

/* Sections */
.section { margin-top: 100px; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section__head-right { display: flex; align-items: center; gap: 48px; }
.section__title { font-size: 30px; font-weight: 500; }
.section__title--center { text-align: center; margin-bottom: 30px; }
.link-accent { color: var(--accent); font-size: 30px; text-decoration: underline; }
.link-accent:hover { text-decoration: none; }

.arrows { display: flex; gap: 10px; }
.arrow {
  width: 64px;
  height: 45px;
  padding: 0;
  border: 0;
  background: url("../img/arrow-next.svg") center / contain no-repeat;
  transition: opacity .2s;
}
.arrow--prev { background-image: url("../img/arrow-prev.svg"); scale: -1 1; }
.arrow:disabled { opacity: .4; cursor: default; }

/* Carousel */
.carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* место под тени карточек */
  padding: 0 10px 12px 0;
  margin-bottom: -12px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex-shrink: 0; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 328px;
  height: 303px;
  padding: 13px 13px 0;
  border: 1px solid var(--accent);
  border-radius: 15px;
  background: var(--card-gradient);
  box-shadow: 3px 4px 6.7px rgba(0, 0, 0, .88);
}
.service-card img {
  width: 100%;
  height: 198px;
  margin-bottom: 15px;
  border-radius: 15px;
  object-fit: cover;
  transition: transform .4s;
}
.service-card__title { font-size: 24px; font-weight: 600; transition: color .2s; }
.service-card__price { font-size: 18px; transition: color .2s; }
.service-card:hover .service-card__title,
.service-card:hover .service-card__price { color: var(--accent); }

/* Advantages */
.advantages {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 116px;
}
.advantage { display: flex; flex-direction: column; gap: 20px; font-size: 24px; }
.advantage:nth-child(1) { max-width: 200px; }
.advantage:nth-child(2) { max-width: 236px; }
.advantage:nth-child(3) { max-width: 180px; }
.advantage:nth-child(4) { max-width: 217px; }
/* svg с тенью выходит за габарит иконки — компенсируем отрицательными отступами */
.advantage__icon {
  /* иконки разной высоты (2x PNG): общая высота и выравнивание по низу, чтобы подписи стояли ровно */
  display: flex;
  align-items: flex-end;
  height: 127px;
  margin: -20px 0 -20px -20px;
}

/* Promo */
.section__title + .promo-slider { margin-top: 35px; }
.promo {
  position: relative;
  height: 458px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 3px 4px 9px rgba(0, 0, 0, .88);
}
.promo__decor img, .promo__car, .promo__brand { position: absolute; max-width: none; }
.promo__glow { left: -457px; top: -350px; width: 1396px; height: 1040px; }
.promo__brand {
  left: 254px;
  top: 348px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.promo__shadow { rotate: -18.14deg; }
.promo__shadow--1 { left: 41px; top: 256px; width: 551px; height: 157px; }
.promo__shadow--2 { left: -121px; top: 308px; width: 484px; height: 145px; }
.promo__shadow--3 { left: 440px; top: 264px; width: 95px; height: 61px; }
.promo__shadow--4 { left: 113px; top: 375px; width: 119px; height: 61px; }
.promo__car { left: -325px; top: -32px; width: 867px; height: 488px; object-fit: cover; }
.promo__content { position: absolute; left: 692px; top: 35px; max-width: 460px; }
.promo__lead { font-size: 38px; max-width: 444px; }
.promo__discount { margin-top: 22px; color: var(--accent); font-size: 60px; font-weight: 700; }
.promo__note { margin-top: 6px; font-size: 26px; }

/* Reviews */
.review {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 461px;
  padding: 15px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: linear-gradient(152deg, #1b1d21 12.8%, #21232a 97.9%);
  filter: drop-shadow(3px 4px 3.35px rgba(0, 0, 0, .88));
  font-size: 20px;
}
.review__name { margin-top: 5px; font-size: 24px; font-weight: 600; }
.stars { display: flex; gap: 5px; }
.stars i { width: 28px; height: 28px; background: url("../img/star.svg") center / contain no-repeat; }

/* Form */
.form-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  border-radius: 30px;
  background: linear-gradient(161deg, #1b1d21 12.8%, #21232a 97.9%);
}
.form-box__title { font-size: 30px; font-weight: 600; text-align: center; }
.form { display: flex; flex-direction: column; gap: 17px; width: 100%; max-width: 550px; }
.form input, .form textarea {
  width: 100%;
  height: 60px;
  padding: 12px 15px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  outline: none;
  transition: box-shadow .2s;
}
.form textarea { height: 95px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--error); }
.form__agree { max-width: 397px; margin: -2px 0 3px; font-size: 15px; letter-spacing: .01em; }
.form__agree a { text-decoration: underline; }
.form__agree a:hover { color: var(--accent); }

/* FAQ */
.faq { max-width: calc(896px + var(--gutter) * 2); }
.faq__list { display: flex; flex-direction: column; gap: 25px; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 24px;
  line-height: 1.23;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 13px;
  height: 22px;
  background: url("../img/chevron-down.svg") center / contain no-repeat;
  rotate: 90deg;
  transition: rotate .2s;
}
.faq__item.is-open summary::after { rotate: -90deg; }
.faq__item summary:hover { color: var(--accent); }
.faq__answer { max-width: 833px; margin-top: 15px; font-size: 22px; line-height: 1.25; }
.faq__answer p + p { margin-top: .6em; }

/* Map */
.map { position: relative; margin-top: 145px; }
.map__img { width: 100%; height: 465px; border-radius: 30px; object-fit: cover; }
.map__pin { position: absolute; left: calc(var(--gutter) + 51.5%); top: 198px; }
.map__card {
  position: absolute;
  left: calc(var(--gutter) + 40px);
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 39px;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: var(--bg);
  filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, .25));
}
.map__card > div { display: flex; flex-direction: column; gap: 10px; min-width: 251px; }
.map__city { font-size: 22px; font-weight: 600; }
.map__address { font-size: 20px; }

/* Footer */
.footer { margin-top: 75px; padding-bottom: 30px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 30px;
  border-top: 2px solid var(--line);
}
.footer__inner .socials { align-self: flex-start; }
.footer__cols { display: flex; gap: 100px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col a, .footer__col p { font-size: 16px; font-weight: 600; }
.footer__col--main a, .footer__heading { font-size: 24px !important; font-weight: 500 !important; line-height: 1.23; }
.footer__contacts { gap: 6px; width: 240px; }
.footer__contacts .footer__heading { margin-bottom: 4px; }
.footer__contacts p { font-size: 18px; }
.footer__contacts .muted { font-weight: 500; }
.footer__policy {
  display: inline-block;
  margin-top: 40px;
  color: var(--muted-2);
  font-size: 16px;
  text-decoration: underline;
}

/* Form states */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__notice { padding: 14px 18px; border-radius: 15px; font-size: 16px; }
.form__notice--ok { background: rgba(0, 229, 255, .12); color: var(--accent); }
.form__notice--error { background: rgba(255, 82, 82, .12); color: #ff8a8a; }

/* Map embed */
.map__embed { height: 465px; overflow: hidden; border-radius: 30px; }
.map__embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Inner pages (в макете нет — оформлены в стиле главной) */
/* не .page: этот класс WordPress сам ставит на body */
.page-main { margin-top: 60px; }
.page__title { font-size: 40px; font-weight: 500; }
.page__price { margin-top: 10px; color: var(--accent); font-size: 24px; }
.page__cover { width: 100%; max-height: 520px; margin-top: 35px; border-radius: 30px; object-fit: cover; }
.page__empty { margin-top: 25px; color: var(--muted); }
.page-main--404 { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; min-height: 40vh; }

.content { max-width: 896px; margin-top: 35px; font-size: 20px; line-height: 1.5; }
.content > * + * { margin-top: 1em; }
.content h2 { margin-top: 1.6em; font-size: 30px; font-weight: 500; line-height: 1.2; }
.content h3 { margin-top: 1.4em; font-size: 24px; font-weight: 600; line-height: 1.2; }
.content a { color: var(--accent); text-decoration: underline; }
.content ul, .content ol { padding-left: 1.2em; }
.content li::marker { color: var(--accent); }
.content img { height: auto; border-radius: 20px; }
.content blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.content h4 { margin-top: 1.2em; font-size: 20px; font-weight: 600; }
.content figure { margin: 1.5em 0 0; }
.content figure img { display: block; width: 100%; }
/* таблицы в статьях: на узком экране листаются по горизонтали */
.content__table { overflow-x: auto; }
.content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 18px; line-height: 1.35; }
.content th, .content td { padding: 12px 15px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content thead th { color: var(--muted-2); font-weight: 500; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 35px; }
.post-card { width: auto; height: auto; padding-bottom: 18px; }
.post-card__excerpt { color: var(--muted); font-size: 16px; }
.pagination { margin-top: 35px; }
.pagination .nav-links { display: flex; gap: 10px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 45px;
  height: 45px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Adaptive ---------- */
@media (max-width: 1240px) {
  .header__services { gap: 16px; font-size: 16px; }
  .header__main { gap: 24px; }

}


/* ---------- Service page (Figma 146:262) ---------- */
.header__socials { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 27px; font-size: 15px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 15px;
  background: url("../img/crumb-arrow.svg") center / contain no-repeat;
}
.breadcrumbs [aria-current] { color: var(--accent); }

.svc-hero {
  position: relative;
  aspect-ratio: 1584 / 672;
  margin-top: 23px;
  overflow: hidden;
  border-radius: 30px;
}
.svc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .6); }
.svc-hero__title, .svc-hero__form { z-index: 2; }
.svc-hero__title {
  position: absolute;
  left: 35px;
  top: 50%;
  translate: 0 -50%;
  max-width: 527px;
  font-size: 40px;
  font-weight: 600;
}
.svc-hero__form {
  position: absolute;
  right: 80px;
  top: 54px;
  width: 434px;
  gap: 15px;
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(144deg, rgba(27, 29, 33, .8) 12.8%, rgba(33, 35, 42, .8) 97.9%);
  box-shadow: 3px 4px 6.7px rgba(0, 0, 0, .88);
}
.svc-hero__lead { margin-bottom: 5px; font-size: 22px; }
.svc-hero__form .form__agree { margin: -5px 0 5px; }
.svc-hero__form .btn--lg { height: 55px; }

.svc-text { margin-top: 60px; }
.svc-text__title { margin-bottom: 15px; font-size: 30px; font-weight: 600; }
.svc-text__body { font-size: 24px; }
.svc-text__body > * + * { margin-top: .6em; }
.svc-text__body a { color: var(--accent); text-decoration: underline; }
.prices .svc-text__title { margin-bottom: 30px; }

.prices__scroll { overflow-x: auto; scrollbar-width: none; }
.prices__scroll::-webkit-scrollbar { display: none; }

/* своя полоса прокрутки (скрин таблицы): бирюзовый ползунок на светлой дорожке */
.scrollbar { position: relative; height: 6px; margin-top: 18px; border-radius: 3px; background: #d9d9d9; cursor: pointer; touch-action: none; }
.scrollbar[hidden] { display: none; }
.scrollbar__thumb { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; background: var(--accent); cursor: grab; }
.scrollbar.is-dragging .scrollbar__thumb { cursor: grabbing; }
.prices__table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.prices__table th, .prices__table td { padding: 12px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prices__table thead th { color: #bcbcbc; font-size: 22px; font-weight: 500; text-align: center; }
.prices__table thead th:first-child { color: var(--text); font-size: 20px; font-weight: 700; }
.prices__table th:first-child { width: 372px; padding-right: 20px; text-align: left; }
.prices__table tbody th { color: #bcbcbc; font-size: 20px; font-weight: 500; }
.prices__table td { font-size: 22px; text-align: center; white-space: nowrap; }
.prices__table td small { color: #bcbcbc; font-size: 14px; }
.prices__table td b { font-weight: 600; }
.prices__table tbody tr:hover > * { background: rgba(255, 255, 255, .02); }

.works__item {
  flex-basis: calc((100% - 45px) / 4);
  min-width: 240px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 3px 4px 6.7px rgba(0, 0, 0, .88);
}
.works__item img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; transition: scale .4s; }
.works__item:hover img { scale: 1.04; }

/* ---------- Tablet & mobile header ---------- */
@media (max-width: 1024px) {
  .header__top, .header__services, .header__book { display: none; }

  .header__main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand burger" "search socials" "contacts contacts" "cta cta";
    gap: 16px;
    padding: 0 0 20px;
    border-bottom: 0;
  }
  .header__brand { grid-area: brand; font-size: 16px; font-weight: 500; }
  .header-search { grid-area: search; width: auto; max-width: 340px; }
  .header-search input { height: 44px; }
  .header__socials { grid-area: socials; display: block; }
  .header__socials .socials img { width: 35px; height: 35px; }
  .header__contacts { grid-area: contacts; flex-direction: row; justify-content: space-between; align-items: center; }
  .header__contacts > span:last-child .muted { display: none; }
  .header__actions { grid-area: cta; margin: 0; }
  .header__actions .btn { width: 100%; height: 44px; }

  .burger {
    grid-area: burger;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7.5px;
    width: 47px;
    height: 32px;
    padding: 0 6px;
    border: 0;
    background: none;
  }
  .burger span { height: 2.5px; background: var(--text); border-radius: 2px; transition: .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { translate: 0 10px; rotate: 45deg; }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -10px; rotate: -45deg; }



  .hero__slide { height: 480px; }
  .hero__img { left: 25%; width: 100%; }
  .advantages { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .advantage { max-width: none !important; }
  .footer__cols { gap: 50px; }

  .svc-hero { aspect-ratio: auto; display: flex; flex-direction: column; overflow: visible; }
  .svc-hero__img, .svc-hero::before { height: 340px; border-radius: 30px; }
  .svc-hero__title { top: 170px; left: 30px; right: 30px; max-width: 600px; }
  .svc-hero__form { position: relative; top: auto; right: auto; width: auto; margin-top: 360px; }
  .works__item { flex-basis: 260px; }
}

/* ---------- Mobile (Figma 184:2146, 390px) ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header { padding-top: 10px; }
  .header-search { max-width: 201px; }

  /* Блоки на всю ширину экрана */
  .promo { margin-inline: calc(var(--gutter) * -1); width: auto; }
  .hero, .map { padding: 0; }
  .hero__slide { height: auto; min-height: 577px; border-radius: 0; }
  /* на телефоне — готовый вертикальный кроп (свой или автоматический), поэтому по центру */
  .hero__img { inset: 0; width: 100%; height: 100%; object-position: center; }
  .hero__slide::before { width: 100%; background: rgba(0, 0, 0, .45); }
  .hero__content { max-width: none; padding: 60px var(--gutter) 70px; gap: 22px; }
  .hero__title { max-width: 298px; font-size: 28px; }
  .hero__text { max-width: 298px; font-size: 20px; }
  .btn--lg { min-width: 0; width: 100%; height: 45px; font-size: 20px; }
  .hero__dots { bottom: 16px; gap: 6px; }
  .dots > * { width: 6px; height: 6px; }
  .dots > .is-active { width: 35px; }

  .section { margin-top: 45px; }
  .section__head { align-items: flex-end; margin-bottom: 18px; }
  .section__title, .form-box__title { font-size: 26px; }
  #services-title { max-width: 211px; }
  #reviews-title { max-width: 185px; }
  .link-accent { font-size: 18px; }
  .section__head-right { gap: 15px; }
  .arrows { display: none; }
  .carousel { gap: 12px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }

  .service-card { width: 328px; height: 303px; }
  .service-card__title { font-size: 22px; }
  .service-card__price { font-size: 16px; }

  .advantages { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 42px; text-align: center; }
  .advantage { align-items: center; gap: 12px; max-width: 300px !important; font-size: 22px; }
  .advantage__icon { justify-content: center; margin: -20px; }

  /* Акция: текст сверху, машина снизу, надпись справа */
  .promo { display: block; height: 545px; border-radius: 0; box-shadow: none; background: var(--surface); }
  .section__title + .promo-slider { margin-top: 16px; }
  .promo__decor { display: block; }
  .promo__decor .promo__shadow { display: none; }
  .promo__glow { left: -599px; top: -177px; width: 1317px; height: 1103px; }
  .promo__content { position: absolute; left: 17px; right: 17px; top: 38px; padding: 0; }
  .promo__lead { font-size: 22px; max-width: 331px; }
  .promo__discount { margin-top: 4px; font-size: 40px; }
  .promo__note { margin-top: 4px; font-size: 18px; }
  /* машина та же, что на десктопе (скрин 390): виден задний край и колёса */
  .promo__car { left: -256px; top: 152px; width: 615px; height: 346px; object-fit: contain; }
  .promo__brand { left: 178px; top: auto; bottom: 8px; width: 210px; font-size: 28px; line-height: 1.1; letter-spacing: .08em; white-space: normal; }

  .review { width: 320px; gap: 12px; padding: 12px; font-size: 18px; }
  .review__name { margin-top: 0; font-size: 20px; }
  .review .stars { margin-bottom: 2px; }

  #form.section { padding-inline: 0; }
  .form-box { gap: 16px; padding: 28px var(--gutter); }
  .form-box__title { max-width: 332px; }
  .form { gap: 16px; }
  .form input, .form textarea { height: 44px; font-size: 14px; }
  .form textarea { height: 75px; }
  .form__agree { font-size: 12px; margin: -2px 0 0; }
  .btn--block { height: 44px; font-size: 18px; }

  .faq .section__title { margin-bottom: 20px; }
  .faq__list { gap: 16px; }
  .faq__item summary { font-size: 20px; }
  .faq__answer { margin-top: 12px; font-size: 18px; }

  .map { margin-top: 60px; }
  .map__img, .map__embed { height: 530px; border-radius: 0; }
  .map__img { object-position: 52% bottom; }
  .map__pin { left: calc(50% - 32px); top: 135px; }
  .map__card { left: var(--gutter); right: auto; bottom: 44px; gap: 36px; padding: 16px; }
  .map__card > div { min-width: 0; gap: 8px; }
  .map__city, .map__address { font-size: 20px; }

  .page-main { margin-top: 30px; }
  .page__title { font-size: 28px; }
  .content { font-size: 17px; }
  .content h2 { font-size: 24px; }
  .content h3 { font-size: 20px; }
  .content table { font-size: 15px; }
  .page__cover { border-radius: 20px; }

  .footer { margin-top: 58px; padding-inline: 0; text-align: left; }
  .footer__inner { flex-direction: column; align-items: stretch; gap: 36px; padding-top: 15px; }
  .footer__cols { flex-direction: column; gap: 20px; padding-inline: var(--gutter); }
  .footer__col--main a, .footer__heading { font-size: 18px !important; }
  .footer__col:nth-child(2) .footer__heading { font-weight: 600 !important; }
  .footer__contacts { width: auto; }
  .footer__contacts p { font-size: 16px; }
  .footer__inner .socials { align-self: center; }
  .footer__inner .socials img { width: 35px; height: 35px; }
  .footer__policy { display: block; margin-top: 19px; text-align: center; }

  /* Страница услуги */
  .breadcrumbs { margin-top: 10px; font-size: 14px; gap: 10px; }
  .breadcrumbs a::after { margin-left: 10px; }
  .svc-hero { margin-inline: calc(var(--gutter) * -1); margin-top: 15px; }
  .svc-hero__img, .svc-hero::before { height: 300px; border-radius: 0; }
  .svc-hero__title { top: 150px; left: var(--gutter); right: var(--gutter); font-size: 28px; }
  .svc-hero__form { margin: 316px var(--gutter) 0; padding: 20px 16px; }
  .svc-hero__lead { font-size: 18px; }
  .svc-text { margin-top: 40px; }
  .svc-text__title { font-size: 24px; }
  .svc-text__body { font-size: 18px; }
  .prices__scroll { margin-right: calc(var(--gutter) * -1); }
  .prices__table { min-width: 980px; }
  .prices__table th:first-child { width: 340px; min-width: 340px; }
  .prices__table thead th { font-size: 16px; }
  .prices__table thead th:first-child, .prices__table tbody th { font-size: 15px; }
  .prices__table td { font-size: 18px; }
  .works__item { flex-basis: 240px; }
}

/* Телефоны уже макета (390px) */
@media (max-width: 389px) {
  .header__contacts .muted { font-size: 14px; }
  .header__contacts .phone { font-size: 16px; }
  .header-search { max-width: 180px; }
  .header__socials .socials { gap: 10px; }
}

/* ---------- Выпадающее меню услуг (PDF «Макет детейлинг») ---------- */
.snav__item { position: relative; }
.snav__link { display: block; transition: color .2s; }
.snav__item.is-active > .snav__link,
.snav__item.has-sub:hover > .snav__link,
.snav__item.has-sub:focus-within > .snav__link,
.snav__item.is-open > .snav__link { color: var(--accent); }

.snav__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 15px);
  left: 0;
  width: 760px;
  max-width: min(760px, calc(100vw - 2 * var(--gutter)));
  padding: 33px 33px 12px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity .2s, translate .2s, visibility .2s;
}
/* мостик, чтобы панель не закрывалась, пока курсор идёт от пункта к ней */
.snav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
/* уголок над панелью */
.snav__item.has-sub::after {
  content: "";
  position: absolute;
  z-index: 51;
  top: calc(100% + 9px);
  left: calc(50% - 6px);
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  background: var(--surface);
  rotate: 45deg;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.snav__item.has-sub:hover > .snav__panel,
.snav__item.has-sub:focus-within > .snav__panel,
.snav__item.is-open > .snav__panel { opacity: 1; visibility: visible; translate: 0 0; }
.snav__item.has-sub:hover::after,
.snav__item.has-sub:focus-within::after,
.snav__item.is-open::after { opacity: 1; visibility: visible; }
/* у правых пунктов панель прижата к правому краю */
.snav__item:nth-last-child(-n+3) > .snav__panel { left: auto; right: 0; }

.snav__panel ul { margin: 0; padding: 0; list-style: none; }
.snav__panel > ul { columns: 2; column-gap: 40px; }
.snav__panel > ul > li { break-inside: avoid; padding-bottom: 19px; }
/* третий уровень — под своим пунктом, с отступом */
.snav__panel li ul { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-left: 24px; }
.snav__panel li ul a { font-size: 16px; color: var(--muted); }
.snav__panel a { display: inline-flex; gap: 12px; color: var(--text); font-size: 18px; white-space: normal; transition: color .2s; }
.snav__panel a::before { content: "•"; }
.snav__panel a:hover, .snav__panel a[aria-current] { color: var(--accent); }


/* ---------- Планшет 768 (UI kit: «Хедер 768», «Футер 768») ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .header__top { display: flex; }
  .header__menu a { font-size: 18px; color: var(--text); }
  .header__socials, .burger, .mobile-menu:not([hidden]) { display: none; }

  .header__main {
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "brand contacts search" "cta cta cta";
    align-items: center;
    column-gap: 30px;
    row-gap: 20px;
    padding-top: 15px;
  }
  .header__brand { font-size: 18px; font-weight: 700; }
  .header__contacts { flex-direction: column; align-items: flex-start; gap: 4px; }
  .header__contacts > span:last-child .muted { display: inline; }
  .header-search { max-width: none; }
  .header__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .header__actions .header__book { display: inline-flex; }

  .footer__inner { display: grid; grid-template-columns: auto auto 1fr; column-gap: 60px; row-gap: 30px; }
  .footer__cols { display: contents; }
  .footer__col--main a { font-size: 20px !important; }
  .footer__col:nth-child(2) { grid-row: span 2; }
  .footer__col:nth-child(2) .footer__heading { font-size: 18px !important; font-weight: 700 !important; }
  .footer__col:nth-child(2) a { font-size: 18px; font-weight: 500; }
  .footer__contacts { width: auto; }
  .footer__inner .socials { grid-column: 3; align-self: start; }
  .footer__inner .socials img { width: 35px; height: 35px; }
}

/* ---------- Мобильное меню (скрин «меню мобильной версии») ---------- */
@media (max-width: 767px) {
  .mobile-menu:not([hidden]) {
    position: absolute;
    z-index: 60;
    top: 62px;
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    padding: 20px 16px 22px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  }
  /* уголок, указывающий на крестик */
  .mobile-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 15px;
    width: 13px;
    height: 13px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    background: var(--surface);
    rotate: 45deg;
  }

  .mobile-menu__services, .mobile-menu__main { display: flex; flex-direction: column; }
  .mobile-menu__services { gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .mobile-menu__services > a, .mobile-menu__services summary { font-size: 18px; font-weight: 600; }
  .mobile-menu__services summary { cursor: pointer; list-style: none; }
  .mobile-menu__services summary::-webkit-details-marker { display: none; }
  .mobile-menu__services details[open] summary { color: var(--accent); }
  .mobile-menu__sub, .mobile-menu__sub ul { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 18px 0 2px 8px; list-style: none; }
  .mobile-menu__sub ul { gap: 12px; padding: 12px 0 0 24px; }
  .mobile-menu__sub a { display: flex; gap: 12px; font-size: 16px; }
  .mobile-menu__sub a::before { content: "•"; }
  .mobile-menu__sub ul a { font-size: 15px; color: var(--muted); }
  .mobile-menu__services a[aria-current], .mobile-menu__main a[aria-current] { color: var(--accent); }

  .mobile-menu__main { gap: 12px; padding-top: 22px; }
  .mobile-menu__main a { font-size: 18px; }
}

/* ---------- Планшет 768: строка услуг и первый экран (скрин «768») ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .header__main { border-bottom: 0; padding-bottom: 0; }
  .header__services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 32px;
    padding-top: 22px;
    font-size: 18px;
  }
  /* панель подуслуг — во всю ширину под строкой услуг; уголок не рисуем, строк две */
  .snav { position: relative; }
  .snav__item { position: static; }
  .snav__item.has-sub::after { display: none; }
  .snav__item > .snav__panel,
  .snav__item:nth-last-child(-n+3) > .snav__panel { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 14px); }

  .hero { margin-top: 25px; }
  .hero__slide { height: 563px; }
  .hero__img { left: 0; width: 100%; object-position: 62% center; }
  .hero__slide::before { width: 100%; background: linear-gradient(180deg, rgba(22, 23, 28, .55), rgba(22, 23, 28, .15) 60%, rgba(22, 23, 28, .45)); }
  .hero__content { padding: 55px 20px 0; max-width: none; }
  .hero__title { font-size: 32px; }
  .hero__text { max-width: 360px; font-size: 22px; }
  .hero .btn--lg { width: 355px; }
}

/* ---------- «Наши работы» и таблица цен на планшете и телефоне (скрин таблицы) ---------- */
@media (max-width: 1024px) {
  [data-carousel-controls="works"] { display: none; }
  .works__item { flex-basis: 503px; min-width: 0; border-radius: 20px; }
  .works__item img { aspect-ratio: 503 / 363; }
  .prices__table th:first-child { width: 380px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .section__head-right .link-accent { font-size: 22px; }
}
@media (max-width: 767px) {
  .works__item { flex-basis: 372px; max-width: calc(100vw - var(--gutter) - 2px); }
  .works__item img { aspect-ratio: 372 / 363; }
}

/* ---------- Внутренние страницы: О компании, Портфолио, Контакты, Блог (PDF 1600/768/390) ---------- */
.page-main--tight { margin-top: 40px; }
.page__title--strong { font-weight: 600; }
.content--wide { max-width: none; margin-top: 20px; font-size: 22px; line-height: 1.32; }
.content--wide > * + * { margin-top: 1.32em; }
.content--wide p + ul { margin-top: 0; }
.content--wide ul { padding-left: 1.6em; }
.content--wide li::marker { color: inherit; }

/* сертификаты */
.certificate {
  flex-basis: 392px;
  aspect-ratio: 392 / 464;
  overflow: hidden;
  border-radius: 20px;
  background: #7a7a7a;
}
.certificate img { width: 100%; height: 100%; object-fit: cover; }

/* портфолио */
.portfolio-section { margin-top: 60px; }
.portfolio-section .section__head { margin-bottom: 25px; }
.portfolio-section__title { font-size: 24px; font-weight: 600; }
.portfolio-section__title a:hover { color: var(--accent); }
/* фото работ — горизонтальные 503×363, как в портфолио; размеры для телефона — в мобильных блоках */
.works__item { border-radius: 20px; box-shadow: none; }
@media (min-width: 768px) {
  .works__item { flex-basis: 503px; }
  .works__item img { aspect-ratio: 503 / 363; }
}

/* контакты */
.contacts-grid { display: grid; grid-template-columns: 355px 289px 1fr auto; gap: 30px 0; margin-top: 30px; }
.contacts-grid__title { margin-bottom: 18px; font-size: 24px; font-weight: 500; }
.contacts-grid__col p { font-size: 22px; line-height: 1.25; }
.contacts-grid__col p + p { margin-top: 8px; }
.contacts-grid__label { margin-right: 12px; color: var(--muted); font-size: 16px; }
.contacts-grid a:hover { color: var(--accent); }
.contacts-grid__col--socials .socials img { width: 42px; height: 42px; }
.map--bleed { margin-top: 50px; }
.contacts-route { display: flex; justify-content: center; margin-top: 20px; }
.contacts-route .btn { max-width: 550px; }

/* блог */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.blog-grid--featured .blog-card:first-child { grid-column: span 2; grid-row: span 2; }
.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 333px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--card-gradient);
  transition: border-color .2s;
}
.blog-card:hover { border-color: var(--accent); }
.blog-card__image { display: block; height: 184px; flex-shrink: 0; background: var(--field); }
.blog-grid--featured .blog-card:first-child .blog-card__image { height: 430px; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s; }
.blog-card:hover .blog-card__image img { scale: 1.03; }
.blog-card__title { padding: 20px 10px 0; font-size: 20px; line-height: 1.2; }
.blog-grid--featured .blog-card:first-child .blog-card__title { max-width: 650px; font-size: 22px; }
.blog-card__date { margin-top: auto; padding: 20px 10px 14px; color: var(--muted); font-size: 16px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 30px; }
.pager .arrow { display: block; }
.pager .arrow.is-disabled { opacity: .4; }
.pager__pages { display: flex; align-items: center; gap: 22px; font-size: 24px; }
.pager__pages .current { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.pager__pages a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .content--wide { font-size: 18px; }
  .contacts-grid { grid-template-columns: auto auto 1fr; grid-template-areas: "addr hours socials" "contacts . ."; column-gap: 50px; }
  .contacts-grid__col:nth-child(1) { grid-area: addr; }
  .contacts-grid__col:nth-child(2) { grid-area: hours; }
  .contacts-grid__col:nth-child(3) { grid-area: contacts; }
  .contacts-grid__col:nth-child(4) { grid-area: socials; }
  .map--bleed { padding: 0; }
  .map--bleed .map__img, .map--bleed .map__embed { border-radius: 0; }
  .contacts-route .btn { max-width: 538px; }

  .blog-grid, .blog-grid--featured { grid-template-columns: 1fr 1fr; gap: 10px; }
  .blog-grid--featured .blog-card:first-child { grid-column: auto; grid-row: auto; }
  .blog-grid--featured .blog-card:first-child .blog-card__image { height: 184px; }
  .blog-grid--featured .blog-card:first-child .blog-card__title { font-size: 20px; }
  .blog-card { min-height: 280px; }
}

@media (max-width: 767px) {
  .page-main--tight { margin-top: 24px; }
  .content--wide { font-size: 16px; }
  .certificate { flex-basis: 300px; }
  [data-carousel-controls="certificates"], .portfolio-section .arrows { display: none; }

  .portfolio-section { margin-top: 24px; }
  .portfolio-section .section__head { margin-bottom: 12px; }
  .portfolio-section__title { font-size: 18px; }
  .portfolio-section .works__item { flex-basis: 313px; }
  .portfolio-section .works__item img { aspect-ratio: 503 / 363; }

  .contacts-grid { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
  .contacts-grid__title { margin-bottom: 12px; font-size: 22px; }
  .contacts-grid__col p { font-size: 20px; }
  .map--bleed { margin-top: 30px; }
  .contacts-route { margin-top: 16px; }

  .blog-grid, .blog-grid--featured { grid-template-columns: 1fr; gap: 14px; }
  .blog-card__title, .blog-grid--featured .blog-card:first-child .blog-card__title { font-size: 16px; }
  .blog-card { min-height: 270px; }
  .pager { gap: 20px; }
  .pager__pages { gap: 16px; font-size: 20px; }
  .pager .arrow { display: block; width: 52px; height: 36px; }
}

/* ---------- Акция на планшете (скрин «768»): как на десктопе — машина слева, текст справа ---------- */
@media (min-width: 768px) and (max-width: 1240px) {
  .promo { height: 390px; }
  .promo__decor .promo__shadow { display: none; }
  .promo__glow { left: -540px; top: -300px; width: 1396px; height: 1040px; }
  .promo__car { left: -439px; top: -44px; width: 790px; height: 444px; object-fit: contain; }
  .promo__content { left: 52%; right: 24px; top: 52px; max-width: none; }
  .promo__lead { max-width: 330px; font-size: 26px; }
  .promo__discount { margin-top: 8px; font-size: 40px; }
  .promo__note { margin-top: 6px; font-size: 20px; }
  .promo__brand { left: 81px; top: auto; bottom: 14px; font-size: 48px; letter-spacing: .15em; }
}
/* ---------- Сверка главной с PDF «768» и «390» ---------- */
@media (max-width: 1024px) {
  [data-carousel-controls="services"], [data-carousel-controls="reviews"] { display: none; }
  .map { padding: 0; }
  .map__img, .map__embed { border-radius: 0; }
  .map__card { left: 20px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header__menu a { font-size: 16px; }
  .header__brand { font-size: 16px; }
  .header__contacts .muted { font-size: 15px; }
  .hero__title { font-size: 30px; }
  .hero__text { font-size: 20px; }

  .section { margin-top: 70px; }
  .section__title { font-size: 24px; }

  .advantages { grid-template-columns: 1fr 1fr; gap: 50px 30px; text-align: center; }
  .advantage { align-items: center; font-size: 20px; }
  .advantage__icon { justify-content: center; margin: -20px; }
  /* порядок как в макете: гарантия, оборудование / специалисты, материалы */
  .advantage:nth-child(1) { order: 1; }
  .advantage:nth-child(3) { order: 2; }
  .advantage:nth-child(4) { order: 3; }
  .advantage:nth-child(2) { order: 4; }

  .review { font-size: 18px; }
  .review__name { font-size: 22px; }
  .form-box { padding: 32px 20px; }
  .form-box__title { font-size: 26px; }
  .faq .section__title { font-size: 26px; }
  .faq__item summary { font-size: 22px; }
  .faq__answer { font-size: 20px; }
  .footer__col:nth-child(2) a { font-size: 16px; }
}

@media (max-width: 767px) {
  .header__main { gap: 12px; padding-bottom: 14px; }
  .advantages { gap: 18px; }
  .advantage { font-size: 20px; }
  /* порядок как в макете: гарантия, оборудование, материалы, специалисты */
  .advantage:nth-child(1) { order: 1; }
  .advantage:nth-child(3) { order: 2; }
  .advantage:nth-child(2) { order: 3; }
  .advantage:nth-child(4) { order: 4; }

  .section__title, .form-box__title { font-size: 24px; }
  .review { font-size: 16px; }
  .review__name { font-size: 18px; }
  .faq__item summary { font-size: 18px; }
  .faq__answer { font-size: 16px; }

  .footer__col--main a { font-weight: 600 !important; }
  .footer__col:nth-child(2) a { font-weight: 500; }
  .footer__contacts p, .footer__contacts a { font-weight: 500; }
}

/* страница «Отзывы» */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 15px; margin-top: 30px; }
.reviews-grid .review { width: auto; }
@media (max-width: 767px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- «Жидкое стекло» для выпадающих панелей услуг и мобильного меню ---------- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .snav__panel,
  .snav__item.has-sub::after,
  .mobile-menu {
    --glass-bg: linear-gradient(160deg, rgba(48, 54, 64, .52) 0%, rgba(22, 24, 30, .62) 100%);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }

  .snav__panel,
  .mobile-menu:not([hidden]) {
    border: 1px solid rgba(0, 229, 255, .45);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .22),      /* светлая кромка сверху */
      inset 0 0 0 1px rgba(255, 255, 255, .05),    /* внутренний контур */
      inset 0 -18px 40px rgba(0, 229, 255, .06),   /* бирюзовый отлив снизу */
      0 24px 60px rgba(0, 0, 0, .55),
      0 0 32px rgba(0, 229, 255, .12);              /* лёгкое свечение рамки */
  }

  /* блик по верхней части стекла */
  .snav__panel::after,
  .mobile-menu:not([hidden])::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, .14), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%);
    pointer-events: none;
  }
  .snav__panel > ul, .mobile-menu > * { position: relative; z-index: 1; }

  /* уголок: та же полупрозрачная заливка, но только верхняя половина — иначе он двойным слоем ложится на панель */
  .snav__item.has-sub::after,
  .mobile-menu::before {
    background: rgba(40, 45, 54, .6);
    border-color: rgba(0, 229, 255, .45);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }

  /* пункты: при наведении — мягкая подсветка, как отблеск на стекле */
  .snav__panel a { transition: color .2s, text-shadow .2s; }
  .snav__panel a:hover { text-shadow: 0 0 14px rgba(0, 229, 255, .55); }
}

/* ---------- Уголок панели — часть самой панели: появляется вместе с ней, контур сплошной ---------- */
.snav__item.has-sub::after { display: none; }
.snav__notch {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: var(--notch-x, 48px);
  width: 13px;
  height: 13px;
  margin-left: -7px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  /* непрозрачная заливка в тон панели: перекрывает рамку под уголком, и стыка не видно */
  background: var(--surface);
  rotate: 45deg;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .snav__notch { background: #262a32; border-color: rgba(0, 229, 255, .45); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .snav__notch { display: none; }
}

/* ---------- Галерея (просмотр фото работ и сертификатов) ---------- */
.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 40px 0 24px;
  background: rgba(10, 11, 14, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; margin: 0; }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transition: opacity .2s, scale .25s;
}
.lightbox__img.is-changing { opacity: 0; scale: .98; }
.lightbox__nav { justify-self: center; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s, border-color .2s;
}
.lightbox__close::before, .lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 1px;
  background: var(--text);
  rotate: 45deg;
}
.lightbox__close::after { rotate: -45deg; }
.lightbox__close:hover { border-color: var(--accent); background: rgba(0, 229, 255, .12); }
.lightbox__footer { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 0; }
.lightbox__counter { color: var(--muted); font-size: 16px; }
.lightbox__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb {
  flex-shrink: 0;
  width: 76px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  opacity: .5;
  transition: opacity .2s, border-color .2s;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active { border-color: var(--accent); opacity: 1; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__footer { visibility: hidden; }
.works__item, .certificate { cursor: zoom-in; }

@media (max-width: 767px) {
  .lightbox { grid-template-columns: 1fr; padding: 70px 0 20px; }
  .lightbox__stage { padding: 0 12px; }
  .lightbox__img { max-height: calc(100vh - 220px); border-radius: 14px; }
  /* на телефоне листаем свайпом и миниатюрами */
  .lightbox__nav { display: none; }
  .lightbox__close { top: 14px; right: 14px; }
}
.lightbox__img.is-prev { cursor: w-resize; }
.lightbox__img.is-next { cursor: e-resize; }

/* ---------- Поиск в шапке: свой крестик на месте лупы и живые результаты ---------- */
.header-search input::-webkit-search-cancel-button,
.header-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.header-search .header-search__clear {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s;
}
.header-search input:not(:placeholder-shown) ~ .header-search__clear { display: block; }
.header-search__clear::before, .header-search__clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  border-radius: 1px;
  background: var(--muted);
  rotate: 45deg;
  transition: background-color .2s;
}
.header-search__clear::after { rotate: -45deg; }
.header-search__clear:hover { background: rgba(0, 229, 255, .15); }
.header-search__clear:hover::before, .header-search__clear:hover::after { background: var(--accent); }

.search-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  left: 0;
  width: max(100%, 440px);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(0, 229, 255, .45);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(48, 54, 64, .72), rgba(22, 24, 30, .86));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 60px rgba(0, 0, 0, .55), 0 0 32px rgba(0, 229, 255, .1);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.search-dropdown[hidden] { display: none; }
.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color .15s;
}
.search-result:hover, .search-result.is-selected { background: rgba(0, 229, 255, .09); }
.search-result__thumb { width: 56px; height: 42px; overflow: hidden; border-radius: 8px; background: var(--field); }
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result__title { display: block; font-size: 16px; line-height: 1.25; }
.search-result__title mark { background: none; color: var(--accent); }
.search-result__meta { display: flex; gap: 10px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.search-result__meta b { color: var(--accent); font-weight: 500; }
.search-dropdown__empty { padding: 14px 12px; color: var(--muted); font-size: 15px; }

@media (max-width: 767px) {
  .search-dropdown { width: calc(100vw - 2 * var(--gutter)); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  /* поиск на планшете справа — панель открывается влево */
  .search-dropdown { left: auto; right: 0; }
}

/* ---------- Уголок того же цвета, что панель ---------- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* стекло плотнее: оттенок почти не зависит от того, что под панелью — фото или тёмная шапка */
  .snav__panel, .mobile-menu {
    --glass-top: rgba(38, 42, 50, .9);
    background: linear-gradient(180deg, var(--glass-top) 0%, rgba(24, 26, 32, .92) 100%);
  }
  /* уголок — тем же цветом, что верх панели, целиком (без обрезки): нижняя половина ложится на панель и прячет рамку на стыке */
  .snav__notch, .mobile-menu::before {
    background: rgba(38, 42, 50, .9);
    clip-path: none;
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
  }
}

/* ---------- Слайдеры: первый экран и «Акции и промо» ---------- */
.slider { position: relative; }
.slider__track { display: grid; }
.slider__track > [data-slide] {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.slider__track > [data-slide].is-active { opacity: 1; visibility: visible; }
/* текст слайда чуть «въезжает» при смене */
.hero__slide .hero__content, .promo .promo__content { transition: translate .7s cubic-bezier(.2, .7, .2, 1); }
.hero__slide:not(.is-active) .hero__content, .promo:not(.is-active) .promo__content { translate: 0 14px; }
.slider__track { touch-action: pan-y; }
.hero__dots { z-index: 3; }
/* вопрос FAQ — h3 внутри summary, внешний вид как раньше */
.faq__question { margin: 0; font: inherit; }

/* ---------- Размеры текста: на ~10–20% мельче макета (просьба заказчика) ---------- */
@media (min-width: 1025px) {
  .hero__title { font-size: 36px; }
  .hero__text { font-size: 20px; }
  .section__title, .form-box__title { font-size: 28px; }
  .link-accent { font-size: 22px; }
  .service-card__title { font-size: 22px; }
  .service-card__price { font-size: 16px; }
  .advantage { font-size: 20px; }
  .promo__lead { font-size: 34px; }
  .promo__discount { font-size: 54px; }
  .promo__note { font-size: 22px; }
  .review { font-size: 17px; }
  .review__name { font-size: 20px; }
  .faq__item summary { font-size: 20px; }
  .faq__answer { font-size: 18px; }
  .map__city { font-size: 20px; }
  .map__address { font-size: 18px; }
  .footer__col--main a, .footer__heading { font-size: 20px !important; }

  .page__title { font-size: 34px; }
  .content, .content--wide { font-size: 19px; }
  .svc-hero__title { font-size: 36px; }
  .svc-hero__lead { font-size: 20px; }
  .svc-text__title { font-size: 26px; }
  .svc-text__body { font-size: 19px; }
  .prices__table thead th { font-size: 18px; }
  .prices__table thead th:first-child, .prices__table tbody th { font-size: 17px; }
  .prices__table td { font-size: 19px; }
  .portfolio-section__title { font-size: 22px; }
  .contacts-grid__title { font-size: 22px; }
  .contacts-grid__col p { font-size: 19px; }
  .blog-card__title { font-size: 18px; }
  .blog-grid--featured .blog-card:first-child .blog-card__title { font-size: 20px; }
  .pager__pages { font-size: 20px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__title { font-size: 28px; }
  .hero__text { font-size: 18px; }
  .section__title { font-size: 22px; }
  .advantage { font-size: 18px; }
  .review { font-size: 16px; }
  .review__name { font-size: 18px; }
  .form-box__title { font-size: 24px; }
  .faq .section__title { font-size: 24px; }
  .faq__item summary { font-size: 19px; }
  .faq__answer { font-size: 17px; }
  .content--wide, .svc-text__body { font-size: 17px; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 26px; }
  .hero__text { font-size: 18px; }
  .section__title, .form-box__title { font-size: 22px; }
  .advantage { font-size: 18px; }
  .faq__item summary { font-size: 17px; }
  .faq__answer { font-size: 15px; }
}

/* ---------- Преимущества на десктопе: иконка и подпись по центру колонки ---------- */
@media (min-width: 1025px) {
  .advantages { justify-content: space-around; }
  .advantage { align-items: center; text-align: center; }
  .advantage__icon { justify-content: center; margin: -20px; }
}

/* ---------- Первый экран: затемнение слева шире, чтобы текст читался на любом фото ---------- */
@media (min-width: 768px) {
  .hero__slide::before { width: 70%; background: linear-gradient(90deg, rgba(22, 23, 28, .92) 0%, rgba(22, 23, 28, .7) 45%, rgba(22, 23, 28, 0) 100%); }
}

/* ---------- Первый экран: фото слайда на всю ширину (у фото услуг не остаётся пустой полосы слева) ---------- */
@media (min-width: 1025px) {
  .hero__img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
}

/* ---------- Отступы между секциями меньше ---------- */
.section { margin-top: 70px; }
.advantages { margin-top: 80px; }
.map { margin-top: 90px; }
.footer { margin-top: 60px; }
.portfolio-section { margin-top: 45px; }
@media (min-width: 768px) and (max-width: 1024px) {
  .section { margin-top: 50px; }
  .advantages { margin-top: 55px; }
  .map { margin-top: 60px; }
}
@media (max-width: 767px) {
  .section { margin-top: 36px; }
  .advantages { margin-top: 36px; }
  .map, .map--bleed { margin-top: 40px; }
  .footer { margin-top: 40px; }
}

/* ---------- Отправка заявки ---------- */
.btn__spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: dt-spin .7s linear infinite;
}
.form.is-sending input, .form.is-sending textarea { opacity: .6; }
.form.is-sending [type="submit"] { cursor: progress; }
@keyframes dt-spin { to { rotate: 360deg; } }

.lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  padding: 20px 0 10px;
  text-align: center;
  outline: none;
  animation: dt-fade-up .5s .1s both cubic-bezier(.2, .7, .2, 1);
}
.lead-success__icon { width: 88px; height: 88px; margin-bottom: 6px; filter: drop-shadow(0 0 14px rgba(0, 229, 255, .45)); }
.lead-success__circle, .lead-success__check { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lead-success__circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: dt-draw .6s .2s forwards cubic-bezier(.65, 0, .45, 1); }
.lead-success__check { stroke-width: 4; stroke-dasharray: 50; stroke-dashoffset: 50; animation: dt-draw .35s .75s forwards cubic-bezier(.65, 0, .45, 1); }
.lead-success__title { font-size: 28px; font-weight: 600; }
.lead-success__text { color: var(--muted); font-size: 18px; }
.lead-success__contact { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--muted); font-size: 16px; line-height: 1.5; }
.lead-success__phone { display: inline-block; margin-top: 4px; color: var(--text); font-size: 24px; font-weight: 600; transition: color .2s; }
.lead-success__phone:hover { color: var(--accent); }
.lead-success__hours { display: block; font-size: 14px; }
.svc-hero__form .lead-success { padding: 10px 0; }
.svc-hero__form .lead-success__title { font-size: 24px; }
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@keyframes dt-fade-up { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) {
  .lead-success, .lead-success__circle, .lead-success__check { animation-duration: .01s; animation-delay: 0s; }
}
@media (max-width: 767px) {
  .lead-success__title { font-size: 22px; }
  .lead-success__text { font-size: 16px; }
  .lead-success__phone { font-size: 20px; }
}

/* ---------- Акция с фото на весь баннер ---------- */
.promo--full .promo__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* затемнение справа, где текст */
.promo--full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, rgba(22, 23, 28, .92) 0%, rgba(22, 23, 28, .7) 40%, rgba(22, 23, 28, 0) 75%);
}
.promo--full .promo__content { z-index: 2; }
@media (max-width: 767px) {
  .promo--full::before { background: linear-gradient(180deg, rgba(22, 23, 28, .9) 0%, rgba(22, 23, 28, .55) 45%, rgba(22, 23, 28, 0) 75%); }
  .promo--full .promo__photo { object-position: 60% center; }
}

/* ---------- Уголок сливается с панелью ---------- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* у верхнего края панели — ровный цвет без радиального блика, чтобы уголку было с чем совпасть */
  .snav__panel::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%);
  }
  /* уголок — тот же слой стекла: та же заливка, та же лёгкая подсветка сверху;
     виден только верхний треугольник (+ 1px вниз, чтобы закрыть рамку панели на стыке) */
  .snav__notch {
    background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), rgba(38, 42, 50, .9);
    border-color: rgba(0, 229, 255, .45);
    clip-path: polygon(0 0, 100% 0, 100% 14%, 14% 100%, 0 100%);
  }
}

/* ---------- Панель подуслуг: компактнее, ширина по содержимому, ромбы вместо точек ---------- */
@media (min-width: 1025px) {
  .snav__panel { width: max-content; min-width: 280px; max-width: min(640px, calc(100vw - 2 * var(--gutter))); padding: 20px 22px 8px; }
  .snav__panel > ul { columns: 1; }
  .snav__panel--cols > ul { columns: 2; column-gap: 28px; }
}
.snav__panel > ul > li { padding-bottom: 12px; }
.snav__panel li ul { gap: 8px; margin-top: 8px; padding-left: 20px; }

.snav__panel a, .mobile-menu__sub a { position: relative; align-items: baseline; gap: 12px; font-size: 16px; line-height: 1.3; transition: color .2s, translate .2s, text-shadow .2s; }
.snav__panel li ul a, .mobile-menu__sub ul a { font-size: 14px; }
/* ромб — как уголок панели */
.snav__panel a::before, .mobile-menu__sub a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  translate: 0 -2px;
  border: 1px solid var(--accent);
  rotate: 45deg;
  box-shadow: 0 0 6px rgba(0, 229, 255, .5);
  transition: background-color .2s, box-shadow .2s;
}
/* третий уровень — полый ромб приглушённого цвета */
.snav__panel li ul a::before, .mobile-menu__sub ul a::before { width: 5px; height: 5px; border-color: rgba(0, 229, 255, .55); box-shadow: none; }
.snav__panel a:hover, .snav__panel a[aria-current] { translate: 3px 0; }
.snav__panel a:hover::before, .snav__panel a[aria-current]::before { background: var(--accent); box-shadow: 0 0 10px rgba(0, 229, 255, .9); }
.mobile-menu__sub a[aria-current]::before { background: var(--accent); }

/* ---------- Текст страницы услуги: разделы H2/H3, списки ---------- */
.svc-text__body { max-width: 980px; line-height: 1.55; }
.svc-text__body > * + * { margin-top: .75em; }
.svc-text__body h2 { margin-top: 1.9em; font-size: 28px; font-weight: 600; line-height: 1.2; }
.svc-text__body h3 { margin-top: 1.5em; font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--accent); }
.svc-text__body > h2:first-child, .svc-text__body > h3:first-child { margin-top: 0; }
.svc-text__body h2 + *, .svc-text__body h3 + * { margin-top: .6em; }
.svc-text__body ul, .svc-text__body ol { display: flex; flex-direction: column; gap: .5em; margin-block: .9em; padding: 0; list-style: none; }
.svc-text__body ul > li, .svc-text__body ol > li { position: relative; padding-left: 30px; }
/* маркеры — ромбы, как в меню */
.svc-text__body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  rotate: 45deg;
  box-shadow: 0 0 6px rgba(0, 229, 255, .45);
}
.svc-text__body ol { counter-reset: dt-step; }
.svc-text__body ol > li { counter-increment: dt-step; padding-left: 40px; }
.svc-text__body ol > li::before {
  content: counter(dt-step);
  position: absolute;
  left: 0;
  top: .12em;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 229, 255, .6);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}
.svc-text--after { margin-top: 50px; }

/* ---------- Компактная таблица цен «Услуга | Цена» ---------- */
.prices__table--compact { min-width: 0; max-width: 980px; }
.prices__table--compact th:first-child { width: auto; }
.prices__table--compact thead th:last-child, .prices__table--compact td:last-child { width: 1%; padding-left: 30px; text-align: right; white-space: nowrap; }
.prices__table--compact tbody th { color: var(--text); font-weight: 500; }
.prices__table--compact td b { color: var(--accent); }

/* пояснения к ценам — стеклянная плашка под таблицей */
.prices__note {
  max-width: 980px;
  margin-top: 26px;
  padding: 22px 26px 22px 28px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(48, 54, 64, .45), rgba(22, 24, 30, .55));
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.prices__note > * + * { margin-top: .7em; }
.prices__note strong, .prices__note b { color: var(--text); }

@media (min-width: 1025px) {
  .svc-text__body { font-size: 19px; }
}
@media (max-width: 767px) {
  .svc-text__body h2 { font-size: 22px; }
  .svc-text__body h3 { font-size: 18px; }
  .svc-text__body ul > li { padding-left: 24px; }
  .svc-text__body ol > li { padding-left: 36px; }
  .prices__table--compact { min-width: 0; }
  .prices__table--compact th:first-child { width: auto; min-width: 0; position: static; }
  .prices__table--compact thead th:last-child, .prices__table--compact td:last-child { padding-left: 14px; }
  .prices__table--compact td { font-size: 16px; }
  .prices__scroll:has(.prices__table--compact) { margin-right: 0; }
  .prices__note { padding: 16px 18px; font-size: 15px; }
  .svc-text--after { margin-top: 36px; }
}

/* ---------- Текст услуги: на всю ширину первого экрана, ровные отступы у заголовков ---------- */
.svc-text__body, .prices__note, .prices__table--compact { max-width: none; }
.svc-text__body h2 { margin-top: 1.15em; margin-bottom: 0; }
.svc-text__body h3 { margin-top: 1em; margin-bottom: 0; }
.svc-text__body h2 + *, .svc-text__body h3 + * { margin-top: .5em; }
.svc-text { margin-top: 50px; }
.svc-text--after { margin-top: 40px; }
@media (max-width: 767px) {
  .svc-text { margin-top: 32px; }
  .svc-text--after { margin-top: 28px; }
}

/* ---------- Раздел цен: отступы как у заголовков в тексте ---------- */
.svc-text + .prices, .prices + .svc-text--after { margin-top: 32px; }
.prices .svc-text__title { margin-bottom: 12px; font-size: 28px; }
.prices__note { margin-top: 20px; }
@media (max-width: 767px) {
  .svc-text + .prices, .prices + .svc-text--after { margin-top: 26px; }
  .prices .svc-text__title { font-size: 22px; }
}

/* ---------- Первый экран по размерам баннеров (документ «Баннер Jet»):
   компьютер 1200×510, планшет 728×560, телефон 390×550 ---------- */
.hero__slide { height: auto; aspect-ratio: 1200 / 510; }
.hero__img { inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__content { padding-top: 70px; }
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__slide { height: auto; aspect-ratio: 728 / 560; }
  .hero__img { left: 0; object-position: center; }
  .hero__content { padding-top: 48px; }
}
@media (max-width: 767px) {
  .hero__slide { min-height: 0; aspect-ratio: 390 / 550; align-items: flex-start; }
  .hero__content { padding: 40px var(--gutter) 0; }
}
/* баннеры уже с тёмным местом под текст — затемнение лёгкое и только под текстом */
@media (min-width: 1025px) {
  .hero__slide::before { width: 55%; background: linear-gradient(90deg, rgba(22, 23, 28, .55) 0%, rgba(22, 23, 28, .25) 60%, rgba(22, 23, 28, 0) 100%); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__slide::before { width: 100%; background: linear-gradient(180deg, rgba(22, 23, 28, .45) 0%, rgba(22, 23, 28, .1) 55%, rgba(22, 23, 28, 0) 100%); }
}
@media (max-width: 767px) {
  .hero__slide::before { width: 100%; background: linear-gradient(180deg, rgba(22, 23, 28, .55) 0%, rgba(22, 23, 28, .2) 50%, rgba(22, 23, 28, 0) 75%); }
}
