@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&display=swap');

.chr-promo {
    --bg: #522b29;
    --bg2: #44221f;
    --brick: #8c3f2f;
    --cream: #dcbfa6;
    --ink: #2d2d2d;
    --white: #fff;
    --btn: #5a2a2a;
    font-family: Poppins, system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

.chr-promo * {
    box-sizing: border-box;
    margin: 0;
}

.chr-promo a {
    color: inherit;
    text-decoration: none;
}

.chr-promo .btn {
    display: inline-block;

    background: var(--cream);
    color: var(--bg);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 14px 26px;
    border: 0;
    transition: .3s;
    cursor: pointer;
    font-family: inherit;
}

.chr-promo .btn:hover {
    background: var(--btn);
    color: #fff;
    transform: translateY(-2px);
}

.chr-promo .eyebrow {
    font-size: 13px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 500;
}

.chr-promo .ov {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(25, 10, 9, .72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .5s;
}

.chr-promo .ov.show {
    display: grid;
}

.chr-promo .ov.vis {
    opacity: 1;
}

.chr-promo .md {
    position: relative;
    width: min(880px, 100%);
    background: var(--bg);
    text-align: center;
    overflow: hidden;
    transform: translateY(40px) scale(.94);
    opacity: 0;
    transition: transform .7s cubic-bezier(.2, .9, .3, 1.2), opacity .6s .1s;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.chr-promo .ov.vis .md {
    transform: none;
    opacity: 1;
}

.chr-promo .md::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brick), var(--cream), var(--brick));
    background-size: 200% 100%;
    animation: chrsh 4s linear infinite;
}

@keyframes chrsh {
    to {
        background-position: 200% 0;
    }
}

.chr-promo .x {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    background: rgba(40, 20, 18, .45);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: .3s;
}

.chr-promo .x:hover {
    transform: rotate(90deg);
    color: var(--cream);
}

.chr-promo .md h2 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(26px, 4.6vw, 44px);
    line-height: 1.1;
    margin: 10px 0 0;
    color: var(--white);
}

.chr-promo .md h2 em {
    font-style: normal;
    color: var(--cream);
}

.chr-promo .md p {
    margin-top: 8px;
    color: #fff;
}

.chr-promo .mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.chr-promo .mini div {
    background: var(--bg2);
    padding: 16px;
    font-size: 21px;
    text-align: left;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
}

.chr-promo .ov.vis .mini div {
    animation: chrup .6s forwards;
}

.chr-promo .ov.vis .mini div:nth-child(1) {
    animation-delay: .5s;
}

.chr-promo .ov.vis .mini div:nth-child(2) {
    animation-delay: .7s;
}

.chr-promo .ov.vis .mini div:nth-child(3) {
    animation-delay: .9s;
}

@keyframes chrup {
    to {
        opacity: 1;
        transform: none;
    }
}

.chr-promo .mini b {
    display: block;
    color: var(--cream);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .15em;
    margin-bottom: 4px;
}

.chr-promo .mimg {
    height: 200px;
    margin: 0 0 26px;
    background: linear-gradient(180deg, transparent 40%, var(--bg)),
        url('https://chrobrego.torun.pl/wp-content/uploads/2026/07/ChrobryResidence1.jpg') center/cover,
        var(--brick);
}

.chr-promo .note {
    font-size: 12px;
    opacity: .7;
    margin-top: 14px;
}

.chr-promo .leaves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.chr-promo .mc {
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    scrollbar-width: none;
}

.chr-promo .mc::-webkit-scrollbar {
    display: none;
}

.chr-promo .mc .in {
    padding: 0 clamp(22px, 5vw, 56px) 40px;
}

.chr-promo .leaf {
    position: absolute;
    top: -60px;
    width: 34px;
    height: 34px;
    background: var(--brick);
    border-radius: 0 100% 0 100%;
    opacity: 0;
    pointer-events: none;
}

.chr-promo .ov.vis .leaf {
    animation: chrfall linear infinite;
}

@keyframes chrfall {
    0% {
        top: -60px;
        transform: rotate(0);
        opacity: 0;
    }

    10% {
        opacity: .85;
    }

    100% {
        top: 105%;
        transform: translateX(60px) rotate(540deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chr-promo * {
        animation: none !important;
        transition: none !important;
    }

    .chr-promo .mini div {
        opacity: 1;
        transform: none;
    }

    .chr-promo .md {
        opacity: 1;
        transform: none;
    }
}