/* Локальный Manrope, SIL Open Font License: assets/fonts/OFL.txt. */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --color-primary: #25873A;
  --color-dark-green: #0A6631;
  --color-light-green: #46AA40;
  --color-background: #F7F8F5;
  --color-card: #FFFFFF;
  --color-text: #20231F;
  --color-text-secondary: #667067;
  --color-border: #E3E8E2;
  --gradient-brand: linear-gradient(135deg, #0A6631 0%, #25873A 55%, #46AA40 100%);
  --font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --radius-card: 18px;
  --radius-button: 12px;
  --button-height: 52px;
  --page-padding-mobile: 16px;
  --page-padding-tablet: 32px;
  --page-padding-desktop: 32px;
  --grid-gap-mobile: 16px;
  --grid-gap-tablet: 20px;
  --grid-gap-desktop: 24px;
  --page-gutter: var(--page-padding-mobile);
  --grid-gap: var(--grid-gap-mobile);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --font-h1: clamp(36px, 4.4vw, 60px);
  --font-page-h1: clamp(36px, 4vw, 56px);
  --font-compact-h1: clamp(36px, 4vw, 44px);
  --font-h2: clamp(30px, 3.2vw, 42px);
  --font-h2-compact: clamp(28px, 2.7vw, 32px);
  --font-h3: clamp(22px, 2vw, 26px);
  --font-card-title: 20px;
  --font-body: 16px;
  --font-small: 14px;
  --text-measure: 68ch;
  --radius-image: 12px;
  --radius-info: 12px;
  --radius-cta: 18px;
  --card-padding: 24px;
  --section-space-lg: var(--space-12);
  --section-space-md: var(--space-8);
  --section-space-sm: var(--space-5);
  --section-gap: var(--section-space-md);
  --header-height: 76px;
  --shadow-card: 0 4px 20px rgb(32 35 31 / 3%);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-family); font-size: var(--font-body); line-height: 1.6; color: var(--color-text); background: var(--color-background); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; line-height: 1.2; }
h1 { font-size: var(--font-h1); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--font-h2); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--font-h3); font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--color-dark-green); outline-offset: 5px; }
[hidden] { display: none !important; }
svg { display: block; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(calc(100% - var(--page-gutter) * 2), var(--container-max)); margin-inline: auto; }
.section { margin-top: var(--section-gap); }
section[id], main[id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.eyebrow { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--color-dark-green); }
.small { font-size: 14px; }
.section-heading { max-width: 100%; margin-bottom: 32px; }
.section-description { margin-top: 16px; color: var(--color-text-secondary); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--color-dark-green); font-size: 16px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--button-height); padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-button); font-size: 16px; font-weight: 600; line-height: 1.5; transition: background-color 160ms ease; }
.button-primary { background: var(--color-primary); color: var(--color-card); }
.button-primary:hover { background: var(--color-dark-green); }
.button-secondary { background: var(--color-card); border-color: var(--color-primary); color: var(--color-primary); }
.button-secondary:hover { color: var(--color-dark-green); border-color: var(--color-dark-green); }
.card { min-width: 0; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 20px; padding: 12px 20px; background: var(--color-card); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* Header: меню доступно без JavaScript, burger включается через main.js. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-card); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: 23px; font-weight: 700; color: var(--color-dark-green); letter-spacing: -0.04em; white-space: nowrap; }
.brand span { color: var(--color-primary); }
/* Фирменный логотип занимает тот же слот и не увеличивает высоту шапки. */
.site-header .brand { height: 44px; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 44px; max-width: 220px; object-fit: contain; }
.menu-toggle { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-card); color: var(--color-text); cursor: pointer; }
.close-icon, .menu-toggle[aria-expanded='true'] .menu-icon { display: none; }
.menu-toggle[aria-expanded='true'] .close-icon { display: block; }
.main-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; padding-block: 12px 20px; }
.main-nav > a:not(.button) { min-height: 44px; padding-block: 10px; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.button):hover { color: var(--color-dark-green); text-decoration: underline; }
.header-contact .header-phone { font-weight: 400; }
.header-phone { color: var(--color-text-secondary); white-space: nowrap; }
.header-cta { margin-top: 8px; }
/* На узком экране JS-меню перекрывает страницу, не сдвигая основной контент. */
.menu-enabled .main-nav { position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding-inline: var(--page-gutter); background: var(--color-card); border-bottom: 1px solid var(--color-border); box-shadow: 0 12px 20px rgb(32 35 31 / 5%); }

/* Единый image-led hero. Фото полностью заполняет блок; overlay темнее слева. */
.hero { margin-top: 0; }
.hero-surface { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 480px; overflow: hidden; border-radius: 0; background: var(--color-dark-green) url('../assets/images/apartment-interior-mobile.webp') center / cover no-repeat; color: var(--color-card); }
.hero-surface::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 35, 18, 0.78), rgba(5, 35, 18, 0.55)); }
.hero-content { flex-shrink: 0; }
.hero-copy { width: 100%; padding: 40px 0 88px; }
.hero-location { display: none; margin-bottom: 24px; font-size: 14px; }
.hero h1 { font-size: 37px; line-height: 1.08; }
.hero-description-desktop { display: none; }
.hero h1 span { display: block; }
.hero-description { max-width: 530px; margin-top: 24px; }
.hero-copy > .button { margin-top: 28px; }
.hero-copy .button:focus-visible { outline-color: var(--color-card); }
.hero-benefits { display: none; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.65; }
.hero-benefits li:not(:last-child)::after { content: ' ·'; margin-left: 8px; }

.mobile-hero-benefits { margin-top: 24px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.mobile-hero-benefits ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mobile-hero-benefits li::before { content: '✓'; margin-right: 8px; color: var(--color-primary); }
#apartments { margin-top: 40px; }

/* Официальный RC Search. Стили ограничены внешним контейнером. */
.search-section { position: relative; z-index: 2; margin-top: -32px; }
.search-panel { min-height: 106px; margin-inline: 0; padding: 24px; border-radius: 12px; background: var(--color-card); box-shadow: 0 8px 32px rgb(32 35 31 / 8%); }
.search-panel [data-instance-id='search'] { min-width: 0; max-width: 100%; }
.integration-note { margin-top: 16px; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.properties-widget { min-width: 0; min-height: 320px; }
.properties-widget [data-instance-id="list"] { min-width: 0; max-width: 100%; }

/* Свободные секции без повторяющихся белых карточек. */
.advantages-grid { display: grid;  }
.advantage-item { min-width: 0; }
.icon-box { display: inline-flex; margin-bottom: 20px; color: var(--color-primary); }
.icon-box .icon { width: 32px; height: 32px; }
.advantage-item p { max-width: 290px; margin-top: 16px; color: var(--color-text-secondary); }
.about-layout { display: grid;   align-items: center; }
.about-media { overflow: hidden; border-radius: var(--radius-image); }
.about-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-location { margin-top: 16px; margin-bottom: 24px; color: var(--color-text-secondary); font-size: 14px; }
.about-copy > p:not(.about-location) { line-height: 1.7; }
.about-copy > a { margin-top: 24px; }
.cities-grid { display: grid;   }
.city-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 330px; overflow: hidden; border-radius: 12px; background: var(--color-dark-green); color: var(--color-card); }
.city-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(5, 35, 18, 0) 25%, rgba(5, 35, 18, 0.8) 100%); }
.city-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.city-card:hover .city-image { transform: scale(1.025); }
.city-card:focus-visible { outline-offset: 6px; }
.city-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 28px; }
.city-caption p { margin-top: 8px; font-size: 14px; }
.city-photo-todo { position: absolute; top: 32px; left: 28px; right: 28px; font-size: 14px; }
.booking-steps { display: grid;   margin: 0; padding: 0; list-style: none; }
.booking-steps li { min-width: 0; }
.step-number { display: block; margin-bottom: 20px; color: var(--color-primary); font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.booking-steps p { margin-top: 16px; color: var(--color-text-secondary); }
.rules-panel { padding-block: 36px; border-block: 1px solid var(--color-border); }
.rules-grid { display: grid;   margin: 0 0 28px; }
.rules-grid dt { color: var(--color-text-secondary); font-size: 14px; }
.rules-grid dd { margin: 8px 0 0; font-size: 23px; font-weight: 600; line-height: 1.2; white-space: normal; }
.rules-grid > div { min-width: 0; }
.rules-detail { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.reviews-placeholder { color: var(--color-text-secondary); }
.todo-label { font-size: 14px; }
.reviews-placeholder p { margin-top: 12px; }
.faq-layout { display: grid;   }
.faq-layout .section-heading { margin-bottom: 0; }
.faq-layout .text-link { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--color-primary); transition: transform 160ms ease; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 40px 24px 0; color: var(--color-text-secondary); }
.faq-answer p + p { margin-top: 12px; }
.final-section { margin-bottom: var(--section-gap); }
.final-cta { padding: 48px 24px; border-radius: var(--radius-cta); background: var(--color-dark-green); color: var(--color-card); text-align: center; }
.final-cta h2 { max-width: 650px; margin-inline: auto; }
.final-cta > p { margin-top: 20px; }
.final-cta .button { margin-top: 28px; }
.final-cta .button:focus-visible { outline-color: var(--color-card); }

.site-footer { padding-block: 48px 24px; background: var(--color-card); border-top: 1px solid var(--color-border); }
.footer-grid { display: grid;  }
.footer-brand p { max-width: 290px; margin-top: 16px; color: var(--color-text-secondary); font-size: 14px; }
.footer-heading { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.site-footer li a, .pending-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.footer-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.footer-hours { margin-bottom: 8px; color: var(--color-text-secondary); font-size: 14px; }
.pending-link span { color: var(--color-text-secondary); font-size: 14px; }
.footer-bottom { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 14px; }
.legal-items { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal-items a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 48rem) {
  :root { --page-gutter: var(--page-padding-tablet); --grid-gap: var(--grid-gap-tablet); --section-gap: var(--section-space-lg); --font-body: 17px; }
  .hero { margin-top: 0; }
  .hero-surface { min-height: 620px; background-image: url('../assets/images/apartment-interior.webp'); }
  .hero-surface::before { background: linear-gradient(90deg, rgba(5, 35, 18, 0.78) 0%, rgba(5, 35, 18, 0.65) 50%, rgba(5, 35, 18, 0.10) 100%); }
  .hero-copy { max-width: none; padding: 56px 0 96px; }
  .hero-location, .hero-description-desktop { display: block; }
  .hero-description-desktop { display: inline; }
  .hero-description-mobile, .mobile-hero-benefits { display: none; }
  .hero h1 { font-size: clamp(42px, 4.4vw, 60px); line-height: 1.2; }
  .hero-description { font-size: 17px; }
  #apartments { margin-top: var(--section-gap); }
  .hero-benefits { display: flex; margin-top: 40px; }
  .search-section { margin-top: -44px; }
  .search-panel { min-height: 114px; margin-inline: 0; padding: 24px; }


  .about-media img { aspect-ratio: 1 / 1; }
  .city-card { min-height: 400px; }
  .rules-panel { padding-block: 48px; }


  .final-cta { padding: 64px 40px; }
}

@media (min-width: 64rem) {


  .about-media img { aspect-ratio: 6 / 5; }
  .city-card { min-height: 420px; }
  .city-caption { padding: 36px; }
  .city-caption h3 { font-size: 26px; }
  .city-photo-todo { left: 36px; }


  .footer-bottom { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 40px; }
  .footer-bottom > p { padding-top: 12px; white-space: nowrap; }
  .legal-items { max-width: 800px; align-items: center; justify-content: flex-end; }
}

@media (min-width: 64rem) {
  .header-inner { flex-wrap: nowrap; gap: 20px; }
  .menu-toggle { display: none; }
  .main-nav, .menu-enabled .main-nav { position: static; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; width: auto; max-height: none; padding: 0; overflow: visible; border: 0; box-shadow: none; }
  .header-contact .header-phone { margin-left: 8px; color: var(--color-text); font-size: 14px; font-weight: 600; }
  .header-contact .header-phone:hover { color: var(--color-primary); }
  .header-cta { min-height: 46px; margin: 0 0 0 4px; padding: 10px 16px; font-size: 15px; font-weight: 600; }
}

@media (min-width: 75rem) {
  .section-heading { margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Общие контакты Header: подписи в мобильном меню, компактные знаки на desktop. */
.header-contact { display: grid; gap: 8px; margin-block: 16px 8px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.header-contact .header-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.header-messenger { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-card); font-size: 14px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease; }
.header-messenger:hover { background: rgba(37, 135, 58, 0.08); border-color: var(--color-primary); }
.header-messenger img, .footer-messenger img { display: block; object-fit: contain; flex-shrink: 0; }
.footer-messenger { gap: 10px; }
@media (min-width: 64rem) {
  .header-contact { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; border: 0; }
  .phone-mobile-label, .header-messenger span { display: none; }
  .header-contact .header-phone { margin-inline: 8px; font-size: 16px; font-weight: 600; color: var(--color-text); }
  .header-messenger { justify-content: center; width: 40px; min-height: 40px; height: 40px; padding: 6px; border: 0; background: transparent; opacity: 0.95; transition: transform 180ms ease, opacity 180ms ease; }
  .header-messenger img { width: 28px; height: 28px; }
  .header-messenger:hover { background: transparent; transform: translateY(-1px) scale(1.07); opacity: 1; }
  .header-messenger:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
}
@media (min-width: 64rem) and (max-width: 74.999rem) {
  .header-contact .header-phone { display: none; }
}

/* Компактный Footer: все ссылки остаются доступны без раскрытия. */
@media (max-width: 600px) {
  .site-footer { padding-block: 32px 20px; }

  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 8px; }
  .footer-heading { margin-bottom: 8px; }
  .footer-grid > div:last-child ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .footer-hours { margin-bottom: 0; }
  .footer-bottom { margin-top: 24px; padding-top: 16px; gap: 8px; }
  .legal-items { display: flex; flex-wrap: wrap; gap: 8px 16px; }
}

/* Длинные юридические ссылки переносятся внутри компактного Footer. */
.legal-items { display: flex; flex-wrap: wrap; gap: 8px 20px; min-width: 0; }
.legal-items a { overflow-wrap: anywhere; }

/* Резерв Properties главной по измеренной выдаче: 5 объектов, без фиксированной высоты. */
.properties-widget.properties-reserved { min-height: 2701px; }
@media (min-width: 64rem) {
  .properties-widget.properties-reserved { min-height: 1096px; }
}

/* Нейтральный skeleton только главной: размеры текущих пяти карточек RC. */
.properties-loading { position: relative; }
.properties-skeleton { position: absolute; inset: 0 0 auto; z-index: 1; display: grid; gap: 24px; }
.properties-skeleton[hidden] { display: none; }
.properties-skeleton-item { height: 521px; display: grid; grid-template-rows: 240px 174px 107px; overflow: hidden; background: var(--color-card); }
.skeleton-photo { background: #E3E8E2; }
.skeleton-copy { padding: 24px; }
.skeleton-line { display: block; width: 75%; height: 12px; margin-bottom: 14px; border-radius: 3px; background: #E3E8E2; }
.skeleton-line-title { width: 92%; height: 20px; }
.skeleton-line-short { width: 45%; }
.skeleton-features { display: flex; gap: 12px; margin-top: 20px; }
.skeleton-features span { width: 36px; height: 24px; border-radius: 3px; background: #EDF2EC; }
.skeleton-action { padding: 12px 24px; }
.skeleton-action .skeleton-line { margin-bottom: 8px; }
.skeleton-button { display: block; width: 100%; height: 32px; border-radius: 6px; background: #EDF2EC; }
.properties-loading > .integration-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 64rem) {
  .properties-skeleton-item { height: 200px; grid-template-rows: none; grid-template-columns: 28% 1fr 23%; }
  .skeleton-action { padding: 36px 24px; }
  .skeleton-button { margin-top: 24px; }
}

.city-image-pyatigorsk { object-position: 42% 50%; }
.city-image-essentuki { object-position: 35% 55%; }

/* Homepage advantages: equal text zones without cards. */
#advantages-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }

#advantages .advantage-item { display: grid; grid-template-rows: 32px auto 1fr; justify-items: center; align-content: start; gap: 16px; text-align: center; }
#advantages .icon-box { margin: 0; }
#advantages h3 { max-width: 240px; font-size: 18px; font-weight: 600; line-height: 1.25; }
#advantages .advantage-item p { max-width: 290px; margin: 0; font-size: 15px; line-height: 1.6; }
@media (min-width: 350px) {

  #advantages .advantage-item { grid-template-rows: 32px 68px 1fr; }
  #advantages h3 { align-self: center; }
}
@media (min-width: 768px) {
  #advantages .advantage-item { grid-template-rows: 32px 50px 1fr; }
  #advantages h3 { font-size: 20px; }
  #advantages .advantage-item p { font-size: 16px; }
}


/* Compact logo within the unchanged mobile Header/Footer layout. */
@media (max-width: 767px) { .brand-logo { height: 38px; } }

/* Homepage service section: readable copy beside the replaceable interior photo. */
#about .about-copy { min-width: 0; max-width: 650px; }
#about .about-copy > p:not(.about-location) { line-height: 1.7; }
#about .about-copy > p:not(.about-location) + p { margin-top: 16px; }
#about .about-location { margin-top: 12px; margin-bottom: 20px; }
#about .about-copy > a { margin-top: 24px; }
@media (max-width: 767px) {
  #about-title { font-size: 30px; line-height: 1.2; }

}

/* Homepage booking route: compact mobile list, four aligned desktop steps. */

:is(#booking, .owners-page) .booking-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-content: start; }
:is(#booking, .owners-page) .step-number { grid-row: 1 / 3; margin: 0; font-size: 48px; }
:is(#booking, .owners-page) .booking-steps h3 { font-size: 20px; line-height: 1.3; }
:is(#booking, .owners-page) .booking-steps p { grid-column: 2; margin: 0; line-height: 1.6; }
@media (min-width: 1024px) {
  :is(#booking, .owners-page) .booking-steps { position: relative;   }
  :is(#booking, .owners-page) .booking-steps::before { content: ''; position: absolute; top: 80px; left: 0; right: 0; height: 1px; background: var(--color-border); }
  :is(#booking, .owners-page) .booking-steps li { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px auto 1fr; row-gap: 24px; }
  :is(#booking, .owners-page) .booking-steps li::before { content: ''; position: absolute; top: 77px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--color-border); }
  :is(#booking, .owners-page) .step-number { grid-row: auto; font-size: 64px; }
  :is(#booking, .owners-page) .booking-steps p { grid-column: 1; }
}

/* Real guest reviews: native scrolling, lightweight cards, no aggregate rating. */
.reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.reviews-heading .section-heading { margin-bottom: 0; }
.review-controls { display: flex; flex-shrink: 0; gap: 8px; }
.review-controls button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-border); border-radius: 50%; background: transparent; color: var(--color-primary); cursor: pointer; }
.review-controls button:hover { background: var(--color-card); }
.review-controls .review-pause { width: auto; padding-inline: 16px; border-radius: var(--radius-info); font: inherit; font-size: var(--font-small); font-weight: 600; }
.review-carousel { --review-columns: 1; display: flex; align-items: stretch; gap: var(--grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; padding-bottom: 12px; }
.review-card { flex: 0 0 calc((100% - (var(--review-columns) - 1) * var(--grid-gap)) / var(--review-columns)); min-width: 0; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-card); scroll-snap-align: start; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author > div { min-width: 0; }
.review-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: #EDF2EC; color: var(--color-primary); font-weight: 600; }
.review-author h3 { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.review-date { margin-top: 4px; font-size: 13px; color: var(--color-text-secondary); }
.review-stars { margin-block: 18px 14px; color: #B48A3E; font-size: 17px; letter-spacing: 2px; }
.review-text { font-size: 15px; line-height: 1.65; overflow-wrap: break-word; }
.reviews-enhanced .review-text:not(.is-expanded) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.review-expand { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin-top: 12px; border: 0; background: none; color: var(--color-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.review-source { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding-top: 16px; color: var(--color-text-secondary); font-size: 14px; }
.review-source:hover { color: var(--color-primary); }
.reviews-all { margin-top: 20px; }
@media (max-width: 767px) { .reviews-heading { display: block; } .review-controls { margin-top: 20px; } }
@media (min-width: 768px) { .review-carousel { --review-columns: 2; } .review-card { padding: 28px; } }
@media (min-width: 1100px) { .review-carousel { --review-columns: 3; } }

/* Keep long action labels inside their content container. */
.button { min-width: 0; max-width: 100%; text-align: center; }

/* Master layout: one twelve-column grid, shared by page compositions. */
@media (min-width: 80rem) {
  :root { --page-gutter: var(--page-padding-desktop); --grid-gap: var(--grid-gap-desktop); }
}
.layout-grid, .hero-content, .about-layout, .cities-grid, .booking-steps,
.rules-grid, .rules-overview dl, .faq-layout, .footer-grid, .city-editorial, .city-guide,
.guide-place, .guide-practical, .owners-hero, .owners-services,
.owners-geography, .owners-benefits, .page-about .about-info-hero,
.page-about .about-benefits, .page-about .about-city-grid,
.page-about .about-owner-cta, .info-columns, .info-themes,
.contacts-card-grid, .contacts-help-grid, .contacts-requisites,
#advantages .advantages-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-4);
}
.layout-grid > *, .hero-content > *, .about-layout > *, .cities-grid > *,
.booking-steps > *, .rules-grid > *, .rules-overview dl > *, .faq-layout > *, .footer-grid > *,
.city-editorial > *, .city-guide > *, .guide-place > *, .guide-practical > *,
.owners-hero > *, .owners-services > *, .owners-geography > *,
.owners-benefits > *, .page-about .about-info-hero > *,
.page-about .about-benefits > *, .page-about .about-city-grid > *,
.page-about .about-owner-cta > *, .info-columns > *, .info-themes > *,
.contacts-card-grid > *, .contacts-help-grid > *, .contacts-requisites > *,
#advantages .advantages-grid > * {
  grid-column: span 12;
  min-width: 0;
}
/* Compact mobile subdivisions retain the same twelve-column tracks. */
.rules-grid > *, .rules-overview dl > * { grid-column: span 6; }
.footer-grid > div { grid-column: span 6; }
.footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: span 12; }
.owners-services, .owners-benefits, .page-about .about-benefits,
.contacts-card-grid, .contacts-help-grid { row-gap: var(--space-3); }
.hero-copy { max-width: none; }
.info-copy p, .city-editorial p, .guide-place p, .guide-practical p,
.about-copy p, .about-hero-copy p { max-width: var(--text-measure); }
.section-heading p { margin-top: var(--space-2); }
.info-columns > h2 { font-size: var(--font-h2-compact); }
@media (min-width: 350px) {
  #advantages .advantages-grid > * { grid-column: span 6; }
}
@media (min-width: 48rem) {
  .hero-content > .hero-copy { grid-column: span 8; }
  .about-layout > *, .cities-grid > *, .guide-place > *, .owners-hero > *,
  .owners-services > *, .owners-geography > *, .owners-benefits > *,
  .page-about .about-info-hero > *, .page-about .about-benefits > *,
  .page-about .about-city-grid > *, .info-themes > *, .booking-steps > *,
  .contacts-card-grid > *, .contacts-help-grid > * { grid-column: span 6; }
  .info-columns > :first-child, .city-editorial > :first-child { grid-column: span 4; }
  .info-columns > :last-child, .city-editorial > :last-child { grid-column: span 8; }
  .guide-practical > :first-child { grid-column: span 8; }
  .guide-practical > :last-child { grid-column: span 4; }
  .rules-grid > *, .rules-overview dl > * { grid-column: span 3; }
  .footer-grid > div, .footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: span 6; }
  .contacts-card-grid > .contact-card-phone { grid-column: span 12; }
  .contacts-help-grid > :last-child { grid-column: span 12; }
  .contacts-requisites > .contacts-requisites-card { grid-column: span 8; }
}
@media (min-width: 64rem) {
  #advantages .advantages-grid > *, .booking-steps > *, .owners-services > *,
  .footer-grid > div, .footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: span 3; }
  .contacts-card-grid > *, .contacts-card-grid > .contact-card-phone,
  .contacts-help-grid > *, .contacts-help-grid > :last-child, .info-themes > * { grid-column: span 4; }
  .faq-layout > :first-child { grid-column: span 4; }
  .faq-layout > :last-child { grid-column: span 8; }
  .city-guide > :first-child, .page-about .about-owner-cta > :first-child { grid-column: span 8; }
  .city-guide > :last-child, .page-about .about-owner-cta > :last-child { grid-column: span 4; }
  .city-guide > .button { justify-self: end; }
}
@media (max-width: 349px) {
  .rules-grid > * { grid-column: span 12; }
}

/* Monochrome brand signs; exact official paths live in messengers.svg. */
.messenger-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }
.header-messenger .messenger-icon, .footer-messenger .messenger-icon { color: var(--color-primary); }
.footer-messenger .messenger-icon, .owners-contact-actions .messenger-icon { width: 22px; height: 22px; }
.contact-icon .messenger-icon { width: 24px; height: 24px; }
@media (min-width: 64rem) {
  .header-messenger { width: 44px; min-height: 44px; height: 44px; padding: 10px; }
}
