/* ============ Extra fixes & new components ============ */

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(160, 90, 115, 0.1);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
@media (max-width: 860px) {
  /* компактная плавающая плашка у нижнего края
     (нижняя панель «Позвонить/WhatsApp» удалена — панель больше не занимает место) */
  .cookie-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
    width: auto !important;
    padding: 12px 14px !important;
    border: 1px solid var(--border2) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(160, 90, 115, 0.18) !important;
    z-index: 80 !important;
  }
  /* скрытая плашка уходит полностью за экран */
  .cookie-banner:not(.show) {
    transform: translateY(calc(100% + 40px)) !important;
  }
  .cookie-banner-in {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cookie-banner p { font-size: 14px !important; line-height: 1.45 !important; max-width: none !important; }
  .cookie-btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
}
.cookie-banner-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { font-size: 13px; color: var(--body); max-width: 700px; }
.cookie-banner a { color: var(--pink3); text-decoration: underline; }
.cookie-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

/* Forms improvements */
input.err, textarea.err, select.err { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important; }
.checkbox.err { color: var(--error); }
.form-ok {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--pinkbg);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 32px;
}
.form-ok .ok-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-ok b { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.form-ok span { font-size: 15px; color: var(--body); }

/* Inline form consent */
.inline-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}
.inline-consent input { margin-top: 2px; accent-color: var(--pink); }
.inline-consent a { color: var(--pink3); text-decoration: underline; }

/* Header improvements */
html.header-scroll-ready { scroll-padding-top: calc(var(--site-header-height, 0px) + 16px); }
.header.header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.35s ease;
}
.header.header--fixed.header--hidden {
  transform: translateY(calc(-100% - var(--header-overhang, 0px) - 16px));
  pointer-events: none;
}
.header-cta .cta-icon { display: none; }
@media (max-width: 860px) {
  .header-cta { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .header-cta .cta-text { display: none; }
  .header-cta .cta-icon { display: block; width: 22px; height: 22px; }
}

/* Footer requisites */
.requisites { font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer-bottom { flex-wrap: wrap; column-gap: 20px; row-gap: 8px; }
.footer-credit { white-space: nowrap; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Picture elements */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header.header--fixed { transition: none !important; }
}

/* "Show more" trigger — hidden until the mobile stylesheet turns it on */
.sm-more { display: none; }

/* ============================================================
   MOBILE PASS  (max-width: 860px)
   1. single horizontal rail (content always starts at 20px)
   2. index hero: no stat plaque, photo back in normal flow
   3. about block: photo flush to the card, no cropping, 2-line h2
   4. "before/after" blocks become horizontal swipe sliders
   5. reviews carousel aligned to the same rail
   6. service-page hero photo back to full bleed
   7. single-column content grids
   8. "show more" for long lists
   ============================================================ */
@media (max-width: 860px) {

  /* --- 1. unified rail ------------------------------------ */
  main > section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  main .reviews,
  main .faq,
  main .sv-faq,
  main .z10-reviews,
  main .z10-faq {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .about-in,
  .order-card,
  main .sv-container,
  main .hs-wrap {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* --- 2. index hero -------------------------------------- */
  .hero-stat { display: none !important; }
  .hero-right { height: auto !important; }
  .hero-photo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: calc(100% + 40px) !important;
    height: 340px !important;
    margin: 0 -20px !important;
    border-radius: 26px !important;
  }

  /* --- 3. about block ------------------------------------- */
  .about-in { padding: 24px 24px 0 !important; }
  .about-photo {
    width: calc(100% + 48px) !important;
    height: auto !important;
    margin: 0 -24px !important;
    border-radius: 0 0 28px 28px !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
  }
  .about-photo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .about h2 { font-size: 27px !important; line-height: 1.2 !important; }

  /* --- 4. before/after → horizontal sliders --------------- */
  .ba-clip { overflow: visible !important; }
  .ba-row,
  .doposle-row,
  .hs-ba-grid,
  .dp-track,
  .dop-track,
  .p8-refs-grid,
  .p11-gallery-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px !important;
  }
  .ba-row::-webkit-scrollbar,
  .doposle-row::-webkit-scrollbar,
  .hs-ba-grid::-webkit-scrollbar,
  .dp-track::-webkit-scrollbar,
  .dop-track::-webkit-scrollbar,
  .p8-refs-grid::-webkit-scrollbar,
  .p11-gallery-grid::-webkit-scrollbar { display: none !important; }

  .ba-row > *,
  .doposle-row > *,
  .hs-ba-grid > *,
  .dp-track > *,
  .dop-track > *,
  .p8-refs-grid > *,
  .p11-gallery-grid > * {
    flex: 0 0 auto !important;
    width: calc(100% - 48px) !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: start;
  }

  /* --- 5. reviews carousel on the same rail --------------- */
  main .reviews .rev-track-wrap,
  main .z10-reviews .rev-track-wrap,
  main .refs-track-wrap,
  main .rev-track-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* --- 6. service hero photo → full bleed ----------------- */
  .sv-right,
  .p8-hero-right,
  .hs-hero-right,
  .s03-hero-right,
  .z10-hero-right,
  .p11-hero-photo,
  .hero5-photo {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  /* --- 7. single-column content grids --------------------- */
  .team-grid,
  .inc-list,
  .zbig-list,
  .dop-list,
  .rs-grid,
  .vz-items,
  .hs-tools-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- 8. "show more" ------------------------------------- */
  .sm-hidden { display: none !important; }

  /* FAQ row: the whole question becomes a comfortable tap target */
  .faq-item { padding-top: 4px !important; padding-bottom: 4px !important; }
  .faq-q { padding-top: 12px; padding-bottom: 12px; }
  .sm-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    border: 1px solid var(--border2, #f0dde5);
    border-radius: 999px;
    background: var(--pinkbg, #fdf1f6);
    color: var(--pink3, #b0547b);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .sm-more:active { transform: scale(0.99); }
}

/* very narrow phones: keep the about heading on two lines */
@media (max-width: 340px) {
  .about h2 { font-size: 23px !important; }
}

/* ============================================================
   LAPTOP / TABLET BAND (861-1439px): nothing may overflow
   ============================================================ */
@media (min-width: 861px) and (max-width: 1439px) {

  /* --- flex/grid children must be allowed to shrink --- */
  .about-in > *,
  .serv-row > *,
  .serv-wide,
  .serv-wide > *,
  .inputs-row > *,
  .order-cols > *,
  .order-col > *,
  .p8-complex > *,
  .ord-grid > *,
  .fit-grid > *,
  .fit-card,
  .sv-row > *,
  .hero-in > *,
  .hs-hero-in > *,
  .z10-hero-in > *,
  .s03-hero-in > *,
  .p8-hero-in > *,
  .p11-hero-in > *,
  .hero5-in > * {
    min-width: 0 !important;
  }

  /* --- hero text column --- */
  .sv-left,
  .p7 .sv-left,
  .p9 .sv-left,
  .about-left {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* --- hero media column: fixed basis, but shrinkable --- */
  .sv-right,
  .s03-hero-right,
  .p8-hero-right,
  .p11-hero-right,
  .z10-hero-right,
  .hs-hero-right,
  .hero5-right,
  .p11-hero-photo,
  .hero5-photo {
    flex: 0 1 600px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 600px !important;
  }

  /* --- index hero photo fills its column --- */
  .hero-right { min-width: 0 !important; }
  .hero-photo { width: 100% !important; left: 0 !important; }

  /* --- index about photo --- */
  .about-photo { flex: 0 1 446px !important; min-width: 0 !important; }

  /* --- uborka: wide "complex" card --- */
  .p8-complex-card {
    flex: 0 1 min(868px, 70%) !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* --- zooklining order form --- */
  .ord-form {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  /* --- avtodoma: the steps container must respect the viewport --- */
  .steps > .container {
    min-width: 0 !important;
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
  }
}

/* --- laptop band, pass 2 --- */
@media (min-width: 861px) and (max-width: 1439px) {

  /* index: the two fixed service cards must give way to the wide one */
  .serv-mini,
  .serv-img {
    flex: 0 1 min(278px, 26%) !important;
    min-width: 0 !important;
  }
  .serv-wide-body { flex: 1 1 auto !important; min-width: 0 !important; }
  .wide-link { min-width: 0 !important; }

  /* "what is included" card (generalnaya / podderzh / organizaciya) */
  .inc-card > *,
  .inc-row > *,
  .inc-div > * { min-width: 0 !important; }
  .inc-grid {
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* CTA block (pereezd) */
  .cta-card { gap: 32px !important; }
  .cta-card > * { flex: 1 1 0 !important; min-width: 0 !important; }

  /* uborka: order card */
  .p8-order-card { width: 100% !important; margin: 0 auto !important; }
  .p8-order-card > * { min-width: 0 !important; }

  /* posle-remonta: fit cards carry a hard-coded width */
  .fit-card { width: auto !important; min-width: 0 !important; }
}

/* --- laptop band, pass 3 --- */
@media (min-width: 861px) and (max-width: 1439px) {

  /* "included" rows are column-stretched but resolve to max-content */
  .inc-row,
  .inc-div { width: 100% !important; min-width: 0 !important; }
  .inc-row > *,
  .inc-div > *,
  .inc-grid > * { min-width: 0 !important; }

  /* index: team cards are hard-coded 278px */
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .team-center .team-card,
  .team-card { width: auto !important; min-width: 0 !important; }

  /* inklyuzivnaya: format cards */
  .p11-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .p11-fcard { min-width: 0 !important; }

  /* uborka: order form fields */
  .p8-order-form > *,
  .p8-frow > * { min-width: 0 !important; }
}

/* --- laptop band, pass 4 --- */
@media (min-width: 861px) and (max-width: 1439px) {

  /* organizaciya: the include grid is hard-coded 802px */
  .inc-grid { width: auto !important; min-width: 0 !important; }

  /* index «Что мы можем для вас сделать»: 4 колонки на лаптопах сжимают
     карточки до 175px — текст не влезает в ряд 528px, ссылка «Подробнее»
     вылезает за низ и обрезается. 2 колонки — контент помещается. */
  .serv-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* podderzh: the right glass column must be allowed to shrink */
  .glass > * { min-width: 0 !important; }
  .gs-tags { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gs-tag { min-width: 0 !important; }

  /* uborka: the order form needs room for two fields per row */
  .p8-order-form { min-width: 360px !important; }
  .p8-frow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .p8-frow .select > span { min-width: 0 !important; }
}

/* --- laptop band, pass 5: let the order-card's left column give way --- */
@media (min-width: 861px) and (max-width: 1439px) {
  .p8-order-left { flex-shrink: 1 !important; min-width: 0 !important; }
}

/* --- laptop band, pass 6: pills must be allowed to shrink --- */
@media (min-width: 861px) and (max-width: 1439px) {
  .chips { min-width: 0 !important; flex-wrap: wrap !important; }
  .chips .chip { max-width: 100% !important; white-space: normal !important; }
}

/* --- laptop band, pass 7: keep the "extra services" column usable --- */
@media (min-width: 861px) and (max-width: 1439px) {
  .gs-left { flex: 0 1 auto !important; min-width: 0 !important; }
  .gs-right { min-width: 340px !important; }
}

/* --- mobile: body text 13/13.5px -> 15px (<=860px) --- */
@media (max-width: 860px) {
  a.fit-btn { font-size: 15px !important; }
  a.fit-link { font-size: 15px !important; }
  a.hs-yuta { font-size: 15px !important; }
  a.km-btn { font-size: 15px !important; }
  a.mv-link { font-size: 15px !important; }
  a.not-link { font-size: 15px !important; }
  a.p8-all-link { font-size: 15px !important; }
  a.p8-ocard h3 { font-size: 15px !important; }
  a.p8-white-btn { font-size: 15px !important; }
  a.serv-more { font-size: 15px !important; }
  a.strip-item span { font-size: 15px !important; }
  a.vz-btn { font-size: 15px !important; }
  a.vz-link { font-size: 15px !important; }
  a.z10-all-link { font-size: 15px !important; }
  article.c-card p { font-size: 15px !important; }
  article.f-card p { font-size: 15px !important; }
  article.fit-card.fit-card--pink p { font-size: 15px !important; }
  article.m-card p { font-size: 15px !important; }
  article.mt-card p { font-size: 15px !important; }
  article.p11-princ p { font-size: 15px !important; }
  article.p11-step p { font-size: 15px !important; }
  article.prep-card p { font-size: 15px !important; }
  article.st-card b { font-size: 15px !important; }
  article.st-card p { font-size: 15px !important; }
  article.when-card li { font-size: 15px !important; }
  article.when-card p { font-size: 15px !important; }
  article.z-card.z-card--pink p { font-size: 15px !important; }
  button.cookie-btn { font-size: 15px !important; }
  div.ba-head p { font-size: 15px !important; }
  div.contact a { font-size: 15px !important; }
  div.container.cookie-banner-in a { font-size: 15px !important; }
  div.container.cookie-banner-in p { font-size: 15px !important; }
  div.container.p11-gallery-grid figcaption { font-size: 15px !important; }
  div.container.p11-gallery-head p { font-size: 15px !important; }
  div.crumbs a { font-size: 15px !important; }
  div.crumbs b { font-size: 15px !important; }
  div.crumbs span { font-size: 15px !important; }
  div.cta-checks p { font-size: 15px !important; }
  div.dop-left p { font-size: 15px !important; }
  div.dop-list span { font-size: 15px !important; }
  div.dot-it span { font-size: 15px !important; }
  div.es-it span { font-size: 15px !important; }
  div.es-it.sm-hidden span { font-size: 15px !important; }
  div.es-left p { font-size: 15px !important; }
  div.estimate p { font-size: 15px !important; }
  div.ex-left p { font-size: 15px !important; }
  div.faq-a { font-size: 15px !important; }
  div.fcard p { font-size: 15px !important; }
  div.fit-box p { font-size: 15px !important; }
  div.fit-it b { font-size: 15px !important; }
  div.fit-it span { font-size: 15px !important; }
  div.fit-q p { font-size: 15px !important; }
  div.fmt-list span { font-size: 15px !important; }
  div.footer-col h4 { font-size: 15px !important; }
  div.footer-links a { font-size: 15px !important; }
  div.gear-card.gear-side p { font-size: 15px !important; }
  div.gear-it span { font-size: 15px !important; }
  div.gear-left p { font-size: 15px !important; }
  div.gear-list span { font-size: 15px !important; }
  div.gs-left p { font-size: 15px !important; }
  div.hours-row b { font-size: 15px !important; }
  div.hours-row span { font-size: 15px !important; }
  div.hs-combo p { font-size: 15px !important; }
  div.hs-designer-body p { font-size: 15px !important; }
  div.hs-exclude-card li { font-size: 15px !important; }
  div.hs-exclude-note { font-size: 15px !important; }
  div.hs-fit-bottom p { font-size: 15px !important; }
  div.hs-fit-card li { font-size: 15px !important; }
  div.hs-how-step b { font-size: 15px !important; }
  div.hs-how-step p { font-size: 15px !important; }
  div.hs-step li { font-size: 15px !important; }
  div.hs-step p { font-size: 15px !important; }
  div.hs-tagcard li { font-size: 15px !important; }
  div.hs-warn p { font-size: 15px !important; }
  div.hs-zone li { font-size: 15px !important; }
  div.inc-left h3 { font-size: 15px !important; }
  div.inc-left2 h3 { font-size: 15px !important; }
  div.komp-left p { font-size: 15px !important; }
  div.komp-paras p { font-size: 15px !important; }
  div.m-bullets span { font-size: 15px !important; }
  div.mat-items span { font-size: 15px !important; }
  div.mstep-left b { font-size: 15px !important; }
  div.mstep-left p { font-size: 15px !important; }
  div.not-it span { font-size: 15px !important; }
  div.not-left p { font-size: 15px !important; }
  div.ord-left p { font-size: 15px !important; }
  div.p11-hero-card-foot p { font-size: 15px !important; }
  div.p11-regular-left p { font-size: 15px !important; }
  div.p11-smell-foot p { font-size: 15px !important; }
  div.p8-know-left p { font-size: 15px !important; }
  div.p8-mini-card p { font-size: 15px !important; }
  div.p8-step p { font-size: 15px !important; }
  div.pack-list span { font-size: 15px !important; }
  div.pack.pink p { font-size: 15px !important; }
  div.pk-info p { font-size: 15px !important; }
  div.pp-item p { font-size: 15px !important; }
  div.prep-item p { font-size: 15px !important; }
  div.prog-extra-list span { font-size: 15px !important; }
  div.rev-name span { font-size: 15px !important; }
  div.st-card p { font-size: 15px !important; }
  div.step b { font-size: 15px !important; }
  div.step p { font-size: 15px !important; }
  div.team-card h3 { font-size: 15px !important; }
  div.team-card.center h3 { font-size: 15px !important; }
  div.team-card.sm-hidden h3 { font-size: 15px !important; }
  div.v-it span { font-size: 15px !important; }
  div.vn-left p { font-size: 15px !important; }
  div.zbig-card p { font-size: 15px !important; }
  div.zbig-list span { font-size: 15px !important; }
  div.zcard-list span { font-size: 15px !important; }
  div.zn-dop-left p { font-size: 15px !important; }
  div.zone p { font-size: 15px !important; }
  div.zone-extra span { font-size: 15px !important; }
  div.zone-it span { font-size: 15px !important; }
  div.zone-it.sm-hidden span { font-size: 15px !important; }
  label.field-label { font-size: 15px !important; }
  label.inline-consent a { font-size: 15px !important; }
  label.inline-consent span { font-size: 15px !important; }
  label.pp-consent a { font-size: 15px !important; }
  label.pp-consent span { font-size: 15px !important; }
  li.sm-hidden { font-size: 15px !important; }
  nav.crumbs a { font-size: 15px !important; }
  nav.crumbs b { font-size: 15px !important; }
  nav.crumbs span { font-size: 15px !important; }
  nav.hs-crumb a { font-size: 15px !important; }
  nav.hs-crumb b { font-size: 15px !important; }
  nav.hs-crumb span { font-size: 15px !important; }
  p.c-small { font-size: 15px !important; }
  p.e-intro { font-size: 15px !important; }
  p.e-note { font-size: 15px !important; }
  p.eq-intro { font-size: 15px !important; }
  p.fit-note { font-size: 15px !important; }
  p.hs-designer-result { font-size: 15px !important; }
  p.hs-step-note { font-size: 15px !important; }
  p.km-note { font-size: 15px !important; }
  p.m-note { font-size: 15px !important; }
  p.mat-cap { font-size: 15px !important; }
  p.mat-label { font-size: 15px !important; }
  p.mat-note { font-size: 15px !important; }
  p.mt-note { font-size: 15px !important; }
  p.ord-lead { font-size: 15px !important; }
  p.p11-equip-intro { font-size: 15px !important; }
  p.p11-fcard-desc { font-size: 15px !important; }
  p.p11-who-note { font-size: 15px !important; }
  p.p11-znote { font-size: 15px !important; }
  p.p8-complex-d { font-size: 15px !important; }
  p.p8-fdesc { font-size: 15px !important; }
  p.p8-note { font-size: 15px !important; }
  p.pack-note { font-size: 15px !important; }
  p.pk-note { font-size: 15px !important; }
  p.prog-desc { font-size: 15px !important; }
  p.prog-note { font-size: 15px !important; }
  p.rev-text { font-size: 15px !important; }
  p.sched-d { font-size: 15px !important; }
  p.sched-note { font-size: 15px !important; }
  p.sec-sub { font-size: 15px !important; }
  p.sec-sub.sched-sub { font-size: 15px !important; }
  p.sf-disclaimer { font-size: 15px !important; }
  p.sv-sub { font-size: 15px !important; }
  p.task-note { font-size: 15px !important; }
  p.task-text { font-size: 15px !important; }
  p.v-note { font-size: 15px !important; }
  p.v-sub { font-size: 15px !important; }
  p.vn-strong { font-size: 15px !important; }
  p.work-note { font-size: 15px !important; }
  p.work-sub { font-size: 15px !important; }
  p.zn-note { font-size: 15px !important; }
  span.off { font-size: 15px !important; }
  span.p11-zone-chip b { font-size: 15px !important; }
  span.p8-step-num { font-size: 15px !important; }
  span.sm-hidden { font-size: 15px !important; }
  ul.ck-list li { font-size: 15px !important; }
  ul.ck-list.e-sub li { font-size: 15px !important; }
  ul.ck-list.ex-list li { font-size: 15px !important; }
  ul.ck-list.vn-list li { font-size: 15px !important; }
  ul.ck2-list li { font-size: 15px !important; }
  ul.ck2-list.pk-list li { font-size: 15px !important; }
  ul.hs-order-list li { font-size: 15px !important; }
  ul.km-list li { font-size: 15px !important; }
  ul.komp-list li { font-size: 15px !important; }
  ul.ord-list li { font-size: 15px !important; }
  ul.p11-checks li { font-size: 15px !important; }
  ul.p11-checks.four li { font-size: 15px !important; }
  ul.p11-checks.no li { font-size: 15px !important; }
  ul.p11-checks.two li { font-size: 15px !important; }
  ul.p11-checks.two.p11-notin-list li { font-size: 15px !important; }
  ul.p11-checks.yes li { font-size: 15px !important; }
  ul.p8-know-col li { font-size: 15px !important; }
  ul.p8-list li { font-size: 15px !important; }
  ul.p8-list.p8-list-2 li { font-size: 15px !important; }
  ul.p8-list.p8-list-col li { font-size: 15px !important; }
  ul.p8-order-feats li { font-size: 15px !important; }
  ul.task-list li { font-size: 15px !important; }
  ul.vz-list li { font-size: 15px !important; }
  ul.work-list li { font-size: 15px !important; }

  /* higher-specificity catch-up for rules beaten by mobile.css !important */
  .sched-card .sched-d { font-size: 15px !important; }
  .v-card .v-sub { font-size: 15px !important; }
  .cat-card h3 { font-size: 15px !important; }
  .inc-it > span { font-size: 15px !important; }
  .hs-check > span { font-size: 15px !important; }
  .vz-left > p { font-size: 15px !important; }
  .cta-left > p { font-size: 15px !important; }
  .inc-left h3 { font-size: 15px !important; }
  .cats-head > a { font-size: 15px !important; }
}

/* --- mobile: readability pass — main body text 15 -> 16px (<=860px) --- */
@media (max-width: 860px) {
  .page main :is(p, li, dd, .faq-a, .rev-text, .sec-sub, .sv-sub, .v-sub,
    .task-text, .prog-desc, .work-sub, .sched-d, .cat-card h3, .inc-it > span,
    .hs-check > span, .vz-left > p, .cta-left > p, .inc-left h3):not(#\#) {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
}

/* --- mobile: «Наши услуги» — сбалансированная горизонтальная карточка.
     .serv-mini (карточка «Клининг автодомов и яхт») получает ту же
     геометрию, что и .serv-card — иначе её фото-полоса уже (30% vs 38%),
     отступ текста другой и карточка «отличается» от остальных. --- */
@media (max-width: 860px) {
  .page main .serv-card:not(#\#),
  .page main .serv-mini:not(#\#) {
    position: relative !important;
    flex-direction: row !important;
    align-items: stretch !important;
    border-radius: 20px !important;
    /* единая высота всех карточек, включая mini (она вне .serv-grid) */
    min-height: 202px !important;
  }
  .page main .serv-card > img:not(#\#),
  .page main .serv-mini > img:not(#\#) {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 38% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: 50% 28% !important;
    border-radius: 0 !important;
  }
  .page main .serv-body:not(#\#) {
    flex: 0 0 62% !important;
    width: 62% !important;
    margin-left: 38% !important;
    padding: 14px 14px 14px 14px !important;
    gap: 6px !important;
    justify-content: center !important;
    min-width: 0 !important;
  }
  .page main .serv-body h3:not(#\#) {
    font-size: 16px !important;
    line-height: 1.22 !important;
  }
  .page main .serv-body p:not(#\#) {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    flex: 0 1 auto !important;
  }
  .page main .serv-more:not(#\#) {
    padding: 8px 15px !important;
    font-size: 14px !important;
    /* прижата к низу карточки — на одной высоте во всех */
    margin-top: auto !important;
  }
}

/* ============================================================
   UNIFICATION LAYER — единый стиль на всех страницах
   (моб + десктоп). Подключается последним в css/new/extra.css.
   Префикс .page main + щит :not(#\#) — перебиваем старые
   !important-правила авто-патчей.
   ============================================================ */

/* ---------- A. СИСТЕМА ИКОНОК ---------- */
/* картинки-иконки с вшитым кругом: подложка 60/45, без CSS-круга */
.page main .zone-head img,
.page main .gs-top img,
.page main .pack .pic,
.page main .pack .pic img,
.page main .cta-phone img {
  width: 60px !important;
  height: 60px !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

/* блочные иконки-глифы в круге: подложка 60/45, глиф 34/25 */
.page main .fit-ic,
.page main .z-ic,
.page main .p8-ic,
.page main .p11-zic,
.page main .km-ic,
.page main .trust-ic {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  border-radius: 50% !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  font-size: 34px !important;
  line-height: 1 !important;
}
.page main .km-ic svg { width: 32px !important; height: 32px !important; }

/* мелкие инлайн-иконки (index-экран): круг 30/25, глиф 15/14 */
.page main .hero-feat-ic,
.page main .wide-feat-ic,
.page main .about-sign-ic {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 50% !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* буллеты ✓/— в списках: компактные круги 26/24, глиф 14/13 */
.page main .zone-it i,
.page main .gear-it i,
.page main .inc-it i,
.page main .fit-it i,
.page main .not-it i,
.page main .gs-points i,
.page main .dot-it i,
.page main .v-it i,
.page main .es-it i,
.page main .cta-checks i,
.page main .hs-check i,
.page main .p8-check,
.page main .ck-list li i,
.page main .hs-exclude-card li i,
.page main .mat-items i {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: var(--pinkbg3) !important;
  color: var(--pink2) !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.page main .ck-list li::before {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: var(--pinkbg3) !important;
  color: var(--pink2) !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.page main .not-it i {
  background: #fff !important;
  color: #C79CAC !important;
}

/* номера шагов: круг 36/30, Playfair 600 */
.page main .step b,
.page main .step .num,
.page main .step-num,
.page main .prep-num,
.page main .prep-item .num,
.page main .m-num,
.page main .mstep-left b,
.page main .st-num,
.page main .st-card b,
.page main .mt-num,
.page main .p8-step-num,
.page main .p8-num,
.page main .p11-fnum,
.page main .p11-step-num,
.page main .hs-step-num,
.page main .hs-how-step b,
.page main .fcard > b,
.page main .pp-num {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--pinkbg3) !important;
  color: var(--pink2) !important;
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 !important;
  flex: none !important;
}

@media (max-width: 860px) {
  .page main .zone-head img,
  .page main .gs-top img,
  .page main .pack .pic,
  .page main .pack .pic img,
  .page main .cta-phone img {
    width: 45px !important;
    height: 45px !important;
  }
  .page main .fit-ic,
  .page main .z-ic,
  .page main .p8-ic,
  .page main .p11-zic,
  .page main .km-ic,
  .page main .trust-ic {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    font-size: 25px !important;
  }
  .page main .km-ic svg { width: 25px !important; height: 25px !important; }
  .page main .hero-feat-ic,
  .page main .wide-feat-ic,
  .page main .about-sign-ic {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    font-size: 14px !important;
  }
  .page main .zone-it i,
  .page main .gear-it i,
  .page main .inc-it i,
  .page main .fit-it i,
  .page main .not-it i,
  .page main .gs-points i,
  .page main .dot-it i,
  .page main .v-it i,
  .page main .es-it i,
  .page main .cta-checks i,
  .page main .hs-check i,
  .page main .p8-check,
  .page main .ck-list li i,
  .page main .hs-exclude-card li i,
  .page main .mat-items i,
  .page main .ck-list li::before {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
  .page main .step b,
  .page main .step .num,
  .page main .step-num,
  .page main .prep-num,
  .page main .prep-item .num,
  .page main .m-num,
  .page main .mstep-left b,
  .page main .st-num,
  .page main .st-card b,
  .page main .mt-num,
  .page main .p8-step-num,
  .page main .p8-num,
  .page main .p11-fnum,
  .page main .p11-step-num,
  .page main .hs-step-num,
  .page main .hs-how-step b,
  .page main .fcard > b,
  .page main .pp-num {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }
}

/* ---------- B. ТИПОГРАФИКА (единая шкала) ---------- */
/* h1 героя */
.page main h1:not(#\#) {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 52px !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
}
/* заголовки секций */
.page main h2:not(#\#) {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 40px !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
}
/* названия карточек + вопросы FAQ */
.page main h3:not(#\#),
.page main h4:not(#\#) {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  color: var(--ink) !important;
}
/* .sched-t — название карточки с крупной цифрой-акцентом */
.page main .sched-t:not(#\#) {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}
.page main .sched-t b {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 44px !important;
  line-height: 1.05 !important;
}

/* описания, списки, абзацы — Manrope 400 16px */
.page main p:not(#\#),
.page main li:not(#\#),
.page main dd:not(#\#),
.page main .faq-a:not(#\#),
.page main .rev-text:not(#\#),
.page main :is(.inc-it, .zone-it, .fit-it, .gear-it, .not-it, .gs-points,
  .dot-it, .v-it, .es-it, .hs-check, .m-bullets, .zcard-list, .pack-list,
  .mat-items, .prog-extra-list, .dop-list, .fmt-list, .zbig-list,
  .zone-extra, .inc-paras) span:not(#\#),
.page main :is(.fit-it, .zone-it, .inc-it, .not-it) b:not(#\#) {
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* мелкий шрифт — служебные подписи */
.page main .order-note:not(#\#) {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}
.page main .doc-date:not(#\#) {
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* кикеры остаются мелкими */
.page main .not-left h3:not(#\#),
.page main .gs-right h4:not(#\#) {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  color: var(--pink3) !important;
  line-height: 1.35 !important;
}

@media (max-width: 860px) {
  .page main h1:not(#\#) { font-size: 33px !important; line-height: 1.16 !important; }
  .page main h2:not(#\#) { font-size: 27px !important; line-height: 1.2 !important; }
  .page main h3:not(#\#),
  .page main h4:not(#\#) { font-size: 19px !important; line-height: 1.3 !important; }
  .page main .sched-t:not(#\#) { font-size: 19px !important; line-height: 1.3 !important; }
  .page main .sched-t b { font-size: 28px !important; line-height: 1.12 !important; }
}

/* заголовки — аккуратный перенос */
.page main :is(h1, h2, h3, h4):not(#\#) {
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 860px) {
  /* Keep mobile words whole; long URLs retain their existing emergency wrapping. */
  .page main :not(#\#) {
    -webkit-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
  }
  .page main p br:not(#\#),
  .page main li br:not(#\#) { display: none; }
  .page main .req-box p br { display: inline !important; }
}

/* ---------- C. СЕТКА / ВОЗДУХ ---------- */
/* зазор между карточками: моб 16 / десктоп 24 */
.page main :is(.steps, .steps-grid, .p8-steps-row, .st-grid, .p11-steps-grid,
  .hs-method-grid, .hs-how-grid, .hs-fit-grid, .msteps, .pack-grid, .zcards,
  .vaz, .zones, .zn-grid, .gear, .sched-grid, .fit-row, .mt-grid, .p8-zgrid,
  .p8-fgrid, .p8-equip-grid, .p8-prep-grid, .prep-grid, .p11-comp-grid,
  .cats, .p8-other-grid, .hs-other-grid, .p11-other-grid, .strip-grid,
  .others-grid, .faq-list, .serv-grid, .team-grid, .pp-grid, .km-grid,
  .eq-grid, .zbig-list, .hs-tools-grid, .ba-row):not(#\#) {
  gap: 24px !important;
}
@media (max-width: 860px) {
  .page main :is(.steps, .steps-grid, .p8-steps-row, .st-grid, .p11-steps-grid,
    .hs-method-grid, .hs-how-grid, .hs-fit-grid, .msteps, .pack-grid, .zcards,
    .vaz, .zones, .zn-grid, .gear, .sched-grid, .fit-row, .mt-grid, .p8-zgrid,
    .p8-fgrid, .p8-equip-grid, .p8-prep-grid, .prep-grid, .p11-comp-grid,
    .cats, .p8-other-grid, .hs-other-grid, .p11-other-grid, .strip-grid,
    .others-grid, .faq-list, .serv-grid, .team-grid, .pp-grid, .km-grid,
    .eq-grid, .zbig-list, .hs-tools-grid, .ba-row):not(#\#) {
    gap: 16px !important;
  }
  /* паддинги карточек — воздух */
  .page main :is(.step, .prep-item, .prep-card, .mstep, .pack, .zcard, .p8-zcard,
    .p8-fcard, .p8-ecard, .p8-step, .p8-prep-item, .zone-card, .zone, .zn-card,
    .pk-card, .gear-card, .sched-card, .fit-card, .mt-card, .st-card,
    .p11-zcard, .p11-fcard, .p11-step, .p11-regular, .hs-step,
    .hs-how-step, .hs-fit-card, .hs-tagcard, .hs-exclude-card, .v-card,
    .inc-card, .extra-strip, .not-card):not(#\#) {
    padding: 20px 18px !important;
  }
}

/* ---------- D. «КАК ЧАСТО ПРИХОДИТЬ» — 2×2 (моб) ---------- */
@media (max-width: 860px) {
  .page main .sched-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .page main .sched-card { min-height: 100% !important; }
}

/* ---------- E. ОТЗЫВЫ — нативный горизонтальный рейл ---------- */
.page main .rev-head:not(#\#) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.page main .rev-head .sec-head:not(#\#) {
  align-items: flex-start !important;
  text-align: left !important;
}
.page main .rev-head .sec-title:not(#\#),
.page main .rev-head .sec-sub:not(#\#) { text-align: left !important; }
.page main .rev-leave:not(#\#) {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--pink2) !important;
  white-space: nowrap !important;
  flex: none !important;
  padding-bottom: 2px !important;
}
.page main .rev-leave:hover { color: var(--pink3) !important; }

.page main .rev-track-wrap:not(#\#) {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 0 10px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page main .rev-track-wrap::-webkit-scrollbar { display: none !important; }
.page main .rev-track:not(#\#) {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  transform: none !important;
  transition: none !important;
}
.page main .rev-card:not(#\#) {
  flex: 0 0 auto !important;
  width: 380px !important;
  max-width: 380px !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
}
.page main .rev-ghost,
.page main .rev-card.rev-ghost,
.page main .rev-foot,
.page main .revs-bottom,
.page main .arrows,
.page main .p8-rev-arrows { display: none !important; }

@media (max-width: 860px) {
  .page main .rev-head:not(#\#) { gap: 12px !important; }
  .page main .rev-leave:not(#\#) { font-size: 14px !important; }
  .page main .rev-track:not(#\#) { gap: 16px !important; }
  .page main .rev-card:not(#\#) {
    width: 82% !important;
    max-width: 320px !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
}

/* ---------- G. КРОШКИ + ФОТО-ГЕРОЙ (моб) ---------- */
/* десктоп: ряд героя не должен переполнять контейнер (582+56+538=1176),
   иначе контент съезжает левее крошек */
@media (min-width: 861px) {
  .page main .sv-row {
    justify-content: space-between !important;
    gap: 56px !important;
  }
  .page main .sv-left {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .page main .sv-right {
    flex: 0 1 538px !important;
    width: auto !important;
    max-width: 538px !important;
    min-width: 0 !important;
  }
  .page main .sv-photo,
  .page main .sv-hero .sv-photo {
    width: 538px !important;
    height: 480px !important;
    max-width: 100% !important;
  }
}
@media (max-width: 860px) {
  .page main .sv-row {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  .page main .sv-left {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .page main .crumbs {
    height: auto !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    padding-top: 14px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
  }
  .page main .crumbs b {
    font-weight: 600 !important;
    color: var(--ink) !important;
  }
  .page main .crumbs a,
  .page main .crumbs span { font-size: 13px !important; }
  .page main .crumbs b { font-size: 13px !important; }

  /* фото-герой — карточка на общем рельсе 20px, без кропа */
  .page main .sv-right,
  .page main .p8-hero-right,
  .page main .hs-hero-right,
  .page main .s03-hero-right,
  .page main .z10-hero-right,
  .page main .p11-hero-right,
  .page main .hero5-right {
    width: 100% !important;
    max-width: none !important;
    margin: 16px 0 0 !important;
    position: relative !important;
  }
  .page main .sv-photo,
  .page main .p8-photo,
  .page main .s03-hero-photo,
  .page main .hs-hero-photo,
  .page main .z10-hero-photo,
  .page main .p11-hero-photo,
  .page main .hero5-photo {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }
  .page main .sv-photo,
  .page main .p8-photo > img,
  .page main .s03-hero-photo > img,
  .page main .hs-hero-photo > img,
  .page main .z10-hero-photo > img,
  .page main .p11-hero-photo > img,
  .page main .hero5-photo > img:not(.hero5-mark) {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: 50% 30% !important;
    border-radius: 26px !important;
  }
}

/* ---------- J. 404 (.nf) + ДОКУМЕНТЫ (.doc) ---------- */
main .nf:not(#\#) {
  width: auto !important;
  max-width: 1176px !important;
  margin: 0 auto !important;
  padding: 80px 24px 100px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  text-align: center !important;
}
main .nf-code:not(#\#) {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 120px !important;
  line-height: 1 !important;
  color: var(--pink-soft) !important;
}
main .nf h1:not(#\#) { margin: 0 !important; }
main .nf p:not(#\#) {
  max-width: 560px !important;
  margin: 0 auto !important;
  color: var(--body) !important;
}
main .nf-actions:not(#\#) {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}
main .nf-actions .btn {
  padding: 16px 32px !important;
  font-size: 15px !important;
}
main .nf-popular:not(#\#) {
  width: 100% !important;
  margin-top: 36px !important;
}
main .nf-popular h2:not(#\#) {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
}
main .nf-links:not(#\#) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: 22px !important;
}
main .nf-links a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 22px !important;
  border-radius: 99px !important;
  border: 1px solid var(--border2) !important;
  background: #fff !important;
  color: var(--pink3) !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: .2s;
}
main .nf-links a:hover { background: var(--pinkbg3) !important; }

main.doc:not(#\#) {
  width: auto !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 96px 24px 110px !important;
}
main.doc h1:not(#\#) { margin: 0 0 8px !important; }
main.doc .doc-date:not(#\#) { margin: 0 0 28px !important; }
main.doc h2:not(#\#) {
  font-family: var(--serif) !important;
  font-weight: 600 !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  margin: 34px 0 14px !important;
}
main.doc p:not(#\#) {
  line-height: 1.65 !important;
  color: var(--body2) !important;
  margin: 0 0 14px !important;
}
main.doc ul:not(#\#) { margin: 8px 0 18px !important; }
main.doc li:not(#\#) {
  line-height: 1.55 !important;
  color: var(--body2) !important;
  margin: 8px 0 !important;
}
main.doc a:not(#\#) {
  color: var(--pink3) !important;
  text-decoration: underline !important;
}
main .req-box:not(#\#) {
  background: var(--pinkbg) !important;
  border: 1px solid #F7DCE6 !important;
  border-radius: 20px !important;
  padding: 20px 22px !important;
  margin: 24px 0 !important;
}
main .req-box p:not(#\#) { margin: 0 !important; color: var(--body2) !important; }

@media (max-width: 860px) {
  main .nf:not(#\#) { padding: 48px 20px 64px !important; gap: 16px !important; }
  main .nf-code:not(#\#) { font-size: 80px !important; }
  main .nf h1:not(#\#) { font-size: 30px !important; }
  main .nf-actions:not(#\#) {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  main .nf-actions .btn { width: 100% !important; }
  main .nf-popular:not(#\#) { margin-top: 28px !important; }
  main .nf-popular h2:not(#\#) { font-size: 24px !important; }
  main .nf-links:not(#\#) { gap: 8px !important; margin-top: 18px !important; }
  main .nf-links a { padding: 10px 16px !important; font-size: 14px !important; }

  main.doc:not(#\#) { padding: 36px 20px 64px !important; }
  main.doc h1:not(#\#) { font-size: 30px !important; }
  main.doc h2:not(#\#) { font-size: 24px !important; margin: 28px 0 12px !important; }
  main .req-box:not(#\#) { padding: 16px 18px !important; border-radius: 16px !important; }
}

/* ============================================================
   UNIFICATION — финальная партия: попап, маркеры, команда,
   sched-pill, фото «О нас», воздух в списках
   ============================================================ */

/* ---------- A1. ГАЛОЧКИ: текст не наезжает на маркер ----------
   маркер: десктоп 26px / моб 24px (см. выше) — отступ должен быть
   маркер + 8px воздуха */
.page main .ck-list li:not(#\#) { padding-left: 34px !important; }
@media (max-width: 860px) {
  .page main .ck-list li:not(#\#) {
    padding-left: 32px !important;
    line-height: 1.45 !important;
  }
  /* воздух между пунктами списка */
  .page main .ck-list li + li:not(#\#) { margin-top: 8px !important; }
}

/* ---------- A2. SCHED-PILL: плашка внутри карточки, не шире её ---------- */
@media (max-width: 860px) {
  .p7 .sched-pill:not(#\#) {
    left: 6px !important;
    right: 6px !important;
    top: -11px !important;
    font-size: 9.5px !important;
    letter-spacing: .04em !important;
    padding: 6px 8px !important;
  }
}

/* ---------- B1. КОМАНДА (моб): по 2 карточки в ряд ---------- */
@media (max-width: 860px) {
  .page main .team-grid:not(#\#) {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .page main .team-grid .team-card:not(#\#),
  .page main .team-center .team-card:not(#\#) {
    width: auto !important;
    min-width: 0 !important;
  }
  /* 7-я карточка (Мария) — в ширину колонки сетки, по центру */
  .page main .team-center:not(#\#) {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .page main .team-center .team-card:not(#\#) {
    width: calc(50% - 5px) !important;
  }
  .page main .team-card:not(#\#) { padding: 14px 10px 13px !important; gap: 6px !important; }
  .page main .team-card img:not(#\#) {
    width: 92px !important;
    height: 92px !important;
    border-width: 4px !important;
  }
  .page main .team-card h3:not(#\#) {
    font-size: 15px !important;
    line-height: 1.2 !important;
    hyphens: manual !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .page main .team-role:not(#\#) { font-size: 11.5px !important; line-height: 1.35 !important; }
  .page main .team-badge:not(#\#) {
    font-size: 10.5px !important;
    padding: 4px 9px !important;
  }
}

/* ---------- C1. ФОТО «О НАС»: вырезанный портрет без обрезки ---------- */
.page main .about-photo img:not(#\#) {
  object-fit: contain !important;
  object-position: bottom center !important;
}

/* ================================================================
   P-БЛОК: полировка «До/после», каруселей, фото «О нас», воздуха и переносов
   ================================================================ */

/* ---------- P1. РЕФЕРЕНСЫ: нативный боковой скролл + крупнее ---------- */
.page main .refs-track-wrap:not(#\#) {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 0 10px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative !important;
}
.page main .refs-track-wrap::-webkit-scrollbar { display: none !important; }
.page main .refs-track:not(#\#) {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  transform: none !important;
  transition: none !important;
}
.page main .ref-card:not(#\#) {
  flex: 0 0 auto !important;
  width: calc((100% - 48px) / 3) !important;
  max-width: none !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
}
/* фото карточки крупнее (было 372) — только главная (эталон); без апскейла на других страницах */
.page main .refs-rail .ref-pics:not(#\#),
.page main .refs-rail .ref-pics img:not(#\#) { height: 430px !important; }

/* ---------- P6. ОДИНОЧНАЯ КАРТИНКА в «до/после» — не режем до 50% ---------- */
.page main .ba-pics img:only-of-type:not(#\#) { width: 100% !important; }

/* ---------- P5. АККУРАТНЫЕ ПЕРЕНОСЫ (снимаем разрез слов посреди) ---------- */
/* .contact и .wa-btn — в футере (вне main), поэтому без скоупа main */
.page .contact b:not(#\#) {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.page main .sf-pills span:not(#\#) {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.page main .sf-al:not(#\#),
.page main .sf-pills:not(#\#),
.page main .sf-disclaimer:not(#\#) {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* ---------- P2. СРЕДНИЕ стрелки поверх карусели (десктоп) ---------- */
.page main .refs-rail:not(#\#),
.page main .rev-rail:not(#\#) {
  position: relative !important;
}
.page main .car-prev:not(#\#),
.page main .car-next:not(#\#) {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(242, 180, 203, .35) !important;
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 8px 24px rgba(198, 130, 155, .28) !important;
  color: var(--pink3) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  padding: 0 !important;
  transition: opacity .25s ease, background-color .25s ease !important;
}
.page main .car-prev:not(#\#):hover,
.page main .car-next:not(#\#):hover { background: #fff !important; }
.page main .car-prev:not(#\#) { left: 16px !important; }
.page main .car-next:not(#\#) { right: 16px !important; }
.page main .car-prev:not(#\#)[disabled],
.page main .car-next:not(#\#)[disabled] {
  opacity: .3 !important;
  cursor: default !important;
}

/* ---------- P3. ФОТО «О НАС» — прижать к нижней кромке ---------- */
.page main .about-in:not(#\#) { padding-bottom: 0 !important; }
.page main .about-photo:not(#\#) { align-self: flex-end !important; }

/* ---------- P4. МОБИЛЬНЫЙ ВОЗДУХ + КРУПНЫЕ КНОПКИ ---------- */
@media (max-width: 860px) {
  /* референсы: 1 крупная + пик 2-й */
  .page main .ref-card:not(#\#) { width: 86% !important; }
  .page main .refs-rail .ref-pics:not(#\#),
  .page main .refs-rail .ref-pics img:not(#\#) { height: 340px !important; }

  /* средние стрелки на мобиле убираем (свайп) */
  .page main .car-prev:not(#\#),
  .page main .car-next:not(#\#) { display: none !important; }

  /* ритм вертикальных отступов контентных секций */
  .page main .sv-zones:not(#\#),
  .page main .sv-fit:not(#\#),
  .page main .sv-steps:not(#\#),
  .page main .sv-ba:not(#\#),
  .page main .sv-gear:not(#\#) {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* тач-таргеты */
  .page main .rev-leave:not(#\#),
  .page main .wide-link:not(#\#) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }
  .page .wa-btn:not(#\#) { min-height: 48px !important; }
  .page main .faq-tog:not(#\#) {
    width: 44px !important;
    height: 44px !important;
    border-radius: 22px !important;
  }

  /* --- «Другие услуги» крупнее, фото квадратное --- */
  .page main .others-grid > .other-card:not(#\#) {
    flex: 0 0 76% !important;
    max-width: 300px !important;
  }
  .page main .other-card img:not(#\#) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
  .page main .other-card h3:not(#\#) {
    padding: 14px 16px 18px !important;
    font-size: 16px !important;
  }
}

/* ================================================================
   ФИНАЛЬНАЯ ПОЛИРОВКА МОБИЛЬНОЙ ВЕРСИИ (<=860px)
   ================================================================ */
@media (max-width: 860px) {
  /* --- защита лиц: портреты не обрезаем, якорим к верху --- */
  .page main .team-card img:not(#\#),
  .page main .hero-photo img:not(#\#),
  .page main .sv-photo img:not(#\#),
  .page main .about-photo img:not(#\#),
  .page main .serv-card > img:not(#\#),
  .page main .serv-mini > img:not(#\#),
  .page main .rev-ava:not(#\#) {
    object-position: 50% 22% !important;
  }
  /* about-photo остаётся contain (портрет целиком) — не трогаем object-fit */
  .page main .about-photo img:not(#\#) {
    object-position: bottom center !important;
  }

  /* --- единый ритм: карточные списки/пункты не слипаются --- */
  .page main :is(.inc-it, .zone-it, .fit-it, .gear-it, .not-it, .dot-it,
    .es-it, .gs-points, .v-it):not(#\#) {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* --- кнопки-ссылки в тексте: тач-таргет --- */
  .page main :is(.serv-more, .wide-link, .fit-link, .fit-btn, .not-link,
    .mv-link, .vz-link, .vz-btn, .p8-all-link, .z10-all-link, .km-btn,
    .hs-yuta, .rev-leave):not(#\#) {
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* --- заголовки карточек не рвутся по слогам --- */
  .page main :is(h2, h3, h4, .sec-title, .serv-body h3, .other-card h3):not(#\#) {
    hyphens: manual !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* --- воздух между секциями (единый минимум) --- */
  .page main section:not(#\#) { overflow-x: hidden !important; }

  /* --- изображения в карточках: единая высота, без прыжков --- */
  .page main .cat-card img:not(#\#),
  .page main .strip-item img:not(#\#) {
    object-position: 50% 30% !important;
  }

  /* --- форма: поля крупнее, кнопка на всю ширину --- */
  .page main :is(input, textarea, select):not(#\#) {
    font-size: 16px !important;
  }
  .page main button[type="submit"]:not(#\#),
  .page main .order-send:not(#\#) {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }
}

/* ================================================================
   ИСПРАВЛЕНИЯ: СКРЫТЫЙ БЛОК «КАК ПРОХОДИТ ЗАКАЗ» И МЕЛКИЕ ЛЕНТЫ
   ================================================================ */

/* --- «Как проходит заказ»: декоративный .sv-steps::before (розовый
   градиент, 706px, position:absolute) перекрывал контент на
   podderzhivayushchaya — обёртка .sv-container не была позиционирована
   (в отличие от .sv-zones/.sv-fit/.sv-sched, у которых position:relative
   задан явно). Позиционируем обёртку, чтобы карточки шагов рисовались
   поверх градиента на любых ширинах. --- */
.page main .sv-steps > *:not(#\#) {
  position: relative !important;
}

@media (max-width: 860px) {
  /* --- «Другие услуги»: все ленты крупнее (эталон — avtodoma:
     карточка 76%/max 300, фото квадратное, заголовок 16px) --- */
  .page main :is(.cats, .strip-grid, .p8-other-grid, .hs-other-grid,
    .p11-other-grid, .others-grid) > *:not(#\#) {
    flex: 0 0 76% !important;
    max-width: 300px !important;
  }
  .page main :is(.cat-card, .strip-item, .p8-ocard, .hs-os,
    .p11-ocard, .other-card) img:not(#\#) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
  .page main :is(.cat-card h3, .strip-item h3, .p8-ocard h3, .hs-os h3,
    .p11-ocard h3, .other-card h3):not(#\#) {
    padding: 14px 16px 18px !important;
    font-size: 16px !important;
  }

  /* --- «До и после»: единая высота фото во всех лентах
     (эталон — generalnaya, 274px; было 112–200 на части страниц) --- */
  .page main :is(.ba-pics, .hs-ba-pics, .dp-pics, .p8-refpic):not(#\#) {
    height: 274px !important;
  }
  .page main :is(.ba-pics img, .hs-ba-pics img, .dp-pics img,
    .p8-refpic img, .p11-gallery-grid img):not(#\#) {
    height: 274px !important;
  }
  /* posle-remonta `.dop-track` (s03-doposle): mobile-правило ставило 180px —
     возвращаем к общему эталону 274px */
  .page main .dop-track .ref-pics,
  .page main .dop-track .ref-pics img {
    height: 274px !important;
  }
}

/* ================================================================
   ДЕСКТОП: карточки «Другие услуги» — фото на всю ширину карточки,
   единая высота ряда, без схлопывания/растяжения (root cause: у
   .strip-item img не было высоты и object-fit; глобальный h3 24px
   из extra.css раздувал заголовки карточек до 3 строк).
   ================================================================ */
@media (min-width: 861px) {
  .page main :is(.cat-card, .strip-item, .other-card, .p8-ocard,
    .p11-ocard, .hs-os) img:not(#\#) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  .page main .p8-opic:not(#\#) { height: auto !important; }
  /* заголовки карточек: помещаются целиком, единый размер и выравнивание */
  .page main :is(.cat-card h3, .other-card h3, .p8-ocard h3,
    .p11-ocard h3, .hs-os h3):not(#\#) {
    font-size: 16.5px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    padding: 16px 18px 20px !important;
  }
}

/* ================================================================
   Блок «До и после» (ba-*): единые значения эталона organizaciya
   на всех страницах — перебивают постраничные варианты (.p7 и др.)
   ================================================================ */
@media (min-width: 861px) {
  .page main .ba-card:not(#\#) { width: 372px !important; }
  .page main .ba-pics:not(#\#),
  .page main .ba-pics img:not(#\#) { height: 274px !important; }
  .page main .ba-cap:not(#\#) { padding: 15px 16px !important; font-size: 15px !important; }
}

/* ================================================================
   Блоки «До и после» и «Другие услуги» на всех страницах — единый
   мобильный вид эталона organizaciya-hraneniya (перебивает .p7/.p9)
   ================================================================ */
@media (max-width: 860px) {
  /* uborka: отступы секций как у эталона (p9-вариант sv-ba/sv-cats) */
  .p8-refs { padding: 40px 0; }
  .p8-other { padding: 0 0 44px; }
  .page main .ba-card:not(#\#) { border-radius: 18px !important; }
  .page main .ba-cap:not(#\#) { padding: 10px 12px !important; font-size: 13px !important; }
  .cats-head h2 { font-size: 22px; }
  .cats-head a { font-size: 13px; }
  .cat-card { border-radius: 16px; }
}

/* ================================================================
   Блок «В комплекс входит» (inc-card): на десктопе — колонка заголовка
   слева и список справа (row); базовый flex-direction:column ломал
   компоновку (заголовок-столбец 284px, список под ним). На мобиле —
   прежняя стек-раскладка.
   ================================================================ */
@media (min-width: 861px) {
  .page main .inc-card:not(#\#) { flex-direction: row !important; flex-wrap: wrap !important; }
  .page main .inc-grid:not(#\#) { min-width: 0 !important; }
}

/* ================================================================
   Пустые кружки в списках (dot-list, inc-grid «В комплекс входит»):
   маркеры — <i></i> без текста. Добавляем ✓ через ::after только
   ПУСТЫМ элементам (:empty) — <i>✓</i> с текстом не трогаем.
   ================================================================ */
.page main :is(.inc-it, .dot-it) i:empty:not(#\#) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.page main :is(.inc-it, .dot-it) i:empty:not(#\#)::after {
  content: "✓" !important;
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: var(--pink2) !important;
}
/* Request forms: AJAX feedback, attachments and native detail selectors. */
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); pointer-events: none; }
[data-request-form] { min-width: 0; }
[data-request-form] [hidden] { display: none !important; }
[data-request-form] .request-select { display: block; width: 100%; min-width: 0; height: auto; min-height: 48px; padding: 12px 14px; border: 1px solid #f0dce5; border-radius: 12px; background: #fff; color: #493a41; font: inherit; font-size: 14px; white-space: normal; }
[data-request-form][aria-busy="true"] { cursor: progress; }
[data-request-form] button:disabled { cursor: wait; opacity: .65; }
.request-error { color: #a12e4e !important; background: #fff2f5; border: 1px solid #e7b4c3; border-radius: 10px; padding: 12px; margin: 12px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; grid-column: 1 / -1; }
.request-files { flex-basis: 100%; min-width: 0; width: 100%; }
.request-file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.request-file-item > span { min-width: 0; overflow-wrap: anywhere; }
.request-file-remove { flex: none; border: 0; background: transparent; color: #a12e4e; font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }
[data-request-form] .photo-row, [data-request-form] .cta-photo, [data-request-form] .hs-attach { flex-wrap: wrap; }
[data-request-form] .form-ok { grid-column: 1 / -1; width: 100%; }
.phone-quote { display: grid; gap: 8px; padding: 20px; border-radius: 16px; background: #fff3f7; }
.phone-quote p { margin: 0; font-size: 14px; line-height: 1.5; color: #62525a; }
.phone-quote a { width: fit-content; max-width: 100%; color: #b52f5b; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.phone-quote span { color: #62525a; font-size: 13px; line-height: 1.5; }
.hero .hero-cta { flex-wrap: wrap; }
.hero .hero-callback { padding: 15px 22px; font-size: 15px; }
@media (max-width: 860px) { .hero .hero-callback { width: 100%; justify-content: center; } }

/* Published before/after photographs: preserve the full source frame. */
.page main .refs--works .ref-pics:not(#\#) { display: block; height: auto !important; aspect-ratio: 1; background: #fff; cursor: zoom-in; }
.page main .refs--works .ref-pics img:not(#\#) { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; }
.refs--works .ref-hint { display: block; margin-top: 6px; color: var(--pink3); font-size: 12px; font-weight: 500; }
.refs--works .ref-pics:focus-visible { outline: 3px solid var(--pink3); outline-offset: -4px; }
.refs--works .arrow-btn:disabled { opacity: .35; cursor: default; }
.work-viewer { box-sizing: border-box; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: #fffafc; color: var(--ink); overflow: auto; }
.work-viewer::backdrop { background: rgba(35, 23, 30, .82); }
.work-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.work-viewer-head h2 { margin: 0; font-size: clamp(18px, 3vw, 26px); line-height: 1.3; }
.work-viewer-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--pink3); font-size: 28px; cursor: pointer; }
.work-viewer-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.work-viewer-modes button, .work-viewer-nav button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--border2); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.work-viewer-modes button[aria-pressed="true"] { border-color: var(--pink3); background: var(--pink3); color: #fff; }
.work-viewer-stage { display: flex; align-items: center; justify-content: center; min-height: 160px; background: #f7f2f4; }
.work-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 260px); object-fit: contain; }
.work-viewer-stage img[hidden] { display: none; }
.work-viewer-status { margin: 8px 0; font-size: 13px; color: #a12e4e; }
.work-viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.work-viewer-nav [data-work-count] { color: var(--muted); font-size: 13px; white-space: nowrap; }
.work-viewer-nav button:disabled { opacity: .35; cursor: default; }
.work-viewer button:focus-visible { outline: 3px solid var(--pink3); outline-offset: 3px; }
@media (max-width: 600px) {
  .work-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; border-radius: 14px; }
  .work-viewer-nav { gap: 6px; }
  .work-viewer-nav button { padding: 8px 14px; }
  .work-viewer-nav button span { display: none; }
  .work-viewer-stage img { max-height: calc(100dvh - 240px); }
}

/* Home before/after photographs: native horizontal scrolling. */
.page main #refs.refs--horizontal { padding: 64px 0 80px; }
.page main #refs.refs--horizontal .refs-track-wrap:not(#\#) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  overscroll-behavior-x: contain;
  margin: 0 !important;
  padding: 4px 0 12px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--pink3) var(--pink-light, #fcecf2);
}
.page main #refs.refs--horizontal .refs-track-wrap::-webkit-scrollbar { display: block !important; height: 6px; }
.page main #refs.refs--horizontal .refs-track-wrap::-webkit-scrollbar-thumb { background: var(--pink3); border-radius: 99px; }
.page main #refs.refs--horizontal .refs-track-wrap:focus-visible { outline: 2px solid var(--pink3); outline-offset: 4px; }
.page main #refs.refs--horizontal .refs-track:not(#\#) {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  transform: none !important;
}
.page main #refs.refs--horizontal .ref-card:not(#\#) {
  flex: 0 0 auto !important;
  width: calc((100% - 48px) / 3) !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: start !important;
}
@media (max-width: 1100px) {
  .page main #refs.refs--horizontal .ref-card:not(#\#) { width: calc((100% - 24px) / 2) !important; }
}
@media (max-width: 860px) {
  .page main #refs.refs--horizontal { padding: 40px 16px 44px; }
  .page main #refs.refs--horizontal .ref-card:not(#\#) { width: 86% !important; }
}

/* Keep heads visible in the home service cards at every screen width. */
.page main #services .serv-card > img {
  object-position: var(--service-focus-x, 50%) top !important;
}
.page main #services .serv-card > img[src$="/p1_8_490.webp"] { --service-focus-x: 78%; }
.page main #services .serv-card > img[src$="/p1_8_500.webp"] { --service-focus-x: 20%; }
.page main #services .serv-card > img[src$="/p1_8_520.webp"] { --service-focus-x: 65%; }
.page main #services .serv-card > img[src$="/p1_8_540.webp"] { --service-focus-x: 30%; }
.page main #services .serv-card > img[src$="/p1_8_550.webp"] { --service-focus-x: 60%; }
.page main #services .serv-card > img[src$="/p1_8_560.webp"] { --service-focus-x: 60%; }

/* Keep the home hero copy inside its column from tablet to desktop. */
@media (min-width: 861px) {
  .page main .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page main .hero-right { width: 100% !important; }
  .page main .hero-photo { width: 100% !important; left: 0 !important; }
  .page main .hero h1:not(#\#) { font-size: clamp(30px, 3.7vw, 52px) !important; line-height: 1.15 !important; white-space: normal !important; -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; }
  .page main .hero-feats { width: 100%; flex-wrap: wrap; gap: 14px 12px; }
  .page main .hero-feat { flex: 1 1 170px; }
  .page main .hero-feat > span:last-child { min-width: 0; }
  .page main .hero-stat { left: 16px; }
}
.page main .hero-lead:not(#\#),
.page main .trust-item p:not(#\#) { -webkit-hyphens: none; hyphens: none; overflow-wrap: normal; word-break: normal; }

/* Reserve space for every header column on small tablets. */
@media (min-width: 861px) and (max-width: 1100px) {
  .page-home .header-in { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 18px; }
  .page-home .logo { position: static; width: 100px; height: 100px; }
  .page-home .nav { margin-left: 0; gap: 12px; justify-content: center; min-width: 0; }
  .page-home .nav a { font-size: 13px; white-space: nowrap; }
  .page-home .header-right { position: static; height: auto; gap: 12px; }
  .page-home .header-cta { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .page-home .header-cta .cta-text { display: none; }
  .page-home .header-cta .cta-icon { display: block; width: 22px; height: 22px; }
}
