.home-ad {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 16, 32, 0.72);
}

.home-ad[hidden] {
    display: none;
}

html.home-ad-open,
html.home-ad-open body {
    overflow: hidden;
}

.home-ad__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.home-ad__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.home-ad__label {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-ad__close {
    position: absolute;
    top: 2rem;
    right: 0.55rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #10233f;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.home-ad__card {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) 1.35fr;
    min-height: 320px;
    overflow: hidden;
    border-radius: 6px;
    background: #10233f;
    color: #fff;
    text-decoration: none;
}

.home-ad__card:hover,
.home-ad__card:focus {
    color: #fff;
    text-decoration: none;
}

.home-ad__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    padding: 1.75rem 1.5rem;
}

.home-ad__logo {
    width: 58px;
    height: auto;
    margin-top: auto;
    opacity: 0.72;
}

.home-ad__place {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.home-ad__headline {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.25;
}

.home-ad__access {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.home-ad__cta {
    align-self: flex-start;
    border: 1px solid #fff;
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.home-ad__photos {
    position: relative;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 320px;
    background: #0b1a30;
}

.home-ad__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-ad__photo--living {
    grid-row: 1 / span 2;
    object-position: center 28%;
}

.home-ad__photos::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3.2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.home-ad__caption {
    position: absolute;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

@media (max-width: 700px) {
    .home-ad {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .home-ad__card {
        grid-template-columns: 1fr;
    }

    .home-ad__headline {
        font-size: 1.3rem;
    }

    .home-ad__photos {
        min-height: 240px;
    }

    .home-ad__close {
        top: 0.45rem;
    }
}
