/* ══ BURO — mobile polish (all pages) ══
   Breakpoints: phone ≤767px | tablet 768–1023px | desktop ≥1024px
   ══ */

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

/* ── Images: no shift, no overflow ── */
img,
video,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Eden — full-bleed cover photos must fill their frame */
.page-eden .hero-bg-photo,
.page-eden .revenue-photo img,
.page-eden .financing-photo img,
.page-eden .exit-photo img,
.page-eden .security-photo img,
.page-eden .legal-photo img,
.page-eden .economics-photo-bg img {
  max-width: none;
  height: 100%;
}

.partner-logo img,
.logo-img-header,
.footer-logo-img,
.nav-logo img,
.trust-op-logo,
.trust-builder-logo,
.trust-award-img,
.trust-finance-logo {
  object-fit: contain;
  object-position: center;
}

.hero-pan-img,
.case-img-wrap img,
.loc-photo-wrap img,
.case-full-photo img,
.loc-collage-item img,
.gallery-slide img {
  object-fit: cover;
  object-position: center;
}

.case-img-wrap img,
.loc-photo-wrap img,
.case-full-photo img,
.hero-pan-img,
.gallery-slide img {
  width: 100%;
  height: 100%;
}

.b-founders .founders-photo {
  width: 100%;
  height: auto !important;
  object-fit: unset !important;
  object-position: center center !important;
}

/* Background-image blocks */
.room-card-hero-photo,
.project-card-icon,
.parking-slide,
.region-card,
.hero-bg,
.hero-bg-img,
.photo-strip-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Icons: stable, centered, no rolling ── */
.service-icon,
.benefit-icon,
.faq-icon,
.stat-icon,
.amenity-icon-wrap,
.project-card-icon,
.trust-legal-icon,
.parking-reason-icon,
.header-icon-btn,
i.ti,
svg {
  flex-shrink: 0;
}

.service-icon,
.amenity-icon-wrap,
.benefit-icon,
.trust-legal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

i.ti {
  font-family: 'tabler-icons', sans-serif !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  vertical-align: middle;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
}

/* ── Text: even wrapping, no ugly breaks ── */
p,
h1, h2, h3, h4,
li,
td, th,
label,
.case-title,
.section-title,
.hero-title,
.region-name,
.faq-question span {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ── Touch & safe area ── */
.header-wrap {
  padding-left: max(20px, env(safe-area-inset-left)) !important;
  padding-right: max(20px, env(safe-area-inset-right)) !important;
}

@media (max-width: 1023px) {
  /* Типографика: не ломаем неразрывные пробелы после предлогов */
  p,
  h1, h2, h3, h4,
  li,
  td, th,
  label,
  .case-title,
  .section-title,
  .hero-title,
  .region-name,
  .faq-question span,
  .essence-body,
  .founders-text,
  .cta-sub,
  .step-desc,
  .loc-desc,
  .service-desc {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  .header-static {
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: 12px !important;
  }

  .logo-img-header {
    max-height: 32px !important;
    max-width: 110px !important;
  }

  /* Index hero — mobile/tablet: simple audience text blocks (no icon cards) */
  .hero-collage-section {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-loc-labels {
    order: 1;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 10px !important;
    padding: 0 12px 6px !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-loc-label {
    flex: unset !important;
    font-size: 11.5px !important;
    letter-spacing: 0.06em !important;
    line-height: 1.3 !important;
    padding: 0 2px 14px !important;
    min-height: 42px;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: center;
    white-space: normal !important;
    word-break: normal !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-loc-label:active {
    opacity: 0.78;
  }

  .hero-loc-label.hl-active::after {
    width: 22px !important;
  }

  .hero-panorama {
    order: 2;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-pan-media {
    height: clamp(240px, 62vw, 420px) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-pan-cta {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #F5F0E8 !important;
    padding: 16px 16px 18px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    border-top: 1px solid rgba(61, 44, 90, 0.08) !important;
  }

  .hero-pan-copy {
    display: none !important;
  }

  .hero-pan-title {
    display: none !important;
  }

  .hero-slide-btns {
    position: static !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    margin: 0 !important;
    line-height: normal !important;
  }

  .hero-slide-btn {
    font-size: 11px !important;
    padding: 13px 20px !important;
    letter-spacing: 0.06em !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
    display: none !important;
    border: 1px solid #7B5EA7 !important;
    border-radius: 3px !important;
    background: #7B5EA7 !important;
    box-shadow: 0 4px 24px rgba(123, 94, 167, 0.45) !important;
    backdrop-filter: none !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .hero-slide-btn.slide-btn-active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .hero-audiences {
    order: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #F5F0E8 !important;
    border-top: 1px solid rgba(61, 44, 90, 0.08) !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    overflow: visible !important;
    margin-top: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .hero-audience-item {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(61, 44, 90, 0.08) !important;
    padding: 14px 16px !important;
    text-align: left !important;
    box-sizing: border-box;
    gap: 0 !important;
  }

  .hero-audience-item:hover {
    background: transparent !important;
  }

  .hero-audience-item:first-child {
    padding-top: 4px !important;
    border-top: 1px solid rgba(61, 44, 90, 0.08) !important;
  }

  .hero-audience-item:last-child {
    border-bottom: none !important;
  }

  .hero-audience-icon,
  .hero-audience-item img,
  .hero-audience-item svg,
  .hero-audience-item [class*="icon"],
  .hero-audience-item .ti {
    display: none !important;
  }

  .hero-audience-role {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #3D2C5A !important;
    margin-bottom: 4px !important;
  }

  .hero-audience-desc {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #5c5268 !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

}

footer .container {
  padding-bottom: max(32px, env(safe-area-inset-bottom)) !important;
}

a,
button,
.btn-primary,
.btn-secondary,
[onclick] {
  touch-action: manipulation;
}

/* ── Bitrix forms ── */
.final-form-b24,
.contact-form-wrap,
.modal-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.page-eden #cursor {
    display: none !important;
  }
}

/* ═══ ≤ 768px — phones & small tablets ═══ */
@media (max-width: 768px) {

  .hero-title br,
  .inner-hero-title br,
  .final-form-title br {
    display: none;
  }

  /* Founders — сохраняем переносы в заголовке */
  .b-founders .section-title br {
    display: block !important;
  }

  .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  /* Header */
  .logo-img-header {
    max-height: 34px !important;
    max-width: 120px !important;
  }

  /* Index hero — phone header offset */
  .hero-collage-section {
    padding-top: 16px !important;
    padding-bottom: 0 !important;
  }

  /* Index — mobile section rhythm */
  .b-essence {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
  }

  .b-founders {
    padding-top: 28px !important;
    padding-bottom: 0 !important;
  }

  .b-directions {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .b-locations {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .locations-title--desktop {
    display: none !important;
  }

  .locations-title--mobile {
    display: block !important;
  }

  .b-cases {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .b-process .process-inner {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  .b-partners {
    padding-top: 32px !important;
    padding-bottom: 64px !important;
  }

  .b-cta {
    padding-top: 32px !important;
    padding-bottom: 64px !important;
  }

  .hero-loc-labels {
    padding-top: 4px !important;
    padding-bottom: 6px !important;
  }

  .hero-loc-label {
    font-size: 11px !important;
    min-height: 44px;
  }

  .hero-audiences {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  .hero-audience-item:first-child {
    padding-top: 4px !important;
  }

  .hero-pan-media {
    height: clamp(260px, 66vw, 380px) !important;
  }

  /* Cases — index mobile */
  .b-cases .cases-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px !important;
  }

  .b-cases .cases-header .section-label {
    margin-bottom: 6px !important;
  }

  .b-cases .cases-header .cases-all-link--header {
    display: none !important;
  }

  .b-cases .cases-all-link--mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding-top: 0;
    font-family: var(--F, Georgia, serif);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--graphite, #2c2c3a);
    text-decoration: none;
    border-bottom: 2px solid var(--accent, #7b5ea7);
    padding-bottom: 4px;
    box-sizing: border-box;
  }

  .b-cases .cases-all-link {
    font-size: 10px;
    padding-bottom: 3px;
  }

  .b-cases .cases-grid {
    gap: 20px !important;
  }

  .b-cases .case-card {
    height: auto !important;
  }

  .b-cases .case-img-wrap {
    height: clamp(200px, 56vw, 260px) !important;
  }

  .b-cases .case-body {
    padding: 14px 14px 16px !important;
  }

  .b-cases .case-badges-row {
    min-height: 0 !important;
    margin-bottom: 8px !important;
    gap: 6px;
    flex-wrap: wrap;
  }

  .b-cases .case-badge {
    font-size: 9px;
    padding: 5px 10px;
    line-height: 1.2;
  }

  .b-cases .case-title {
    min-height: 0 !important;
    margin-bottom: 0 !important;
    font-size: 16px !important;
    line-height: 1.28 !important;
    padding-bottom: 4px;
    hyphens: none !important;
    word-break: normal !important;
  }

  .b-cases .case-metrics {
    margin-top: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(30, 21, 48, 0.08) !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 5px !important;
    align-items: stretch !important;
  }

  .b-cases .case-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    min-width: 0 !important;
    padding: 0 1px !important;
  }

  .b-cases .case-metric-val {
    min-height: 26px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .b-cases .case-metric-lbl {
    min-height: 22px !important;
    margin-top: 3px !important;
    font-size: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .b-cases .case-link {
    margin-top: 10px !important;
    padding-top: 0 !important;
    display: inline-flex !important;
    width: 100%;
    justify-content: flex-start;
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
  }

  /* Partners */
  .partners-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    min-height: 130px;
    height: auto;
  }

  .partner-logo img {
    width: min(200px, 94%);
    height: 88px;
    object-fit: contain;
    object-position: center;
  }

  .partner-logo--sovcombank img,
  .partner-logo--vtb img {
    width: min(230px, 96%);
    height: 108px;
  }

  .partner-logo--metrofond img,
  .partner-logo--eden img {
    width: min(170px, 90%);
    height: 88px;
  }

  /* CTA — ровные строки, без переноса слов (index) */
  #cta .cta-title {
    text-align: center !important;
    font-size: clamp(21px, 5.6vw, 28px) !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    padding-left: max(24px, env(safe-area-inset-left)) !important;
    padding-right: max(24px, env(safe-area-inset-right)) !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  #cta .cta-title-line {
    display: block !important;
    white-space: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  #cta .cta-sub {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  /* Process — без переноса слов через дефис */
  .b-process .step-title,
  .b-process .step-desc {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  /* Essence — без переноса слов через дефис */
  #essence .section-title br {
    display: none;
  }

  #essence .section-title,
  #essence .essence-note,
  #essence .essence-body {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  /* Locations grid on index */
  .locations-grid {
    grid-template-columns: 1fr !important;
  }

  .loc-card {
    height: auto !important;
    min-height: 280px;
  }

  /* Directions — все 5 карточек столбиком */
  .directions-grid {
    display: none !important;
  }

  .dir-swiper {
    display: block !important;
    overflow: visible !important;
    margin-top: 28px !important;
  }

  .dir-swiper-track {
    flex-direction: column !important;
    transform: none !important;
    gap: 10px !important;
  }

  .dir-card-m {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .dir-dots {
    display: none !important;
  }

  /* Founders */
  .b-founders .section-title {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    line-height: 1.15 !important;
  }

  .founders-text,
  .founders-quote p,
  .founder-name,
  .founder-desc {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
  }

  .founders-text,
  .founders-quote p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .founder-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  /* Modal */
  .modal-inner {
    padding: 28px 18px 22px !important;
    max-height: 88vh !important;
  }

  .modal-title {
    font-size: 22px !important;
    color: var(--graphite) !important;
  }

  .modal-sub {
    font-size: 14px !important;
    color: rgba(44, 44, 58, 0.72) !important;
    margin-bottom: 16px !important;
  }

  .modal-form .section-label.gold {
    color: var(--gold) !important;
    opacity: 1 !important;
  }

  /* Contact channels — grid, not broken flex */
  .chd-channels {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .chd-channel {
    width: 100%;
  }

  /* Services anchor nav */
  .anchor-nav-line {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .anchor-nav-line a {
    white-space: normal !important;
    flex: 1 1 calc(50% - 8px) !important;
    width: auto !important;
    text-align: center;
    font-size: 11px !important;
  }

  /* Locations page specs */
  .loc-specs {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .loc-specs::before {
    display: none !important;
  }

  .loc-spec-row {
    padding: 14px 16px 16px 20px !important;
    gap: 6px !important;
  }

  .loc-spec-key {
    font-size: 9px !important;
    letter-spacing: .18em !important;
  }

  .loc-spec-key::before {
    display: none !important;
  }

  .loc-spec-val {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .loc-desc,
  .loc-hero-sub,
  .loc-cta-sub {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* Cases filters — wrap on cases page (see cases.css) */

  /* Eden gallery — rules in eden.css (.page-eden) */
  body:not(.page-eden) .gallery-track-wrap,
  body:not(.page-eden) .gallery-section {
    max-width: 100%;
    overflow: hidden;
  }

  body:not(.page-eden) .gallery-slide:first-child,
  body:not(.page-eden) .gallery-slide:not(:first-child) {
    min-width: 0 !important;
    width: 82vw !important;
    max-width: calc(100vw - 32px) !important;
    height: clamp(220px, 55vw, 320px) !important;
  }

  .economics-photo-table,
  .economics-photo-highlights {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.page-eden) .stats-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  .stat-item {
    min-width: 0;
    padding: 14px 12px !important;
  }

  .stat-value {
    white-space: normal !important;
    font-size: 14px !important;
  }

  /* Dombay */
  .regions-lead,
  .location-lead,
  .economics-lead,
  .parking-lead {
    font-size: clamp(14px, 3.8vw, 17px) !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
  }

  .regions-lead {
    margin-bottom: 32px !important;
  }

  body.page-dombay .trust-strip {
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow-x: hidden !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px 10px !important;
    padding: 10px 12px !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-dombay .trust-strip-label {
    font-size: 7px !important;
    letter-spacing: 0.16em !important;
    width: auto !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.page-dombay .trust-item {
    font-size: clamp(8px, 2.35vw, 10px);
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap !important;
  }

  body.page-dombay .trust-dot {
    width: 3px;
    height: 3px;
    flex-shrink: 0;
  }

  .calc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calc-table {
    min-width: 520px;
  }

  .project-card {
    align-items: flex-start !important;
  }

  .project-card-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    background-size: cover !important;
    background-position: center !important;
  }

  .room-card-hero-photo {
    height: clamp(200px, 52vw, 280px) !important;
  }

  .rooms-grid-custom {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100%;
    overflow: hidden;
  }

  .room-card-custom {
    min-width: 0;
    max-width: 100%;
  }

  .parking-slider {
    height: clamp(220px, 58vw, 340px) !important;
  }

  .parking-slide {
    background-size: cover !important;
    background-position: center !important;
  }

  .region-card {
    min-height: 420px !important;
  }

  .nav-cta {
    padding: 8px 14px !important;
    max-width: calc(100vw - 120px);
  }

  .nav-cta span:first-child {
    font-size: 7px !important;
  }

  .nav-cta span:last-child {
    font-size: 11px !important;
    white-space: nowrap;
  }

  .hero-switcher {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 16px;
  }

  .economics-new-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .economics-new-left {
    position: static !important;
  }

  .trust-builder-grid,
  .trust-finance-grid,
  .trust-operators-grid,
  .trust-awards-grid {
    grid-template-columns: 1fr !important;
  }

  .trust-builder-logo,
  .trust-op-logo {
    height: auto;
    max-height: 80px;
    min-height: 56px;
    width: auto;
    max-width: min(180px, 70vw);
    object-fit: contain;
    margin: 0;
    align-self: flex-start;
  }

  .trust-finance-logo {
    height: auto;
    max-height: 56px;
    min-height: 40px;
    width: auto;
    max-width: min(140px, 60vw);
    object-fit: contain;
  }

  .trust-award-img-wrap {
    height: 88px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .footer-legal {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }
}

/* ═══ ≤ 480px — small phones (iPhone SE) ═══ */
@media (max-width: 480px) {

  .facts-row {
    grid-template-columns: 1fr !important;
  }

  .cases-grid,
  .process-steps {
    grid-template-columns: 1fr !important;
  }

  .partners-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.page-eden) .stats-strip {
    grid-template-columns: 1fr !important;
  }

  .page-eden .stats-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  body:not(.page-eden) .gallery-slide:first-child,
  body:not(.page-eden) .gallery-slide:not(:first-child) {
    width: 88vw !important;
  }

  .btn-primary,
  .btn-secondary,
  .btn-primary-white {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .loc-hero-title,
  .chd-title,
  .inner-hero-title {
    font-size: clamp(24px, 8vw, 32px) !important;
  }
}

/* ═══ 481–767px — large phones ═══ */
@media (min-width: 481px) and (max-width: 767px) {
  .rooms-grid-custom {
    grid-template-columns: 1fr 1fr !important;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ═══ Hero (about + services) — mobile text & photo ═══ */
@media (max-width: 1023px) {
  .about-hero-photo .ahp-mobile-top,
  .services-hero-photo .ahp-mobile-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: max(24px, calc(env(safe-area-inset-top) + 12px))
      max(20px, env(safe-area-inset-right))
      16px
      max(20px, env(safe-area-inset-left));
  }

  .about-hero-photo .ahp-mobile-bottom {
    padding: 20px
      max(20px, env(safe-area-inset-right))
      max(28px, calc(env(safe-area-inset-bottom) + 16px))
      max(20px, env(safe-area-inset-left));
  }

  .about-hero-photo .section-label,
  .services-hero-photo .section-label {
    flex-shrink: 0;
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }

  .about-hero-photo .ahp-title,
  .services-hero-photo .ahp-title {
    flex-shrink: 0;
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.26;
    letter-spacing: -0.02em;
    max-width: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none !important;
  }

  .about-hero-photo .ahp-title-line,
  .services-hero-photo .ahp-title-line {
    display: block;
    white-space: normal;
    max-width: 100%;
  }

  .about-hero-photo .ahp-sub,
  .services-hero-photo .ahp-sub {
    font-size: clamp(14px, 3.9vw, 16px);
    line-height: 1.58;
    color: rgba(248, 247, 244, 0.78);
    max-width: 100%;
    overflow-wrap: normal;
    hyphens: none !important;
    word-break: normal;
  }

  body.page-services .services-hero-photo .ahp-img-right {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .about-hero-photo .ahp-img-right img,
  body.page-services .services-hero-photo .ahp-img-right img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none !important;
    object-fit: cover;
    height: clamp(280px, 62vw, 380px);
  }

  .about-hero-photo:not(.services-hero-photo) .ahp-img-right img {
    object-position: center center;
  }

  body.page-services .services-hero-photo .ahp-img-right img {
    object-position: center 24%;
  }

  .services-hero-photo .ahp-mobile-bottom {
    text-align: left;
    padding: 14px
      max(20px, env(safe-area-inset-right))
      max(28px, calc(env(safe-area-inset-bottom) + 16px))
      max(20px, env(safe-area-inset-left));
  }

  .services-list-intro {
    padding: 40px 0 0;
  }

  .services-list-heading {
    font-size: clamp(20px, 5.2vw, 26px);
    line-height: 1.3;
    max-width: none;
  }

  body.page-services .services-list-intro + .b-service {
    padding-top: 0;
  }

  body.page-services .b-service {
    padding: 0;
  }

  body.page-services .b-service + .b-service {
    padding-top: 0;
  }

  body.page-services .b-service:last-of-type {
    padding-bottom: 0;
  }

  body.page-services .service-included,
  body.page-services .service-faq,
  body.page-services .steps-4 {
    margin-bottom: 20px;
  }

  body.page-services .service-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  body.page-services .service-cta .btn-primary,
  body.page-services .service-cta .btn-text {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  body.page-services .service-grid {
    gap: 24px;
  }

  body.page-services .b-service .container {
    padding-top: 24px !important;
    padding-bottom: 0 !important;
  }

  body.page-services .b-service:last-of-type .container {
    padding-bottom: 0 !important;
  }

  body.page-services .about-cta {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
  }

  body.page-services .about-cta .section-title {
    margin-bottom: 20px;
  }

  body.page-services .about-cta .cta-sub {
    margin-bottom: 24px;
  }

  body.page-services .about-cta .cta-btns {
    margin-bottom: 0;
  }
}

@media (max-width: 360px) {
  .about-hero-photo .ahp-title,
  .services-hero-photo .ahp-title {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.24;
  }

  .services-hero-photo .ahp-sub {
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.5;
  }

  .services-list-heading {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.32;
  }
}

/* About ecosystem page — override global hyphens:auto */
body.page-about,
body.page-about * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
}
body.page-about p,
body.page-about h1,
body.page-about h2,
body.page-about h3,
body.page-about h4,
body.page-about li,
body.page-about a,
body.page-about blockquote,
body.page-about .section-label,
body.page-about .section-title,
body.page-about .manifest-text-big,
body.page-about .ecosystem-intro,
body.page-about .contour-title,
body.page-about .contour-func,
body.page-about .contour-right p,
body.page-about .sochi-about-watermark,
body.page-about .sochi-about-text p,
body.page-about .sochi-about-quote p,
body.page-about .ahp-title,
body.page-about .ahp-title-line,
body.page-about .ahp-sub,
body.page-about .cta-sub,
body.page-about .btn-primary-white,
body.page-about .btn-secondary,
body.page-about .footer-col-title,
body.page-about .footer-nav a,
body.page-about .footer-legal,
body.page-about .footer-copy,
body.page-about .footer-contact,
body.page-about .breadcrumbs,
body.page-about .breadcrumbs a,
body.page-about .breadcrumbs .current {
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

@media (max-width: 1023px) {
  body.page-about .about-hero-photo .ahp-sub {
    overflow-wrap: normal !important;
    hyphens: none !important;
    word-break: normal !important;
  }
}

@media (max-width: 768px) {
  body.page-about .b-manifest-simple {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
  }

  body.page-about .b-manifest-simple .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  body.page-about .manifest-simple-wrap {
    max-width: none;
    width: 100%;
  }

  body.page-about .manifest-simple-wrap .section-label {
    margin-bottom: 6px;
    font-size: 9px;
  }

  body.page-about .manifest-text-big {
    margin: 0;
    font-size: clamp(15px, 4.1vw, 17px);
    line-height: 1.55;
    max-width: none;
  }

  body.page-about .b-sochi-about {
    padding-top: 32px !important;
    padding-bottom: 28px !important;
  }

  body.page-about .b-sochi-about .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  body.page-about .b-sochi-about .section-title {
    margin-bottom: 20px !important;
  }

  body.page-about .sochi-about-text p {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.72;
    margin-bottom: 22px;
    text-wrap: pretty;
  }

  body.page-about .sochi-about-text p:last-of-type {
    margin-bottom: 20px;
  }

  body.page-about .b-sochi-about .sochi-about-watermark {
    margin-bottom: 24px !important;
  }

  body.page-about .b-sochi-about .sochi-about-quote {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 18px 20px;
  }

  body.page-about .sochi-about-quote p {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.55;
    text-wrap: pretty;
  }

  body.page-about .b-ecosystem {
    padding-top: 32px !important;
    padding-bottom: 0 !important;
  }

  body.page-about .b-ecosystem .section-title {
    margin-bottom: 16px !important;
  }

  body.page-about .b-ecosystem .ecosystem-intro {
    margin-bottom: 24px !important;
  }

  body.page-about .about-cta {
    padding-top: 32px !important;
    padding-bottom: 64px !important;
  }
}

/* Services (Контуры работы) page — override global hyphens:auto */
body.page-services p,
body.page-services h1,
body.page-services h2,
body.page-services h3,
body.page-services h4,
body.page-services li,
body.page-services blockquote,
body.page-services .section-label,
body.page-services .section-title,
body.page-services .ahp-title,
body.page-services .ahp-title-line,
body.page-services .ahp-sub,
body.page-services .services-list-heading,
body.page-services .breadcrumbs,
body.page-services .breadcrumbs a,
body.page-services .breadcrumbs .current,
body.page-services .service-num,
body.page-services .service-title,
body.page-services .service-tag,
body.page-services .service-desc,
body.page-services .highlight-label,
body.page-services .service-highlight p,
body.page-services .included-title,
body.page-services .included-list li,
body.page-services .faq-question,
body.page-services .faq-answer,
body.page-services .step-4-num,
body.page-services .step-4-title,
body.page-services .step-4-text,
body.page-services .step-4-result,
body.page-services .cta-sub {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

@media (max-width: 1023px) {
  body.page-services .services-hero-photo .ahp-sub {
    overflow-wrap: normal !important;
    hyphens: none !important;
    word-break: normal !important;
  }
}

/* Locations page — override global hyphens:auto */
body.page-locations,
body.page-locations * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
}
body.page-locations p,
body.page-locations h1,
body.page-locations h2,
body.page-locations h3,
body.page-locations h4,
body.page-locations li,
body.page-locations a,
body.page-locations blockquote,
body.page-locations .section-label,
body.page-locations .breadcrumbs,
body.page-locations .breadcrumbs a,
body.page-locations .breadcrumbs .current,
body.page-locations .loc-hero-title,
body.page-locations .loc-hero-title-line2,
body.page-locations .loc-hero-sub,
body.page-locations .lhb-primary,
body.page-locations .lhb-secondary,
body.page-locations .lci-label,
body.page-locations .loc-num,
body.page-locations .loc-badge,
body.page-locations .loc-title,
body.page-locations .loc-slogan,
body.page-locations .loc-desc,
body.page-locations .loc-spec-key,
body.page-locations .loc-spec-val,
body.page-locations .loc-btn,
body.page-locations .loc-cta-title,
body.page-locations .loc-cta-sub,
body.page-locations .footer-col-title,
body.page-locations .footer-nav a,
body.page-locations .footer-legal,
body.page-locations .footer-copy,
body.page-locations .footer-contact {
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

@media (max-width: 1023px) {
  body.page-locations .loc-hero-title,
  body.page-locations .loc-hero-sub {
    overflow-wrap: normal !important;
    hyphens: none !important;
    word-break: normal !important;
  }
}

/* Cases page — override global hyphens:auto */
body.page-cases,
body.page-cases * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

/* Breadcrumbs — compact padding on small screens */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 8px 0;
  }
}

/* Locations page — hero vertical spacing (mobile only; PC rules live in locations.css) */
body.page-locations .breadcrumbs {
  padding: 6px 0;
}

@media (max-width: 1023px) {
  body.page-locations .loc-hero {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
  }

  body.page-locations .loc-hero-inner {
    align-items: start;
    gap: 28px !important;
    padding-bottom: 0 !important;
  }

  body.page-locations .loc-hero-sub {
    margin-bottom: 24px !important;
  }

  body.page-locations .loc-hero-btns {
    margin-top: 8px !important;
    margin-bottom: 0;
    gap: 12px !important;
  }

  body.page-locations .b-loc-section {
    padding-top: 40px !important;
    padding-bottom: 44px !important;
  }

  body.page-locations .b-loc-section:first-of-type {
    padding-top: 32px !important;
  }

  body.page-locations .loc-wrap,
  body.page-locations .loc-wrap.reverse {
    gap: 28px;
  }

  body.page-locations .loc-info .loc-btn {
    margin-top: 8px;
    margin-bottom: 0;
  }

  body.page-locations .loc-specs {
    margin-bottom: 28px;
  }

  .services-hero-photo {
    min-height: auto !important;
  }
}

@media (max-width: 640px) {
  body.page-locations .loc-hero-inner {
    gap: 8px;
  }
}

/* Locations hero collage — 6 tiles mobile grid */
@media (max-width: 1023px) {
  body.page-locations .loc-collage-wrap {
    height: clamp(320px, 88vw, 420px);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    margin-top: 0;
  }
}

/* Locations page — phone vertical gaps (button → next photo) */
@media (max-width: 768px) {
  body.page-locations .loc-hero {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
  }

  body.page-locations .loc-hero-inner {
    gap: 28px !important;
    padding-bottom: 0 !important;
  }

  body.page-locations .loc-hero-sub {
    margin-bottom: 24px !important;
  }

  body.page-locations .b-loc-section {
    padding-top: 40px !important;
    padding-bottom: 44px !important;
  }

  body.page-locations .b-loc-section:first-of-type {
    padding-top: 32px !important;
  }

  body.page-locations .loc-wrap,
  body.page-locations .loc-wrap.reverse {
    gap: 28px !important;
  }

  body.page-locations .loc-info {
    padding-bottom: 0 !important;
  }

  body.page-locations .loc-info .loc-btn {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  body.page-locations .loc-specs {
    margin-bottom: 28px !important;
  }

  body.page-locations .loc-desc:last-of-type {
    margin-bottom: 20px !important;
  }

  body.page-locations .loc-cta {
    padding-top: 48px !important;
    padding-bottom: 64px !important;
  }
}

/* Index page — override global hyphens:auto on p, h1, etc. */
body.page-index,
body.page-index * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

/* Legal pages — override global hyphens:auto */
body.page-legal,
body.page-legal * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
}

