
/* ======================================================
   ВЕРХ HERO: ТИП КВАРТИРЫ И КНОПКА «ПОДЕЛИТЬСЯ»
====================================================== */

.apartment-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin-bottom: 14px;
}

/* Плашка типа квартиры */

.apartment-hero-top .apartment-label {
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
}

/* Кнопка справа */

.apartment-hero-top .apartment-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-shrink: 0;
    margin: 0;
}

/* На телефонах */

@media (max-width: 480px) {

    .apartment-hero-top {
        gap: 8px;
        margin-bottom: 14px;
    }

    .apartment-hero-top .apartment-label {
        font-size: 10px;
        padding: 0 9px;
    }

    .apartment-hero-top .apartment-share {
        min-height: 36px;
        padding: 0 9px;
        gap: 6px;
        font-size: 12px;
    }
}

/* ======================================================
   КНОПКА «ПОДЕЛИТЬСЯ» В HERO
====================================================== */

.apartment-hero-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

/* Основная кнопка */

.apartment-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 0 13px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;

    background: rgba(255, 255, 255, .08);
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

/* Иконка */

.apartment-share svg {
    display: block;
    flex-shrink: 0;
}

/* Наведение мыши */

.apartment-share:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
}

/* Нажатие */

.apartment-share:active {
    transform: scale(.97);
}

/* Доступность с клавиатуры */

.apartment-share:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

/* Мобильная версия */

@media (max-width: 480px) {
    .apartment-hero-actions {
        margin-bottom: 12px;
    }

    .apartment-share {
        min-height: 38px;
        padding: 0 11px;
        gap: 7px;
        font-size: 12px;
    }
}




@media (max-width: 600px) {

    .apartment-header-actions {
        gap: 5px;
    }

    .apartment-header-call {
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .apartment-copy {
        width: 38px;
        height: 38px;
    }

}

.apartment-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

.apartment-header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 15px;

    border-radius: 10px;

    background: #2563eb;
    color: #fff;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .15s ease;
}

.apartment-header-call:hover {
    background: #1d4ed8;
}

.apartment-header-call:active {
    transform: scale(.97);
}


/* Кнопка копирования */

.apartment-copy {
    width: 40px;
    height: 40px;

    padding: 0;
    border: 0;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.10);
    color: inherit;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .15s ease;
}

.apartment-copy:hover {
    background: rgba(255,255,255,.18);
}

.apartment-copy:active {
    transform: scale(.92);
}

.apartment-copy svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Сообщение после копирования */

.copy-success {
    position: absolute;

    right: 0;
    top: calc(100% + 8px);

    padding: 6px 10px;

    border-radius: 8px;

    background: #16a34a;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    pointer-events: none;
}

.copy-success.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}




@media (max-width: 600px) {

    .apartment-header-actions {
        gap: 5px;
    }

    .apartment-header-call {
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .apartment-copy {
        width: 38px;
        height: 38px;
    }

}

.apartment-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

.apartment-header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 15px;

    border-radius: 10px;

    background: #2563eb;
    color: #fff;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .15s ease;
}

.apartment-header-call:hover {
    background: #1d4ed8;
}

.apartment-header-call:active {
    transform: scale(.97);
}


/* Кнопка копирования */

.apartment-copy {
    width: 40px;
    height: 40px;

    padding: 0;
    border: 0;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.10);
    color: inherit;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .15s ease;
}

.apartment-copy:hover {
    background: rgba(255,255,255,.18);
}

.apartment-copy:active {
    transform: scale(.92);
}

.apartment-copy svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Сообщение после копирования */

.copy-success {
    position: absolute;

    right: 0;
    top: calc(100% + 8px);

    padding: 6px 10px;

    border-radius: 8px;

    background: #16a34a;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    pointer-events: none;
}

.copy-success.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ======================================================
   APARTMENT GALLERY
====================================================== */

.apartment-gallery {
    width: 100%;
    margin-top: 22px;
}


/* MAIN */

.apartment-gallery-main {
    position: relative;
    width: 100%;
    overflow: hidden;

    aspect-ratio: 16 / 10;

    border-radius: 22px;
    background: #dfe5eb;

    box-shadow:
        0 16px 45px rgba(16, 24, 39, .11);
}

.apartment-gallery-main > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    cursor: zoom-in;

    user-select: none;
    -webkit-user-drag: none;
}


/* MAIN ARROWS */

.apartment-gallery-prev,
.apartment-gallery-next {
    position: absolute;

    top: 50%;

    width: 48px;
    height: 48px;

    padding: 0;
    margin: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(16, 24, 39, .65);
    color: #fff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    z-index: 20;
}

.apartment-gallery-prev {
    left: 14px;
}

.apartment-gallery-next {
    right: 14px;
}

.apartment-gallery-prev:hover,
.apartment-gallery-next:hover {
    background: rgba(16, 24, 39, .85);
}


/* THUMBS */

.apartment-gallery-thumbs {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    margin-top: 11px;
    padding: 2px 2px 6px;
}

.apartment-gallery-thumb {
    flex: 0 0 82px;

    width: 82px;
    height: 62px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 10px;

    background: #e6ebf0;

    opacity: .6;

    cursor: pointer;
}

.apartment-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.apartment-gallery-thumb.is-active {
    opacity: 1;

    border-color:
        var(--ap-green, #16a34a);
}


/* NOTE */

.apartment-gallery + .photo-note,
.apartment-gallery .photo-note {
    margin: 9px auto 0;

    max-width: 850px;

    color: #7c8794;

    font-size: 11px;
    line-height: 1.45;

    text-align: center;
}


/* ======================================================
   LIGHTBOX
====================================================== */

.apartment-lightbox {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .94);

    z-index: 999999;
}

.apartment-lightbox.is-open {
    display: flex;
}


/* PHOTO */

.apartment-lightbox > #apartmentLightboxPhoto {
    display: block;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 6px;

    user-select: none;
    -webkit-user-drag: none;
}


/* CLOSE */

.apartment-lightbox-close {
    position: absolute;

    top: 15px;
    right: 20px;

    width: 50px;
    height: 50px;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 44px;
    line-height: 50px;

    cursor: pointer;

    z-index: 30;
}


/* LIGHTBOX ARROWS */

.apartment-lightbox-prev,
.apartment-lightbox-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.18);
    color: #fff;

    font-size: 38px;
    line-height: 1;

    cursor: pointer;

    z-index: 30;
}

.apartment-lightbox-prev {
    left: 20px;
}

.apartment-lightbox-next {
    right: 20px;
}

.apartment-lightbox-prev:hover,
.apartment-lightbox-next:hover {
    background: rgba(255,255,255,.3);
}


/* BODY */

body.apartment-lightbox-open {
    overflow: hidden;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

    .apartment-gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: 17px;
    }

    .apartment-gallery-prev,
    .apartment-gallery-next {
        width: 40px;
        height: 40px;

        font-size: 28px;
    }

    .apartment-gallery-prev {
        left: 9px;
    }

    .apartment-gallery-next {
        right: 9px;
    }

    .apartment-gallery-thumb {
        flex-basis: 72px;

        width: 72px;
        height: 55px;
    }

    .apartment-lightbox {
        padding: 8px;
    }

    .apartment-lightbox
    > #apartmentLightboxPhoto {
        max-width: 94vw;
        max-height: 84vh;
    }

    .apartment-lightbox-close {
        top: 8px;
        right: 8px;

        width: 44px;
        height: 44px;

        font-size: 38px;
        line-height: 44px;
    }

    .apartment-lightbox-prev,
    .apartment-lightbox-next {
        width: 42px;
        height: 42px;

        font-size: 30px;
    }

    .apartment-lightbox-prev {
        left: 8px;
    }

    .apartment-lightbox-next {
        right: 8px;
    }

}





/* ======================================================
   ARRIVAL / NAVIGATION
   Блок "Как добраться" внутри .details-list
====================================================== */

.arrival-info {
    margin: 14px 0 18px;
    padding: 16px;

    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-sizing: border-box;
}


/* Заголовок */

.arrival-main {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 7px;

    color: #202124;
    font-size: 15px;
    line-height: 1.35;
}

.arrival-main strong {
    font-weight: 700;
}


/* Пояснение */

.arrival-note {
    margin-bottom: 14px;

    color: #626872;
    font-size: 13px;
    line-height: 1.5;
}


/* Контейнер кнопок */

.arrival-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;

    width: 100%;
}


/* Общая кнопка */

.arrival-button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 56px;

    padding: 10px 13px;

    box-sizing: border-box;

    text-decoration: none;

    border-radius: 11px;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


/* ==========================================
   ЯНДЕКС НАВИГАТОР
========================================== */

.navigator-button {
    color: #fff;
    background: #35a66f;

    border: 1px solid #35a66f;

    box-shadow: 0 3px 10px rgba(53, 166, 111, .18);
}

.navigator-button:hover {
    color: #fff;
    background: #2e9563;
    border-color: #2e9563;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(53, 166, 111, .24);
}


/* Стрелка */

.navigator-button .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 24px;

    font-size: 22px;
    line-height: 1;
}


/* Иконка Яндекса */

.navigator-button img {
    display: block;

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    object-fit: cover;

    border-radius: 8px;
}


/* ==========================================
   ТЕКСТ ВНУТРИ КНОПКИ
========================================== */

.arrival-button > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.arrival-button small {
    display: block;

    margin-top: 1px;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}


/* Для зелёной кнопки */

.navigator-button small {
    color: rgba(255, 255, 255, .84);
}


/* ==========================================
   ЯНДЕКС КАРТЫ
========================================== */

.map-button {
    color: #30343b;
    background: #fff;

    border: 1px solid #dfe3e8;
}

.map-button:hover {
    color: #202124;
    background: #f8f9fa;
    border-color: #d3d8de;

    transform: translateY(-1px);

    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}


/* Иконка карты */

.map-button .map-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    background: #f3f4f6;
    border-radius: 8px;

    font-size: 20px;
}


/* Текст карты */

.map-button small {
    color: #737982;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .arrival-info {
        margin: 12px 0 16px;
        padding: 13px;

        border-radius: 12px;
    }

    .arrival-main {
        font-size: 14px;
    }

    .arrival-note {
        margin-bottom: 12px;

        font-size: 12px;
        line-height: 1.5;
    }

    .arrival-button {
        min-height: 54px;

        padding: 9px 11px;

        border-radius: 10px;
    }

    .navigator-button .arrow-icon {
        width: 21px;

        font-size: 20px;
    }

    .navigator-button img {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }

    .map-button .map-icon {
        width: 30px;
        height: 30px;

        flex-basis: 30px;

        font-size: 18px;
    }

    .arrival-button > span:last-child {
        font-size: 13px;
    }

    .arrival-button small {
        font-size: 10px;
    }

}



/* ======================================================
   LOCATION / NAVIGATION
====================================================== */

.location-card {
    margin-bottom: 24px;
    padding: 18px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}


/* ADDRESS */

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    font-size: 18px;
}

.location-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-text strong {
    color: #202124;
    font-size: 16px;
    line-height: 1.35;
}

.location-text span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}


/* ENTRANCE */

.entrance-info {
    margin-bottom: 15px;
    padding: 12px 14px;

    background: #fff;
    border-left: 3px solid #35a66f;

    border-radius: 8px;
}

.entrance-info strong {
    color: #202124;
    font-size: 14px;
}

.entrance-info p {
    margin: 5px 0 0;

    color: #626872;
    font-size: 13px;
    line-height: 1.5;
}


/* YANDEX NAVIGATOR */

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    box-sizing: border-box;

    text-decoration: none;

    border-radius: 10px;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.map-btn {
    padding: 12px 14px;

    color: #fff;
    background: #35a66f;

    box-shadow: 0 3px 10px rgba(53, 166, 111, .18);
}

.map-btn:hover {
    background: #2e9563;
    transform: translateY(-1px);
}

.arrow-icon {
    font-size: 22px;
    line-height: 1;
}

.map-btn img {
    display: block;

    width: 28px;
    height: 28px;

    border-radius: 7px;
}

.map-btn-text {
    display: flex;
    flex-direction: column;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.map-btn-text small {
    margin-top: 3px;

    color: rgba(255,255,255,.82);

    font-size: 11px;
    font-weight: 400;
}


/* SECONDARY MAP BUTTON */

.map-secondary-btn {
    justify-content: center;

    margin-top: 8px;
    padding: 10px 14px;

    color: #444;
    background: #fff;

    border: 1px solid #e1e4e8;

    font-size: 13px;
    font-weight: 600;
}

.map-secondary-btn:hover {
    background: #f1f3f5;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .location-card {
        padding: 14px;
        border-radius: 12px;
    }

    .location-text strong {
        font-size: 15px;
    }

    .location-text span {
        font-size: 12px;
    }

    .entrance-info {
        padding: 11px 12px;
    }

    .entrance-info p {
        font-size: 12px;
    }

    .map-btn {
        padding: 11px 12px;
    }

    .map-btn-text {
        font-size: 13px;
    }

    .map-btn-text small {
        font-size: 10px;
    }

}




/* ======================================================
   DEVELOPMENT BANNER
====================================================== */

.development-banner {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin: 18px 0 20px;
    padding: 14px 16px;

    background: #fff7e6;
    border: 1px solid #f2d08a;
    border-radius: 12px;

    color: #5f4818;
}

.development-banner strong {
    font-size: 15px;
    line-height: 1.35;
}

.development-banner span {
    font-size: 14px;
    line-height: 1.5;
    color: #735c2b;
}



























/* ======================================================
   КВАРТИРЫ 16 — APARTMENT PAGES
   Общий стиль для отдельных квартир
====================================================== */
.hourly-more {
    margin-top: 18px;
}

.hourly-more a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.hourly-more a:hover {
    text-decoration: underline;
}

/* ======================================================
   VARIABLES
====================================================== */

:root {

    --ap-bg: #f5f7fa;
    --ap-white: #ffffff;

    --ap-text: #17202d;
    --ap-muted: #697586;
    --ap-border: #e3e8ee;

    --ap-dark: #101827;
    --ap-dark-2: #182337;

    --ap-green: #16a34a;
    --ap-green-dark: #15803d;

    --ap-blue: #1685c4;
    --ap-blue-light: #eaf4fb;

    --ap-wa: #12823a;
    --ap-wa-light: #eaf8ee;

    --ap-max: #5b35a6;
    --ap-max-light: #f1ecff;

    --ap-yellow: #f59e0b;
    --ap-yellow-dark: #d97706;

    --ap-radius: 18px;

    --ap-shadow:
        0 8px 30px rgba(16, 24, 39, .07);

    --ap-shadow-lg:
        0 16px 45px rgba(16, 24, 39, .11);
}


/* ======================================================
   RESET
====================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    background: var(--ap-bg);
    color: var(--ap-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    padding-bottom: 78px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}


/* ======================================================
   HEADER
====================================================== */

.apartment-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, .96);

    border-bottom: 1px solid var(--ap-border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.apartment-header-inner {
    width: min(1180px, 100%);

    min-height: 62px;

    margin: 0 auto;

    padding:
        8px 18px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.apartment-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding:
        0 12px;

    border-radius: 11px;

    background: #f0f3f6;

    color: var(--ap-text);

    font-size: 13px;
    font-weight: 800;

    transition:
        background .15s ease,
        transform .15s ease;
}

.apartment-back:hover {
    background: #e7ebef;
    transform: translateY(-1px);
}

.apartment-header-title {
    flex: 1;

    min-width: 0;

    text-align: center;

    font-size: 14px;
    font-weight: 900;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apartment-header-call {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding:
        0 13px;

    border-radius: 11px;

    background: var(--ap-green);

    color: #fff;

    font-size: 12px;
    font-weight: 900;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(22, 163, 74, .18);

    transition:
        background .15s ease,
        transform .15s ease;
}

.apartment-header-call:hover {
    background: var(--ap-green-dark);
    transform: translateY(-1px);
}


/* ======================================================
   BREADCRUMBS
====================================================== */

.apartment-breadcrumbs {
    width: min(1180px, 100%);

    margin: 0 auto;

    padding:
        12px 18px 0;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    color: var(--ap-muted);

    font-size: 11px;

    text-align: center;
}

.apartment-breadcrumbs a {
    color: var(--ap-blue);

    font-weight: 700;
}

.apartment-breadcrumbs span {
    opacity: .75;
}


/* ======================================================
   MAIN PAGE
====================================================== */

.apartment-page {
    width: min(1120px, 100%);

    margin: 0 auto;

    padding:
        20px
        20px
        90px;
}


/* ======================================================
   HERO
====================================================== */

.apartment-hero {
    margin-top: 10px;

    padding:
        28px
        24px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(245, 158, 11, .18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #101827 0%,
            #1a2638 58%,
            #24344b 100%
        );

    color: #fff;

    box-shadow:
        0 12px 35px rgba(16, 24, 39, .14);
}

.apartment-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 31px;

    padding:
        0 11px;

    margin-bottom: 12px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid rgba(255, 255, 255, .14);

    color: #fbbf24;

    font-size: 11px;
    font-weight: 800;
}

.apartment-hero h1 {
    max-width: 850px;

    margin: 0;

    font-size:
        clamp(28px, 5vw, 46px);

    line-height: 1.08;

    letter-spacing: -.6px;
}

.apartment-subtitle {
    margin: 13px 0 0;

    color:
        rgba(255, 255, 255, .72);

    font-size: 14px;
    line-height: 1.5;
}


/* ======================================================
   КНОПКА «ПОДЕЛИТЬСЯ»
====================================================== */

.apartment-hero {
    position: relative;
}

.apartment-hero-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.apartment-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 0 13px;

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;

    background: rgba(255, 255, 255, .08);
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.apartment-share:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
}

.apartment-share:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

.apartment-share svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .apartment-hero-actions {
        margin-bottom: 12px;
    }

    .apartment-share {
        min-height: 38px;
        padding: 0 11px;
        font-size: 12px;
    }
}



/* ======================================================
   COMMON SECTION
====================================================== */

.apartment-section {
    margin-top: 22px;
}


/* ======================================================
   GALLERY
====================================================== */

.gallery-section {
    margin-top: 22px;
}

.gallery-main {
    position: relative;

    overflow: hidden;

    border-radius: 22px;

    background:
        #dfe5eb;

    box-shadow: var(--ap-shadow-lg);

    aspect-ratio: 16 / 10;
}

.gallery-main img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    cursor: zoom-in;

    user-select: none;

    -webkit-user-drag: none;

    transition:
        opacity .15s ease;
}

.gallery-arrow {
    position: absolute;

    top: 50%;

    width: 48px;
    height: 48px;

    margin-top: -24px;

    border: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(16, 24, 39, .62);

    color: #fff;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(7px);

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .18);

    transition:
        background .15s ease,
        transform .15s ease;
}

.gallery-arrow:hover {
    background:
        rgba(16, 24, 39, .82);

    transform: scale(1.04);
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

.gallery-thumbs {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    margin-top: 11px;

    padding:
        2px
        2px
        6px;

    scrollbar-width: thin;
}

.gallery-thumb {
    flex:
        0 0 82px;

    width: 82px;
    height: 62px;

    padding: 0;

    overflow: hidden;

    border:
        2px solid transparent;

    border-radius: 10px;

    background:
        #e6ebf0;

    cursor: pointer;

    opacity: .64;

    transition:
        opacity .15s ease,
        transform .15s ease,
        border-color .15s ease;
}

.gallery-thumb:hover {
    opacity: .9;

    transform: translateY(-1px);
}

.gallery-thumb.active {
    opacity: 1;

    border-color:
        var(--ap-green);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.photo-note {
    margin:
        9px auto 0;

    max-width: 850px;

    color: #7c8794;

    font-size: 11px;
    line-height: 1.45;

    text-align: center;
}


/* ======================================================
   OFFER / PRICE
====================================================== */

.apartment-offer {
    margin-top: 18px;
}

.offer-card {
    padding:
        22px;

    border-radius: 20px;

    background:
        var(--ap-white);

    border:
        1px solid var(--ap-border);

    box-shadow:
        var(--ap-shadow);
}

.offer-price {
    text-align: center;

    font-size: 30px;
    font-weight: 900;

    letter-spacing: -.6px;
}

.offer-price span {
    display: block;

    margin-top: 4px;

    color: var(--ap-muted);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0;
}

.offer-note {
    margin-top: 9px;

    color: var(--ap-muted);

    font-size: 12px;
    line-height: 1.45;

    text-align: center;
}

.offer-buttons {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 17px;
}

.offer-button {
    min-height: 52px;

    padding:
        8px 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 13px;

    font-size: 12px;
    font-weight: 900;

    text-align: center;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}

.offer-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .09);
}

.offer-button img {
    width: 20px;
    height: 20px;

    display: block;

    object-fit: contain;

    flex: 0 0 20px;
}

.offer-phone {
    background: var(--ap-green);
    color: #fff;
}

.offer-phone:hover {
    background: var(--ap-green-dark);
}

.offer-whatsapp {
    background: var(--ap-wa-light);
    color: var(--ap-wa);
}

.offer-telegram {
    background: var(--ap-blue-light);
    color: var(--ap-blue);
}

.offer-max {
    background: var(--ap-max-light);
    color: var(--ap-max);
}


/* ======================================================
   QUICK FACTS
====================================================== */

.quick-facts {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;

    margin-top: 14px;
}

.fact-card {
    min-height: 92px;

    padding:
        15px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        var(--ap-white);

    border:
        1px solid var(--ap-border);

    box-shadow:
        0 4px 15px rgba(16, 24, 39, .04);

    text-align: center;
}

.fact-card strong {
    font-size: 18px;
    font-weight: 900;
}

.fact-card span {
    margin-top: 4px;

    color: var(--ap-muted);

    font-size: 11px;
}


/* ======================================================
   CONTENT CARD
====================================================== */

.content-card {
    padding:
        22px;

    border-radius: 20px;

    background:
        var(--ap-white);

    border:
        1px solid var(--ap-border);

    box-shadow:
        var(--ap-shadow);
}

.content-card h2 {
    margin:
        0 0 14px;

    font-size: 23px;

    line-height: 1.2;
}

.content-card h3 {
    margin:
        0 0 12px;

    font-size: 18px;
}

.content-card p {
    margin:
        0 0 13px;

    color: #505b68;

    font-size: 14px;

    line-height: 1.65;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card .muted,
.muted {
    color: var(--ap-muted);
}


/* ======================================================
   FEATURES
====================================================== */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;
}

.feature-item {
    min-height: 115px;

    padding:
        14px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--ap-border);

    border-radius: 14px;

    background:
        #f8fafc;

    text-align: center;
}

.feature-item > span {
    font-size: 22px;

    line-height: 1;
}

.feature-item strong {
    margin-top: 8px;

    font-size: 13px;
}

.feature-item small {
    margin-top: 4px;

    color: var(--ap-muted);

    font-size: 10px;

    line-height: 1.35;
}


/* ======================================================
   DETAILS LIST
====================================================== */

.details-list {
    display: flex;

    flex-direction: column;
}

.details-row {
    min-height: 48px;

    padding:
        10px 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid #edf0f3;
}

.details-row:last-child {
    border-bottom: 0;
}

.details-row span {
    color: var(--ap-muted);

    font-size: 13px;
}

.details-row strong {
    color: var(--ap-text);

    font-size: 13px;

    text-align: right;
}


/* ======================================================
   ACCENT / HOURLY
====================================================== */

.accent-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f4fbf7
        );

    border-color:
        #cfead8;
}

.hourly-price {
    margin:
        14px 0;

    font-size: 28px;
    font-weight: 900;

    color: var(--ap-green);
}

.hourly-price span {
    margin-left: 5px;

    color: var(--ap-muted);

    font-size: 12px;
    font-weight: 500;
}


/* ======================================================
   NOTICE
====================================================== */

.notice-box {
    margin-top: 17px;

    padding:
        14px 16px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    border:
        1px solid #dbe4ec;

    border-radius: 13px;

    background:
        #f7fafc;
}

.notice-box strong {
    flex:
        0 0 auto;

    color:
        var(--ap-text);

    font-size: 13px;
}

.notice-box span {
    color:
        var(--ap-muted);

    font-size: 12px;

    line-height: 1.5;
}


/* ======================================================
   TIME
====================================================== */

.time-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.time-card {
    min-height: 180px;

    padding:
        18px;

    border:
        1px solid var(--ap-border);

    border-radius: 15px;

    background:
        #f8fafc;
}

.time-icon {
    display: block;

    margin-bottom: 10px;

    font-size: 25px;
}

.time-card strong {
    display: block;

    font-size: 13px;
}

.time-card b {
    display: block;

    margin-top: 4px;

    font-size: 21px;
}

.time-card small {
    display: block;

    margin-top: 9px;

    color: var(--ap-muted);

    font-size: 11px;

    line-height: 1.45;
}


/* ======================================================
   DETAILS / FAQ
====================================================== */

.info-details,
.faq-item {
    border-top:
        1px solid #edf0f3;
}

.info-details:first-child,
.faq-item:first-child {
    border-top: 0;
}

.info-details summary,
.faq-item summary {
    position: relative;

    padding:
        14px 26px 14px 0;

    cursor: pointer;

    color: var(--ap-text);

    font-size: 14px;
    font-weight: 800;

    list-style: none;
}

.info-details summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.info-details summary::after,
.faq-item summary::after {
    content: "+";

    position: absolute;

    right: 0;
    top: 50%;

    transform:
        translateY(-50%);

    color: var(--ap-muted);

    font-size: 20px;
    font-weight: 400;
}

.info-details[open] summary::after,
.faq-item[open] summary::after {
    content: "−";
}

.details-content {
    padding:
        0 0 12px;
}

.details-content p {
    margin:
        0 0 10px;
}

.details-content p:last-child {
    margin-bottom: 0;
}

.faq-item p {
    margin:
        0 0 14px;

    color: var(--ap-muted);

    font-size: 13px;

    line-height: 1.6;
}


/* ======================================================
   NAVIGATION
====================================================== */

.navigation-card {
    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        15px;
}

.navigation-card a {
    min-height: 45px;

    padding:
        0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        #eef2f5;

    color:
        var(--ap-text);

    font-size: 13px;
    font-weight: 800;

    transition:
        background .15s ease,
        transform .15s ease;
}

.navigation-card a:hover {
    background: #e5eaee;
    transform: translateY(-1px);
}


/* ======================================================
   FOOTER
====================================================== */

.apartment-footer {
    padding:
        25px
        20px
        110px;

    text-align: center;

    color:
        #7a838d;

    font-size: 12px;

    line-height: 1.6;
}

.apartment-footer strong {
    display: block;

    margin-bottom: 3px;

    color:
        #4e5864;

    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--ap-blue);

    font-weight: 700;
}


/* ======================================================
   MOBILE BOTTOM BAR
====================================================== */

.mobile-bar {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2000;

    display: block;

    padding:
        8px 8px
        calc(8px + env(safe-area-inset-bottom));

    background:
        rgba(255, 255, 255, .97);

    border-top:
        1px solid var(--ap-border);

    box-shadow:
        0 -6px 25px rgba(0, 0, 0, .09);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.mobile-bar-inner {
    width: min(520px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 5px;
}


/* ======================================================
   MOBILE ACTIONS
====================================================== */

.mobile-action,
.call-button {
    min-height: 52px;

    padding:
        5px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    border-radius: 11px;

    text-align: center;

    font-size: 10px;
    font-weight: 800;

    border:
        1px solid transparent;

    transition:
        transform .15s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

.mobile-action:hover,
.call-button:hover {
    transform:
        translateY(-1px);
}

.mobile-action:active,
.call-button:active {
    transform:
        translateY(1px);
}

.mobile-icon {
    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.mobile-action img,
.call-button img {
    width: 20px;
    height: 20px;

    display: block;

    object-fit: contain;
}


/* PHONE */

.call-button {
    background:
        var(--ap-green);

    color:
        #fff;

    border-color:
        var(--ap-green);

    box-shadow:
        0 4px 12px rgba(22, 163, 74, .20);
}

.call-button:hover {
    background:
        var(--ap-green-dark);
}


/* WHATSAPP */

.mobile-whatsapp {
    background:
        var(--ap-wa-light);

    color:
        var(--ap-wa);

    border-color:
        #d3efdc;
}


/* TELEGRAM */

.mobile-telegram {
    background:
        var(--ap-blue-light);

    color:
        var(--ap-blue);

    border-color:
        #d6eaf5;
}


/* MAX */

.mobile-max {
    background:
        var(--ap-max-light);

    color:
        var(--ap-max);

    border-color:
        #e4dafa;
}


/* ======================================================
   TELEGRAM MINI APP
====================================================== */

body.telegram-mini-app {
    background:
        var(--ap-bg);
}

body.telegram-mini-app .apartment-header {
    top: 0;
}


/* ======================================================
   DESKTOP
====================================================== */

@media (min-width: 901px) {

    .mobile-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .apartment-footer {
        padding-bottom: 40px;
    }

}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 900px) {

    .apartment-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .offer-buttons {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

    .apartment-header-inner {
        min-height: 58px;

        padding:
            8px 11px;

        gap: 7px;
    }

    .apartment-back {
        min-height: 38px;

        padding:
            0 9px;

        font-size: 11px;
    }

    .apartment-header-title {
        font-size: 12px;
    }

    .apartment-header-call {
        min-height: 38px;

        padding:
            0 10px;

        font-size: 11px;
    }

    .apartment-breadcrumbs {
        padding:
            10px 12px 0;

        font-size: 10px;
    }

    .apartment-page {
        padding:
            12px
            12px
            85px;
    }

    .apartment-hero {
        margin-top: 7px;

        padding:
            22px
            17px;

        border-radius: 19px;
    }

    .apartment-hero h1 {
        font-size: 30px;

        letter-spacing:
            -.45px;
    }

    .apartment-subtitle {
        font-size: 13px;
    }

    .gallery-main {
        border-radius: 17px;

        aspect-ratio:
            4 / 3;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;

        margin-top: -20px;

        font-size: 28px;
    }

    .gallery-prev {
        left: 9px;
    }

    .gallery-next {
        right: 9px;
    }

    .gallery-thumb {
        flex-basis: 72px;

        width: 72px;
        height: 55px;

        border-radius: 9px;
    }

    .offer-card,
    .content-card {
        padding:
            17px;

        border-radius: 17px;
    }

    .offer-price {
        font-size: 27px;
    }

    .offer-buttons {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 7px;
    }

    .offer-button {
        min-height: 50px;

        font-size: 11px;

        padding:
            7px 8px;
    }

    .quick-facts {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .fact-card {
        min-height: 76px;
    }

    .content-card h2 {
        font-size: 21px;
    }

    .content-card p {
        font-size: 13px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 8px;
    }

    .feature-item {
        min-height: 105px;

        padding:
            11px;
    }

    .feature-item strong {
        font-size: 12px;
    }

    .feature-item small {
        font-size: 9px;
    }

    .details-row {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 4px;
    }

    .details-row strong {
        text-align: left;
    }

    .time-grid {
        grid-template-columns:
            1fr;
    }

    .time-card {
        min-height: auto;
    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 390px) {

    .apartment-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .apartment-hero h1 {
        font-size: 27px;
    }

    .offer-buttons {
        grid-template-columns:
            1fr 1fr;
    }

    .offer-button {
        min-height: 47px;

        font-size: 10px;
    }

    .mobile-action,
    .call-button {
        min-height: 49px;

        font-size: 9px;
    }

    .mobile-action img,
    .call-button img {
        width: 18px;
        height: 18px;
    }

}


/* ======================================================
   REDUCED MOTION
====================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}