/* ===== shared.css ===== */
/* ac-polish: shared fixes that apply across pages (implementer "shared") */

/* ---------- #4 #21 #45 #60 Lining figures ----------
   Playfair draws old-style digits by default and many rules use the `font:` shorthand,
   which resets font-variant-numeric. So every element gets lining figures explicitly. */
body *{font-variant-numeric:lining-nums!important}
/* prices, times, areas and counters also get equal-width digits */
body #acHint b,body #acDockPrice b,body .ac-dock__price b,
body #apartmentDaily,body #apartmentMonthly,
body #aptPageDaily,body #aptPageMonthly,
body .x-price__rates strong,body .x-parking__rates strong,body .x-rules strong,
body #apartmentPhotoCurrent,body #apartmentPhotoTotal{font-variant-numeric:lining-nums tabular-nums!important}
/* the rolling digits (acr-*) always use exactly the numerals of the value they roll in,
   so the text does not shift when the roll hands back to plain text */
body acr-plain,body acr-a,body acr-run,body acr-col,body acr-s,body acr-n{font-variant-numeric:inherit!important}
/* areas stay on one line: «92,2-186,6 м²» never leaves «м²» alone */
body #aptPageArea,body #apartmentAreaBadge{white-space:nowrap}

/* ---------- #5 #41 #59 Banner text on inner pages ----------
   Only static CSS. The photo (.x-hero__img) and the copy box (.x-hero__copy) stay untouched:
   the veil gets a darker corner behind the text, the text gets a soft shadow. */
body .x-hero__veil{background:
  radial-gradient(120% 75% at 0% 100%,rgba(18,16,13,.42) 0%,rgba(18,16,13,.24) 45%,rgba(18,16,13,0) 78%),
  linear-gradient(rgba(18,16,13,.42) 0%,rgba(18,16,13,.12) 24%,rgba(18,16,13,.05) 54%,rgba(18,16,13,.52) 100%),
  linear-gradient(90deg,rgba(15,13,11,.42) 0%,rgba(15,13,11,.26) 34%,rgba(0,0,0,0) 62%)}
body .x-hero__crumbs,body .x-hero__sub{text-shadow:0 0 2px rgba(18,16,13,.55),0 1px 10px rgba(18,16,13,.7),0 0 22px rgba(18,16,13,.45)}
body .x-hero__copy h1{text-shadow:0 2px 26px rgba(18,16,13,.38)}
body .x-hero__crumbs a{color:rgba(255,255,255,.94);display:inline-block;padding-block:14px;margin-block:-14px}
@media (max-width:700px){
  body .x-hero__veil{background:
    linear-gradient(0deg,rgba(18,16,13,.62) 0%,rgba(18,16,13,.44) 34%,rgba(18,16,13,.3) 52%,rgba(18,16,13,.12) 62%,rgba(18,16,13,0) 72%),
    linear-gradient(rgba(18,16,13,.42) 0%,rgba(18,16,13,.1) 26%,rgba(18,16,13,0) 50%)}
  /* crumbs are small: a tight dark outline-like shadow under the letters */
  body .x-hero__crumbs{text-shadow:0 0 1px rgba(18,16,13,.85),0 1px 3px rgba(18,16,13,.75),0 0 12px rgba(18,16,13,.6)}
}

/* #23 Home banner on phones: a darker band under the headline (the veil only, not the photo or the copy) */
@media (max-width:700px){
  body .ac-hero .hero__veil::after{content:"";position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(0deg,rgba(12,14,22,.66) 0%,rgba(12,14,22,.46) 38%,rgba(12,14,22,0) 66%)}
}

/* #18 Booking-bar labels: 11px and a deeper gold (about 5:1 on the bar) */
body .ac-bar .ac-bar__label{font-size:11px;color:#8a5d1c;letter-spacing:.16em}

/* ---------- #7 #42 #24 Floating bar steps aside over final CTAs and the map buttons ---------- */
body.ac-dock-on.acp-dock-away .ac-dock{transform:translate(-50%,160%)}
@media (max-width:700px){
  body.ac-dock-on.acp-dock-away .ac-dock{transform:translateY(160%)}
}
/* hidden bar leaves the tab order once it has slid away */
body .ac-dock{visibility:hidden;transition:transform .55s var(--ac-ease),visibility 0s linear .55s}
body.ac-dock-on:not(.acp-dock-away):not(.modal-open):not(.menu-open) .ac-dock{visibility:visible;transition:transform .55s var(--ac-ease),visibility 0s linear 0s}

/* ---------- #19 #35 Footer «Наши Соц Сети» like the other footer headings ---------- */
html body.ac-page .footer .footer__socials small.footer__socials-title{
  font:600 11px/1.3 var(--ac-sans,Inter,sans-serif)!important;font-style:normal!important;
  letter-spacing:.16em!important;text-transform:uppercase!important;color:#8a5d1c!important}
/* all small gold footer labels: #8a5d1c on the cream footer is about 5:1 (was #9d6f27, about 4:1) */
html body.ac-page .footer small,html body.ac-page .footer__brand span{color:#8a5d1c!important}

/* ---------- #51 #30 Header ---------- */
/* one logo size on every page: undo the Apartments-only 58px */
body.apartments-page .header .brand__logo{width:49px;max-height:40px}
@media (max-width:1450px) and (min-width:1181px){body.apartments-page .header .brand__logo{width:44px;max-height:36px}}
@media (max-width:1180px){body.apartments-page .header .brand__logo{width:43px;max-height:35px}}
@media (max-width:700px){body.apartments-page .header .brand__logo{width:37px;max-height:31px}}
@media (max-width:390px){body.apartments-page .header .brand__logo{width:42px;max-height:28px}}
/* «RESIDENCE» under THE ARC: readable size, same overall width */
body .header .brand__text small{font-size:8px!important;letter-spacing:.62em!important;margin-top:6px}
@media (max-width:700px){body .header .brand__text small{font-size:7.5px!important;letter-spacing:.5em!important;margin-top:5px}}
/* sticky header menu: 11px with the banner nav's tracking */
body .desktop-nav a{font-size:11px;letter-spacing:.14em}
@media (max-width:1450px){body .desktop-nav a{font-size:10.5px;letter-spacing:.1em}}

/* ---------- #29 Closed side menu casts no shadow ---------- */
body .mobile-menu:not(.active){box-shadow:none}

/* ---------- #37 #56 Rounded controls ---------- */
body #mobileToggle{border-radius:12px}
body.ac-page .mobile-menu__langs button{border-radius:999px!important;border:1px solid rgba(189,139,54,.28);background:rgba(255,255,255,.7);transition:background-color .3s,color .3s,border-color .3s}
body.ac-page .mobile-menu__langs button.active{background:var(--ac-grad,linear-gradient(135deg,#d7ad62,#b07b2c));color:#fff;border-color:transparent}

/* ---------- #56 Current page marked in the menus ---------- */
body .mobile-menu nav a.acp-current{color:#8a5d1c}
body .mobile-menu nav a.acp-current::after{content:"";display:inline-block;width:24px;height:1px;margin-left:14px;vertical-align:middle;background:var(--ac-gold,#bd8b36)}
body .desktop-nav a.acp-current::after{transform:scaleX(1)}

/* ---------- #13 #39 #52 Russian typography ---------- */
body h1:not(.hero-intro__phrase),body h2,body h3,body .x-h2,body .x-kicker{text-wrap:balance}
body p,body li,body figcaption,body blockquote{text-wrap:pretty}
/* the home banner copy stays as it was (it is part of the intro); inner pages keep .x-hero__title{text-wrap:balance} */
body .ac-hero .hero-intro__copy p{text-wrap:wrap}

/* ===== aptabout.css ===== */
/* aptabout: apartments.html + about.html layout fixes.
   Fonts are set with longhands only, so the shared lining-figure rules (#4/#45) are not reset. */

/* ---------- Апартаменты ---------- */

/* #8 / #46 Price box: both columns start at the top, unit on its own line in both */
@media (min-width:601px){
  .ac-apartments .x-price__rates{align-items:start}
  .ac-apartments .x-price__rates>i{align-self:stretch;height:auto;min-height:44px}
  .ac-apartments .x-price__rates article>div{row-gap:2px}
  .ac-apartments .x-price__rates article em{flex-basis:100%}
}

/* #15 / #47 Thumbnails fill the photo width (4 photos per type; a longer set stays on one row) */
.ac-apartments .x-detail__thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (min-width:601px){
  .ac-apartments .x-detail__thumbs:has(>:nth-child(5)){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
}
/* #15 / #47 The photo stays beside the price panel while it scrolls, just below the fixed header.
   aptabout.js adds .apx-stick only when the whole gallery fits between the header and the bottom of the window */
@media (min-width:1101px){
  .ac-apartments .x-detail__gallery.apx-stick{position:sticky;top:var(--apx-stick-top,160px)}
}

/* #14 / #48 Amenities: four cards in one row on wide screens, 2x2 below */
@media (min-width:1200px){
  body.ac-apartments .x-amen__grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (min-width:1101px) and (max-width:1199px){
  body.ac-apartments .x-amen__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* #3 / #40 Parking chips stack on phones; readable label leading; unit never splits */
.ac-apartments .x-parking__rates span{white-space:nowrap}
.ac-apartments .x-parking__rates small{line-height:1.35}
@media (max-width:560px){
  .ac-apartments .x-parking__rates{grid-template-columns:minmax(0,1fr)}
}

/* #9 / #49 Book button label: one line where it fits, otherwise two lines that do not touch */
@media (max-width:480px){
  .ac-apartments #aptPageBook{padding-inline:20px;gap:10px;letter-spacing:.08em}
  .ac-apartments #aptPageBook span{line-height:1.3;text-align:center}
}

/* #17 Apartments lightbox: the frame hugs the photo (no dark side bars), current number leads */
.ac-apartments .apt-lightbox__figure{width:max-content!important;max-width:calc(100vw - 150px)}
.ac-apartments .apt-lightbox__figure img{display:block;width:auto;height:auto;max-width:100%;background:transparent}
@media (max-width:900px){.ac-apartments .apt-lightbox__figure{max-width:calc(100vw - 90px)}}
@media (max-width:620px){.ac-apartments .apt-lightbox__figure{max-width:calc(100vw - 22px)}}
.ac-apartments .apt-lightbox__figure figcaption{align-items:baseline;gap:16px}
.ac-apartments .apt-lightbox__figure figcaption small{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;
  font-family:Manrope,Inter,sans-serif;font-size:11px;font-weight:500;letter-spacing:.08em;color:rgba(255,255,255,.62)}
.ac-apartments .apt-lightbox__figure figcaption small b{font-family:"Playfair Display","Noto Serif SC",serif;font-size:17px;font-weight:500;letter-spacing:0;color:#e3c581}
.ac-apartments .apt-lightbox__figure figcaption small span{font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit}

/* ---------- О нас ---------- */

/* #2 / #50 Zoom button moves out of the arch curve, to the free bottom-left corner */
.ac-about .x-arch .x-zoom{top:auto;right:auto;left:18px;bottom:18px}

/* #10 / #53 «THE ARC - logo - RESIDENCE» stays on one line */
.ac-about .x-sign span{white-space:nowrap}
@media (max-width:480px){
  .ac-about .x-sign{gap:12px;letter-spacing:.24em}
  .ac-about .x-sign i{flex-basis:28px}
  .ac-about .x-sign img{width:34px}
}

/* #11 Атмосфера: the large photo fills both rows, so the grid ends on one line */
@media (min-width:901px){
  .ac-about .x-atmos__a{aspect-ratio:auto;align-self:stretch;min-height:100%}
}

/* #12 / #53 Final CTA on phones: kicker on one line, one sentence per line, equal buttons */
.ac-about .x-cta__card .x-h2 .apx-sent{display:inline}
@media (max-width:600px){
  .ac-about .x-cta__card .x-kicker{gap:10px;letter-spacing:.2em;white-space:nowrap}
  .ac-about .x-cta__card .x-kicker::before,.ac-about .x-cta__card .x-kicker::after{width:22px}
  .ac-about .x-cta__card .x-h2 .apx-sent{display:block}
  /* the heading may use the card's side padding, so the longest sentence fits on one line at 390px */
  .ac-about .x-cta__card .x-h2{font-size:clamp(24px,7vw,28px);max-width:none;margin-inline:-14px;text-wrap:balance}
  .ac-about .x-cta__actions{flex-direction:column;align-items:center}
  .ac-about .x-cta__actions>.x-btn,.ac-about .x-cta__actions>.x-link{width:min(100%,280px);min-height:56px;justify-content:center;box-sizing:border-box}
}
/* narrow phones: spaced labels may wrap, their side rules go */
@media (max-width:359px){
  .ac-about .x-cta__card .x-kicker{white-space:normal;justify-content:center;text-align:center}
  .ac-about .x-cta__card .x-kicker::before,.ac-about .x-cta__card .x-kicker::after{display:none}
  .ac-about .x-sign{gap:10px;letter-spacing:.18em}
  .ac-about .x-sign i{display:none}
  .ac-about .x-sign span{white-space:normal;text-align:center}
  .ac-about .x-cta__actions>.x-link{padding-inline:18px;letter-spacing:.1em;line-height:1.3;text-align:center}
}

/* #17 About lightbox: same close button, arrows, counter and photo framing as Апартаменты */
.ac-about .about-lightbox__panel{width:max-content!important;max-width:calc(100vw - 150px)}
.ac-about .about-lightbox__panel>img{display:block;width:auto;height:auto;max-width:100%;background:transparent}
@media (max-width:900px){.ac-about .about-lightbox__panel{max-width:calc(100vw - 90px)!important}}
@media (max-width:620px){.ac-about .about-lightbox__panel{max-width:calc(100vw - 22px)!important}}
.ac-about .about-lightbox>.about-lightbox__close,.ac-about .about-lightbox>.about-lightbox__nav{position:absolute;z-index:3;padding:0;display:grid;place-items:center;line-height:0;
  border:1px solid rgba(255,255,255,.4);border-radius:50%;color:#fff;background:rgba(28,24,20,.34);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer}
.ac-about .about-lightbox>.about-lightbox__close{right:24px;top:22px;width:46px;height:46px}
.ac-about .about-lightbox>.about-lightbox__close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round}
.ac-about .about-lightbox>.about-lightbox__nav{top:50%;width:50px;height:50px;transform:translateY(-50%)}
.ac-about .about-lightbox>.about-lightbox__nav[hidden]{display:none}
.ac-about .about-lightbox__nav--prev{left:25px}
.ac-about .about-lightbox__nav--next{right:25px}
.ac-about .about-lightbox__nav svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.ac-about .about-lightbox>.about-lightbox__close:focus-visible,.ac-about .about-lightbox>.about-lightbox__nav:focus-visible{outline:2px solid #e3c581;outline-offset:3px}
@media (max-width:620px){
  .ac-about .about-lightbox>.about-lightbox__close{right:12px;top:12px}
  .ac-about .about-lightbox>.about-lightbox__nav{width:44px;height:44px;top:auto;bottom:74px;transform:none}
  .ac-about .about-lightbox__nav--prev{left:18px}
  .ac-about .about-lightbox__nav--next{right:18px}
}
.ac-about .about-lightbox__caption{padding-top:13px;flex-direction:row;align-items:baseline;justify-content:space-between;gap:16px}
.ac-about .about-lightbox__caption>span{font-size:17px}
.ac-about .about-lightbox__caption small.apx-lb-count{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;
  font-family:Manrope,Inter,sans-serif;font-size:11px;font-weight:500;letter-spacing:.08em;color:rgba(255,255,255,.62)}
.ac-about .apx-lb-count b{font-family:"Playfair Display","Noto Serif SC",serif;font-size:17px;font-weight:500;letter-spacing:0;color:#e3c581}
.ac-about .apx-lb-count span{font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit}

/* ---------- Оба: #16 / #54 banner photo on phones ----------
   No larger source exists. The 26 s Ken Burns zoom (up to 1.07x) is switched off on phones,
   so the already-upscaled photo is not magnified further. */
@media (max-width:700px){
  .ac-apartments .x-hero__img,.ac-about .x-hero__img{animation:none}
}

/* ===== home.css ===== */
/* ===== home: index.html fixes (#24 #25 #26 #27 #28 #32 #33 #34 #36 #38) ===== */

/* #26 / #28: the empty "from" grid column added a phantom 9px indent before every price */
body.ac-page #apartments .apartment-offer--premium .apartment-rate {
  grid-template-columns: max-content !important;
  grid-template-areas: "value" "unit" !important;
  column-gap: 0 !important;
}

/* #28 desktop: narrower price card, content centred, button under the prices; features get the width */
@media (min-width: 1260px) {
  body.ac-page #apartments .apartment-premium-bottom {
    /* features keep >= 735px (5 cards x 139px: the longest Russian heading «Ночные виды» is 109px); the price card takes the rest, 350-450px. Below 1260px both rows stay stacked as on the live site */
    grid-template-columns: minmax(0, 1fr) clamp(350px, calc(100% - 755px), 450px) !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__content .apartment-book {
    grid-column: 1 / -1 !important;
    margin: 14px 0 0 !important;
    width: 100% !important;
    min-height: 52px !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__label {
    align-self: stretch;
    text-align: left !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  body.ac-page #apartments .apartment-features--premium article {
    padding: 20px 12px !important;
  }
  /* kk/en headings can be longer than a card; if one wraps, the two lines come out even */
  body.ac-page #apartments .apartment-features--premium strong {
    text-wrap: balance;
  }
}

/* #26 phone: both prices on the same baseline, same insets, one vertical divider, no stray rule */
@media (max-width: 700px) {
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__content .apartment-rate {
    width: auto !important;
    padding: 2px 0 4px !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-offer__content .apartment-rate:nth-of-type(2) {
    padding-left: 16px !important;
    border-left: 1px solid var(--ac-line, rgba(157, 111, 39, .2)) !important;
  }
  body.ac-page #apartments .apartment-offer.apartment-offer--premium .apartment-rate strong {
    font-size: 29px !important;
  }
}

/* #27 phone: the thumbnail row fills the width of the photo above */
@media (max-width: 800px) {
  body.ac-page #apartments #apartmentThumbs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
  }
  body.ac-page #apartments #apartmentThumbs > .apartment-thumb {
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
  }
}

/* #38 photo counter: darker pill so the gold and white numerals read */
body.ac-page #apartments .apartment-main__counter {
  background: rgba(20, 17, 13, .78) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.ac-page #apartments .apartment-main__counter strong { color: #f1d29a !important; }
body.ac-page #apartments .apartment-main__counter small { color: #fff !important; }

/* #38 gallery captions: deeper shade under the caption */
body.ac-page .gallery-preview__shade {
  background: linear-gradient(180deg, rgba(20, 15, 10, 0) 40%, rgba(20, 15, 10, .42) 68%, rgba(20, 15, 10, .8) 100%) !important;
}
body.ac-page .gallery-preview__caption { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
body.ac-page .gallery-preview__caption small { color: #f6dfb2 !important; }

/* #24 map: controls off the markers, compact credits */
body.ac-page #location .leaflet-control-attribution {
  font-size: 10px !important;
  line-height: 1.35 !important;
  padding: 1px 6px !important;
  border-radius: 8px 0 0 0;
  background: rgba(255, 254, 250, .86) !important;
  color: #5f564c !important;
}
body.ac-page #location .leaflet-control-attribution a { color: #6e5220 !important; }
@media (min-width: 701px) {
  /* desktop: the buttons go to the free top-right corner, beside the address badge */
  body.ac-page #location .location-map__controls {
    top: 20px !important;
    bottom: auto !important;
  }
  /* the shell clips with overflow:hidden; 20px of room above and 18px to the right keep a 2px ring + 3px offset inside */
  body.ac-page #location .location-map__controls button:focus-visible {
    outline: 2px solid #9d6f27 !important;
    outline-offset: 3px !important;
  }
}
@media (max-width: 700px) {
  /* phone: the buttons sit in a strip under the map, not over it */
  body.ac-page #location .location-map-shell {
    height: auto !important;
    display: flex;
    flex-direction: column;
    background: #fffefa;
  }
  body.ac-page #location .location-map-shell { min-height: 0 !important; }
  body.ac-page #location .location-map-shell #locationMap {
    flex: 0 0 auto;
    height: 350px !important;
    min-height: 0 !important;
  }
  body.ac-page #location .location-map__controls {
    position: static !important;
    inset: auto !important;
    padding: 10px;
    gap: 8px;
  }
}

/* #25 nearby list (card layout below 1200px): full place names, distance under the subtitle */
@media (max-width: 1199px) {
  body.ac-page #location .location-card__summary {
    grid-template-columns: 39px minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    row-gap: 2px !important;
    align-items: center;
  }
  body.ac-page #location .location-card__summary .location-card__icon { grid-row: 1 / span 2; }
  body.ac-page #location .location-card__title strong,
  body.ac-page #location .location-card__title small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    -webkit-line-clamp: none !important;
    line-clamp: none !important;
    max-height: none !important;
    text-wrap: balance;
  }
  body.ac-page #location .location-card__title strong { line-height: 1.2 !important; }
  /* a single long word at large text sizes breaks instead of running past the card */
  body.ac-page #location .location-card__title strong,
  body.ac-page #location .location-card__title small { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  body.ac-page #location .location-card__distance {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: auto !important;
    text-align: left !important;
    font-size: 12px;
  }
}

/* #34 route button: one-line label, roomy pill; the distance note drops below when space runs out */
body.ac-page #location .location-card__actions {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
}
body.ac-page #location .location-card__route {
  width: auto !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 0 16px !important;
  flex: 0 0 auto;
}
body.ac-page #location .location-card__route span {
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
body.ac-page #location .location-card__coords { white-space: nowrap !important; }
/* desktop detail panel has its own route pill */
body.ac-page #location .location-desktop-detail__footer {
  flex-wrap: wrap !important;
  row-gap: 8px !important;
  column-gap: 14px !important;
}
body.ac-page #location .location-desktop-detail__route {
  width: auto !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 0 16px !important;
  flex: 0 0 auto;
}
body.ac-page #location .location-desktop-detail__route span {
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
body.ac-page #location .location-desktop-detail__distance { white-space: nowrap !important; }

/* #32 #33 phone About */
@media (max-width: 700px) {
  /* captions of the two small photos move under the photo */
  body.ac-page #about .about-story__visual--small {
    height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  body.ac-page #about .about-story__visual--small::before,
  body.ac-page #about .about-story__visual--small::after { display: none !important; }
  body.ac-page #about .about-story__visual--small img {
    display: block;
    width: 100% !important;
    height: 138px !important;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(189, 139, 54, .3);
    box-sizing: border-box;
  }
  body.ac-page #about .about-story__visual--small figcaption {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
    padding: 9px 4px 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
  }
  body.ac-page #about .about-story__visual--small figcaption small {
    flex: 0 0 auto;
    font-size: 11px !important;
  }
  body.ac-page #about .about-story__visual--small figcaption small::after,
  body.ac-page #about .about-story__visual--small figcaption small::before { display: none !important; }
  body.ac-page #about .about-story__visual--small figcaption span {
    font-size: 14px !important;
    line-height: 1.25 !important;
    color: #2c261f;
    text-wrap: balance;
  }

  /* the four facts read as a list, not as buttons */
  body.ac-page #about .about-story__panel-tags {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px !important;
  }
  body.ac-page #about .about-story__panel-tags span {
    position: relative;
    padding: 0 0 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    text-align: left !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    color: #4c433a !important;
  }
  body.ac-page #about .about-story__panel-tags span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bd8b36;
  }
}

/* #36 phone lightbox: photo centred on screen, arrows on its sides */
@media (max-width: 700px) {
  body:has(.gallery-preview) #galleryLightbox .gallery-lightbox__panel {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 66px 10px 66px !important;
  }
  body:has(.gallery-preview) #galleryLightbox .gallery-lightbox__figure { width: 100%; }
  body:has(.gallery-preview) #galleryLightbox .gallery-lightbox__nav {
    top: var(--home-lb-mid, 50%) !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    background: rgba(20, 17, 13, .6) !important;
    border-color: rgba(255, 255, 255, .7) !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  body:has(.gallery-preview) #galleryLightbox .gallery-lightbox__nav--prev { left: 18px !important; }
  body:has(.gallery-preview) #galleryLightbox .gallery-lightbox__nav--next { right: 18px !important; }
}

/* #25 desktop list (1200px and up): a long subtitle wraps instead of ending in an ellipsis */
@media (min-width: 1200px) {
  body.ac-page #location .location-card__title small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

/* ===== landing.css ===== */
/* landing: styles for the new Russian pages (polish/pages/*.html, body.ac-landing) and for the new links on the 6 existing
   pages (footer row «Полезное», short «Подробнее» lines). Built only from the site tokens (cream, Playfair, gold).
   Links to Russian-only pages are hidden while the main pages are switched to another language (.ac-ru-only). */
html:not([lang="ru"]) .ac-ru-only{display:none!important}

/* ---------- footer row «Полезное» (all pages) ---------- */
body.ac-page .footer__useful{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:14px 28px;padding:26px 0 0;border-top:1px solid var(--ac-line)}
body.ac-page .footer__useful>small{flex:none}
body.ac-page .footer__useful>div{display:flex;flex-wrap:wrap;gap:10px 26px}
body.ac-page .footer .footer__useful a{font:500 15px/1.4 var(--ac-sans);color:var(--ac-ink)!important;text-decoration:none;border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
body.ac-page .footer .footer__useful a:hover,body.ac-page .footer .footer__useful a[aria-current]{color:var(--ac-gold-d)!important;border-bottom-color:rgba(189,139,54,.5)}
@media (max-width:600px){
  body.ac-page .footer__useful{flex-direction:column;gap:12px}
  body.ac-page .footer__useful>div{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;width:100%}
  body.ac-page .footer__useful>div>a{justify-self:start}
}

/* ---------- short contextual lines on the existing pages ---------- */
.lp-context{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:24px 0 0;font:400 15px/1.5 var(--ac-sans);color:var(--ac-muted)}
.lp-context span{font:italic 500 16px/1.4 var(--ac-serif);color:var(--ac-gold-d)}
.lp-context a{color:var(--ac-ink);text-decoration:none;border-bottom:1px solid rgba(189,139,54,.45);transition:color .3s,border-color .3s}
.lp-context a:hover{color:var(--ac-gold-d);border-color:var(--ac-gold)}
.x-cta .lp-context,.x-head--center+.lp-context{justify-content:center}

/* ---------- landing pages ---------- */
.ac-landing .lp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ac-landing .lp-after{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:clamp(30px,4vw,44px) 0 0}
.ac-landing .lp-note{font:italic 400 17px/1.5 var(--ac-serif);color:var(--ac-muted)}
.ac-landing .lp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin:28px 0 0}
.ac-landing .x-split>div>.x-head{display:block;margin-bottom:0}
.ac-landing .x-split>div>.x-head .x-p{margin-top:22px}
.ac-landing .lp-photo{aspect-ratio:4/4.4}
.ac-landing .lp-photo--tall{aspect-ratio:4/5}
.ac-landing .lp-photo .x-zoom{top:auto;right:auto;left:18px;bottom:18px}
.ac-landing .x-sec--warm .x-card{background:#fffdf9}

/* price table: a real table on desktop, one card per apartment type on phones */
.lp-rates{border-radius:26px;background:#fff;border:1px solid rgba(189,139,54,.22);box-shadow:0 18px 44px rgba(40,31,23,.06);overflow:hidden}
.lp-rates table{width:100%;border-collapse:collapse;font:400 15px/1.4 var(--ac-sans);color:var(--ac-ink)}
.lp-rates caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.lp-rates thead th{padding:20px 22px 16px;text-align:left;font:600 11px/1.2 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d);background:var(--ac-warm);border-bottom:1px solid rgba(189,139,54,.3)}
.lp-rates tbody th,.lp-rates td{padding:22px;text-align:left;vertical-align:middle;border-top:1px solid rgba(189,139,54,.14)}
.lp-rates tbody tr:first-child th,.lp-rates tbody tr:first-child td{border-top:0}
.lp-rates tbody th{font:500 22px/1.2 var(--ac-serif);white-space:nowrap}
.lp-rates td{white-space:nowrap;color:var(--ac-muted)}
.lp-rates .lp-rates__price{font:500 24px/1.1 var(--ac-serif);color:var(--ac-ink)}
.lp-rates .lp-rates__act{text-align:right;width:1%}
.lp-rates tbody tr{transition:background .3s}
.lp-rates tbody tr:hover{background:#fdf8ef}
.lp-rates__book{min-height:44px;padding:0 20px;border-radius:999px;border:1px solid rgba(189,139,54,.45);background:rgba(255,253,248,.7);color:var(--ac-gold-d);cursor:pointer;
  font:600 11.5px/1 var(--ac-sans);letter-spacing:.14em;text-transform:uppercase;transition:background .3s,color .3s,border-color .3s}
.lp-rates__book:hover{background:var(--ac-grad);color:#fff;border-color:transparent}
.lp-rates__book:focus-visible,.lp-related a:focus-visible,.lp-faq summary:focus-visible,.lp-phones a:focus-visible,.lp-channels a:focus-visible{outline:2px solid var(--ac-gold);outline-offset:3px}
@media (max-width:760px){
  .lp-rates{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
  .lp-rates thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .lp-rates table,.lp-rates tbody{display:block}
  .lp-rates tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin-bottom:14px;padding:22px 20px;border-radius:22px;background:#fff;border:1px solid rgba(189,139,54,.22)}
  .lp-rates tbody th,.lp-rates td{display:block;padding:0;border:0!important;white-space:normal}
  .lp-rates tbody th{grid-column:1/-1;font-size:24px;padding-bottom:12px;border-bottom:1px solid rgba(189,139,54,.18)!important}
  .lp-rates td::before{content:attr(data-label);display:block;margin-bottom:5px;font:600 10.5px/1.2 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d)}
  .lp-rates td{color:var(--ac-ink);font-size:15px}
  .lp-rates .lp-rates__price{font-size:22px}
  .lp-rates .lp-rates__act{grid-column:1/-1;width:auto;text-align:left}
  .lp-rates__book{width:100%;min-height:50px}
}

/* FAQ */
.lp-faq{max-width:880px;margin:0 auto;border-top:1px solid rgba(189,139,54,.3)}
.lp-faq details{border-bottom:1px solid rgba(189,139,54,.3)}
.lp-faq summary{position:relative;display:block;padding:24px 56px 24px 0;cursor:pointer;list-style:none}
.lp-faq summary::-webkit-details-marker{display:none}
.lp-faq summary h3{margin:0;font:500 clamp(19px,1.8vw,23px)/1.3 var(--ac-serif);color:var(--ac-ink)}
.lp-faq summary::before,.lp-faq summary::after{content:"";position:absolute;right:12px;top:50%;width:18px;height:1.5px;background:var(--ac-gold);transition:transform .35s var(--ac-ease)}
.lp-faq summary::after{transform:rotate(90deg)}
.lp-faq details[open] summary::after{transform:rotate(0)}
.lp-faq summary:hover h3{color:var(--ac-gold-d)}
.lp-faq__a p{margin:0;padding:0 56px 26px 0;font:400 16px/1.75 var(--ac-sans);color:var(--ac-muted);max-width:66ch}

/* distances */
.lp-dist{list-style:none;margin:8px 0 26px;padding:0;border-top:1px solid rgba(189,139,54,.25)}
.lp-dist li{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:15px 0;border-bottom:1px solid rgba(189,139,54,.25)}
.lp-dist span{font:400 16px/1.4 var(--ac-sans);color:var(--ac-ink)}
.lp-dist strong{flex:none;font:italic 500 24px/1 var(--ac-serif);color:var(--ac-gold-d)}
.lp-maps{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.lp-maps a{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid rgba(189,139,54,.4);background:#fff;color:var(--ac-ink);text-decoration:none;font:500 14px/1 var(--ac-sans);transition:border-color .3s,color .3s}
.lp-maps a:hover{border-color:var(--ac-gold);color:var(--ac-gold-d)}
.lp-mapnote{margin:0 0 10px;font:600 11px/1.2 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d)}
.ac-landing .x-address{margin:0 0 24px}

/* two cards side by side */
.lp-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:clamp(50px,6vw,80px)}
.lp-two .x-tariff{display:flex;flex-direction:column}
.lp-two .x-tariff .x-checks{margin:0 0 24px}
.lp-two .x-tariff .x-btn{margin-top:auto;align-self:flex-start}
.lp-two:last-child{margin-bottom:0}

/* family plans */
.lp-plans .lp-plan__img{aspect-ratio:16/10;margin:0 0 26px;border-radius:18px;box-shadow:none}
.lp-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 22px}
.lp-specs>div{display:grid;justify-items:start;gap:6px;padding:14px;border-radius:16px;background:var(--ac-warm);border:1px solid rgba(189,139,54,.18)}
.lp-specs small{font:600 10.5px/1.2 var(--ac-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ac-gold-d)}
.lp-specs strong{font:500 17px/1.25 var(--ac-serif);color:var(--ac-ink)}
.lp-plan__price{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:4px 10px;margin:0 0 24px;padding-top:18px;border-top:1px solid rgba(189,139,54,.2)}
.lp-plan__price strong{font:500 26px/1.1 var(--ac-serif);color:var(--ac-ink)}
.lp-plan__price span{font:400 14px/1 var(--ac-sans);color:var(--ac-muted)}

/* rental terms */
.lp-terms{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px 40px;margin-top:clamp(30px,4vw,44px);padding:26px 30px;border-radius:22px;background:#fff;border:1px solid rgba(189,139,54,.22)}
.lp-terms .x-kicker{margin-bottom:10px}
.lp-terms .x-p{margin:0}
.lp-pills{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.lp-pills li{display:flex;align-items:baseline;gap:6px;padding:10px 16px;border-radius:999px;background:var(--ac-warm);border:1px solid rgba(189,139,54,.28);font:400 13px/1 var(--ac-sans);color:var(--ac-muted)}
.lp-pills strong{font:500 22px/1 var(--ac-serif);color:var(--ac-ink)}

/* booking steps + phone */
.lp-book{align-items:start}
.lp-book .x-list{margin-top:0}
.lp-tel{display:inline-grid;gap:4px;text-decoration:none}
.lp-tel small{font:600 11px/1.2 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d)}
.lp-tel strong{font:500 22px/1.2 var(--ac-serif);color:var(--ac-ink);transition:color .3s}
.lp-tel:hover strong{color:var(--ac-gold-d)}
.lp-tel--big{margin-top:30px}
.lp-tel--big strong{font-size:clamp(28px,3vw,38px)}

/* photo row */
.lp-mosaic{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;margin-bottom:16px}
.lp-mosaic .x-photo{aspect-ratio:4/3.4;border-radius:22px}
.lp-mosaic .x-zoom{top:auto;right:auto;left:14px;bottom:14px}

/* phones and channels (contacts, conditions) */
.lp-phones{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.lp-phones a{position:relative;display:grid;justify-items:start;gap:6px;padding:clamp(28px,3vw,40px);border-radius:26px;background:#fff;border:1px solid rgba(189,139,54,.22);text-decoration:none;
  box-shadow:0 14px 34px rgba(40,31,23,.05);transition:transform .4s var(--ac-ease),box-shadow .4s,border-color .4s}
.lp-phones a:hover{transform:translateY(-4px);border-color:rgba(189,139,54,.5);box-shadow:0 22px 44px rgba(40,31,23,.1)}
.lp-phones .x-card__icon{margin-bottom:14px}
.lp-phones small{font:600 11px/1.3 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d)}
.lp-phones strong{font:500 clamp(28px,3.2vw,40px)/1.1 var(--ac-serif);color:var(--ac-ink);white-space:nowrap}
.lp-phones em{font:italic 400 16px/1.4 var(--ac-serif);color:var(--ac-muted)}
.lp-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;margin:18px 0 0;padding:0}
.lp-channels a{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:18px 20px;border-radius:18px;background:var(--ac-warm);border:1px solid rgba(189,139,54,.2);text-decoration:none;transition:border-color .3s}
.lp-channels a:hover{border-color:var(--ac-gold)}
.lp-channels .x-meta__icon{grid-row:span 2;margin:0;width:44px;height:44px}
.lp-channels small{font:600 10.5px/1.2 var(--ac-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ac-gold-d)}
.lp-channels strong{font:500 17px/1.3 var(--ac-serif);color:var(--ac-ink);overflow-wrap:anywhere}

/* related pages */
.lp-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;list-style:none;margin:0;padding:0}
.lp-related a{position:relative;display:grid;align-content:start;gap:8px;height:100%;box-sizing:border-box;padding:24px 22px 54px;border-radius:20px;background:#fff;border:1px solid rgba(189,139,54,.2);text-decoration:none;
  transition:transform .4s var(--ac-ease),border-color .4s,box-shadow .4s}
.lp-related a:hover{transform:translateY(-4px);border-color:rgba(189,139,54,.5);box-shadow:0 18px 36px rgba(40,31,23,.08)}
.lp-related strong{font:500 20px/1.25 var(--ac-serif);color:var(--ac-ink)}
.lp-related span{font:400 14px/1.5 var(--ac-sans);color:var(--ac-muted)}
.lp-related svg{position:absolute;left:22px;bottom:20px;width:20px;height:20px;color:var(--ac-gold-d);transition:transform .35s var(--ac-ease)}
.lp-related a:hover svg{transform:translateX(5px)}

@media (max-width:900px){
  .lp-two,.lp-phones{grid-template-columns:1fr}
  .lp-channels{grid-template-columns:1fr}
  .lp-terms{grid-template-columns:1fr}
  .lp-mosaic{grid-template-columns:1fr 1fr}
  .lp-mosaic .x-photo:first-child{grid-column:1/-1}
  .ac-landing .x-split{grid-template-columns:minmax(0,1fr)}
  .ac-landing .lp-photo{aspect-ratio:4/3}
}
@media (max-width:600px){
  .lp-specs{grid-template-columns:1fr}
  .lp-specs>div{grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center}
  .lp-specs .x-meta__icon{grid-row:span 2;margin:0}
  .lp-faq summary{padding-right:40px}
  .lp-faq__a p{padding-right:0}
  .lp-related{grid-template-columns:1fr}
  .lp-related a{padding-bottom:24px;padding-right:56px}
  .lp-related svg{left:auto;right:20px;bottom:auto;top:50%;margin-top:-10px}
  .lp-phones strong{font-size:28px}
  .lp-dist strong{font-size:21px}
  .ac-landing .lp-after{flex-direction:column;align-items:stretch}
  .ac-landing .lp-after .x-link,.ac-landing .lp-after .x-btn{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .lp-related a,.lp-phones a,.lp-faq summary::after,.lp-related svg{transition:none}
}

/* ===== motion.css ===== */
/* motion: calm entrance motion. Only opacity and the individual transform properties
   (translate / scale), so existing hover transforms keep working. Everything sits behind
   prefers-reduced-motion: no-preference. Classes are added by motion.js only, so without JS
   every element is visible as before. The hero is never targeted. */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Rise and fade, same timing as the home cards (22px, .8-.9s, --ac-ease, 90ms stagger) */
  html.mo-on .mo-rise.mo-pre { opacity: 0; translate: 0 20px; }
  html.mo-on .mo-rise.mo-go {
    animation: mo-rise .9s cubic-bezier(.22,1,.36,1) var(--mo-d, 0ms) both;
  }
  /* opacity is full a little past half way; the rise keeps settling to the end */
  @keyframes mo-rise {
    0% { opacity: 0; translate: 0 20px; }
    55% { opacity: 1; }
    100% { opacity: 1; translate: 0 0; }
  }

  /* 2. Arch photos: the frame settles in, the photo inside eases from a soft zoom */
  html.mo-on .mo-arch.mo-pre { opacity: 0; translate: 0 24px; }
  html.mo-on .mo-arch.mo-pre > img { scale: 1.12; }
  html.mo-on .mo-arch.mo-go {
    animation: mo-arch .9s cubic-bezier(.22,1,.36,1) var(--mo-d, 0ms) both;
  }
  html.mo-on .mo-arch.mo-go > img {
    animation: mo-arch-img .9s cubic-bezier(.2,.7,.2,1) var(--mo-d, 0ms) both;
  }
  @keyframes mo-arch {
    0% { opacity: 0; translate: 0 24px; scale: .97; }
    55% { opacity: 1; }
    100% { opacity: 1; translate: 0 0; scale: 1; }
  }
  @keyframes mo-arch-img {
    from { scale: 1.12; }
    to { scale: 1; }
  }

  /* 3. Mobile side menu: links follow the panel in, one after another.
     Pure CSS on .active: nothing changes how ac-motion.js keeps the menu open through the page transition.
     Opacity is full within about 340ms of opening (so a focus ring is never on an invisible link);
     the short slide then settles calmly. A focused item shows at once. */
  .mobile-menu.active nav a,
  .mobile-menu.active .mobile-menu__langs,
  .mobile-menu.active .mobile-menu__book,
  .mobile-menu.active .mobile-menu__phones {
    animation: mo-menu .5s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: 40ms;
  }
  .mobile-menu.active nav a:nth-child(2) { animation-delay: 70ms; }
  .mobile-menu.active nav a:nth-child(3) { animation-delay: 100ms; }
  .mobile-menu.active nav a:nth-child(4) { animation-delay: 130ms; }
  .mobile-menu.active nav a:nth-child(5) { animation-delay: 160ms; }
  .mobile-menu.active nav a:nth-child(6) { animation-delay: 190ms; }
  .mobile-menu.active nav a:nth-child(n+7) { animation-delay: 220ms; }
  .mobile-menu.active .mobile-menu__langs { animation-delay: 200ms; }
  .mobile-menu.active .mobile-menu__book { animation-delay: 220ms; }
  .mobile-menu.active .mobile-menu__phones { animation-delay: 240ms; }
  .mobile-menu.active nav a:focus-visible,
  .mobile-menu.active .mobile-menu__book:focus-visible,
  .mobile-menu.active .mobile-menu__langs:focus-within,
  .mobile-menu.active .mobile-menu__phones:focus-within { animation: none; opacity: 1; }
  @keyframes mo-menu {
    0% { opacity: 0; translate: 18px 0; }
    20% { opacity: 1; }
    100% { opacity: 1; translate: 0 0; }
  }

  /* 4. Home map pins: drop a few pixels and fade in, the residence first */
  #locationMap.mo-pins-wait .location-pin { opacity: 0; }
  #locationMap.mo-pins .location-pin {
    animation: mo-pin .7s cubic-bezier(.2,.7,.2,1) var(--mo-d, 0ms) both;
  }
  @keyframes mo-pin {
    from { opacity: 0; translate: 0 -16px; }
    to { opacity: 1; translate: 0 0; }
  }

  /* 5. Gallery fly-out: a stand-in photo travels between the tile and the lightbox */
  .mo-ghost {
    position: fixed;
    z-index: 4100;
    margin: 0;
    object-fit: cover;
    pointer-events: none;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    /* corners come from the clip-path animated in motion.js */
  }
  .gallery-lightbox.mo-flying .gallery-lightbox__figure { transition: none !important; transform: none !important; }
}

/* ===== nav.css ===== */
/* Шапка главной: после добавления «Всё рядом» слева 4 ссылки. На узких ноутбуках чуть сжимаем расстояния,
   чтобы ссылки не подходили к логотипу и не переносились (en «Everything nearby», kk «Бәрі жақын»). */
.ac-hero-nav__links a{white-space:nowrap}
@media (max-width:1500px){
  .ac-hero-nav__links{column-gap:clamp(16px,1.7vw,26px)!important;gap:clamp(16px,1.7vw,26px)!important}
  .ac-hero-nav__links a{letter-spacing:.15em!important}
}
@media (max-width:1320px){
  .ac-hero-nav__links{column-gap:14px!important;gap:14px!important}
  .ac-hero-nav__links a{letter-spacing:.1em!important;font-size:10.5px!important}
}
@media (max-width:1240px){
  .ac-hero-nav__links a{letter-spacing:.06em!important;font-size:10px!important}
}

/* ===== rest.css ===== */
/* rest: infrastructure.html, everythinghere.html, gallery.html */

/* #64 Инфраструктура: кнопка «Перейти на страницу…», подпись над заголовком и цитата без висячих слов */
.x-nearby .x-link span{line-height:1.4;text-wrap:balance}
.x-nearby .x-link{padding-block:8px}
.x-infra-intro .x-kicker,
.x-infra-intro__quote{text-wrap:balance}

/* #69 Полоса из 4 преимуществ: заголовки на одной линии, даже если один переносится */
.x-infra-intro .x-pillars article{align-items:flex-start}
.x-infra-intro .x-pillars strong{text-wrap:balance}

/* #66 Окно зоны на телефоне: сначала фото, потом текст */
@media (max-width:700px){
  .zone-modal__content{display:flex!important;flex-direction:column}
  .zone-modal__gallery{order:-1;flex:0 0 auto;margin-bottom:20px}
  .zone-modal__info{flex:0 0 auto}
}

/* #58 Всё рядом: пустые заглушки «Фотография 0N» не показываем.
   Строку «скоро появятся» вставляет rest.js, когда все фото проверены. */
body.ac-sub .x-np__gallery>.np-photo:has(> .np-photo__placeholder:not([hidden])){display:none!important}
.x-np__block>p.rest-np-nophoto{margin:0;padding:18px 22px;text-align:left;border-radius:18px;border:1px dashed rgba(189,139,54,.35);
  background:linear-gradient(160deg,#fdf8ef,#f6ecdb);font:italic 400 17px/1.5 var(--ac-serif);color:var(--ac-muted)}
.x-np__block>p.rest-np-nophoto[hidden]{display:none}
/* одно настоящее фото (Butcher's Street) занимает всю ширину */
body.ac-sub .x-np__gallery > .np-photo:first-child:has(> img:not([hidden])):not(:has(~ .np-photo > img:not([hidden]))){grid-column:1 / -1!important;grid-row:auto!important;aspect-ratio:16/9!important}

/* #65 Всё рядом на телефоне: логотип над названием, текст на всю ширину; соседняя карточка видна у края */
@media (max-width:600px){
  .x-np__identity{grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
  .x-np__identity .x-np__logo{width:72px;height:72px}
}
@media (max-width:460px){
  body.ac-sub .x-np__cards.np-list{grid-auto-columns:84%!important;scroll-padding-inline:8px}
  body.ac-sub .x-np__cards.np-list>.np-card{scroll-snap-align:start}
}

/* #68 Всё рядом: баннер (1280px) и так растянут, поэтому плавное приближение здесь в 3 раза слабее */
@media (prefers-reduced-motion:no-preference){
  @keyframes restKbSoft{from{transform:scale(1)}to{transform:scale(1.02) translate(-.3%,-.2%)}}
  html:not(.acm-arrive) #hero .x-hero__img[src*="about-facade"]{animation-name:restKbSoft}
}

/* #63 Галерея: подпись над названием в две строки не слипается, фон под текстом чуть плотнее */
body.ac-sub .x-mosaic .gallery-card__meta small{line-height:1.4!important;text-wrap:balance}
body.ac-sub .x-mosaic .gallery-card__meta{background:linear-gradient(180deg,transparent,rgba(18,16,13,.5) 45%,rgba(18,16,13,.76))!important}
body.ac-sub .x-mosaic .gallery-card__meta strong{text-wrap:balance}

/* #67 Галерея, телефон: фото по центру, стрелки и счётчик под фото, не на нём */
@media (max-width:700px){
  .gallery-page .gallery-lightbox__panel{flex-direction:column!important;justify-content:center!important;justify-content:safe center!important;align-items:stretch!important;padding-bottom:calc(max(16px, env(safe-area-inset-bottom)) + 76px)!important;overflow:auto!important}
  .gallery-page .gallery-lightbox__figure{flex:0 0 auto!important;height:auto!important;grid-template-rows:auto auto!important;background:transparent!important}
  .gallery-page .gallery-lightbox__figure>img{height:auto!important;max-height:max(40dvh, calc(100dvh - 240px))!important;border-radius:8px 8px 0 0}
  .gallery-page .gallery-lightbox__figure figcaption>p{display:flex!important;flex:none;font-variant-numeric:lining-nums tabular-nums}
  .gallery-page .gallery-lightbox__nav{top:auto!important;bottom:max(16px, env(safe-area-inset-bottom))!important;transform:none!important;width:52px!important;height:52px!important}
  .gallery-page .gallery-lightbox__nav--prev{left:calc(50% - 64px)!important;right:auto!important}
  .gallery-page .gallery-lightbox__nav--next{right:calc(50% - 64px)!important;left:auto!important}
}

/* ===== scroll.css ===== */
/* Полосы прокрутки внутри окон и списков: тонкая золотая, без серого браузерного вида при наведении.
   Chrome/Edge/Safari: рисуем через ::-webkit-scrollbar. В Chrome эти правила работают только когда
   scrollbar-width и scrollbar-color не заданы, поэтому для этих браузеров сбрасываем их в auto.
   Firefox (нет ::-webkit-scrollbar) получает тонкую золотую полосу стандартными свойствами. */
@supports selector(::-webkit-scrollbar){
  .booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards{
    scrollbar-width:auto!important;scrollbar-color:auto!important}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar{width:10px;height:10px;background:transparent}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-button{display:none;width:0;height:0}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-track{background:transparent;margin:22px 0}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-thumb{
    background:rgba(189,139,54,.38);border-radius:10px;border:3px solid transparent;background-clip:padding-box;min-height:48px}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-thumb:hover{background-color:rgba(157,111,39,.62);border-width:2px}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-thumb:active{background-color:rgba(138,93,28,.78);border-width:2px}
  :is(.booking-modal__panel,.booking-modal__dialog,.np-list,.np-info-modal__panel,.np-info-table-wrap,.zone-modal__info,
  .location-list,.infrastructure-drawer__scroll,.infrastructure-drawer__body,body.ac-sub .x-np__cards)::-webkit-scrollbar-corner{background:transparent}
}
@supports not selector(::-webkit-scrollbar){
  .booking-modal__panel,.booking-modal__dialog{scrollbar-width:thin;scrollbar-color:rgba(189,139,54,.45) transparent}
}

/* ===== sevil.css ===== */
/* Sevil Home Clinic, «Всё рядом»: 4 фото. Четвёртое (отбеливание) занимает весь ряд,
   чтобы не оставалось пустой ячейки; кадр сдвинут вниз, надпись с края снимка не попадает в плитку. */
body.ac-sub .x-np__gallery > .np-photo:has(> img[src*="sevil-home-clinic/photo-4"]){grid-column:1 / -1!important;grid-row:auto!important;aspect-ratio:1280/670!important}
body.ac-sub .x-np__gallery > .np-photo > img[src*="sevil-home-clinic/photo-4"]{object-position:50% 45%}
/* Просмотрщик фото НП: фото всегда целиком (по высоте и ширине рамки), без обрезки */
body.ac-sub .np-lightbox__media > #npLightboxImage{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:contain!important;object-position:center}
@media (max-width:700px){
  body.ac-sub .x-np__gallery > .np-photo:has(> img[src*="sevil-home-clinic/photo-4"]){aspect-ratio:16/9!important}
}
