:root {
    --toplayer-hp-gold: #a99d7d;
    --toplayer-hp-beige: #eee9df;
    --toplayer-hp-beige-dark: #ddd4c4;
    --toplayer-hp-ink: #333333;
    --toplayer-hp-muted: #707070;
    --toplayer-hp-blue: #0b4aa0;
    --toplayer-hp-blue-dark: #083a80;
    --toplayer-hp-white: #ffffff;
    --toplayer-hp-shadow: 0 16px 42px rgba(24, 28, 38, 0.16);
    --toplayer-hp-container-width: 1120px;
    --toplayer-hp-content-gutter: 16px;
    --toplayer-hp-font: Arial, Helvetica, sans-serif;
}

.toplayer-hp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-y: auto;
    background: var(--toplayer-hp-white);
    isolation: isolate;
    display: none;
}
.toplayer-hp-overlay.is-active {
    display: unset;
}

.toplayer-hp-toplayer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--toplayer-hp-ink);
    background: var(--toplayer-hp-white);
}

.toplayer-hp-hero {
    position: relative;
    min-height: clamp(420px, 60vw, 620px);
    overflow: hidden;
    background:
    linear-gradient(100deg, rgba(237, 231, 220, 1) 0%, rgba(237, 231, 220, 0.97) 34%, rgba(237, 231, 220, 0.72) 52%, rgba(237, 231, 220, 0.08) 78%, rgba(237, 231, 220, 0.28) 100%),
    url("toplayer-osiedle.webp") center / cover no-repeat;
}

.toplayer-hp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(270deg, rgba(245, 241, 234, 0.18) 0%, rgba(245, 241, 234, 0) 48%);
    pointer-events: none;
}

.toplayer-hp-hero::after {
    content: "";
    position: absolute;
    right: clamp(50px, 8vw, 120px);
    bottom: -1px;
    width: min(460px, 46%);
    height: 34%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.toplayer-hp-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    width: min(var(--toplayer-hp-container-width), calc(100% - (var(--toplayer-hp-content-gutter) * 2)));
    min-height: inherit;
    margin: 0 auto;
    padding: clamp(26px, 4.2vw, 64px) 0 clamp(64px, 8vw, 100px);
}

.toplayer-hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: var(--toplayer-hp-ink);
    text-decoration: none;
}

.toplayer-hp-brand__logo {
    display: block;
    width: min(381px, 72vw);
    height: auto;
}

.toplayer-hp-hero__copy {
    align-self: end;
    max-width: 680px;
    margin-top: 34px;
}

.toplayer-hp-label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 clamp(18px, 3vw, 34px);
    padding: 10px 30px 10px 34px;
    color: var(--toplayer-hp-white);
    background: var(--toplayer-hp-gold);
    font-size: clamp(0.82rem, 1.4vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position:relative;
}
.toplayer-hp-label span {
    font-size: 1.75em;
    position: absolute;
    left: 20px;
    top: 5px;
}

.toplayer-hp-price {
    display: flex;
    align-items: baseline;
    gap: clamp(8px, 1vw, 16px);
    margin: 0;
    font-size: clamp(4rem, 10vw, 8.8rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.085em;
    white-space: nowrap;
}

.toplayer-hp-price__unit {
    font-size: clamp(1.8rem, 4vw, 3.45rem);
    font-weight: 700;
    letter-spacing: -0.065em;
}

.toplayer-hp-parking {
    margin: 8px 0 0;
    font-size: clamp(1.1rem, 2.35vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.toplayer-hp-intro {
    margin: clamp(44px, 7vw, 76px) 0 0;
    color: #4b4b4b;
    font-size: clamp(0.95rem, 1.55vw, 1.25rem);
    line-height: 1.5;
}

.toplayer-hp-close {
    position: absolute;
    top: clamp(18px, 3.3vw, 48px);
    right: max(var(--toplayer-hp-content-gutter), calc((100vw - var(--toplayer-hp-container-width)) / 2 + var(--toplayer-hp-content-gutter)));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 4.6vw, 58px);
    height: clamp(44px, 4.6vw, 58px);
    padding: 0;
    color: var(--toplayer-hp-ink);
    background: var(--toplayer-hp-white);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(25, 26, 30, 0.16);
    cursor: pointer;
    transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.toplayer-hp-close:hover,
.toplayer-hp-close:focus-visible {
    color: var(--toplayer-hp-blue);
    transform: scale(1.05);
    outline: none;
    box-shadow: 0 10px 28px rgba(25, 26, 30, 0.24), 0 0 0 3px rgba(11, 74, 160, 0.18);
}

.toplayer-hp-close svg {
    width: 45%;
    height: 45%;
}

.toplayer-hp-offers {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 22px);
    width: min(var(--toplayer-hp-container-width), calc(100% - (var(--toplayer-hp-content-gutter) * 2)));
    margin: clamp(-54px, -4.4vw, -28px) auto 0;
    padding-bottom: clamp(24px, 4vw, 56px);
}

.toplayer-hp-offer {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 178px;
    overflow: hidden;
    background: var(--toplayer-hp-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(27, 30, 36, 0.14);
}

.toplayer-hp-offer__head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #ededed;
}

.toplayer-hp-offer__type {
    margin: 0;
    color: #6d6d6d;
    font-size: 0.86rem;
}

.toplayer-hp-offer__number {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.toplayer-hp-offer__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    color: #4e4e4e;
    font-size: clamp(0.78rem, 1.2vw, 0.93rem);
    white-space: nowrap;
}

.toplayer-hp-offer__meta > div {
    padding: 11px 13px;
    border-right: 1px solid #ededed;
}

.toplayer-hp-offer__meta > div:last-child {
    border-right: 0;
    text-align: right;
}

.toplayer-hp-offer__meta dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.toplayer-hp-offer__meta dd {
    margin: 0;
}

.toplayer-hp-offer__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 10px 10px 12px;
    color: var(--toplayer-hp-white);
    background: #9c9c9c;
    border-radius: 6px;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.toplayer-hp-offer--featured .toplayer-hp-offer__button,
.toplayer-hp-offer__button:hover,
.toplayer-hp-offer__button:focus-visible {
    background: var(--toplayer-hp-blue);
    outline: none;
    box-shadow: 0 7px 18px rgba(11, 74, 160, 0.28);
    transform: translateY(-1px);
}

.toplayer-hp-offer__button:active {
    transform: translateY(0);
}

@media (max-width: 980px) {
    .toplayer-hp-hero {
    min-height: 520px;
    background-position: 54% center;
    }

    .toplayer-hp-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -22px;
    }
}

@media (max-width: 640px) {
    .toplayer-hp-hero {
    min-height: 520px;
    background:
        linear-gradient(100deg, rgba(237, 231, 220, 0.98) 0%, rgba(237, 231, 220, 0.9) 46%, rgba(237, 231, 220, 0.3) 78%, rgba(237, 231, 220, 0.36) 100%),
        url("toplayer-osiedle.webp") 62% center / cover no-repeat;
    }

    .toplayer-hp-hero__content {
    padding: 22px 0 62px;
    }

    .toplayer-hp-close {
    top: 14px;
    right: 14px;
    }

    .toplayer-hp-hero__copy {
    margin-top: 30px;
    }

    .toplayer-hp-price {
    font-size: clamp(3.7rem, 19vw, 6rem);
    }

    .toplayer-hp-intro {
    margin-top: 44px;
    }

    .toplayer-hp-offers {
    grid-template-columns: minmax(0, 1fr);
    width: min(var(--toplayer-hp-container-width), calc(100% - (var(--toplayer-hp-content-gutter) * 2)));
    }
}

@media (max-height: 620px) and (min-width: 641px) {
    .toplayer-hp-hero {
    min-height: 500px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    }
}