/* Shared residential-complex page template for Anapa */

.complex-page {
    background: var(--paper);
}

.complex-page .site-header {
    border-bottom: 1px solid rgba(37, 41, 54, 0.08);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.4;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs--light {
    color: rgba(255, 255, 255, 0.68);
}

.breadcrumbs--light a {
    color: rgba(255, 255, 255, 0.88);
}

/* Hero */

.complex-hero {
    position: relative;
    min-height: calc(100svh - 5.4rem);
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-deep);
    color: var(--white);
}

.complex-hero__image,
.complex-hero__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.complex-hero__image {
    z-index: -3;
    object-fit: cover;
    object-position: 52% 50%;
    animation: complex-hero-image-in 1.2s var(--ease-out) both;
}

.complex-hero__veil {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 15, 20, 0.88) 0%, rgba(12, 15, 20, 0.66) 48%, rgba(12, 15, 20, 0.25) 100%),
        linear-gradient(180deg, rgba(10, 13, 18, 0.2) 0%, rgba(10, 13, 18, 0.2) 58%, rgba(10, 13, 18, 0.78) 100%);
}

.complex-hero__inner {
    display: grid;
    align-content: center;
    min-height: calc(100svh - 5.4rem);
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

.complex-hero .breadcrumbs {
    align-self: start;
    margin-bottom: clamp(2rem, 5vh, 4rem);
}

.complex-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 6.5rem);
}

.complex-hero__copy {
    max-width: 52rem;
}

.complex-hero__kicker {
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
    backdrop-filter: blur(12px) saturate(130%);
}

.complex-hero h1 {
    max-width: 13ch;
    margin-bottom: 1.35rem;
    font-size: clamp(3.1rem, 6vw, 6.7rem);
    font-weight: 560;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.complex-hero__lead {
    max-width: 45rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.08rem, 1.55vw, 1.38rem);
    line-height: 1.55;
}

.complex-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.complex-hero__facts div {
    min-width: 9.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 1rem;
    background: rgba(18, 21, 27, 0.34);
    backdrop-filter: blur(14px) saturate(125%);
}

.complex-hero__facts dt {
    margin-bottom: 0.15rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.complex-hero__facts dd {
    margin: 0;
    color: var(--white);
    font-size: 0.94rem;
    font-weight: 730;
    line-height: 1.35;
}

.complex-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.complex-hero__form {
    align-self: end;
    padding: 1.45rem;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 1.65rem;
    background: rgba(20, 23, 30, 0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(24px) saturate(135%);
}

.complex-hero__form-heading h2 {
    margin-bottom: 0.65rem;
    color: var(--white);
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: 590;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.complex-hero__form-heading p:not(.eyebrow) {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
    line-height: 1.5;
}

.complex-hero__form-fields {
    grid-template-columns: 1fr;
}

/* Intro */

.complex-intro {
    padding-block: clamp(4rem, 5vw, 4.75rem) clamp(3rem, 3.5vw, 3.75rem);
    background: var(--paper);
}

.complex-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.75fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
}

.complex-intro__copy h2,
.complex-mortgage__heading h2,
.complex-faq__heading h2,
.complex-location__content h2 {
    margin-bottom: 1.4rem;
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    font-weight: 575;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.complex-intro__copy p:not(.eyebrow) {
    max-width: 43rem;
    margin-bottom: 1.2rem;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.75;
}

.complex-intro__copy h2 {
    max-width: none;
    font-size: clamp(2.5rem, 4vw, 4.15rem);
    line-height: 0.98;
}

.complex-intro__copy .complex-intro__lead {
    color: var(--ink);
    font-size: clamp(1.15rem, 1.8vw, 1.42rem);
    line-height: 1.6;
}

.complex-intro__visual {
    position: relative;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(184, 139, 67, 0.38);
    border-radius: 2.5rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.complex-intro__visual::before {
    content: none;
}

.complex-intro__visual img {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: clamp(19rem, 26vw, 24rem);
    max-height: 31rem;
    aspect-ratio: auto;
    border-radius: 2.375rem;
    object-fit: cover;
    object-position: center 42%;
    box-shadow: none;
}

.complex-intro__visual figcaption {
    position: absolute;
    z-index: 1;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    min-width: 0;
    width: fit-content;
    max-width: calc(100% - 2.5rem);
    margin: 0 0 4px 8px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(251, 250, 247, 0.84);
    box-shadow: 0 8px 24px rgba(17, 19, 26, 0.12);
    color: var(--ink);
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.25;
    overflow-wrap: anywhere;
    backdrop-filter: blur(14px) saturate(135%);
}

/* Advantages */

.complex-advantages {
    background: var(--paper-warm);
}

.complex-advantages .section-heading {
    margin-bottom: clamp(3rem, 6vw, 5.4rem);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.advantage-card {
    position: relative;
    min-height: 19rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1.4rem, 2.5vw, 2.2rem);
    overflow: hidden;
    border: 1px solid rgba(37, 41, 54, 0.09);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 38px rgba(37, 41, 54, 0.05);
}

.advantage-card--accent {
    background: var(--sea);
    color: var(--white);
}

.advantage-card--wide {
    min-height: 14rem;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    isolation: isolate;
    margin-top: 0.5rem;
    background: var(--ink);
    color: var(--white);
}

.advantage-card--wide::before,
.advantage-card--wide::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(209, 177, 113, 0.16);
    border-radius: 50%;
    content: "";
}

.advantage-card--wide::before {
    top: -10rem;
    right: -3rem;
    width: 24rem;
    height: 24rem;
}

.advantage-card--wide::after {
    right: 5rem;
    bottom: -13rem;
    width: 20rem;
    height: 20rem;
}

.education-card__copy {
    max-width: 37rem;
}

.education-card__label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.advantage-card h3,
.education-card__copy h3 {
    max-width: 14ch;
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 630;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.advantage-card p,
.education-card__copy p {
    max-width: 25rem;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.advantage-card--accent p,
.education-card__copy p {
    color: rgba(255, 255, 255, 0.68);
}

.advantage-card__number {
    display: block;
    margin-bottom: 0;
    color: var(--gold-strong);
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 520;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.advantage-card--accent .advantage-card__number {
    color: var(--gold);
}

.advantage-card__art {
    min-height: 6rem;
    display: grid;
    place-items: center;
    margin-block: auto;
    color: currentColor;
    opacity: 0.72;
}

.advantage-card__art svg {
    width: min(8.5rem, 72%);
    height: auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.advantage-card__art--sea {
    color: rgba(255, 255, 255, 0.72);
    transform: translateX(0.75rem);
}

.advantage-card__art--parking {
    color: var(--sea);
    transform: translateX(0.75rem);
}

.advantage-card__copy {
    margin-top: auto;
}

.advantage-card__thumbnail {
    width: 100%;
    height: clamp(8.5rem, 12vw, 10.25rem);
    display: block;
    margin-bottom: 1.3rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(37, 41, 54, 0.09);
}

.advantage-card__thumbnail--parks {
    object-position: center 58%;
}

.advantage-card__thumbnail--courtyard {
    object-position: center 62%;
}

.education-card__stats {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) auto minmax(9rem, 1fr);
    align-items: center;
    gap: 1.25rem;
}

.education-card__stats div {
    display: grid;
    gap: 0.25rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
}

.education-card__stats strong {
    color: var(--gold);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 520;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.education-card__stats span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.25;
}

.education-card__stats i {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.8rem;
    font-style: normal;
}

/* Gallery */

.complex-gallery {
    background: var(--ink-deep);
    color: var(--white);
}

.complex-gallery .section-heading h2 {
    color: var(--white);
}

.complex-gallery .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.62);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: repeat(2, minmax(14rem, 22vw));
    gap: 0.8rem;
}

.gallery-card {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1.4rem;
    background: #272b34;
    color: var(--white);
    cursor: zoom-in;
}

.gallery-card--hero {
    grid-row: span 2;
}

.gallery-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 54%, rgba(10, 12, 16, 0.68));
    content: "";
}

.gallery-card img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out), filter 300ms ease;
}

.gallery-card span {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 0.9rem;
    left: 1rem;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: 0.04em;
}

/* Details */

.complex-details {
    background: var(--paper-cool);
}

.details-layout {
    display: grid;
    grid-template-columns: minmax(13rem, 0.72fr) minmax(14rem, 0.82fr) minmax(21rem, 1.2fr);
    align-items: stretch;
    gap: 1rem;
}

.details-list {
    margin: 0;
    padding: 0 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.56);
}

.details-list > div {
    display: grid;
    gap: 0.35rem;
    padding-block: 1.15rem;
    border-bottom: 1px solid var(--line);
}

.details-list > div:last-child {
    border-bottom: 0;
}

.details-list dt {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 720;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.details-list dd {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 590;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.details-map {
    position: relative;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #dce5e5;
}

.details-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 26rem;
    border: 0;
}

.details-map figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 1rem;
    background: rgba(251, 250, 247, 0.9);
    box-shadow: 0 14px 32px rgba(17, 19, 26, 0.15);
    backdrop-filter: blur(14px) saturate(135%);
}

.details-map figcaption strong {
    font-size: 0.9rem;
}

.details-map figcaption span {
    color: var(--ink-soft);
    font-size: 0.72rem;
}

/* Apartment formats */

.complex-formats {
    background: var(--paper);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.format-grid--three > .format-card:last-child {
    grid-column: 1 / -1;
}

.format-card {
    min-height: 28.5rem;
    display: grid;
    grid-template-columns: minmax(11rem, 0.8fr) minmax(14rem, 1fr);
    align-items: stretch;
    padding: clamp(0.825rem, 1.5vw, 1.125rem) clamp(1.1rem, 2vw, 1.5rem);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 16px 42px rgba(37, 41, 54, 0.055);
}

.format-card--featured {
    border-color: rgba(184, 139, 67, 0.38);
    background: linear-gradient(145deg, rgba(239, 226, 199, 0.38), var(--white) 42%);
}

.format-card__visual {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 0.7rem 0.8rem 0.7rem 0;
}

.format-card__visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: min(28rem, 100%);
    max-height: 28rem;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(37, 41, 54, 0.1));
}

.format-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0.6rem 0.6rem 1rem;
}

.format-card__type {
    width: fit-content;
    margin-bottom: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--paper-warm);
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.format-card h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    font-weight: 610;
    letter-spacing: -0.045em;
    line-height: 1;
}

.format-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.format-card__actions {
    display: grid;
    justify-items: start;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.format-card__badge {
    padding: 0.52rem 0.85rem;
    border-radius: 999px;
    background: var(--sea);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 740;
    line-height: 1.2;
}

.format-card--featured .format-card__badge {
    background: #b84a2c;
}

.format-card__button {
    width: 100%;
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.78rem 0.8rem 0.78rem 1rem;
    border: 1px solid rgba(184, 139, 67, 0.22);
    border-radius: 0.9rem;
    background: var(--paper-warm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 140ms var(--ease-out);
}

.format-card__button span {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(184, 139, 67, 0.26);
    border-radius: 50%;
    background: var(--gold-pale);
    font-size: 1rem;
    transition: background-color 180ms ease, transform 160ms var(--ease-out);
}

.format-card__button:active {
    transform: scale(0.97);
}

/* Mortgage */

.complex-mortgage {
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.complex-mortgage__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(30rem, 1.05fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 5.5rem);
}

.complex-mortgage__heading {
    position: static;
}

.complex-mortgage__heading h2 {
    max-width: 10ch;
    margin-bottom: 1.15rem;
    color: var(--white);
    font-size: clamp(2.7rem, 4.2vw, 4.6rem);
    line-height: 0.98;
}

.complex-mortgage__heading > p:not(.eyebrow) {
    max-width: 36rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    line-height: 1.7;
}

.mortgage-list {
    width: 100%;
    max-width: 37rem;
    display: grid;
    justify-self: end;
    gap: 0.75rem;
}

.mortgage-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(8.5rem, 0.38fr) 1fr;
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    padding: clamp(1.25rem, 2vw, 1.55rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.055);
}

.mortgage-card--highlight {
    border-color: rgba(209, 177, 113, 0.55);
    background: linear-gradient(135deg, rgba(209, 177, 113, 0.16), rgba(255, 255, 255, 0.045));
}

.mortgage-card__rate {
    align-self: center;
    color: var(--gold);
    font-size: clamp(2.8rem, 3.8vw, 3.8rem);
    font-weight: 530;
    letter-spacing: -0.07em;
    line-height: 1;
    white-space: nowrap;
}

.mortgage-card__rate--label {
    max-width: 7.5rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.12;
    white-space: normal;
}

.mortgage-card__rate--range {
    font-size: clamp(2.45rem, 3.25vw, 3.3rem);
    line-height: 1.08;
}

.mortgage-card h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 610;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.mortgage-card p {
    max-width: 37rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.84rem;
    line-height: 1.55;
}

.mortgage-calculator {
    margin-top: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 30px 70px rgba(8, 10, 15, 0.2);
}

.mortgage-programs {
    overflow: hidden;
    padding: 0.25rem;
}

.mortgage-programs__track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mortgage-programs__track span {
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(209, 177, 113, 0.3);
    border-radius: 999px;
    background: rgba(209, 177, 113, 0.09);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 680;
}

.mortgage-programs__track span[aria-hidden="true"] {
    display: none;
}

.mortgage-calculator__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.52fr);
    align-items: end;
    gap: 2rem;
    padding: clamp(1.4rem, 3vw, 2.5rem) clamp(0.5rem, 2vw, 1.5rem) 1.5rem;
}

.mortgage-calculator__heading h3 {
    max-width: 15ch;
    margin: 0;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 570;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.mortgage-calculator__heading > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.55;
}

.mortgage-calculator__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.45rem;
    background: var(--paper);
}

.mortgage-calculator .calculator-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: clamp(1.25rem, 3vw, 2rem);
}

.mortgage-calculator__result {
    display: grid;
    align-content: center;
    gap: 0.55rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: linear-gradient(145deg, rgba(71, 125, 132, 0.95), #355f66);
}

.mortgage-calculator__result > span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mortgage-calculator__result > strong {
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    font-weight: 560;
    letter-spacing: -0.055em;
    line-height: 1;
}

.mortgage-calculator__result > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mortgage-calculator__result p {
    display: grid;
    gap: 0.25rem;
    margin: 0;
}

.mortgage-calculator__result p span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.66rem;
}

.mortgage-calculator__result p strong {
    color: var(--white);
    font-size: 0.9rem;
}

.mortgage-calculator__lead {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(11rem, 0.55fr) minmax(0, 1.25fr) minmax(14rem, 0.7fr);
    align-items: end;
    margin-top: 0.75rem;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: none;
}

.mortgage-calculator__lead > *,
.mortgage-calculator__lead .lead-form__fields,
.mortgage-calculator__lead .lead-field {
    min-width: 0;
}

.mortgage-calculator__lead-title {
    align-self: center;
    margin: 0;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.mortgage-calculator__lead .lead-consent,
.mortgage-calculator__lead .lead-form__status {
    grid-column: 2 / -1;
}

/* Construction */

.complex-construction {
    background: var(--paper-warm);
}

.construction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.construction-grid figure {
    margin: 0;
}

.construction-grid figure:last-child {
    grid-column: auto;
}

.construction-grid img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: clamp(13rem, 18vw, 15rem);
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.construction-grid figcaption {
    margin-top: 0.8rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.construction-progress {
    display: grid;
    grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
    padding: clamp(1.4rem, 3vw, 2.3rem);
    overflow: hidden;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 92% 18%, rgba(209, 177, 113, 0.24), transparent 14rem),
        var(--ink);
    color: var(--white);
}

.construction-progress__value {
    display: grid;
    gap: 0.25rem;
}

.construction-progress__value strong {
    color: var(--gold);
    font-size: clamp(3.8rem, 7vw, 6.5rem);
    font-weight: 520;
    letter-spacing: -0.07em;
    line-height: 0.86;
}

.construction-progress__value span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 730;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.construction-progress__content h3 {
    margin: 0 0 0.45rem;
    color: var(--white);
    font-size: clamp(1.5rem, 2.5vw, 2.3rem);
    font-weight: 590;
    letter-spacing: -0.04em;
    line-height: 1;
}

.construction-progress__content p {
    max-width: 47rem;
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    line-height: 1.55;
}

.construction-progress__track {
    height: 0.65rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.construction-progress__track span {
    width: var(--construction-progress, 10%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-strong), var(--gold-pale));
}

/* Location */

.complex-location {
    background: var(--paper);
}

.complex-location__card {
    position: relative;
    min-height: min(47rem, 78vh);
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.complex-location__card > img,
.complex-location__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.complex-location__card > img {
    object-fit: cover;
    object-position: center 38%;
}

.complex-location__veil {
    background:
        linear-gradient(90deg, rgba(12, 15, 20, 0.8), rgba(12, 15, 20, 0.12) 76%),
        linear-gradient(180deg, transparent 35%, rgba(12, 15, 20, 0.82));
}

.complex-location__content {
    position: relative;
    z-index: 1;
    max-width: 53rem;
    padding: clamp(2rem, 6vw, 5rem);
}

.complex-location__content h2 {
    color: var(--white);
}

.complex-location__content > p:not(.eyebrow) {
    max-width: 43rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.location-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.location-points li {
    min-width: 9.5rem;
    display: grid;
    gap: 0.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px) saturate(130%);
}

.location-points strong {
    font-size: 1rem;
    line-height: 1.3;
}

.location-points span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
}

/* FAQ */

.complex-faq {
    background: var(--paper-cool);
}

.complex-faq__layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.6fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 8rem);
}

.complex-faq__heading {
    position: sticky;
    top: 8rem;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 1.45rem 3rem 1.45rem 0;
    cursor: pointer;
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    font-weight: 620;
    letter-spacing: -0.02em;
    line-height: 1.35;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before,
.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    width: 1rem;
    height: 1px;
    background: var(--ink);
    content: "";
    transition: transform 180ms var(--ease-out);
}

.faq-list summary::after {
    transform: rotate(90deg);
}

.faq-list details[open] summary::after {
    transform: rotate(0deg);
}

.faq-list details p {
    max-width: 44rem;
    margin: -0.2rem 3rem 1.6rem 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* Internal links */

.complex-links {
    background: var(--paper);
}

.complex-links__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.complex-links__grid a {
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    text-decoration: none;
    transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}

.complex-links__grid span {
    margin-bottom: auto;
    color: var(--gold-strong);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.complex-links__grid strong {
    max-width: 20rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 610;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.complex-links__grid i {
    align-self: flex-end;
    margin-top: 1.25rem;
    color: var(--sea);
    font-size: 1.3rem;
    font-style: normal;
}

.complex-closing {
    background:
        radial-gradient(circle at 15% 20%, rgba(71, 125, 132, 0.3), transparent 35%),
        #171a22;
}

.complex-closing__lead {
    max-width: 21ch !important;
    color: var(--white) !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 560;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.complex-closing__benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    max-width: 35rem;
    margin: 1.7rem 0 0;
    padding: 0;
    list-style: none;
}

.complex-closing__benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    font-weight: 650;
}

.complex-closing__benefits li span {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(209, 177, 113, 0.42);
    border-radius: 50%;
    background: rgba(209, 177, 113, 0.12);
    color: var(--gold);
    font-size: 0.68rem;
}

.closing-messengers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.closing-messengers > span {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: transparent;
}

.closing-messengers > .closing-messenger--whatsapp {
    background: #25d366;
}

.closing-messengers > span svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: var(--white);
}

.closing-messengers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.closing-messengers small {
    margin-left: 0.25rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

/* Fixed selection prompt */

.selection-widget {
    position: fixed;
    z-index: 880;
    bottom: 24px;
    left: 22px;
    min-height: 4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(37, 41, 54, 0.9);
    box-shadow: 0 18px 45px rgba(17, 19, 26, 0.24);
    color: var(--white);
    cursor: pointer;
    isolation: isolate;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 180ms ease;
    backdrop-filter: blur(18px) saturate(125%);
}

.js .complex-page--fixed-widgets .selection-widget {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.65rem) scale(0.98);
}

.js .complex-page--fixed-widgets .selection-widget.is-beyond-hero:not(.is-suppressed) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.js .complex-page--fixed-widgets .selection-widget.is-beyond-hero:not(.is-suppressed):active {
    transform: scale(0.97);
}

.complex-page--fixed-widgets .selection-widget::after {
    position: absolute;
    z-index: -1;
    inset: -1px;
    border: 2px solid rgba(209, 177, 113, 0.94);
    border-radius: inherit;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    animation: selection-widget-pulse 1.7s var(--ease-out) infinite;
    will-change: transform, opacity;
}

.selection-widget:active {
    transform: scale(0.97);
}

.selection-widget__orb {
    width: 3.1rem;
    height: 3.1rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-pale), var(--gold-strong));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.selection-widget__orb svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.selection-widget__label {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 740;
    line-height: 1.15;
}

.selection-widget.is-suppressed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
}

/* Fixed expert widget */

.expert-widget {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    width: 331px;
    height: 91px;
    pointer-events: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.js .complex-page--fixed-widgets .expert-widget {
    opacity: 0;
    transform: translateY(0.65rem) scale(0.98);
}

.js .complex-page--fixed-widgets .expert-widget.is-beyond-hero {
    opacity: 1;
    transform: none;
}

.js .complex-page--fixed-widgets .expert-widget:not(.is-beyond-hero) .expert-widget__trigger {
    pointer-events: none;
}

.expert-widget.is-open {
    height: 370px;
}

.expert-widget.is-open .expert-widget__status {
    animation: none;
    opacity: 0;
    transform: translateX(0.5rem);
}

.expert-widget__trigger {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 91px;
    height: 91px;
    padding: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(17, 19, 26, 0.24);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 160ms var(--ease-out), box-shadow 180ms ease;
}

.expert-widget__trigger:active {
    transform: scale(0.96);
}

.expert-widget__trigger > img,
.expert-widget__panel-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 32%;
}

.expert-widget__badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: #cf5b51;
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 780;
    line-height: 1;
}

.expert-widget__status {
    position: absolute;
    right: 76px;
    bottom: 15px;
    z-index: 1;
    min-width: 12.2rem;
    padding: 0.7rem 1.45rem 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px 0.9rem 0.9rem 999px;
    background: rgba(251, 250, 247, 0.9);
    box-shadow: 0 14px 34px rgba(17, 19, 26, 0.16);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 710;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0.75rem);
    animation: expert-status-in 520ms var(--ease-out) 1.2s forwards;
    backdrop-filter: blur(16px) saturate(130%);
}

.expert-widget__panel {
    position: absolute;
    right: 0;
    bottom: 92px;
    width: 331px;
    min-height: 278px;
    padding: 4.15rem 1.25rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1.6rem;
    background: rgba(251, 250, 247, 0.92);
    box-shadow: 0 28px 70px rgba(17, 19, 26, 0.22);
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translate(10px, 14px) scale(0.9);
    transform-origin: calc(100% - 45px) calc(100% + 46px);
    transition: opacity 180ms ease, transform 260ms var(--ease-out);
    backdrop-filter: blur(24px) saturate(145%);
}

.expert-widget__panel:not([hidden]) {
    display: grid;
}

.expert-widget.is-open .expert-widget__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, 0) scale(1);
}

.expert-widget__panel-avatar {
    position: absolute;
    top: -45px;
    left: 50%;
    width: 91px;
    height: 91px;
    padding: 4px;
    border: 0;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(17, 19, 26, 0.18);
    transform: translateX(-50%);
}

.expert-widget__panel h2 {
    margin: 0 0 0.2rem;
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-align: center;
}

.expert-widget__panel > p {
    max-width: 15rem;
    margin: 0 auto 0.95rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.expert-widget__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(37, 41, 54, 0.06);
    cursor: pointer;
}

.expert-widget__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.85rem;
    height: 1px;
    background: var(--ink);
    transform: translate(-50%, -50%) rotate(45deg);
}

.expert-widget__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.expert-widget__socials {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.expert-social {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 150ms var(--ease-out), box-shadow 180ms ease;
}

.expert-social--whatsapp {
    background: #25d366;
    color: var(--white);
}

.expert-social--whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.expert-social img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-widget__phone {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 740;
    line-height: 1;
    text-decoration: none;
    transition: transform 150ms var(--ease-out), background-color 180ms ease;
}

.expert-widget__phone svg {
    width: 1rem;
    height: 1rem;
    fill: var(--gold);
}

/* Selection dialog */

.selection-dialog {
    box-sizing: border-box;
    width: min(94vw, 48rem);
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 2rem;
    background: transparent;
    color: var(--ink);
}

.selection-dialog::backdrop {
    background: rgba(12, 15, 21, 0.66);
    backdrop-filter: blur(12px) saturate(90%);
}

.selection-dialog[open] {
    animation: selection-dialog-in 220ms var(--ease-out) both;
}

.selection-dialog__surface {
    position: relative;
    max-height: calc(100dvh - 2rem);
    padding: clamp(1.2rem, 3vw, 1.75rem);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 90% 5%, rgba(209, 177, 113, 0.23), transparent 14rem),
        rgba(251, 250, 247, 0.98);
    box-shadow: 0 40px 100px rgba(7, 11, 18, 0.36);
}

.selection-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(37, 41, 54, 0.08);
    color: var(--ink);
    cursor: pointer;
}

.selection-dialog__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.selection-dialog__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.selection-dialog__mockup {
    width: 100%;
    height: auto;
    display: block;
    margin: -0.35rem auto 0;
    filter: drop-shadow(0 16px 24px rgba(37, 41, 54, 0.09));
}

.selection-dialog .eyebrow {
    margin: 1.15rem 0 0.7rem;
    text-align: center;
}

.selection-dialog h2 {
    max-width: none;
    margin: 0 auto 0.7rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 590;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-align: center;
}

.selection-dialog__surface > p:not(.eyebrow) {
    max-width: none;
    margin: 0 auto 1.25rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.selection-dialog__form {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    border-color: rgba(37, 41, 54, 0.1);
    background: var(--ink);
    box-shadow: none;
}

.selection-dialog__form > *,
.selection-dialog__form .lead-form__fields,
.selection-dialog__form .lead-field {
    min-width: 0;
}

/* Gallery lightbox */

.gallery-lightbox {
    box-sizing: border-box;
    width: min(92vw, 76rem);
    max-width: none;
    height: min(88vh, 54rem);
    height: min(88dvh, 54rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    padding: 1.25rem;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.8rem;
    background: rgba(17, 19, 26, 0.94);
    color: var(--white);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(120%);
}

.gallery-lightbox[open] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    animation: lightbox-in 220ms var(--ease-out) both;
}

.gallery-lightbox::backdrop {
    background: rgba(7, 9, 12, 0.78);
    backdrop-filter: blur(8px);
}

.gallery-lightbox figure {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.8rem;
    margin: 0;
    overflow: hidden;
}

.gallery-lightbox__media {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 1.2rem;
}

.gallery-lightbox figure img {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    border-radius: inherit;
    object-fit: contain;
}

.gallery-lightbox figcaption {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
}

.gallery-lightbox__close {
    position: absolute;
    top: -0.8rem;
    right: -0.8rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.gallery-lightbox__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-lightbox__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gallery-lightbox__nav {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.2rem;
}

@keyframes complex-hero-image-in {
    from { opacity: 0.55; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lightbox-in {
    from { opacity: 0; transform: translateY(0.5rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes selection-dialog-in {
    from { opacity: 0; transform: translateY(0.65rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes selection-widget-pulse {
    0%, 56%, 100% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 0.76;
    }

    42% {
        opacity: 0;
        transform: scale(1.13);
    }
}

@keyframes expert-status-in {
    from { opacity: 0; transform: translateX(0.75rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes mortgage-programs-loop {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (hover: hover) and (pointer: fine) {
    .breadcrumbs a:hover {
        color: var(--gold);
    }

    .gallery-card:hover img {
        filter: saturate(108%);
        transform: scale(1.035);
    }

    .format-card:hover,
    .complex-links__grid a:hover {
        border-color: rgba(184, 139, 67, 0.42);
        box-shadow: var(--shadow-card);
        transform: translateY(-0.3rem);
    }

    .format-card__button:hover {
        border-color: rgba(184, 139, 67, 0.46);
        background: var(--gold-pale);
        box-shadow: 0 10px 24px rgba(17, 19, 26, 0.08);
    }

    .format-card__button:hover span {
        background: var(--gold);
        transform: translateX(0.1rem);
    }

    .js .complex-page--fixed-widgets:not(.aparhotel-page) .selection-widget.is-beyond-hero:not(.is-suppressed):hover {
        box-shadow: 0 24px 58px rgba(17, 19, 26, 0.32);
        transform: translateY(-0.25rem);
    }

    .expert-widget__trigger:hover {
        box-shadow: 0 22px 54px rgba(17, 19, 26, 0.3);
        transform: translateY(-2px);
    }

    .expert-social:hover {
        box-shadow: 0 8px 18px rgba(17, 19, 26, 0.16);
        transform: translateY(-2px);
    }

    .expert-widget__phone:hover {
        background: var(--sea);
        transform: translateY(-1px);
    }
}

@media (max-width: 68rem) {
    .complex-hero {
        min-height: auto;
    }

    .complex-hero__inner {
        min-height: auto;
        padding-block: 2.4rem 4rem;
    }

    .complex-hero__layout {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2.5rem;
    }

    .complex-hero__copy {
        max-width: 50rem;
    }

    .complex-hero__form {
        max-width: 39rem;
    }

    .complex-intro__grid {
        gap: 4rem;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-map {
        grid-column: 1 / -1;
        min-height: 25rem;
    }

    .format-grid {
        grid-template-columns: 1fr;
    }

    .format-grid--three > .format-card:last-child {
        grid-column: auto;
    }

    .format-card {
        grid-template-columns: minmax(15rem, 0.7fr) minmax(18rem, 1fr);
    }

    .mortgage-calculator__lead {
        grid-template-columns: minmax(10rem, 0.5fr) minmax(0, 1fr);
    }

    .mortgage-calculator__lead .lead-form__fields,
    .mortgage-calculator__lead .lead-consent,
    .mortgage-calculator__lead .lead-form__status {
        grid-column: 2;
    }

    .mortgage-calculator__lead .lead-form__submit {
        grid-column: 2;
    }
}

@media (max-width: 52rem) {
    .complex-hero__veil {
        background:
            linear-gradient(180deg, rgba(10, 13, 18, 0.3) 0%, rgba(10, 13, 18, 0.78) 43%, rgba(10, 13, 18, 0.94) 100%);
    }

    .complex-hero__image {
        height: 45rem;
        object-position: 53% top;
    }

    .complex-hero__inner {
        padding-top: 1.5rem;
    }

    .complex-hero .breadcrumbs {
        margin-bottom: 16rem;
    }

    .complex-hero h1 {
        max-width: 12ch;
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .complex-intro__grid,
    .complex-mortgage__layout,
    .complex-faq__layout {
        grid-template-columns: 1fr;
    }

    .complex-intro__visual {
        max-width: 38rem;
    }

    .complex-intro__visual img {
        height: clamp(18rem, 55vw, 28rem);
    }

    .complex-mortgage__heading,
    .complex-faq__heading {
        position: static;
    }

    .mortgage-list {
        max-width: none;
        justify-self: stretch;
    }

    .advantage-card--wide {
        grid-template-columns: 1fr;
    }

    .education-card__stats {
        max-width: 32rem;
    }

    .details-layout,
    .mortgage-calculator__heading,
    .mortgage-calculator__shell {
        grid-template-columns: 1fr;
    }

    .details-map {
        grid-column: auto;
    }

    .mortgage-calculator__heading {
        align-items: start;
        gap: 0.8rem;
    }

    .mortgage-calculator__heading > p {
        max-width: 35rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(19rem, 60vw) repeat(2, minmax(13rem, 40vw));
    }

    .gallery-card--hero {
        grid-column: span 2;
        grid-row: auto;
    }

    .construction-grid {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .construction-grid::-webkit-scrollbar {
        display: none;
    }

    .construction-grid figure,
    .construction-grid figure:last-child {
        width: min(76vw, 29rem);
        min-width: min(76vw, 29rem);
        scroll-snap-align: center;
    }

    .construction-grid img {
        height: 13.5rem;
    }

    .complex-links__grid {
        grid-template-columns: 1fr;
    }

    .complex-links__grid a {
        min-height: 12rem;
    }

    .gallery-lightbox {
        width: 94vw;
        height: 78vh;
    }
}

@media (max-width: 40rem) {
    .complex-hero__image {
        height: 33rem;
    }

    .complex-hero__kicker {
        max-width: 31ch;
        text-wrap: balance;
    }

    .complex-hero .breadcrumbs {
        margin-bottom: 10.5rem;
    }

    .complex-hero__lead {
        font-size: 1rem;
    }

    .complex-hero__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complex-hero__facts div {
        min-width: 0;
    }

    .complex-hero__facts div:last-child {
        grid-column: span 2;
    }

    .complex-hero__actions {
        display: grid;
    }

    .complex-hero__form {
        margin-inline: -0.35rem;
        padding: 1.2rem;
    }

    .complex-intro__grid {
        gap: 3rem;
    }

    .complex-intro {
        padding-block: 3.5rem 3rem;
    }

    .complex-intro__visual,
    .complex-location__card {
        border-radius: var(--radius-md);
    }

    .complex-intro__visual img {
        border-radius: calc(var(--radius-md) - 0.35rem);
    }

    .complex-intro__visual figcaption {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
        padding: 0.55rem 0.7rem;
        border-radius: 0.9rem;
        font-size: 0.68rem;
        max-width: calc(100% - 2rem);
    }

    .advantage-grid,
    .format-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        min-height: 0;
    }

    .format-card {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .advantage-card > .advantage-card__number {
        margin-bottom: 0.9rem;
    }

    .advantage-card__art {
        min-height: 0;
        display: none;
    }

    .advantage-card__thumbnail {
        margin-bottom: 1.5rem;
    }

    .advantage-card--wide {
        grid-column: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

    .education-card__stats {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.65rem;
    }

    .education-card__stats div {
        padding: 0.9rem;
    }

    .format-card__visual {
        min-height: 20rem;
        padding: 0.4rem 1.25rem 0;
    }

    .format-card__visual img {
        height: 20rem;
    }

    .format-card__content {
        justify-content: flex-start;
        padding: 0.6rem 0.35rem 0.4rem;
    }

    .format-card__type {
        margin-bottom: 1.35rem;
    }

    .format-card__actions {
        margin-top: 1.25rem;
    }

    .education-card__copy h3 {
        max-width: 24ch;
        font-size: clamp(1.45rem, 6.4vw, 1.7rem);
        line-height: 1.08;
    }

    .gallery-grid {
        display: flex;
        gap: 0.75rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-card,
    .gallery-card--hero {
        width: min(82vw, 21rem);
        min-width: min(82vw, 21rem);
        height: 27rem;
        grid-column: auto;
        grid-row: auto;
        scroll-snap-align: center;
    }

    .details-list > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .details-map iframe {
        min-height: 21rem;
    }

    .mortgage-card {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.8rem;
    }

    .mortgage-card__rate {
        margin-bottom: 0.15rem;
    }

    .mortgage-calculator {
        margin-inline: 0.65rem;
        padding: 0.65rem;
        border-radius: 1.55rem;
    }

    .mortgage-programs {
        margin-inline: -0.65rem;
        padding-inline: 0;
    }

    .mortgage-programs__track {
        width: max-content;
        flex-wrap: nowrap;
        animation: mortgage-programs-loop 20s linear infinite;
    }

    .mortgage-programs__track span[aria-hidden="true"] {
        display: block;
    }

    .mortgage-calculator__heading {
        padding: 1.3rem 0.65rem 1rem;
    }

    .mortgage-calculator .calculator-inputs {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .mortgage-calculator__result {
        padding: 1.25rem;
    }

    .mortgage-calculator__lead {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .mortgage-calculator__lead .lead-form__fields,
    .mortgage-calculator__lead .lead-consent,
    .mortgage-calculator__lead .lead-form__status,
    .mortgage-calculator__lead .lead-form__submit {
        grid-column: auto;
    }

    .construction-progress {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .complex-location {
        padding-inline: 0.75rem;
    }

    .complex-location__card {
        min-height: 42rem;
        width: 100%;
    }

    .complex-location__veil {
        background: linear-gradient(180deg, rgba(12, 15, 20, 0.08) 10%, rgba(12, 15, 20, 0.92) 70%);
    }

    .complex-location__content {
        padding: 1.5rem;
    }

    .location-points {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-points li {
        min-width: 0;
    }

    .location-points li:last-child {
        grid-column: span 2;
    }

    .complex-closing__benefits {
        grid-template-columns: 1fr;
    }

    .closing-messengers {
        flex-wrap: wrap;
    }

    .closing-messengers small {
        width: 100%;
        margin: 0.25rem 0 0;
        text-align: center;
    }

    .expert-widget__status {
        display: none;
    }

    .selection-widget {
        left: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 3.5rem;
        gap: 0.5rem;
        padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    }

    .selection-widget__orb {
        width: 2.75rem;
        height: 2.75rem;
    }

    .selection-widget__orb svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .selection-widget__label {
        font-size: 0.66rem;
    }

    .expert-widget {
        right: 19px;
        bottom: 19px;
        width: 274px;
        height: 76px;
    }

    .expert-widget.is-open {
        height: 306px;
    }

    .expert-widget__trigger {
        width: 76px;
        height: 76px;
    }

    .expert-widget__badge {
        width: 23px;
        height: 23px;
    }

    .expert-widget__panel {
        bottom: 77px;
        width: 274px;
        min-height: 231px;
        padding: 3.55rem 1rem 0.9rem;
        border-radius: 1.35rem;
        transform-origin: calc(100% - 38px) calc(100% + 38px);
    }

    .expert-widget__panel-avatar {
        top: -38px;
        width: 76px;
        height: 76px;
    }

    .expert-widget__panel h2 {
        font-size: 1.3rem;
    }

    .expert-widget__panel > p {
        margin-bottom: 0.65rem;
        font-size: 0.72rem;
    }

    .expert-widget__socials {
        gap: 0.5rem;
        margin-bottom: 0.65rem;
    }

    .expert-social {
        width: 35px;
        height: 35px;
    }

    .expert-social--whatsapp svg {
        width: 20px;
        height: 20px;
    }

    .expert-widget__phone {
        min-height: 2.55rem;
        font-size: 0.78rem;
    }

    .gallery-lightbox[open] {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 0.75rem;
    }

    .gallery-lightbox figure {
        grid-column: span 2;
        grid-row: 1;
    }

    .gallery-lightbox__nav {
        width: 100%;
        border-radius: 999px;
    }

    .selection-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 1.4rem;
    }

    .selection-dialog__surface {
        max-height: calc(100dvh - 1rem);
        padding: 1rem;
        border-radius: 1.4rem;
    }

    .selection-dialog__mockup {
        width: calc(100% + 0.6rem);
        max-width: none;
        margin: 0.65rem -0.3rem 0;
    }

    .selection-dialog .eyebrow {
        margin-top: 1rem;
    }

    .selection-dialog h2 {
        font-size: clamp(1.85rem, 8.8vw, 2.5rem);
    }

    .selection-dialog__form .lead-form__fields {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .complex-page--fixed-widgets:not(.aparhotel-page) .selection-widget.is-beyond-hero:not(.is-suppressed):hover,
    .js .complex-page--fixed-widgets:not(.aparhotel-page) .selection-widget.is-beyond-hero:not(.is-suppressed):active {
        transform: none;
    }

    .complex-hero__image,
    .gallery-lightbox[open],
    .selection-dialog[open],
    .expert-widget__status,
    .mortgage-programs__track {
        animation: none;
    }

    .gallery-card img,
    .faq-list summary::before,
    .faq-list summary::after,
    .complex-links__grid a,
    .format-card,
    .expert-widget__panel,
    .expert-widget__trigger,
    .expert-social,
    .expert-widget__phone,
    .selection-widget,
    .format-card__button {
        transition-duration: 0.01ms;
    }

    .mortgage-programs {
        overflow-x: auto;
        scrollbar-width: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .complex-hero__kicker,
    .complex-hero__facts div,
    .complex-hero__form,
    .location-points li,
    .expert-widget__panel,
    .gallery-lightbox,
    .selection-widget,
    .selection-dialog::backdrop,
    .details-map figcaption {
        backdrop-filter: none;
    }

    .complex-hero__form,
    .gallery-lightbox {
        background: rgba(17, 19, 26, 0.98);
    }

    .expert-widget__panel {
        background: var(--paper);
    }

    .selection-widget {
        background: var(--ink);
    }

    .complex-intro__visual figcaption {
        background: var(--paper);
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .complex-hero__veil {
        background: rgba(10, 13, 18, 0.78);
    }

    .complex-hero__lead,
    .complex-location__content > p:not(.eyebrow),
    .complex-mortgage__heading > p:not(.eyebrow),
    .mortgage-card p {
        color: rgba(255, 255, 255, 0.9);
    }
}
