/* ===================================================================
   БЕТТА — Центр лазерной косметологии
   Реализация макета Figma (десктоп + мобильная версия)
   =================================================================== */

:root {
  --cream: #f9f9f9;
  --brown: #3f271c;
  --stroke: #aba09b;
  --overlay-desktop: rgba(0, 0, 0, 0.2);
  --overlay-mobile: rgba(60, 25, 4, 0.36);
  --font-heading: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  font-family: var(--font-body);
  color: var(--brown);
}

img {
  max-width: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================================================
   Общие компоненты hero
   =================================================================== */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.hero__photo {
  position: absolute;
  overflow: hidden;
}

.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__inner {
  position: absolute;
  inset: 0;
}

.hero__heading {
  position: absolute;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 400;
  white-space: normal;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn__icon {
  display: block;
  flex-shrink: 0;
}

.hero__hours,
.hero__address {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.hero__divider img {
  display: block;
}

.hero__telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__telegram img {
  width: 56%;
  height: 56%;
  display: block;
}

/* ===================================================================
   DESKTOP HERO  (эталон 1920 × 1080, единицы cqw = px / 19.2)
   =================================================================== */

.hero--desktop {
  container-type: inline-size;
  container-name: heroDesktop;
  aspect-ratio: 1920 / 1080;
}

.hero__photo--desktop {
  left: 1.5625cqw;
  top: 1.4583cqw;
  right: 1.6146cqw;
  bottom: 1.4583cqw;
  border-radius: 2.0833cqw;
}

.hero__overlay--desktop {
  background: var(--overlay-desktop);
}

.hero__header {
  position: absolute;
  top: 3.5417cqw;
  left: 3.8542cqw;
  right: 3.8542cqw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.logo--desktop {
  display: flex;
  align-items: center;
  gap: 0.3698cqw;
}

.logo--desktop .logo__full {
  height: 3.0208cqw;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav--desktop {
  display: flex;
  align-items: center;
  gap: 2.5521cqw;
  font-size: 1.0417cqw;
  color: var(--cream);
  white-space: nowrap;
}

.hero__heading--desktop {
  top: 31.875cqw;
  left: 3.9583cqw;
  width: 63.4896cqw;
  font-size: 4.2188cqw;
  line-height: 0.88;
  letter-spacing: -0.1562cqw;
}

.hero__bottom--desktop {
  position: absolute;
  top: 49.1146cqw;
  left: 3.8542cqw;
  right: 3.8542cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn--book-desktop {
  width: 24.5312cqw;
  height: 3.0729cqw;
  padding: 0.2604cqw 0.2604cqw 0.2604cqw 1.1458cqw;
  background: var(--cream);
}

.btn--book-desktop span {
  flex: 1;
  text-align: center;
  color: var(--brown);
  font-size: 0.9375cqw;
}

.btn--book-desktop .btn__icon {
  width: 2.5521cqw;
  height: 2.5521cqw;
}

.hero__meta--desktop {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.hero__meta--desktop .hero__hours,
.hero__meta--desktop .hero__address {
  font-size: 1.1458cqw;
}

.hero__divider--desktop {
  height: 3.125cqw;
  display: flex;
}

.hero__divider--desktop img {
  height: 100%;
  width: auto;
}

.hero__telegram--desktop {
  width: 3.125cqw;
  height: 3.125cqw;
  border-radius: 0.7812cqw;
  background: var(--cream);
}

/* ===================================================================
   MOBILE HERO  (эталон 402 × 874, единицы cqw = px / 4.02)
   =================================================================== */

.hero--mobile {
  display: none;
  container-type: inline-size;
  container-name: heroMobile;
  aspect-ratio: 402 / 874;
}

.hero__photo--mobile {
  left: 3.2338cqw;
  top: 2.9851cqw;
  right: 2.9851cqw;
  bottom: 2.2348cqw;
  border-radius: 2.2388cqw;
}

.hero__overlay--mobile {
  background: none;
}

.logo--mobile {
  position: absolute;
  left: 7.2139cqw;
  top: 7.2139cqw;
  width: 33.5821cqw;
}

.logo--mobile img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.mobile-menu-btn {
  position: absolute;
  left: 83.5821cqw;
  top: 6.505cqw;
  width: 10.4478cqw;
  height: 10.4478cqw;
  border-radius: 2.4876cqw;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
}

.mobile-menu-btn span {
  display: block;
  width: 6cqw;
  height: 2px;
  background: var(--brown);
}

.nav--mobile {
  position: absolute;
  top: 17.5cqw;
  left: 6.7164cqw;
  right: 6.7164cqw;
  background: var(--cream);
  border-radius: 2.4876cqw;
  padding: 4cqw;
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  font-size: 4cqw;
  color: var(--brown);
  box-shadow: 0 1cqw 4cqw rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.nav--mobile[hidden] {
  display: none;
}

.hero__heading--mobile {
  top: 36.0697cqw;
  left: 6.7164cqw;
  width: 82.3383cqw;
  font-size: 7.6567cqw;
  line-height: 0.88;
  letter-spacing: -0.2836cqw;
}

.hero__meta--mobile {
  position: absolute;
  top: 181.0945cqw;
  left: 6.9652cqw;
  right: 6.7164cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__meta--mobile .hero__hours,
.hero__meta--mobile .hero__address {
  font-size: 3.9801cqw;
  line-height: 1.1;
  white-space: normal;
}

.hero__divider--mobile {
  height: 6.9652cqw;
  display: flex;
}

.hero__divider--mobile img {
  height: 100%;
  width: auto;
}

.btn--book-mobile {
  position: absolute;
  left: 6.7164cqw;
  top: 195.5224cqw;
  width: 86.0697cqw;
  height: 14.9254cqw;
  padding: 1.2cqw 1.2cqw 1.2cqw 3.6cqw;
  background: var(--cream);
}

.btn--book-mobile span {
  flex: 1;
  text-align: center;
  color: var(--brown);
  font-size: 4.2cqw;
}

.btn--book-mobile .btn__icon {
  width: 11.9cqw;
  height: 11.9cqw;
}

/* ===================================================================
   Переключение версий по breakpoint
   =================================================================== */

@media (max-width: 900px) {
  .hero--desktop {
    display: none;
  }
  .hero--mobile {
    display: block;
  }
}

/* Небольшой запас по нижней высоте hero-mobile, чтобы кнопка не резалась */
.hero--mobile {
  margin-bottom: 0;
}

/* ===================================================================
   СЕКЦИЯ «О НАС»
   =================================================================== */

.about {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.about__heading {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
}

.about__label {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.about__text {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  white-space: pre-line;
}

.about__photo {
  position: relative;
  overflow: hidden;
  background: #ecebef;
}

.about__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.about__flower {
  position: absolute;
  display: block;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
}

.about__small-photo {
  position: absolute;
  overflow: hidden;
}

.about__small-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__divider img {
  display: block;
}

.about .btn {
  background: var(--brown);
}

.about .btn span {
  color: var(--cream);
}

/* -------------------------------------------------------------------
   DESKTOP  (эталон 1920 × 1011, cqw = px / 19.2)
   ------------------------------------------------------------------- */

.about--desktop {
  container-type: inline-size;
  container-name: aboutDesktop;
  aspect-ratio: 1920 / 1011;
}

.about__heading--desktop {
  position: absolute;
  left: 1.3542cqw;
  top: 1.3542cqw;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.about__photo--desktop {
  position: absolute;
  left: 1.5625cqw;
  top: 8.9062cqw;
  width: 47.8125cqw;
  height: 40.2604cqw;
  border-radius: 0.8854cqw;
}

.about__flower--desktop {
  left: 0.1042cqw;
  top: 2.8125cqw;
  width: 21.5625cqw;
  height: 17.7604cqw;
}

.about__top-row--desktop {
  position: absolute;
  left: 51.25cqw;
  top: 8.9062cqw;
  width: 47.1875cqw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.about__label-group {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.about__label--desktop {
  font-size: 1.7708cqw;
}

.about__divider--desktop {
  display: block;
  width: 10.8854cqw;
}

.about__divider--desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.about__small-photo--desktop {
  position: static;
  flex-shrink: 0;
  width: 15.7812cqw;
  height: 13.2812cqw;
  border-radius: 0.8854cqw;
}

.about__text--desktop {
  position: absolute;
  left: 51.25cqw;
  top: 12.8646cqw;
  width: 19.2188cqw;
  font-size: 0.9375cqw;
  line-height: 1.4;
}

.about__btn--desktop {
  position: absolute;
  left: 51.25cqw;
  top: 46.0938cqw;
  width: 47.1875cqw;
  height: 3.0729cqw;
  padding: 0.2604cqw 0.2604cqw 0.2604cqw 1.1458cqw;
}

.about__btn--desktop span {
  flex: 1;
  text-align: center;
  font-size: 0.9375cqw;
}

.about__btn--desktop .btn__icon {
  width: 2.5521cqw;
  height: 2.5521cqw;
}

/* -------------------------------------------------------------------
   MOBILE  (эталон 402 × 874, cqw = px / 4.02)
   ------------------------------------------------------------------- */

.about--mobile {
  display: none;
  container-type: inline-size;
  container-name: aboutMobile;
  aspect-ratio: 402 / 874;
}

.about__inner--mobile {
  position: absolute;
  inset: 0;
}

.about__heading--mobile {
  position: absolute;
  left: 2.9851cqw;
  top: 4.9751cqw;
  font-size: 7.6567cqw;
  line-height: 0.88;
  letter-spacing: -0.2836cqw;
}

.about__text--mobile {
  position: absolute;
  left: 39.3035cqw;
  right: 2.9851cqw;
  top: 6.2189cqw;
  width: auto;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 3.4826cqw;
  line-height: 1.21;
  color: var(--brown);
  white-space: normal;
}

.about__label--mobile {
  position: absolute;
  left: 4.2289cqw;
  top: 82.75cqw;
  font-size: 2.9851cqw;
  font-weight: 500;
}

.about__photo-wrap--mobile {
  position: absolute;
  left: 2.9851cqw;
  top: 92.7861cqw;
  width: 94.0299cqw;
  height: 100.2488cqw;
}

.about__photo--mobile {
  position: absolute;
  left: 0;
  top: 8.209cqw;
  width: 94.0299cqw;
  height: 92.0398cqw;
  border-radius: 1.2438cqw;
}

.about__flower--mobile {
  left: -23.3831cqw;
  top: 1.2438cqw;
  width: 70.398cqw;
  height: 57.9602cqw;
}

.about__btn--mobile {
  position: absolute;
  left: 2.9851cqw;
  top: 196.2687cqw;
  width: 94.0299cqw;
  height: 14.9254cqw;
  padding: 1.2cqw 1.2cqw 1.2cqw 3.6cqw;
}

.about__btn--mobile span {
  flex: 1;
  text-align: center;
  font-size: 4.2cqw;
}

.about__btn--mobile .btn__icon {
  width: 11.9cqw;
  height: 11.9cqw;
}

@media (max-width: 900px) {
  .about--desktop {
    display: none;
  }
  .about--mobile {
    display: block;
  }
}

/* ===================================================================
   БАННЕР «ДОВЕРЬТЕ СВОЮ КОЖУ ПРОФЕССИОНАЛАМ» — десктоп 1:105, мобайл 1:1758
   эталон 1920 × 925 (cqw = px / 19.2) → 402 × 620 (cqw = px / 4.02)
   =================================================================== */

.trust {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
  container-name: trust;
  aspect-ratio: 1920 / 925;
}

.trust__photo {
  position: absolute;
  overflow: hidden;
  background: #baada4;
}

.trust__photo-bg,
.trust__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trust__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.trust__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.trust__title span {
  display: block;
}

.trust__photo--desktop {
  left: 1.5625cqw;
  top: 0;
  right: 1.7188cqw;
  bottom: 0;
  border-radius: 1.6146cqw;
}

.trust .trust__title {
  font-size: 3.5015cqw;
  line-height: 0.92;
  letter-spacing: -0.1297cqw;
}

.trust__photo--mobile {
  display: none;
}

@media (max-width: 900px) {
  .trust {
    aspect-ratio: 402 / 620;
  }

  .trust__photo--desktop {
    display: none;
  }

  .trust__photo--mobile {
    display: block;
    left: 3.2338cqw;
    top: 2.9851cqw;
    right: 2.9851cqw;
    bottom: 2.9851cqw;
    border-radius: 1.2438cqw;
  }

  .trust .trust__title {
    font-size: 6.4478cqw;
    line-height: 0.9;
    letter-spacing: -0.2388cqw;
  }
}

/* ===================================================================
   СЕКЦИЯ «УСЛУГИ» (карусель) — десктоп 1:629, мобайл 1:2101
   Единая разметка + JS-карусель, отзывчивость через один брейкпоинт,
   эталон 1920 × 909 (cqw = px / 19.2) → 402 × 925 (cqw = px / 4.02)
   =================================================================== */

.services {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: services;
  aspect-ratio: 1920 / 939; /* +1 строка под двухстрочное название карточки */
}

.services__title {
  position: absolute;
  left: 1.5104cqw;
  top: 2.8646cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.services__eyebrow {
  position: absolute;
  left: 1.5625cqw;
  top: 12.0833cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1458cqw;
  opacity: 0.33;
}

.services__lead {
  position: absolute;
  left: 1.5104cqw;
  top: 14.7917cqw;
  width: 24.375cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.0833cqw;
  line-height: 1;
}

.services__help-wrap {
  position: absolute;
  left: 1.5625cqw;
  top: 24.5312cqw;
}

.services__help {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4583cqw;
  letter-spacing: -0.03em;
}

.services__help-arrow {
  display: block;
  width: 0.6771cqw;
  height: 0.6771cqw;
}

.services__help-underline {
  display: block;
  width: 13.8281cqw;
  height: 1px;
  margin-top: 0.3cqw;
  background: rgba(63, 39, 28, 0.6);
}

.services__desktop-nav {
  position: absolute;
  left: 1.5625cqw;
  top: 45.3102cqw; /* на одной линии с кнопками карточек (под название в 2 строки) */
  display: flex;
  gap: 0.3646cqw;
}

.nav-btn {
  width: 3.125cqw;
  height: 3.125cqw;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 0.26cqw;
  background: #fff;
  color: var(--brown);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-btn img {
  width: 33%;
  height: auto;
  display: block;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.services__viewport {
  position: absolute;
  left: 26.0938cqw;
  right: 1.5625cqw;
  top: 12.4479cqw;
  overflow: hidden;
}

.services__track {
  display: flex;
  gap: 1.1979cqw;
  transition: transform 0.35s ease;
  will-change: transform;
}

.service-card {
  flex: 0 0 23.2812cqw;
  width: 23.2812cqw;
}

.service-card__image {
  display: block;
  width: 100%;
  height: 27.9688cqw;
  object-fit: cover;
  border-radius: 0.8854cqw;
}

.service-card__image--mobile {
  display: none;
}

.service-card__body {
  margin-top: 0.7812cqw;
}

.service-card__body h3 {
  margin: 0 0 1.25cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1458cqw;
  line-height: 1.25;
  min-height: 2.5em; /* место под название в 2 строки */
}

.service-card__actions {
  display: flex;
  gap: 0.4167cqw;
}

.services .btn {
  height: 3.125cqw;
  border-radius: 0.26cqw;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .btn--primary {
  flex: 1;
  min-width: 0;
  padding: 0.26cqw 0.26cqw 0.26cqw 1.1cqw;
  background: var(--brown);
  justify-content: space-between;
}

.services .btn--primary span {
  flex: 1;
  text-align: center;
  color: var(--cream);
}

.services .btn__icon {
  width: 2.5521cqw;
  height: 2.5521cqw;
  flex: 0 0 2.5521cqw;
  display: block;
}

.services .btn--outline {
  width: 8.125cqw;
  border: 1px solid var(--stroke);
  color: var(--brown);
  background: #fff;
}

.services__dots {
  display: none;
}

@media (max-width: 900px) {
  .services {
    aspect-ratio: 402 / 950;
  }

  .services__title {
    left: 2.9851cqw;
    top: 5.2654cqw;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .services__eyebrow {
    display: none;
  }

  .services__lead {
    left: 3.7313cqw;
    top: 22.3881cqw;
    width: 70.6468cqw;
    font-size: 5.4726cqw;
    line-height: 1.09;
  }

  .services__help-wrap {
    left: 57.7114cqw;
    top: 8.7065cqw;
  }

  .services__help {
    font-size: 3.9801cqw;
    letter-spacing: 0;
    white-space: nowrap;
    gap: 1.2cqw;
  }

  .services__help-arrow {
    width: 2.2388cqw;
    height: 2.2388cqw;
  }

  .services__help-underline {
    width: 38.4328cqw;
  }

  .services__desktop-nav {
    display: none;
  }

  .services__viewport {
    left: 3.4826cqw;
    right: auto;
    top: 48.7562cqw;
    width: 92.7861cqw;
    height: 181.2cqw;
  }

  .services__track {
    gap: 0;
    width: 100%;
  }

  .service-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .service-card__image {
    height: 133.5821cqw;
    border-radius: 1.2438cqw;
  }

  .service-card__image--mobile {
    display: none;
  }

  .service-card.has-mobile-image .service-card__image--desktop {
    display: none;
  }

  .service-card.has-mobile-image .service-card__image--mobile {
    display: block;
  }

  .service-card__body {
    margin-top: 3.7313cqw;
  }

  .service-card__body h3 {
    margin-bottom: 5.9701cqw;
    font-size: 4.9751cqw;
  }

  .service-card__actions {
    gap: 1.99cqw;
  }

  .services .btn {
    height: 14.9254cqw;
    border-radius: 1.2438cqw;
    font-size: 4.4776cqw;
  }

  .services .btn--primary {
    padding: 1.2cqw 1.2cqw 1.2cqw 3.6cqw;
  }

  .services .btn--outline {
    width: 38.806cqw;
  }

  .services .btn__icon {
    width: 12.1891cqw;
    height: 12.1891cqw;
    flex: 0 0 12.1891cqw;
  }

  .services__dots {
    position: absolute;
    left: 50%;
    top: 225.4cqw;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75cqw;
  }

  .dot {
    width: 1.4925cqw;
    height: 1.4925cqw;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ded9d6;
  }

  .dot.is-active {
    background: var(--brown);
  }
}

/* ===================================================================
   СЕКЦИЯ «ПОЧЕМУ МЫ?» — 81:592 (заголовок) / карточки 81:612…81:652
   Эффект портирован с React-компонента (framer-motion useScroll/useTransform
   + lenis), которого нет в этом проекте (статический HTML/CSS/JS, без
   React/Tailwind/npm) — тот же эффект сделан на чистом CSS + JS:
   каждая карточка "sticky top:0", скролл прогрессивно уменьшает
   масштаб (scale) более ранних карточек, новые наезжают поверх.
   =================================================================== */

.why {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: visible;
}

.why__heading {
  position: relative;
  margin: 0;
  padding: 3.0729cqw 1.1458cqw 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
  container-type: inline-size;
  container-name: whyHeading;
}

.why__flower-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.why__flower {
  width: 55vw;
  height: auto;
  aspect-ratio: 1159 / 1049;
  opacity: 0.7;
  display: block;
}

.why__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vh 0 8vh;
}

.why-card-wrap {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2vh 1.1458cqw;
}

.why-card {
  position: relative;
  width: 42vw;
  aspect-ratio: 920 / 620;
  border-radius: 1.8478cqw;
  overflow: hidden;
  background: #baada4;
  container-type: inline-size;
  container-name: whyCard;
  box-shadow: 0 1.5vh 4vh rgba(63, 39, 28, 0.25);
  transform-origin: top center;
  will-change: transform;
}

.why-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.why-card__number {
  position: absolute;
  left: 3.0435cqw;
  top: 3.0435cqw;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 3.4783cqw;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.why-card__title {
  position: absolute;
  left: 3.0435cqw;
  top: 61.25cqw;
  transform: translateY(-50%);
  margin: 0;
  width: calc(100% - 6.087cqw);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 5.6522cqw;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .why__heading {
    font-size: 7.6567cqw;
    letter-spacing: -0.03em;
    line-height: 0.88;
  }

  .why-card {
    width: 92.7861vw;
  }
}

/* ===================================================================
   СЕКЦИЯ «КОМАНДА» — десктоп 1:172 (3 карточки в ряд),
   мобайл 1:2028 (карусель, 1 карточка + точки)
   эталон 1920 × 1027 (cqw = px / 19.2) → 402 × 702 (cqw = px / 4.02)
   =================================================================== */

.team {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  margin-top: 120px;
}

.team__heading {
  position: relative;
  margin: 0;
  padding: 2.9688cqw 1.1979cqw 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
  container-type: inline-size;
  container-name: teamHeading;
}

.team__row {
  display: flex;
  gap: 1.0417cqw;
  padding: 50px 1.1979cqw 4cqw;
  container-type: inline-size;
  container-name: teamRow;
}

.team-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8333cqw;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
}

.team-card__photo {
  width: 100%;
  height: 35.3365cqw;
  border-radius: 0.8854cqw;
  overflow: hidden;
  background: #ecebef;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__name {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25cqw;
  line-height: normal;
}

.team-card__role {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9375cqw;
  line-height: 1.3542cqw;
}

.team__viewport,
.team__dots {
  display: none;
}

@media (max-width: 900px) {
  .team {
    margin-top: 70px;
  }

  .team__heading {
    padding: 7.2139cqw 1.99cqw 0;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .team__row {
    display: none;
  }

  .team__viewport {
    display: block;
    position: relative;
    left: 1.99cqw;
    width: 96.02cqw;
    padding: 5.9701cqw 0 8cqw;
    overflow: hidden;
    container-type: inline-size;
    container-name: teamViewport;
  }

  .team__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .team-card {
    flex: 0 0 100%;
    width: 100%;
    gap: 5.9701cqw;
  }

  .team-card__info {
    gap: 1cqw;
  }

  .team-card__photo {
    height: 123.8806cqw;
    border-radius: 1.2438cqw;
  }

  .team-card__name {
    font-size: 5.9701cqw;
  }

  .team-card__role {
    font-size: 4.4776cqw;
    line-height: 6.4677cqw;
  }

  .team__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.99cqw;
    padding-bottom: 6cqw;
  }
}

/* ===================================================================
   СЕКЦИЯ «РЕЗУЛЬТАТЫ РАБОТЫ» — десктоп 1:771, мобайл 1:2118
   Структура идентична «Услугам» (тот же размер фрейма 1920×909 /
   402×925), фото — интерактивный слайдер «до/после» (ползунок).
   Реальных фото ещё нет — используются заглушки с подписями
   «До» / «После», слайдер уже полностью рабочий.
   =================================================================== */

.results {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: results;
  aspect-ratio: 1920 / 909;
}

.results__title {
  position: absolute;
  left: 1.5104cqw;
  top: 2.8646cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.results__eyebrow {
  position: absolute;
  left: 1.5625cqw;
  top: 12.0833cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1458cqw;
  opacity: 0.33;
}

.results__lead {
  position: absolute;
  left: 1.5104cqw;
  top: 14.7917cqw;
  width: 24.375cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.0833cqw;
  line-height: 1;
}

.results__help-wrap {
  position: absolute;
  left: 1.5625cqw;
  top: 24.5312cqw;
}

.results__help {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.4583cqw;
  letter-spacing: -0.03em;
}

.results__help-arrow {
  display: block;
  width: 0.6771cqw;
  height: 0.6771cqw;
}

.results__help-underline {
  display: block;
  width: 13.8281cqw;
  height: 1px;
  margin-top: 0.3cqw;
  background: rgba(63, 39, 28, 0.6);
}

.results__desktop-nav {
  position: absolute;
  left: 1.5625cqw;
  top: 43.9583cqw;
  display: flex;
  gap: 0.3646cqw;
}

.results__flower-mobile {
  display: none;
}

.results__viewport {
  position: absolute;
  left: 26.0938cqw;
  right: 1.5625cqw;
  top: 12.4479cqw;
  overflow: hidden;
}

.results__track {
  display: flex;
  gap: 1.1979cqw;
  transition: transform 0.35s ease;
  will-change: transform;
}

.result-card {
  flex: 0 0 23.2812cqw;
  width: 23.2812cqw;
}

.result-card__photo {
  position: relative;
  width: 100%;
  height: 27.9688cqw;
  border-radius: 0.8854cqw;
  overflow: hidden;
  background: #d9d9d9;
}

.result-card__body {
  margin-top: 0.7812cqw;
}

.result-card__body h3 {
  margin: 0 0 1.25cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1458cqw;
  line-height: normal;
}

.result-card__actions {
  display: flex;
  gap: 0.4167cqw;
}

.results .btn {
  height: 3.125cqw;
  border-radius: 0.26cqw;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results .btn--primary {
  flex: 1;
  min-width: 0;
  padding: 0.26cqw 0.26cqw 0.26cqw 1.1cqw;
  background: var(--brown);
  justify-content: space-between;
}

.results .btn--primary span {
  flex: 1;
  text-align: center;
  color: var(--cream);
}

.results .btn__icon {
  width: 2.5521cqw;
  height: 2.5521cqw;
  flex: 0 0 2.5521cqw;
  display: block;
}

.results .btn--outline {
  width: 8.125cqw;
  border: 1px solid var(--stroke);
  color: var(--brown);
  background: #fff;
}

.results__dots {
  display: none;
}

/* ---- Слайдер «до / после» ---- */

.result-slider {
  position: absolute;
  inset: 0;
  --pos: 50%;
}

.result-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-slider__before {
  background: #cfced3;
}

.result-slider__after {
  background: #e4e2e6;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.result-slider__label {
  position: absolute;
  bottom: 0.8cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.55;
  pointer-events: none;
}

.result-slider__label--before {
  left: 0.8cqw;
}

.result-slider__label--after {
  right: 0.8cqw;
}

.result-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 2px;
  background: #fff;
  cursor: ew-resize;
  touch-action: none;
  z-index: 2;
}

.result-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5521cqw;
  height: 2.5521cqw;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3cqw 0.8cqw rgba(63, 39, 28, 0.3);
  color: var(--brown);
  font-size: 0.7292cqw;
  pointer-events: none;
}

@media (max-width: 900px) {
  .results {
    aspect-ratio: 402 / 960;
  }

  .results__title {
    left: 2.9851cqw;
    top: 5.2654cqw;
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .results__eyebrow {
    display: none;
  }

  .results__lead {
    left: 3.4826cqw;
    top: 21.6418cqw;
    width: 70.6468cqw;
    font-size: 5.4726cqw;
    line-height: 1.09;
  }

  .results__help-wrap {
    left: 3.4826cqw;
    top: 50cqw;
  }

  .results__help {
    font-size: 3.9801cqw;
    letter-spacing: 0;
    white-space: nowrap;
    gap: 1.2cqw;
  }

  .results__help-arrow {
    width: 2.2388cqw;
    height: 2.2388cqw;
  }

  .results__help-underline {
    width: 38.4328cqw;
  }

  .results__desktop-nav {
    display: none;
  }

  .results__flower-mobile {
    display: block;
    position: absolute;
    left: -20.3980cqw;
    top: 94.0299cqw;
    width: 70.398cqw;
    height: auto;
    opacity: 0.5;
    pointer-events: none;
  }

  .results__viewport {
    left: 3.4826cqw;
    right: auto;
    top: 60.5677cqw;
    width: 92.7861cqw;
    height: 164.9254cqw;
  }

  .results__track {
    gap: 0;
    width: 100%;
  }

  .result-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .result-card__photo {
    height: 133.5821cqw;
    border-radius: 1.2438cqw;
  }

  .result-card__body {
    margin-top: 3.7313cqw;
  }

  .result-card__body h3 {
    margin-bottom: 5.9701cqw;
    font-size: 4.9751cqw;
  }

  .result-card__actions {
    gap: 1.99cqw;
  }

  .results .btn {
    height: 14.9254cqw;
    border-radius: 1.2438cqw;
    font-size: 4.4776cqw;
  }

  .results .btn--primary {
    padding: 1.2cqw 1.2cqw 1.2cqw 3.6cqw;
  }

  .results .btn--outline {
    width: 38.806cqw;
  }

  .results .btn__icon {
    width: 12.1891cqw;
    height: 12.1891cqw;
    flex: 0 0 12.1891cqw;
  }

  .result-slider__label {
    font-size: 3.4826cqw;
    bottom: 3cqw;
  }

  .result-slider__label--before {
    left: 3cqw;
  }

  .result-slider__label--after {
    right: 3cqw;
  }

  .result-slider__grip {
    width: 12.1891cqw;
    height: 12.1891cqw;
    font-size: 3.4826cqw;
  }

  .results__dots {
    position: absolute;
    left: 50%;
    top: 229.9707cqw;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75cqw;
  }
}

/* ===================================================================
   БАННЕР «НАЧНИТЕ ПУТЬ К ИДЕАЛЬНОЙ КОЖЕ» — десктоп 1:127, мобайл 1:1794
   Структура идентична баннеру «Доверьте свою кожу» (фото + затемнение +
   центрированный заголовок), эталон 1920×1000 (cqw=px/19.2) →
   402×661 (cqw=px/4.02)
   =================================================================== */

.cta {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.cta__photo {
  position: absolute;
  overflow: hidden;
  background: #baada4;
}

.cta__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.cta__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.cta__title span {
  display: block;
}

.cta__photo--desktop {
  left: 2.0312cqw;
  top: 3.4375cqw;
  width: 96.7188cqw;
  height: 48.6458cqw;
  border-radius: 1.6146cqw;
}

.cta {
  container-type: inline-size;
  container-name: cta;
  aspect-ratio: 1920 / 1000;
}

.cta .cta__title {
  font-size: 3.5015cqw;
  line-height: 0.92;
  letter-spacing: -0.1297cqw;
}

.cta__photo--mobile {
  display: none;
}

@media (max-width: 900px) {
  .cta {
    aspect-ratio: 402 / 661;
  }

  .cta__photo--desktop {
    display: none;
  }

  .cta__photo--mobile {
    display: block;
    left: 3.2338cqw;
    top: 2.9851cqw;
    width: 93.7811cqw;
    height: 153.7313cqw;
    border-radius: 1.2438cqw;
  }

  .cta .cta__title {
    font-size: 6.4478cqw;
    line-height: 0.9;
    letter-spacing: -0.2388cqw;
  }
}

/* ===================================================================
   СЕКЦИЯ «АППАРАТЫ» — Figma 977:9221. Горизонтальная лента карточек
   трёх размеров (a 450×516, b 920×712, c 450×339), автопрокрутка,
   без полосы прокрутки. эталон 1920 (cqw = px / 19.2)
   =================================================================== */

.devices {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: devices;
  padding: 3.0208cqw 0 2.6042cqw;
}

.devices__title {
  margin: 0 0 3.125cqw 1.5625cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.devices__scroller {
  display: flex;
  align-items: flex-start;
  gap: 1.0417cqw;
  padding: 0 1.5625cqw;
  scroll-padding: 0 1.5625cqw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}

.devices__scroller::-webkit-scrollbar {
  display: none;
}

.device-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.device-card--a { width: 23.4375cqw; }
.device-card--b { width: 47.9167cqw; }
.device-card--c { width: 23.4375cqw; }

.device-card__photo {
  position: relative;
  width: 100%;
  border-radius: 0.2604cqw;
  overflow: hidden;
  background: #ddd6d0;
}

.device-card--a .device-card__photo { aspect-ratio: 450 / 516; }
.device-card--b .device-card__photo { aspect-ratio: 920 / 712; }
.device-card--c .device-card__photo { aspect-ratio: 450 / 339; }

.device-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.device-card__name {
  margin: 0.7813cqw 0 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1458cqw;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.device-card__desc {
  margin: 0.2604cqw 0 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9375cqw;
  letter-spacing: -0.04em;
  opacity: 0.7;
}

.devices__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4688cqw;
  margin-top: 2.0833cqw;
}

.devices__dots .dot {
  width: 0.4688cqw;
  height: 0.4688cqw;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ded9d6;
  cursor: pointer;
  transition: background 0.25s ease;
}

.devices__dots .dot.is-active {
  background: var(--brown);
}

@media (max-width: 900px) {
  .devices {
    padding: 4.7463cqw 0 6.9652cqw;
  }

  .devices__title {
    margin: 0 0 4.9751cqw 2.9851cqw;
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }

  .devices__scroller {
    gap: 2.4876cqw;
    padding: 0 2.9851cqw;
    scroll-padding: 0 2.9851cqw;
  }

  .device-card--a,
  .device-card--c { width: 56cqw; }
  .device-card--b { width: 84cqw; }

  .device-card__photo {
    border-radius: 1.2438cqw;
  }

  .device-card__name {
    margin-top: 2.4876cqw;
    font-size: 4.4776cqw;
  }

  .device-card__desc {
    margin-top: 0.9950cqw;
    font-size: 3.4826cqw;
  }

  .devices__dots {
    gap: 1.4925cqw;
    margin-top: 5.9701cqw;
  }

  .devices__dots .dot {
    width: 1.4925cqw;
    height: 1.4925cqw;
  }
}

/* ===================================================================
   СТАТИСТИКА — десктоп 1:182, мобайл 1:1899
   эталон 1920 × 699 (cqw = px / 19.2) → 402 × 392 (cqw = px / 4.02)
   =================================================================== */

.stats {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.stats__index,
.stats__value,
.stats__label {
  position: absolute;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
}

.stats__index {
  font-weight: 500;
}

.stats__value {
  font-weight: 400;
  white-space: nowrap;
}

.stats__label {
  font-weight: 400;
}

.stats__row {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--brown);
}

/* -------------------------------------------------------------------
   DESKTOP  (эталон 1920 × 699)
   ------------------------------------------------------------------- */

.stats--desktop {
  container-type: inline-size;
  container-name: statsDesktop;
  aspect-ratio: 1920 / 699;
}

.stats--desktop .stats__index {
  left: 1.5625cqw;
  font-size: 0.9375cqw;
  line-height: 1.4;
  letter-spacing: -0.05625cqw;
}

.stats--desktop .stats__value {
  left: 26.1229cqw;
  font-size: 5.3125cqw;
  line-height: 0.9;
  letter-spacing: -0.31875cqw;
}

.stats--desktop .stats__label {
  left: 51.2104cqw;
  font-size: 0.9375cqw;
  line-height: 1.4;
  letter-spacing: -0.05625cqw;
}

.stats--desktop .stats__row {
  left: 1.5625cqw;
  right: 1.875cqw;
}

.stats--desktop .stats__row:nth-child(1) {
  top: 3.0208cqw;
  height: 5.3125cqw;
}
.stats--desktop .stats__row:nth-child(1) .stats__index { top: 0.3125cqw; }
.stats--desktop .stats__row:nth-child(1) .stats__value { top: 0; }
.stats--desktop .stats__row:nth-child(1) .stats__label { top: 1.875cqw; }

.stats--desktop .stats__row:nth-child(2) {
  top: 10.9896cqw;
  height: 5.3125cqw;
}
.stats--desktop .stats__row:nth-child(2) .stats__index { top: 0.3125cqw; }
.stats--desktop .stats__row:nth-child(2) .stats__value { top: 0; }
.stats--desktop .stats__row:nth-child(2) .stats__label { top: 1.875cqw; }

.stats--desktop .stats__row:nth-child(3) {
  top: 18.9583cqw;
  height: 5.3125cqw;
}
.stats--desktop .stats__row:nth-child(3) .stats__index { top: 0.3125cqw; }
.stats--desktop .stats__row:nth-child(3) .stats__value { top: 0; }
.stats--desktop .stats__row:nth-child(3) .stats__label { top: 1.875cqw; }

.stats--desktop .stats__row:nth-child(4) {
  top: 26.9271cqw;
  height: 5.3125cqw;
}
.stats--desktop .stats__row:nth-child(4) .stats__index { top: 0.3125cqw; }
.stats--desktop .stats__row:nth-child(4) .stats__value { top: 0; }
.stats--desktop .stats__row:nth-child(4) .stats__label { top: 1.875cqw; }

/* Наведение на строку — всплывающая картинка справа (только десктоп) */

.stats--desktop .stats__row {
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.stats--desktop .stats__value {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), color 0.4s ease;
  transform-origin: left center;
}

.stats--desktop .stats__row:hover .stats__value {
  transform: translateX(0.5cqw) scale(1.03);
  color: #6b4a37;
}

.stats--desktop .stats__thumb {
  position: absolute;
  top: 50%;
  right: 3cqw;
  width: 9.5cqw;
  height: 6.6cqw;
  border-radius: 0.6cqw;
  overflow: hidden;
  box-shadow: 0 0.6cqw 1.6cqw rgba(63, 39, 28, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateY(-50%) translateX(0.8cqw) scale(0.92) rotate(3deg);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.stats--desktop .stats__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.45s ease;
}

.stats--desktop .stats__row:hover .stats__thumb {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
}

.stats--desktop .stats__row:hover .stats__thumb img {
  filter: grayscale(0);
}

.stats--mobile {
  display: none;
}

/* -------------------------------------------------------------------
   MOBILE  (эталон 402 × 392)
   ------------------------------------------------------------------- */

@media (max-width: 900px) {
  .stats--desktop {
    display: none;
  }

  .stats--mobile {
    display: block;
    container-type: inline-size;
    container-name: statsMobile;
    aspect-ratio: 402 / 392;
  }

  .stats--mobile .stats__index {
    left: 3.2338cqw;
    font-size: 3.4826cqw;
    line-height: 1.4;
    letter-spacing: -0.209cqw;
  }

  .stats--mobile .stats__value {
    left: 20.6468cqw;
    font-size: 11.194cqw;
    line-height: 0.9;
    letter-spacing: -0.6716cqw;
  }

  .stats--mobile .stats__label {
    left: 61.4378cqw;
    width: 33cqw;
    font-size: 3.2cqw;
    line-height: 1.1;
    letter-spacing: 0;
    text-align: center;
  }

  .stats--mobile .stats__row > .stats__index,
  .stats--mobile .stats__row > .stats__value,
  .stats--mobile .stats__row > .stats__label {
    top: 50%;
    transform: translateY(-50%);
  }

  .stats--mobile .stats__row {
    left: 3.2338cqw;
    right: 2.2388cqw;
  }

  .stats--mobile .stats__row:nth-child(1) {
    top: 15.4229cqw;
    height: 13.1841cqw;
  }

  .stats--mobile .stats__row:nth-child(2) {
    top: 35.5721cqw;
    height: 13.1841cqw;
  }

  .stats--mobile .stats__row:nth-child(3) {
    top: 53.9801cqw;
    height: 13.1841cqw;
  }

  .stats--mobile .stats__row:nth-child(4) {
    top: 74.1294cqw;
    height: 13.1841cqw;
  }
}

/* ===================================================================
   БАННЕР «ИНДИВИДУАЛЬНЫЙ ПОДХОД К ВАШЕЙ КРАСОТЕ» — десктоп 1:109, мобайл 1:1813
   эталон 1920 × 877 (cqw = px / 19.2) → 402 × 615 (cqw = px / 4.02)
   =================================================================== */

.individual {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
  container-name: individual;
  aspect-ratio: 1920 / 877;
}

.individual__photo {
  position: absolute;
  overflow: hidden;
  background: #baada4;
}

.individual__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.individual__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.individual__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.individual__title span {
  display: block;
}

.individual__photo--desktop {
  left: 1.7188cqw;
  top: 0;
  right: 1.7188cqw;
  bottom: 0;
  border-radius: 1.6146cqw;
}

.individual .individual__title {
  font-size: 3.7125cqw;
  line-height: 0.92;
  letter-spacing: -0.1375cqw;
}

.individual__photo--mobile {
  display: none;
}

@media (max-width: 900px) {
  .individual {
    aspect-ratio: 402 / 615;
  }

  .individual__photo--desktop {
    display: none;
  }

  .individual__photo--mobile {
    display: block;
    left: 3.2338cqw;
    top: 2.9851cqw;
    right: 2.9851cqw;
    bottom: 2.9851cqw;
    border-radius: 1.2438cqw;
  }

  .individual .individual__title {
    font-size: 6.4478cqw;
    line-height: 0.9;
    letter-spacing: -0.2388cqw;
  }
}

/* ===================================================================
   СЕКЦИЯ «ОТЗЫВЫ» — десктоп 1:228 (сетка из 4 карточек), мобайл 1:2052
   (карусель, свайп + точки). «Загрузить ещё» готово к расширению
   набора отзывов сверх текущих 4 — кнопка появляется автоматически,
   когда в массиве REVIEWS окажется больше карточек, чем показано.
   эталон 1920 × 990 (cqw = px / 19.2) → 402 × 801 (cqw = px / 4.02)
   =================================================================== */

.reviews {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: reviews;
}

.reviews__title {
  margin: 0;
  padding: 3.0729cqw 1.4062cqw 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.reviews__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0208cqw;
  padding: 3.4375cqw 1.5625cqw 0;
}

.review-card {
  flex: 0 0 23.4266cqw;
  width: 23.4266cqw;
  height: 37.1327cqw;
  border-radius: 0.8854cqw;
  overflow: hidden;
  background: #ecebef;
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reviews__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75cqw;
}

.reviews__dots--static {
  padding: 2.1875cqw 0 3.4375cqw;
}

.reviews__dots--static .dot {
  width: 0.4688cqw;
  height: 0.4688cqw;
}

.reviews__viewport,
#reviews-dots-mobile {
  display: none;
}

.reviews__load-more {
  display: block;
  margin: 0 auto;
  padding: 1.0417cqw 2.0833cqw;
  border: 1px solid var(--stroke);
  border-radius: 0.26cqw;
  background: #fff;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
}

.reviews__load-more[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .reviews__title {
    padding: 4.5597cqw 2.9851cqw 0;
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.2836cqw;
  }

  .reviews__grid,
  .reviews__dots--static {
    display: none;
  }

  .reviews__viewport {
    display: block;
    position: relative;
    left: 3.7313cqw;
    width: 92.5391cqw;
    margin-top: 5.8209cqw;
    overflow: hidden;
    border-radius: 1.2438cqw;
  }

  .reviews__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .reviews__track .review-card {
    flex: 0 0 100%;
    width: 100%;
    height: 164.9254cqw;
    border-radius: 1.2438cqw;
  }

  #reviews-dots-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.99cqw;
    padding: 5.9701cqw 0 8cqw;
  }

  .reviews__load-more {
    padding: 4.4776cqw 7.4627cqw;
    border-radius: 1.2438cqw;
    font-size: 4.4776cqw;
    margin-bottom: 8cqw;
  }
}

/* ===================================================================
   «НАШИ АКЦИИ» — карусель картинок (страница promo.html). Карточки —
   заголовок/цена уже впечатаны в саму картинку акции, поэтому карточка
   это просто фото. Десктоп листается кнопками (как «Услуги»/«Результаты
   работы», .nav-btn — общий класс), мобайл — свайпом с точками, как
   в «Отзывах».
   =================================================================== */

.promo {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: promo;
}

.promo__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1cqw;
  padding: 3.0729cqw 1.5625cqw 0;
}

.promo__title {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.promo__nav {
  display: flex;
  gap: 0.3646cqw;
  flex: 0 0 auto;
}

.promo__viewport-desktop {
  overflow: hidden;
  padding: 3.4375cqw 1.5625cqw 0;
}

.promo__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.0208cqw;
  transition: transform 0.35s ease;
  will-change: transform;
}

.promo-card {
  flex: 0 0 23.4266cqw;
  width: 23.4266cqw;
  aspect-ratio: 1080 / 1350;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
  background: #ecebef;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75cqw;
}

.promo__viewport,
#promo-dots-mobile {
  display: none;
}

@media (max-width: 900px) {
  .promo__head {
    padding: 4.5597cqw 2.9851cqw 0;
  }

  .promo__title {
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.2836cqw;
  }

  .promo__nav,
  .promo__viewport-desktop {
    display: none;
  }

  .promo__viewport {
    display: block;
    position: relative;
    left: 3.7313cqw;
    width: 92.5391cqw;
    margin-top: 5.8209cqw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .promo__viewport::-webkit-scrollbar { display: none; }

  .promo__track {
    display: flex;
    gap: 3cqw;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .promo__track .promo-card {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1080 / 1350;
    border-radius: 1.2438cqw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .promo__track .promo-card img {
    user-select: none;
    -webkit-user-drag: none;
  }

  #promo-dots-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.99cqw;
    padding: 5.9701cqw 0 0;
  }
}

/* ===================================================================
   БЛОК «ОСТАВЬТЕ ЗАЯВКУ» — десктоп 1:459, мобайл 1:1872
   эталон 1920 × 1065 (cqw = px / 19.2) → 402 × 795 (cqw = px / 4.02)
   =================================================================== */

.apply {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
  container-name: apply;
  aspect-ratio: 1920 / 1065;
}

/* На странице акций (promo.html) блок заявки идёт сразу за каруселью
   «Наши акции» — отделяем его отступом 70px со всех сторон. */
.promo + .apply {
  width: auto;
  margin: 30px 0 34px;
}

.apply__photo {
  position: absolute;
  left: 1.5625cqw;
  top: 2.0313cqw;
  width: 47.8646cqw;
  height: 51.4063cqw;
  border-radius: 1.0938cqw;
  overflow: hidden;
  background: #ecebef;
}

.apply__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apply__title {
  position: absolute;
  left: 50.6771cqw;
  top: 1.5167cqw;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 4.3031cqw;
  line-height: 0.9;
  letter-spacing: -0.1594cqw;
  white-space: nowrap;
}

.apply__form {
  position: absolute;
  inset: 0;
}

.apply__field {
  position: absolute;
  left: 50.6771cqw;
  width: 47.9167cqw;
}

.apply__field--name { top: 19.9479cqw; }
.apply__field--phone { top: 24.0104cqw; }

.apply__field--procedure,
.apply__field--date {
  width: 23.4896cqw;
}

.apply__field--procedure { top: 28.0729cqw; }
.apply__field--date { left: 75.2083cqw; top: 28.0729cqw; }

.apply__input {
  width: 100%;
  margin: 0;
  border: none;
  border-bottom: 1px solid rgba(63, 39, 28, 0.56);
  background: transparent;
  padding: 0 0 1.4583cqw;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9375cqw;
  color: var(--brown);
  outline: none;
}

/* Поля сохраняют фирменный вид при выделении и автозаполнении браузером. */
.apply__input::selection,
.apply__textarea::selection {
  color: var(--brown);
  background: rgba(63, 39, 28, 0.16);
}

.apply__input:-webkit-autofill,
.apply__input:-webkit-autofill:hover,
.apply__input:-webkit-autofill:focus,
.apply__textarea:-webkit-autofill,
.apply__textarea:-webkit-autofill:hover,
.apply__textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--brown);
  caret-color: var(--brown);
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-out 0s;
}

.apply__input::placeholder {
  color: var(--brown);
  opacity: 1;
}

.apply__input[readonly] {
  cursor: pointer;
}

.apply__field-icon {
  position: absolute;
  right: 0;
  top: 0;
  width: 0.9375cqw;
  height: 0.9375cqw;
  pointer-events: none;
}

.apply__date-native {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  color-scheme: light;
}

.apply__textarea-label {
  position: absolute;
  left: 50.6771cqw;
  top: 33.9063cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9375cqw;
}

.apply__textarea {
  position: absolute;
  left: 50.6771cqw;
  top: 35.4167cqw;
  width: 47.9167cqw;
  height: 11.5625cqw;
  margin: 0;
  border: none;
  border-radius: 0.2604cqw;
  background: #ecebeb;
  padding: 1cqw;
  font-family: var(--font-body);
  font-size: 0.9375cqw;
  color: var(--brown);
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.apply__consent {
  position: absolute;
  left: 50.8854cqw;
  top: 47.6563cqw;
  width: 40.3646cqw;
  display: flex;
  align-items: flex-start;
  gap: 1.0938cqw;
  cursor: pointer;
}

.apply__consent input {
  position: absolute;
  opacity: 0;
  width: 0.5729cqw;
  height: 0.5729cqw;
  margin: 0;
}

.apply__consent-box {
  position: relative;
  flex: 0 0 0.5729cqw;
  width: 0.5729cqw;
  height: 0.5729cqw;
  margin-top: 0.1cqw;
  border: 1px solid #979797;
  border-radius: 0.05cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.apply__consent-check {
  width: 70%;
  height: 70%;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.apply__consent input:checked ~ .apply__consent-box {
  background: var(--brown);
  border-color: var(--brown);
}

.apply__consent input:checked ~ .apply__consent-box .apply__consent-check {
  opacity: 1;
  transform: scale(1);
}

.apply__consent-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.7292cqw;
  line-height: 0.92;
  color: #979797;
}

.apply__submit {
  position: absolute;
  left: 50.2604cqw;
  top: 50.3646cqw;
  width: 48.4375cqw;
  height: 3.0729cqw;
  padding: 0.2604cqw 0.2604cqw 0.2604cqw 1.1458cqw;
  background: var(--brown);
}

.apply__submit span {
  flex: 1;
  text-align: center;
  color: var(--cream);
  font-size: 0.9375cqw;
}

.apply__submit .btn__icon {
  width: 2.5521cqw;
  height: 2.5521cqw;
}

@media (max-width: 900px) {
  .apply {
    aspect-ratio: 402 / 795;
  }

  .apply__photo {
    display: none;
  }

  .apply__title {
    left: 2.9851cqw;
    top: 4.526cqw;
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.2836cqw;
  }

  .apply__field {
    left: 3.9801cqw;
    width: 89.0547cqw;
  }

  .apply__field--name { top: 31.592cqw; }
  .apply__field--phone { top: 45.7711cqw; }

  .apply__field--procedure,
  .apply__field--date {
    width: 89.0547cqw;
    left: 3.9801cqw;
  }

  .apply__field--procedure { top: 61.6915cqw; }
  .apply__field--date { top: 77.1144cqw; }

  .apply__input {
    padding-bottom: 5.4726cqw;
    font-size: 3.9801cqw;
  }

  .apply__field-icon {
    width: 4.4776cqw;
    height: 4.4776cqw;
  }

  .apply__field--date .apply__field-icon {
    display: block;
  }

  .apply__textarea-label {
    left: 4.2289cqw;
    top: 93.0348cqw;
    font-size: 3.9801cqw;
  }

  .apply__textarea {
    left: 4.2289cqw;
    top: 101cqw;
    width: 91.5423cqw;
    height: 55.2239cqw;
    border-radius: 1.2438cqw;
    padding: 3cqw;
    font-size: 3.9801cqw;
  }

  .apply__consent {
    left: 5.2239cqw;
    top: 159.4527cqw;
    width: 87.8109cqw;
    gap: 5.2239cqw;
  }

  .apply__consent input {
    width: 2.7363cqw;
    height: 2.7363cqw;
  }

  .apply__consent-box {
    flex: 0 0 2.7363cqw;
    width: 2.7363cqw;
    height: 2.7363cqw;
  }

  .apply__consent-text {
    font-size: 2.9851cqw;
  }

  .apply__submit {
    left: 2.9851cqw;
    top: 178.8557cqw;
    width: 94.0299cqw;
    height: 14.9254cqw;
    padding: 1.2cqw 1.2cqw 1.2cqw 3.6cqw;
  }

  .apply__submit span {
    font-size: 4.2cqw;
  }

  .apply__submit .btn__icon {
    width: 11.9cqw;
    height: 11.9cqw;
  }
}

/* ===================================================================
   СЕКЦИЯ «БЛОГ» — тот же паттерн, что «Отзывы»: сетка из 4 карточек
   на десктопе, карусель с точками на мобайле, кнопка «Читать ещё»
   готова дозагружать статьи из массива ARTICLES сверх текущих 4.
   =================================================================== */

.blog {
  position: relative;
  width: 100%;
  background: #fff;
  color: var(--brown);
  overflow: hidden;
  container-type: inline-size;
  container-name: blog;
}

.blog__title {
  margin: 0;
  padding: 3.0729cqw 1.4062cqw 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.blog__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0208cqw;
  padding: 3.4375cqw 1.5625cqw 0;
}

.blog-card {
  flex: 0 0 23.4266cqw;
  width: 23.4266cqw;
  text-decoration: none;
  color: var(--brown);
  display: block;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: 27.9688cqw;
  object-fit: cover;
  border-radius: 0.8854cqw;
  background: #ecebef;
}

.blog-card__body {
  margin-top: 0.9375cqw;
}

.blog-card__eyebrow {
  margin: 0 0 0.5208cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7813cqw;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-card__title {
  margin: 0 0 0.9375cqw;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1458cqw;
  line-height: 1.3;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4167cqw;
  color: var(--brown);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
}

.blog-card__link img {
  display: block;
  width: 0.6771cqw;
  height: 0.6771cqw;
}

.blog__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75cqw;
}

.blog__dots--static {
  padding: 2.1875cqw 0 3.4375cqw;
}

.blog__dots--static .dot {
  width: 0.4688cqw;
  height: 0.4688cqw;
}

.blog__viewport,
#blog-dots-mobile {
  display: none;
}

.blog__load-more {
  display: block;
  margin: 0 auto;
  padding: 1.0417cqw 2.0833cqw;
  border: 1px solid var(--stroke);
  border-radius: 0.26cqw;
  background: #fff;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375cqw;
}

.blog__load-more[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .blog__title {
    padding: 4.5597cqw 2.9851cqw 0;
    font-weight: 500;
    font-size: 7.6567cqw;
    line-height: 0.88;
    letter-spacing: -0.2836cqw;
  }

  .blog__grid,
  .blog__dots--static {
    display: none;
  }

  .blog__viewport {
    display: block;
    position: relative;
    left: 3.7313cqw;
    width: 92.5391cqw;
    margin-top: 5.8209cqw;
    overflow: hidden;
  }

  .blog__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .blog__track .blog-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .blog-card__image {
    height: 133.5821cqw;
    border-radius: 1.2438cqw;
  }

  .blog-card__body {
    margin-top: 3.7313cqw;
  }

  .blog-card__eyebrow {
    font-size: 3.2338cqw;
    margin-bottom: 1.99cqw;
  }

  .blog-card__title {
    font-size: 4.9751cqw;
    margin-bottom: 3.7313cqw;
  }

  .blog-card__link {
    font-size: 4.2cqw;
    gap: 1.99cqw;
  }

  .blog-card__link img {
    width: 2.9851cqw;
    height: 2.9851cqw;
  }

  #blog-dots-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.99cqw;
    padding: 5.9701cqw 0 8cqw;
  }

  .blog__load-more {
    padding: 4.4776cqw 7.4627cqw;
    border-radius: 1.2438cqw;
    font-size: 4.4776cqw;
    margin-bottom: 8cqw;
  }
}

/* ===================================================================
   ФУТЕР — карта (перенесена из блока «Контакты») + контакты/навигация/
   соцсети/декоративный цветок по макету Figma (1:291, эталон 1920×767,
   cqw = px / 19.2). Мобильная версия адаптирована самостоятельно —
   Figma-макета для неё нет: раскладка переведена в обычный flow.
   =================================================================== */

.site-footer {
  position: relative;
  width: 100%;
  background: #3f271c;
  overflow: hidden;
}

.site-footer__map {
  width: 100%;
  height: 451px;
  overflow: hidden;
  background: #ecebef;
}

.site-footer__map-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.site-footer__map-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.site-footer__map-btn {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--brown);
  color: #f9f9f9;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(63, 39, 28, 0.25);
  transition: opacity 0.2s ease;
}

.site-footer__map-link:hover .site-footer__map-btn {
  opacity: 0.88;
}

.site-footer__map-credit {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.75);
  color: #333;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.4;
}

.site-footer__body {
  position: relative;
  width: 100%;
  container-type: inline-size;
  container-name: siteFooter;
  aspect-ratio: 1920 / 767;
  overflow: hidden;
}

.site-footer__flower {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-footer__flower-piece {
  position: absolute;
  display: block;
}

.site-footer__flower-piece--top {
  left: 38.0405cqw;
  top: 2.8127cqw;
  width: 24.383cqw;
  height: 15.9919cqw;
}

.site-footer__flower-piece--bottom {
  left: 38.0379cqw;
  top: 20.6559cqw;
  width: 24.3846cqw;
  height: 15.9919cqw;
}

.site-footer__flower-piece--right {
  left: 53.2063cqw;
  top: 12.0535cqw;
  width: 19.3067cqw;
  height: 15.5305cqw;
  transform-origin: center;
  transform: rotate(90deg);
}

.site-footer__flower-piece--left {
  left: 27.539cqw;
  top: 12.0535cqw;
  width: 19.3067cqw;
  height: 15.5305cqw;
  transform-origin: center;
  transform: rotate(90deg) scaleY(-1);
}

.site-footer__heading {
  margin: 0 0 1.0417cqw;
  color: #f9f9f9;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.9375cqw;
  line-height: 1.2;
}

.site-footer__contacts {
  position: absolute;
  left: 1.5625cqw;
  top: 2.3958cqw;
  width: 15.5729cqw;
  color: #f9f9f9;
}

.site-footer__text {
  margin: 0;
  color: #f9f9f9;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7292cqw;
  line-height: 1.3;
}

.site-footer__text a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__text a:hover {
  text-decoration: underline;
}

.site-footer__social {
  position: absolute;
  left: 1.5625cqw;
  top: 11.5cqw;
  display: flex;
  align-items: center;
  gap: 0.2604cqw;
}

.site-footer__social a {
  display: block;
  transition: opacity 0.2s ease;
}

.site-footer__social a:hover {
  opacity: 0.8;
}

.site-footer__social img {
  display: block;
  width: 1.6667cqw;
  height: 1.6667cqw;
}

.site-footer__social a.site-footer__social-max {
  width: 1.6667cqw;
  height: 1.6667cqw;
  border-radius: 0.2083cqw;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-footer__social-max img {
  width: 56%;
  height: 56%;
}

.site-footer__nav {
  position: absolute;
  left: 91.9271cqw;
  top: 2.3958cqw;
  width: 7.8125cqw;
  display: flex;
  flex-direction: column;
  color: #f9f9f9;
}

.site-footer__nav a {
  display: block;
  margin: 0;
  color: #f9f9f9;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7292cqw;
  line-height: 1.7;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  position: absolute;
  margin: 0;
  color: #f9f9f9;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.625cqw;
  line-height: 1.35;
  opacity: 0.85;
  width: 22.4479cqw;
}

.site-footer__legal--left {
  left: 1.5625cqw;
  bottom: 1.5625cqw;
}

.site-footer__legal--right {
  right: 1.5625cqw;
  bottom: 1.5625cqw;
  text-align: right;
}

@media (max-width: 900px) {
  .site-footer__body {
    aspect-ratio: 402 / 709;
  }

  .site-footer__flower-piece--top {
    left: 28.2512cqw;
    top: 74.8756cqw;
    width: 44.2438cqw;
    height: 29.0175cqw;
  }

  .site-footer__flower-piece--bottom {
    left: 28.2463cqw;
    top: 107.2537cqw;
    width: 44.2463cqw;
    height: 29.0175cqw;
  }

  .site-footer__flower-piece--right {
    left: 55.7705cqw;
    top: 91.6449cqw;
    width: 35.0331cqw;
    height: 28.1811cqw;
  }

  .site-footer__flower-piece--left {
    left: 9.1961cqw;
    top: 91.6437cqw;
    width: 35.0331cqw;
    height: 28.1811cqw;
  }

  .site-footer__nav {
    left: 4.4776cqw;
    top: 7.4627cqw;
    width: 27.6119cqw;
  }

  .site-footer__contacts {
    left: 55cqw;
    top: 7.4627cqw;
    width: 42cqw;
  }

  .site-footer__heading {
    font-size: 4.4776cqw;
    margin-bottom: 3.9801cqw;
  }

  .site-footer__contacts .site-footer__heading {
    margin-bottom: 4.9751cqw;
  }

  .site-footer__text {
    font-size: 3.4826cqw;
    line-height: 1.15;
  }

  .site-footer__text a[href^="mailto:"] {
    font-size: 3.1cqw;
    letter-spacing: -0.02em;
  }

  .site-footer__social {
    left: 4.4776cqw;
    top: 53.7313cqw;
    gap: 1.3cqw;
  }

  .site-footer__social img {
    width: 7.9602cqw;
    height: 7.9602cqw;
  }

  .site-footer__social a.site-footer__social-max {
    width: 7.9602cqw;
    height: 7.9602cqw;
    border-radius: 0.995cqw;
  }

  .site-footer__social-max img {
    width: 56%;
    height: 56%;
  }

  .site-footer__nav a {
    font-size: 3.4826cqw;
    line-height: 1.65;
  }

  .site-footer__legal {
    width: 90cqw;
    font-size: 2.9851cqw;
    line-height: 1.35;
    bottom: auto;
  }

  .site-footer__legal--left {
    left: 4.4776cqw;
    top: 147.2637cqw;
  }

  .site-footer__legal--right {
    left: 4.4776cqw;
    top: 160.199cqw;
    right: auto;
    text-align: left;
  }
}

/* ===================================================================
   ШАПКА ВНУТРЕННИХ СТРАНИЦ (about.html и т.п.) — лёгкий отдельный
   хедер без фото-фона, поэтому вёрстка обычная (rem/px + медиа-запрос
   900px), без cqw-контейнеров, которые завязаны на герой-секцию.
   =================================================================== */

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(63, 39, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Закреплённое меню index.html — скрыто над экраном, пока виден герой,
   и выезжает сверху после прокрутки на высоту первого экрана. */
.page-header--pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(63, 39, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.page-header--pinned.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.page-header__inner {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}

.page-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header__logo .logo__full {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.page-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--cream);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.page-header__nav a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.page-header__nav a:hover {
  opacity: 0.75;
}

.page-header__menu-btn {
  display: none;
}

.page-header__nav-mobile {
  display: none;
}

@media (max-width: 900px) {
  .page-header__inner {
    padding: 10px 20px;
  }

  .page-header__logo .logo__full {
    height: 24px;
  }

  .page-header__nav {
    display: none;
  }

  .page-header__menu-btn {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--cream);
  }

  .page-header__menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brown);
  }

  .page-header__nav-mobile {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--cream);
    border-radius: 10px;
    padding: 16px;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    color: var(--brown);
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 5;
  }

  .page-header__nav-mobile:not([hidden]) {
    display: flex;
  }

  .page-header__nav-mobile[hidden] {
    display: none;
  }

  .page-header__nav-mobile a {
    text-decoration: none;
    color: inherit;
  }
}

/* ===================================================================
   КНОПКА «НАВЕРХ» — на всех страницах, появляется после прокрутки
   больше высоты одного экрана, плавно скроллит страницу к началу.
   =================================================================== */

/* ===================================================================
   СТРАНИЦА «ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ» + ссылки на неё
   =================================================================== */

.policy {
  background: #fff;
  color: var(--brown);
  padding: 64px 40px 96px;
}

.policy__inner {
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.policy__title {
  margin: 0 0 40px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.policy__eyebrow {
  margin: 0 0 12px;
  color: #88786f;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy__intro {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 18px;
}

.policy__download {
  margin-bottom: 40px !important;
  font-weight: 600;
}

.policy__content > :first-child {
  margin-top: 0;
}

.policy h2 {
  margin: 40px 0 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.policy li {
  margin: 0 0 8px;
}

.policy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.policy__dl {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 12px 24px;
}

.policy__dl dt {
  font-weight: 500;
}

.policy__dl dd {
  margin: 0;
}

.policy__dl dd ul {
  margin: 0;
}

.site-footer__legal a,
.apply__consent-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .policy {
    padding: 40px 20px 64px;
  }

  .policy__inner {
    font-size: 15px;
  }

  .policy__dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .policy__dl dd {
    margin-bottom: 12px;
  }
}

/* ===================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ «УСЛУГИ» — открывается при наведении (и фокусе)
   =================================================================== */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__toggle::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__toggle::after,
.nav-dropdown:focus-within .nav-dropdown__toggle::after {
  transform: translateY(0.05em) rotate(-135deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  min-width: 260px;
  margin-top: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* невидимый «мостик», чтобы меню не закрывалось при переходе курсора */
.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-dropdown__menu a:hover {
  background: rgba(63, 39, 28, 0.08);
  opacity: 1;
}

.nav-sublink {
  padding-left: 16px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* ===================================================================
   СТРАНИЦА «ЧЕМ МЫ МОЖЕМ ВАМ ПОМОЧЬ» (help.html)
   =================================================================== */

.help {
  background: #f3efec;
  color: var(--brown);
  padding: 80px 0 110px;
}

.help__inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 40px;
}

.help__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stroke);
}

.help__title {
  margin: 0 0 56px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 1;
}

.help__tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 48px;
  border: 1px solid var(--brown);
  border-radius: 10px;
  overflow: hidden;
}

.help__tab {
  padding: 18px 12px;
  border: 0;
  border-right: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.help__tab:last-child {
  border-right: 0;
}

.help__tab:hover {
  background: rgba(63, 39, 28, 0.06);
}

.help__tab.is-active {
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
}

.help__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  align-items: start;
}

.help__panel[hidden] {
  display: none;
}

.help-item {
  background: #fff;
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.help-item[open] {
  box-shadow: 0 10px 30px rgba(63, 39, 28, 0.08);
}

.help-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 36px;
  cursor: pointer;
  list-style: none;
}

.help-item__head::-webkit-details-marker {
  display: none;
}

.help-item__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
}

.help-item__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}

.help-item__icon::before,
.help-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease;
}

.help-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.help-item__head:hover .help-item__icon,
.help-item[open] .help-item__icon {
  background: var(--brown);
}

.help-item__head:hover .help-item__icon::before,
.help-item__head:hover .help-item__icon::after,
.help-item[open] .help-item__icon::before,
.help-item[open] .help-item__icon::after {
  background: var(--cream);
}

.help-item[open] .help-item__icon {
  transform: rotate(45deg);
}

.help-item__text {
  padding: 0 36px 32px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

.help-item__text ul {
  margin: 8px 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .help {
    padding: 48px 0 70px;
  }

  .help__inner {
    padding: 0 16px;
  }

  .help__title {
    margin-bottom: 32px;
  }

  .help__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 10px;
    margin-bottom: 28px;
  }

  .help__tabs::-webkit-scrollbar {
    display: none;
  }

  .help__tab {
    flex: none;
    padding: 14px 18px;
    font-size: 15px;
  }

  .help__panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .help-item__head {
    padding: 22px 20px;
  }

  .help-item__title {
    font-size: 18px;
  }

  .help-item__icon {
    width: 36px;
    height: 36px;
  }

  .help-item__icon::before,
  .help-item__icon::after {
    width: 18px;
  }

  .help-item__text {
    padding: 0 20px 22px;
    font-size: 15px;
  }
}

/* ===================================================================
   ВЫПАДАЮЩЕЕ МЕНЮ «УСЛУГИ»: направления + процедуры во втором уровне
   =================================================================== */

.nav-dropdown__menu {
  left: auto;
  right: -16px;
  transform: translateY(6px);
  min-width: 300px;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  transform: translateY(0);
}

.nav-dropdown__menu a.nav-dropdown__help {
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(63, 39, 28, 0.12);
  border-radius: 7px 7px 0 0;
  font-weight: 600;
}

/* ===================================================================
   СТРАНИЦЫ УСЛУГ (uslugi/*.html)
   =================================================================== */

.svc,
.svc-cat {
  background: #f3efec;
  color: var(--brown);
}

.svc-cat {
  padding-top: 64px;
  padding-bottom: 110px;
  padding-left: max(40px, calc((100% - 1640px) / 2));
  padding-right: max(40px, calc((100% - 1640px) / 2));
  box-sizing: border-box;
}

.svc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--stroke);
}

.svc-crumbs a {
  color: inherit;
  text-decoration: none;
}

.svc-crumbs a:hover {
  color: var(--brown);
}

.svc-crumbs [aria-current] {
  color: var(--brown);
}

.svc-cat__title {
  margin: 0 0 48px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 1;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: var(--brown);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(63, 39, 28, 0.12);
}

.svc-card__img {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e1dc;
}

.svc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.svc-card:hover .svc-card__img img {
  transform: scale(1.04);
}

.svc-card__name {
  padding: 20px 22px 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}

.svc-card__more {
  padding: 0 22px 22px;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--stroke);
}

/* --- страница процедуры --- */

.svc > section {
  padding-left: max(40px, calc((100% - 1640px) / 2));
  padding-right: max(40px, calc((100% - 1640px) / 2));
}

.svc-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 80px;
}

.svc-hero__title {
  margin: 0 0 32px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 56px);
  line-height: 1.1;
}

.svc-hero__photo {
  position: sticky;
  top: 90px;
  border-radius: 14px;
  overflow: hidden;
}

.svc-hero__photo img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.svc-rich {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

.svc-rich p {
  margin: 0 0 16px;
}

.svc-rich ul,
.svc-rich ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.svc-rich h3 {
  margin: 24px 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
}

.svc-btn {
  display: inline-flex;
  gap: 40px;
  margin-top: 16px;
  padding: 5px 5px 5px 24px;
  background: var(--brown);
  color: var(--cream);
  font-size: 16px;
  text-decoration: none;
}

.svc-btn .btn__icon {
  width: 44px;
  height: 44px;
}

.svc-section-title {
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.1;
}

.svc-benefits {
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--brown);
  color: var(--cream);
}

.svc-benefits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(249, 249, 249, 0.18);
  border: 1px solid rgba(249, 249, 249, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

.svc-benefits__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 28px;
  background: var(--brown);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
}

.svc-benefits__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stroke);
}

.svc-faq {
  padding-top: 90px;
  padding-bottom: 40px;
}

.svc-faq__list {
  display: grid;
  gap: 14px;
}

.svc-outro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 90px;
}

.svc-outro__quote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.25;
  font-style: italic;
}

.svc-related {
  padding-top: 70px;
  padding-bottom: 100px;
  border-top: 1px solid rgba(63, 39, 28, 0.12);
}

/* --- обзор всех услуг --- */

.svc-help-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
  padding: 32px 36px;
  background: var(--brown);
  color: var(--cream);
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.svc-help-link:hover {
  opacity: 0.9;
}

.svc-help-link__label {
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0.7;
}

.svc-help-link__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 40px);
}

.svc-dir {
  padding: 36px 0;
  border-top: 1px solid rgba(63, 39, 28, 0.14);
}

.svc-dir__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}

.svc-dir__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 40px);
}

.svc-dir__title a,
.svc-dir__all,
.svc-dir__list a {
  color: inherit;
  text-decoration: none;
}

.svc-dir__all {
  flex: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stroke);
}

.svc-dir__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-dir__list a {
  display: block;
  padding: 11px 18px;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.svc-dir__list a:hover {
  background: var(--brown);
  color: var(--cream);
}

@media (max-width: 900px) {
  .svc-cat {
    padding: 40px 16px 70px;
  }

  .svc > section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .svc-cat__title {
    margin-bottom: 28px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .svc-card__name {
    padding: 14px 14px 4px;
    font-size: 15px;
  }

  .svc-card__more {
    padding: 0 14px 14px;
    font-size: 13px;
  }

  .svc-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 50px;
  }

  .svc-hero__photo {
    position: static;
    order: -1;
  }

  .svc-hero__photo img {
    max-height: 420px;
  }

  .svc-rich {
    font-size: 15px;
  }

  .svc-benefits,
  .svc-faq,
  .svc-outro,
  .svc-related {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .svc-benefits__list {
    grid-template-columns: 1fr;
  }

  .svc-benefits__item {
    padding: 20px;
    font-size: 17px;
  }

  .svc-outro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svc-dir__head {
    flex-direction: column;
    gap: 6px;
  }

  .svc-help-link {
    padding: 24px 20px;
    margin-bottom: 36px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .svc-benefits__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Стрелочки у направлений в меню «Услуги» */
.nav-dropdown__menu a.nav-dropdown__cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-dropdown__cat::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown__cat:hover::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

/* Страницы услуг: заголовок раздела в потоке, над блоком-каруселью,
   чтобы длинное название (в 2–3 строки) раздвигало контент, а не наезжало */
.svc-page-title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 2.8646vw 1.5104vw 1.5vw;
  background: #fff;
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

/* верхняя зона блока была под заголовок — убираем её */
.services[data-base] {
  margin-top: -11.5vw;
}

@media (max-width: 900px) {
  .svc-page-title {
    padding: 5.2654vw 3vw 3vw;
    font-size: 7.6567vw;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .services[data-base] {
    margin-top: -8vw;
  }

  .services[data-base] .services__help-wrap {
    left: 3.7313cqw;
  }
}

/* ===================================================================
   «ЧТО ДАЕТ?» на странице процедуры (Figma 870:2554, эталон 1920)
   карточки в шахматном порядке: 01 · — · 02 · 03 / — · 04 · 05 · 06
   =================================================================== */

.svc-gives {
  background: #fff;
  color: var(--brown);
  padding-top: 90px;
  padding-bottom: 40px;
}



.svc-gives__title {
  /* как остальные заголовки секций страницы («Главные вопросы пациентов») */
  margin: 0 0 36px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.1;
}

.svc-gives__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-gives__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(180px, 12.5vw, 240px);
  padding: 24px 26px;
  background: #f5f2f2;
  border-radius: 12px;
  box-sizing: border-box;
}

.svc-gives__num {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--stroke);
}

.svc-gives__text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.25;
}

@media (max-width: 900px) {
  .svc > section.svc-gives {
    padding: 40px 16px 50px;
  }

  .svc-gives__title {
    margin-bottom: 24px;
  }

  .svc-gives__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .svc-gives__card {
    grid-column: auto !important;
    min-height: 140px;
    padding: 16px;
    border-radius: 12px;
  }

  .svc-gives__text {
    font-size: 16px;
  }
}

/* «Что дает?» — на всю высоту экрана (минус шапка) + анимация карточек */
@media (min-width: 901px) {
  .svc-gives {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
    padding-top: 60px;
    padding-bottom: 60px;
    box-sizing: border-box;
  }

  .svc-gives__grid {
    flex: 1;
    grid-auto-rows: 1fr;
  }
}

.svc-gives__card {
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.svc-gives__num,
.svc-gives__text {
  transition: color 0.35s ease, transform 0.35s ease;
}

.svc-gives__card:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(63, 39, 28, 0.18);
}

.svc-gives__card:hover .svc-gives__num {
  color: var(--cream);
  opacity: 0.6;
}

.svc-gives__card:hover .svc-gives__text {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .svc-gives__card,
  .svc-gives__card:hover,
  .svc-gives__card:hover .svc-gives__text {
    transform: none;
  }
}

/* Первый экран процедуры: плотнее заголовок, текст как описания на сайте
   (.about__text: Manrope, 0.9375cqw ≈ 18px при 1920), широкая кнопка */
.svc-hero__title {
  line-height: 1;
}

.svc-hero .svc-rich {
  font-family: var(--font-heading);
  font-size: clamp(14px, 0.9375vw, 18px);
  line-height: 1.4;
}

.svc-hero .svc-rich p {
  margin-bottom: 12px;
}

.svc-hero .svc-btn {
  display: flex;
  width: min(100%, 520px);
  height: clamp(48px, 3.0729vw, 59px);
  margin-top: 28px;
  padding: 5px 5px 5px 24px;
  box-sizing: border-box;
}

.svc-hero .svc-btn span {
  flex: 1;
  text-align: center;
}

.svc-hero .svc-btn .btn__icon {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
}

/* Страницы направлений и «Все услуги»: заголовок + карусель занимают
   весь первый экран, следующий блок не выглядывает снизу */
.svc-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  background: #fff;
  overflow: hidden;
}

.svc-screen > .services {
  flex: none;
}

@media (max-width: 900px) {
  .svc-screen {
    justify-content: flex-start;
  }
}

/* ===================================================================
   «Помочь с выбором» — ссылка со стрелкой и подчёркиванием (Figma)
   =================================================================== */
.svc-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.25vw, 24px);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.svc-help:hover {
  opacity: 0.7;
}

.svc-help svg {
  transition: transform 0.2s ease;
}

.svc-help:hover svg {
  transform: translate(2px, -2px);
}

/* ===================================================================
   «СТОИМОСТЬ» (Figma 870:2417): слева «Помочь с выбором»,
   справа прайс — название, код, цена в рамке, линии-разделители
   =================================================================== */
.svc > section.svc-price {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #fff;
}

.svc-price__layout {
  display: grid;
  grid-template-columns: 25% 1fr;
}

.svc-price__scroll {
  max-height: min(760px, 75vh);
  overflow-y: auto;
  padding-right: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--brown) rgba(63, 39, 28, 0.12);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent);
  padding-bottom: 70px;
}

.svc-price__scroll::-webkit-scrollbar {
  width: 3px;
}

.svc-price__scroll::-webkit-scrollbar-track {
  background: rgba(63, 39, 28, 0.12);
}

.svc-price__scroll::-webkit-scrollbar-thumb {
  background: var(--brown);
}

.svc-price__group + .svc-price__group {
  margin-top: 48px;
}

.svc-price__group-title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.1;
}

.svc-price__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-price__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--stroke);
}

.svc-price__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.svc-price__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.0417vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.svc-price__code {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--stroke);
}

.svc-price__btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 12vw, 230px);
  height: clamp(44px, 3.125vw, 60px);
  padding: 0 10px;
  border: 1px solid var(--brown);
  border-radius: 5px;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: clamp(15px, 0.9375vw, 18px);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.svc-price__btn:hover {
  background: var(--brown);
  color: var(--cream);
}

@media (max-width: 900px) {
  .svc > section.svc-price {
    padding: 40px 16px;
  }

  .svc-price__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .svc-price__scroll {
    padding-right: 12px;
    max-height: 70vh;
  }

  .svc-price__row {
    gap: 14px;
    padding: 16px 0;
  }

  .svc-price__btn {
    width: 104px;
    height: 42px;
    font-size: 14px;
  }
}


/* ===================================================================
   «ВОПРОСЫ» — один в один как «Стоимость»: слева «Помочь с выбором»,
   справа строки (вопрос + серая подпись, кнопка справа, линии)
   =================================================================== */
.svc-faq__list {
  padding-right: 24px;
}

.svc-q {
  border-bottom: 1px solid var(--stroke);
}

.svc-q__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.svc-q__head::-webkit-details-marker {
  display: none;
}

.svc-q__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.svc-q__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.0417vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.svc-q__num {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--stroke);
}

.svc-q__btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 12vw, 230px);
  height: clamp(44px, 3.125vw, 60px);
  border: 1px solid var(--brown);
  border-radius: 5px;
  color: var(--brown);
  transition: background 0.25s ease, color 0.25s ease;
}

.svc-q__btn svg {
  transition: transform 0.3s ease;
}

.svc-q__head:hover .svc-q__btn,
.svc-q[open] .svc-q__btn {
  background: var(--brown);
  color: var(--cream);
}

.svc-q[open] .svc-q__btn svg {
  transform: rotate(90deg);
}

.svc-q__text {
  max-width: 820px;
  padding: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(14px, 0.9375vw, 18px);
  line-height: 1.45;
}

.svc-q__text p {
  margin: 0 0 10px;
}

.svc-q__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .svc-faq__list {
    padding-right: 0;
  }

  .svc-q__head {
    gap: 14px;
    padding: 16px 0;
  }

  .svc-q__btn {
    width: 56px;
    height: 42px;
  }

  .svc-q__text {
    font-size: 14px;
  }
}

/* «Вопросы»: кнопка-стрелка квадратная, как навигация на главной */
.svc-q__btn {
  width: clamp(44px, 3.125vw, 60px);
  height: clamp(44px, 3.125vw, 60px);
  border-color: var(--stroke);
}

.svc-q__head:hover .svc-q__btn,
.svc-q[open] .svc-q__btn {
  border-color: var(--brown);
}

@media (max-width: 900px) {
  .svc-q__btn {
    width: 44px;
    height: 44px;
  }
}

/* «Вопросы»: «Помочь с выбором» на одной линии с первым вопросом —
   колонка слева высотой в первую строку, ссылка по её центру */
.svc-faq .svc-price__aside {
  display: flex;
  align-items: center;
  align-self: start;
  height: calc(clamp(44px, 3.125vw, 60px) + 40px);
}

.svc-faq .svc-help {
  padding-top: 7px; /* компенсирует подчёркивание снизу, чтобы текст встал по центру */
}

@media (max-width: 900px) {
  .svc-faq .svc-price__aside {
    height: auto;
  }

  .svc-faq .svc-help {
    padding-top: 0;
  }
}

/* «Вопросы» без «Помочь с выбором»: список поднимается к заголовку */
.svc-faq .svc-section-title {
  margin-bottom: 8px;
}

.svc-faq .svc-price__aside {
  height: auto;
}

@media (max-width: 900px) {
  .svc-faq .svc-price__layout {
    gap: 0;
  }
}

/* «Вопросы»: стрелка в кнопке меньше */
.svc-q__btn svg {
  width: 16px;
  height: 6px;
}

/* «Чем мы можем вам помочь»: заголовок страницы — как главные заголовки
   сайта («Аппараты», «Услуги»), карточки и описания компактнее */
.help__title {
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

.help-item__head {
  padding: 24px 28px;
}

.help-item__title {
  font-weight: 500;
  font-size: clamp(16px, 1.0417vw, 20px);
}

.help-item__icon {
  width: 36px;
  height: 36px;
}

.help-item__icon::before,
.help-item__icon::after {
  width: 16px;
}

.help-item__text {
  padding: 0 28px 24px;
  font-family: var(--font-heading);
  font-size: clamp(14px, 0.9375vw, 17px);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .help__title {
    font-size: 7.6567vw;
    font-weight: 500;
    letter-spacing: -0.03em;
  }

  .help-item__head {
    padding: 18px 16px;
  }

  .help-item__text {
    padding: 0 16px 18px;
  }
}

/* Заголовки секций на страницах услуг («Что дает?», «Стоимость», «Вопросы»)
   — тот же размер, что у всех заголовков сайта */
.svc-section-title,
.svc-gives__title,
.svc-faq .svc-section-title {
  font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
  line-height: 1;
}

@media (max-width: 900px) {
  .svc-section-title,
  .svc-gives__title,
  .svc-faq .svc-section-title {
    font-size: 7.6567vw;
    font-weight: 500;
    letter-spacing: -0.03em;
  }
}

/* «Чем мы можем вам помочь»: компактнее зазоры, заголовки пунктов крупнее,
   две независимые колонки без пустого места */
.help__panel {
  gap: 12px;
}

.help__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.help-item__title {
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.25;
}

@media (max-width: 900px) {
  .help__panel {
    gap: 10px;
  }

  .help-item__title {
    font-size: 18px;
  }
}

/* «Вопросы»: компактнее — меньше отступы, вопрос крупнее, ответ ближе,
   стрелка короче */
.svc-q__head {
  padding: 12px 0;
}

.svc-q[open] .svc-q__head {
  padding-bottom: 6px;
}

.svc-q__title {
  font-size: clamp(19px, 1.5vw, 28px);
  line-height: 1.25;
}

.svc-q__text {
  padding: 0 0 16px;
}

.svc-q__btn svg {
  width: 12px;
  height: 4px;
}

@media (max-width: 900px) {
  .svc-q__head {
    padding: 10px 0;
  }

  .svc-q[open] .svc-q__head {
    padding-bottom: 4px;
  }

  .svc-q__title {
    font-size: 18px;
  }

  .svc-q__text {
    padding-bottom: 12px;
  }
}

/* «Вопросы»: заголовок вопроса чуть меньше */
.svc-q__title {
  font-size: clamp(17px, 1.25vw, 23px);
}

@media (max-width: 900px) {
  .svc-q__title {
    font-size: 16px;
  }
}

/* Подзаголовки внутри прайса (бренды препаратов, зоны) */
.svc-price__sub {
  padding: 28px 0 10px;
  border-bottom: 1px solid var(--stroke);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(17px, 1.25vw, 22px);
  letter-spacing: -0.02em;
}

.svc-price__list > .svc-price__sub:first-child {
  padding-top: 8px;
}

/* Единые боковые поля на страницах услуг — как у остального сайта
   (отзывы, баннеры, форма: 1.5625% ширины экрана, на телефоне 3.5%) */
.svc > section,
.svc > section.svc-price,
.svc > section.svc-faq,
.svc-cat {
  padding-left: 1.5625vw;
  padding-right: 1.5625vw;
}

.svc-faq__list {
  padding-right: 0;
}

.svc-price__scroll {
  padding-right: 14px;
}

@media (max-width: 900px) {
  .svc > section,
  .svc > section.svc-price,
  .svc > section.svc-faq,
  .svc-cat {
    padding-left: 3.5vw;
    padding-right: 3.5vw;
  }

  .svc-price__scroll {
    padding-right: 10px;
  }
}

/* Меню в шапке главной — как на остальных страницах (шапка .page-header):
   тот же шрифт, размер и расстояния, независимо от ширины экрана */
@media (min-width: 901px) {
  .nav--desktop {
    gap: 30px;
    font-family: var(--font-heading);
    font-size: 14px;
  }
}

/* ===================================================================
   ЕДИНАЯ ТИПОГРАФИКА САЙТА (сверка размеров и шрифтов на всех страницах)
   =================================================================== */

/* Заголовки баннеров на фото — один размер (как «Доверьте свою кожу…») */
.individual .individual__title {
  font-size: 3.5015cqw;
}

@media (max-width: 900px) {
  .individual .individual__title {
    font-size: 6.4478cqw;
  }
}

/* «Оставьте заявку» — тот же размер, что у остальных заголовков секций */
@media (min-width: 901px) {
  .apply__title {
    font-size: clamp(52.6px, 6.1875vw - 21.6px, 97.2px);
    letter-spacing: -0.037em;
  }
}

/* Весь текст нового контента — Manrope, как на остальном сайте */
.help__eyebrow,
.svc-crumbs,
.svc-gives__num,
.svc-card__more,
.svc-help-link__label,
.svc-dir__all,
.svc-dir__list a {
  font-family: var(--font-heading);
}

/* Заголовки пунктов списков (прайс, вопросы, «Чем мы можем помочь») — один размер */
.svc-price__name,
.svc-q__title,
.help-item__title {
  font-weight: 500;
  font-size: clamp(17px, 1.25vw, 23px);
  line-height: 1.3;
}

/* Кнопка «Записаться» на странице услуги — шрифт как у кнопок сайта */
.svc-hero .svc-btn {
  font-size: clamp(14px, 0.9375vw, 18px);
}

@media (max-width: 900px) {
  .svc-price__name,
  .svc-q__title,
  .help-item__title {
    font-size: 16px;
  }
}

/* Высота «экранных» блоков — фиксированные 740px (не зависит от высоты окна,
   поэтому в неполностью раскрытом окне ничего не обрезается) */
@media (min-width: 901px) {
  .svc-gives {
    min-height: 740px;
  }

  .svc-screen {
    min-height: 740px;
  }
}

/* ===================================================================
   КНОПКА ЧАТА (вместо «Наверх»): раскрывает Max, ВК, почту, звонок
   =================================================================== */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: bottom 0.2s ease;
}

.chat-fab.is-over-footer {
  bottom: max(88px, 5cqw);
}

.chat-fab__btn {
  position: relative;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--brown);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-fab__btn:hover {
  background: #6b4a37;
}

.chat-fab__btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.chat-fab__close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.chat-fab.is-open .chat-fab__open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.chat-fab.is-open .chat-fab__close {
  opacity: 1;
  transform: translate(-50%, -50%) !important;
}

.chat-fab__menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 190px;
}

.chat-fab__menu[hidden] {
  display: none;
}

.chat-fab__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 10px;
  background: var(--brown);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: chat-fab-in 0.25s ease forwards;
  transition: background 0.2s ease;
}

.chat-fab__item:nth-child(4) { animation-delay: 0s; }
.chat-fab__item:nth-child(3) { animation-delay: 0.04s; }
.chat-fab__item:nth-child(2) { animation-delay: 0.08s; }
.chat-fab__item:nth-child(1) { animation-delay: 0.12s; }

.chat-fab__item:hover {
  background: #6b4a37;
}

.chat-fab__ico {
  flex: none;
  display: block;
  width: 32px;
  height: 32px;
}

@keyframes chat-fab-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab__item {
    animation-duration: 0.01s;
    animation-delay: 0s !important;
  }
}

@media (max-width: 900px) {
  .chat-fab {
    right: 16px;
    bottom: 16px;
  }

  .chat-fab.is-over-footer {
    bottom: 72px;
  }

  .chat-fab__btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .chat-fab__item {
    font-size: 14px;
  }
}

/* Max: тёмный логотип кладём на светную плашку, как остальные иконки */
img.chat-fab__ico[src*="social-max"] {
  box-sizing: border-box;
  padding: 3px;
  border-radius: 4px;
  background: #f9f9f9;
}

/* Кнопки связи — вертикальная колонка круглых кнопок-иконок
   (подпись появляется слева при наведении) */
.chat-fab {
  gap: 10px;
}

.chat-fab__btn {
  border-radius: 50%;
}

.chat-fab__close {
  transform: translate(-50%, -50%) !important;
}

.chat-fab.is-open .chat-fab__close {
  transform: translate(-50%, -50%) !important;
}

.chat-fab__menu {
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-fab__item {
  position: relative;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  overflow: visible;
}

.chat-fab__item:hover {
  background: #fff;
}

.chat-fab__ico {
  width: 30px;
  height: 30px;
}

img.chat-fab__ico[src*="social-max"] {
  padding: 2px;
}

.chat-fab__item span {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--brown);
  color: var(--cream);
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-fab__item:hover span,
.chat-fab__item:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 900px) {
  .chat-fab__btn {
    border-radius: 50%;
  }

  .chat-fab__item {
    width: 44px;
    height: 44px;
  }
}

/* Часы работы и адрес в первом блоке — прежний шрифт (Golos Text) */
.hero__hours,
.hero__address {
  font-family: "Golos Text", sans-serif;
}

/* Кнопки связи: скруглённые квадраты, как остальные кнопки сайта */
.chat-fab__btn {
  border-radius: 14px;
  color: var(--cream);
}

.chat-fab__item {
  border-radius: 12px;
  border: 1px solid rgba(63, 39, 28, 0.12);
}

/* На тёмном фоне кнопка меняется на светлую (инверсия) */
.chat-fab.is-on-dark .chat-fab__btn {
  background: var(--cream);
  color: var(--brown);
}

.chat-fab.is-on-dark .chat-fab__btn:hover {
  background: #fff;
}

@media (max-width: 900px) {
  .chat-fab__btn {
    border-radius: 12px;
  }

  .chat-fab__item {
    border-radius: 10px;
  }
}

/* Пустое место вместо убранной кнопки Max — чтобы часы работы и адрес
   стояли на прежнем месте рядом с кнопкой «Записаться» */
.hero__spacer--desktop {
  width: 3.125cqw;
  height: 3.125cqw;
  flex: none;
}

/* Часы работы и адрес: правый край ровно по краю слова «косметологии»
   в заголовке (правый край текста заголовка = 54.53cqw) */
.hero__spacer--desktop {
  display: none;
}

.hero__meta--desktop {
  margin-right: 41.618cqw;
}

/* Разделитель между часами и адресом встаёт ровно на вертикальную линию
   в фоне (43.97cqw), а адрес по-прежнему заканчивается по краю слова
   «косметологии» (54.53cqw) — для этого текст чуть компактнее */
.hero__meta--desktop {
  gap: 1.2cqw;
}

.hero__meta--desktop .hero__hours,
.hero__meta--desktop .hero__address {
  font-size: 1.054cqw;
}

/* ===================================================================
   «Оставьте заявку» — компактнее по высоте (десктоп), список процедур
   =================================================================== */
@media (min-width: 901px) {
  .apply {
    aspect-ratio: 1920 / 815;
  }

  .apply__photo {
    height: 38.3cqw;
  }

  .apply__field--name { top: 10.5cqw; }
  .apply__field--phone { top: 14.4cqw; }
  .apply__field--procedure,
  .apply__field--date { top: 18.3cqw; }

  .apply__textarea-label { top: 23.4cqw; }

  .apply__textarea {
    top: 24.9cqw;
    height: 9cqw;
  }

  .apply__consent { top: 34.6cqw; }
  .apply__submit { top: 37.2cqw; }
}

.apply__select {
  position: absolute;
  top: calc(100% + 0.4cqw);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 16cqw;
  overflow-y: auto;
  padding: 0.5cqw;
  border-radius: 0.5cqw;
  background: #fff;
  box-shadow: 0 0.8cqw 2.4cqw rgba(63, 39, 28, 0.18);
  scrollbar-width: thin;
  scrollbar-color: var(--brown) transparent;
}

.apply__select[hidden] {
  display: none;
}

.apply__select-group {
  padding: 0.7cqw 0.6cqw 0.3cqw;
  color: #979797;
  font-family: var(--font-heading);
  font-size: 0.7292cqw;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply__select-item {
  display: block;
  width: 100%;
  padding: 0.6cqw;
  border: 0;
  border-radius: 0.3cqw;
  background: transparent;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 0.9375cqw;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.apply__select-item:hover,
.apply__select-item.is-selected {
  background: rgba(63, 39, 28, 0.08);
}

@media (max-width: 900px) {
  .apply__select {
    max-height: 52cqw;
    top: calc(100% + 1.5cqw);
    border-radius: 2cqw;
    padding: 2cqw;
  }

  .apply__select-group {
    padding: 2.5cqw 2cqw 1cqw;
    font-size: 3cqw;
  }

  .apply__select-item {
    padding: 2.4cqw 2cqw;
    font-size: 3.7cqw;
    border-radius: 1.5cqw;
  }
}

/* ===================================================================
   КОМПАКТНЕЕ ПО ВЫСОТЕ — на всех страницах (десктоп): убрана лишняя
   пустота внизу блоков, отступы между секциями меньше
   =================================================================== */
@media (min-width: 901px) {
  .about--desktop { aspect-ratio: 1920 / 985; }
  .stats--desktop { aspect-ratio: 1920 / 670; }

  /* баннеры на фото ниже */
  .trust { aspect-ratio: 1920 / 780; }
  .cta { aspect-ratio: 1920 / 830; }
  .individual { aspect-ratio: 1920 / 780; }

  /* «Команда» ближе к предыдущему блоку, пустота внизу меньше */
  .team { margin-top: 60px; }
  .team__row { padding-bottom: 1.5cqw; }

  /* «Отзывы», «Блог»: меньше места под точками */
  .reviews__dots--static,
  .blog__dots--static {
    padding: 1.2cqw 0 1.5cqw;
  }

  .devices__dots {
    margin-top: 20px;
  }

  /* страницы услуг и помощи */
  .svc-hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .help {
    padding: 56px 0 80px;
  }

  .help__title {
    margin-bottom: 40px;
  }

  .svc-cat {
    padding-top: 48px;
    padding-bottom: 80px;
  }
}

/* Плавная прокрутка страницы: по якорным ссылкам («Записаться» → форма,
   «Услуги» и т. п.) и при программной прокрутке. Отступ сверху — под
   закреплённую шапку, чтобы заголовок блока не прятался под ней. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Карточки услуг: вместо фото — серая плашка (фото пока не подходят) */
.service-card__image--placeholder {
  background: #e9e7e6;
}

/* Карточка со своим фото (Лазерная косметология): лицо пациента и аппарат остаются в кадре */
.service-card__image--photo {
  object-position: 55% 40%;
}

/* ===== Страница статьи блога ===== */
.article {
  background: #fff;
  color: var(--brown);
  padding: clamp(110px, 12vw, 170px) 24px clamp(56px, 7vw, 100px);
}

.article__inner {
  max-width: 820px;
  margin: 0 auto;
}

.article__back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.article__date {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.6;
}

.article__title {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.article__lead {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  opacity: 0.85;
}

.article__image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 14px;
  margin-bottom: 40px;
}

.article__text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

.article__text p {
  margin: 0 0 18px;
}

.article__text h2 {
  margin: 36px 0 14px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.article__text ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article__text li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .article {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article__image {
    max-height: 360px;
    border-radius: 10px;
  }

  .article__text {
    font-size: 16px;
  }
}

/* Плашка о файлах cookie */
.cookie-banner{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:100;width:min(980px,calc(100% - 32px));display:flex;align-items:center;gap:24px;padding:18px 24px;background:var(--brown);color:var(--cream);border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.25);font-family:var(--font-body)}
.cookie-banner__text{margin:0;font-size:14px;line-height:1.5}
.cookie-banner__text a{color:var(--cream);text-decoration:underline}
.cookie-banner__btn{flex:none;padding:12px 28px;border:1px solid var(--cream);border-radius:999px;background:var(--cream);color:var(--brown);font:600 14px var(--font-body);cursor:pointer}
@media (max-width:700px){.cookie-banner{flex-direction:column;align-items:stretch;gap:12px;bottom:12px;padding:16px}.cookie-banner__text{font-size:13px}.cookie-banner__btn{width:100%}}

/* Мобильная версия: первый экран и форма записи помещаются в высоту экрана */
@media (max-width: 900px) {
  .hero--mobile { aspect-ratio: auto; height: min(217.41vw, 100svh); min-height: 500px; }
  .hero__meta--mobile { top: auto; bottom: 25cqw; }
  .btn--book-mobile { top: auto; bottom: 5cqw; }

  .apply { aspect-ratio: 402 / 614; }
  .apply__title { top: 4cqw; }
  .apply__field--name { top: 22cqw; }
  .apply__field--phone { top: 35cqw; }
  .apply__field--procedure { top: 48cqw; }
  .apply__field--date { top: 61cqw; }
  .apply__textarea-label { top: 76cqw; }
  .apply__textarea { top: 83cqw; height: 26cqw; }
  .apply__consent { top: 114cqw; align-items: flex-start; }
  .apply__consent-text { line-height: 1.4; }
  .apply__submit { top: 126.5cqw; }
}

/* Блог на телефоне: вертикальный список компактных карточек */
@media (max-width: 900px) {
  .blog__viewport { left: 0; width: auto; margin: 5.8cqw 3.7cqw 0; overflow: visible; }
  .blog__track { display: flex; flex-direction: column; gap: 3.5cqw; transform: none !important; transition: none; }
  .blog__track .blog-card { flex: none; width: 100%; display: flex; align-items: center; gap: 4cqw; padding: 2.5cqw; border: 1px solid #e6e1de; border-radius: 2.5cqw; text-decoration: none; }
  .blog-card__image { flex: 0 0 28cqw; width: 28cqw; height: 28cqw; object-fit: cover; border-radius: 1.8cqw; }
  .blog-card__body { margin-top: 0; min-width: 0; }
  .blog-card__eyebrow { font-size: 3.2cqw; margin-bottom: 1cqw; }
  .blog-card__title { font-size: 4.4cqw; line-height: 1.15; margin-bottom: 2cqw; }
  .blog-card__link { font-size: 3.6cqw; }
  #blog-dots-mobile { padding: 4cqw 0 6cqw; }
  .blog__count { font-size: 3.4cqw; color: #979797; }
}

/* Мобильная версия: правки по результатам просмотра */
@media (max-width: 900px) {
  .hero__heading--mobile { top: 28.2cqw; }
  .about__label--mobile { top: 80.3cqw; }

  /* секции целиком помещаются в высоту экрана: сужаем блок, всё содержимое уменьшается пропорционально */

  .team-card__name { font-size: 4.6cqw; }
  .team-card__role { font-size: 3.7cqw; line-height: 5.2cqw; }

  .apply__consent { gap: 2.4cqw; align-items: flex-start; }
  .apply__consent-box { margin-top: 0.8cqw; }
}

/* Форма: до согласия с политикой поля заблокированы */
.apply__form.is-locked .apply__field,
.apply__form.is-locked .apply__textarea { opacity: 0.55; }
.apply__consent.is-attention .apply__consent-box { outline: 2px solid #c0392b; outline-offset: 2px; }
.apply__consent.is-attention .apply__consent-text { color: #c0392b; }
.apply__date-native { pointer-events: auto; cursor: pointer; }

@media (max-width: 900px) {
  .service-card__body h3 { min-height: 0; margin-bottom: 3.5cqw; }
  .svc-screen .service-card__image { height: min(133.5821cqw, calc(100svh - 430px)); min-height: 200px; }
  .svc-screen > .services { aspect-ratio: auto; height: calc(100svh - 118px); min-height: 520px; }
  .svc-screen > .services .services__dots { top: auto; bottom: 3cqw; }
}

/* «Вопросы»: вместо стрелки — плюс / минус */
.svc-q__btn { position: relative; }
.svc-q__btn svg { display: none; }
.svc-q__btn::before,
.svc-q__btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.svc-q__btn::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-q[open] .svc-q__btn::after { transform: translate(-50%, -50%) rotate(0deg); }

@media (max-width: 900px) {
  .svc-q__head { padding: 16px 0; }
  .svc-q[open] .svc-q__head { padding-bottom: 8px; }
  .svc-q__title { line-height: 1.2; }
  .svc-q__text { padding-bottom: 20px; line-height: 1.3; }
  .svc-q__text p { margin-bottom: 8px; }
}

/* Мобильная версия: блоки помещаются в высоту экрана за счёт высоты фото, а не масштаба */
@media (max-width: 900px) {
  /* «О нас» */
  .about--mobile { aspect-ratio: auto; height: min(217.41vw, calc(100svh - 58px)); min-height: 440px; }
  .about__photo-wrap--mobile { height: auto; bottom: 22cqw; }
  .about__photo--mobile { height: auto; bottom: 0; }
  .about__photo--mobile .about__photo-img { height: 100%; object-fit: cover; object-position: 50% 15%; }
  .about__btn--mobile { top: auto; bottom: 4cqw; }

  /* «Услуги» на главной */
  body > .services { aspect-ratio: auto; height: min(236.3vw, calc(100svh - 58px)); min-height: 440px; }
  body > .services .services__viewport { height: auto; }
  body > .services .service-card__image { height: min(133.5821cqw, calc(100svh - 370px)); min-height: 170px; }
  body > .services .services__dots { top: auto; bottom: 3cqw; }

  /* «Отзывы» */
  .reviews__track .review-card { height: min(164.9254cqw, calc(100svh - 190px)); min-height: 280px; }
  .review-card img { object-fit: cover; object-position: 50% 30%; }

  /* согласие с политикой — мельче */
  .apply__consent-text { font-size: 2.55cqw; line-height: 1.3; }
  .apply__consent { gap: 2cqw; }
  .apply__consent-box { margin-top: 0.4cqw; }

  /* лента листается пальцем как в «Аппаратах»: родная прокрутка со «прилипанием» */
  .team__viewport, .reviews__viewport, .services__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .team__viewport::-webkit-scrollbar, .reviews__viewport::-webkit-scrollbar, .services__viewport::-webkit-scrollbar { display: none; }
  .team__track, .reviews__track, .services__track { transform: none !important; transition: none; }
  .team__track .team-card, .reviews__track .review-card, .services__track .service-card { scroll-snap-align: start; scroll-snap-stop: always; }
}

.services__lead .lead-m { display: none; }
@media (max-width: 900px) {
  .services__lead .lead-d { display: none; }
  .services__lead .lead-m { display: inline; }
  .services__lead { width: 90cqw; }
  /* точки под кнопками, не поверх них */
  body > .services .service-card__image { height: min(133.5821cqw, calc(100svh - 395px)); }
  .svc-screen .service-card__image { height: min(133.5821cqw, calc(100svh - 455px)); }
  .services__dots { bottom: 2cqw; }
  .services__viewport { top: 41cqw; }
  body > .services .service-card__image { height: min(133.5821cqw, calc(100svh - 395px)); }
  .svc-screen .service-card__image { height: min(133.5821cqw, calc(100svh - 455px)); }
}

/* Телефон: кнопка «Помочь с выбором» не показывается */
@media (max-width: 900px) {
  .services__help-wrap,
  .svc-help { display: none !important; }
}

@media (max-width: 900px) {
  .why { padding-top: 12cqw; }
  .team-card { gap: 2.2cqw; }
  .reviews__track .review-card { height: min(164.9254cqw, calc(100svh - 185px)); }
}

/* Плюсики в «Выберите процедуру / дату» — по центру строки текста */
.apply__field-icon { top: 0.28cqw; }
@media (max-width: 900px) {
  .apply__field-icon { top: 1.15cqw; }
}
.apply__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--brown);
  color: var(--cream);
  font: 500 14px/1.3 var(--font-body);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Mobile category carousels share the homepage card layout. */
@media (max-width: 900px) {
  .svc-screen { height: calc(100svh - 58px); min-height: 0; }
  .svc-screen .svc-page-title { flex: none; padding: 4cqw 3cqw 2cqw; }
  .svc-screen > .services { flex: 1 1 auto; min-height: 0; height: auto; margin-top: 0; }
  .svc-screen .services__lead { display: none; }
  .svc-screen .services__viewport { top: 2cqw; bottom: 8cqw; height: auto; scroll-snap-type: x mandatory; }
  .svc-screen .services__track { height: 100%; gap: 4cqw; }
  .svc-screen .service-card { flex: 0 0 100%; width: 100%; height: 100%; display: flex; flex-direction: column; scroll-snap-stop: always; }
  .svc-screen .service-card__body { display: contents; }
  .svc-screen .service-card__body h3 { order: -1; flex: none; min-height: 0; margin: 0 0 12px; }
  .svc-screen .service-card__image { order: 0; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; object-fit: cover; }
  .svc-screen .service-card__actions { order: 1; flex: none; margin-top: 3cqw; }
  .svc-screen .services__dots { top: auto; bottom: 3cqw; }
}

/* Clear hierarchy and consistent card spacing on mobile category pages. */
@media (max-width: 900px) {
  .svc-screen .svc-page-title { padding: 0 3cqw 2cqw; }
  .svc-screen .svc-page-title::before { content: "Услуги"; display: block; padding: 12px 0 10px; color: #8c817c; font: 500 12px/1.2 var(--font-heading); letter-spacing: 0; }
  .svc-screen .service-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
  .svc-screen .service-card__body h3 { grid-row: 1; margin: 0 0 12px; min-height: 0; }
  .svc-screen .service-card__image { grid-row: 2; height: 100%; min-height: 0; }
  .svc-screen .service-card__actions { grid-row: 3; margin-top: 3cqw; }
}

/* Remove inactive Instagram and WhatsApp footer links site-wide. */
.site-footer__social a[aria-label="Instagram"],
.site-footer__social a[aria-label="WhatsApp"] { display: none !important; }

/* Equal inset around the arrow square in mobile booking buttons. */
@media (max-width: 900px) {
  .btn--book-mobile,
  .about__btn--mobile,
  .apply__submit { padding-right: 1.5127cqw; }
  .services .btn--primary { padding-right: 1.36815cqw; }
}

/* Shared mobile typography for primary page and section headings. */
@media (max-width: 900px) {
  .about__heading--mobile,
  .services__title,
  .why__heading,
  .team__heading,
  .devices__title,
  .reviews__title,
  .apply__title,
  .blog__title,
  .promo__title,
  .help__title,
  .svc-page-title {
    font-family: var(--font-heading);
    font-size: 7.6567cqw;
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.03em;
  }
}

/* Room for the tax deduction link in the shared mobile footer. */
@media (max-width: 900px) {
  .site-footer__nav { width: 43cqw; }
  .site-footer__social { top: 62cqw; }
}

/* Header navigation and independent page scrolling over device cards. */
.page-header__nav { gap: clamp(12px, 1.7vw, 30px); }
.devices__scroller { overflow-y: hidden; }
@media (max-width: 900px) {
  .page-header__nav-mobile, .nav--mobile { max-height: calc(100svh - 80px); overflow-y: auto; }
}

/* A slightly shorter welcome screen and tighter service-card actions. */
@media (min-width: 901px) {
  .hero--desktop { aspect-ratio: 1920 / 1000; }
  .services .service-card__body h3 { min-height: 0; margin-bottom: 12px; }
}
@media (max-width: 900px) {
  .hero--mobile { height: min(200vw, 92svh); min-height: 500px; }
  .svc-screen .service-card__actions { margin-top: 8px; }
}

/* Regular service section labels and centered experience rows. */
body .services .services__title,
body .services .services__eyebrow { font-weight: 400; }
@media (min-width: 901px) {
  .stats--desktop .stats__row:nth-child(n) > .stats__index,
  .stats--desktop .stats__row:nth-child(n) > .stats__value,
  .stats--desktop .stats__row:nth-child(n) > .stats__label { top: 50%; translate: 0 -50%; }
  .stats--desktop .stats__label { font-size: 1.05cqw; text-align: center; width: 29cqw; letter-spacing: -0.01em; }
}
@media (max-width: 900px) {
  .stats--mobile .stats__label { left: 59.4378cqw; width: 35cqw; font-size: 3.5cqw; line-height: 1.1; }
}

/* Reserve two title lines so every service card has aligned buttons. */
@media (min-width: 901px) {
  .services .service-card__body h3 { min-height: 2.5em; margin-bottom: 12px; }
}

/* Keep the document within the screen; horizontal motion belongs to carousels. */
html, body { max-width: 100%; overflow-x: clip; }
.continuous-viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.continuous-viewport::-webkit-scrollbar { display: none; }
.continuous-track { transform: none !important; transition: none !important; touch-action: auto !important; }

/* More comfortable spacing in booking-form consent text. */
.apply__consent-text { line-height: 1.2; }
@media (max-width: 900px) {
  .apply__consent-text { line-height: 1.45; }
}

/* Keep article links on a shared baseline despite wrapping titles. */
@media (min-width: 901px) {
  .blog-card { display: flex; flex-direction: column; }
  .blog-card__image { flex: none; }
  .blog-card__body { display: flex; flex-direction: column; flex: 1; }
  .blog-card__link { margin-top: auto; align-self: flex-start; }
}

/* A scrollable mobile menu with clear primary and service navigation. */
@media (max-width: 900px) {
  .nav--mobile, .page-header__nav-mobile {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    gap: 0;
    padding: 14px 16px;
  }
  .nav--mobile > a, .page-header__nav-mobile > a { flex: none; }
  .nav--mobile > a:not(.nav-sublink),
  .page-header__nav-mobile > a:not(.nav-sublink) {
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(63, 39, 28, 0.12);
  }
  .nav--mobile > .nav-sublink,
  .page-header__nav-mobile > .nav-sublink {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 18px;
    font-weight: 400;
    line-height: 1.3;
  }
  .nav--mobile > .nav-sublink::before,
  .page-header__nav-mobile > .nav-sublink::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: rgba(63, 39, 28, 0.45);
  }
}

/* Compact article opening and requested introductory text spacing. */
.article { padding-top: 36px; }
.article__lead { line-height: 1; }
@media (max-width: 900px) { .article { padding-top: 24px; } }

/* Consistent 100% line spacing throughout article content. */
.article__title,
.article__lead,
.article__text,
.article__text p,
.article__text h2,
.article__text h3,
.article__text ul,
.article__text ol,
.article__text li,
.article__date,
.article__back { line-height: 1; }

/* Adjacent articles with their titles. */
.article-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke); }
.article-pager__item { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #ded8d3; border-radius: 8px; color: var(--brown); background: #f9f9f9; }
.article-pager__item span { color: #8c817c; font: 400 14px/1 var(--font-body); }
.article-pager__item strong { font: 500 20px/1 var(--font-heading); }
.article-pager__item--next { text-align: right; }
.article-pager__item:hover { border-color: var(--brown); }
.article-pager__item:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
@media (max-width: 900px) {
  .article-pager { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .article-pager__item { padding: 18px; }
  .article-pager__item strong { font-size: 18px; }
}

/* Desktop uses buttons; mobile retains native swiping. */
@media (min-width: 901px) {
  .continuous-viewport { overflow-x: hidden !important; touch-action: pan-y; }
}

/* Article navigation stays side by side on phones. */
.article-pager__item .article-pager__short { display: none; }
.article-pager__item--next { grid-column: 2; }
@media (max-width: 900px) {
  .article-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .article-pager__item { min-width: 0; padding: 14px 10px; justify-content: center; }
  .article-pager__item span { font-size: 13px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .article-pager__item .article-pager__full { display: none; }
  .article-pager__item .article-pager__short { display: inline; }
}
