.cycle-registration-popup {
    box-sizing: border-box;
    width: min(620px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    padding: 0;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 18px;
    background: #850f1c;
    color: #fff;
    box-shadow: 0 24px 80px rgb(0 0 0 / 48%);
    overscroll-behavior: contain;
}

.cycle-registration-popup:not([open]) {
    display: none;
}

.cycle-registration-popup::backdrop {
    background: rgb(11 9 12 / 72%);
}

html:has(.cycle-registration-popup[open]) {
    overflow: hidden;
}

.cycle-registration-popup__body {
    position: relative;
    display: flex;
    min-height: min(510px, 84vh);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: clamp(84px, 29vh, 240px) clamp(24px, 6vw, 52px) clamp(26px, 5vh, 42px);
    background:
        linear-gradient(to top, #850f1c 1%, #8c1020 19%, rgb(119 9 20 / 90%) 37%, transparent 71%),
        url("../img/karuzele/beskidzka/PK_BESKIDZKA%20%28105%20z%20822%29-2.jpg") center top / cover no-repeat;
    font-family: Montserrat, Arial, sans-serif;
}

.cycle-registration-popup__title {
    margin: 0 0 10px;
    color: inherit;
    font: 600 clamp(18px, 3.8vw, 22px)/1.3 Montserrat, Arial, sans-serif;
}

.cycle-registration-popup__title span {
    display: block;
    margin-top: 3px;
    font: 400 clamp(48px, 10vw, 78px)/0.98 "Instrument Serif", Georgia, serif;
}

.cycle-registration-popup__description {
    margin: 0 0 23px;
    font-size: clamp(15px, 3.5vw, 17px);
    line-height: 1.5;
}

.cycle-registration-popup__link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 8px 27px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.cycle-registration-popup__link:hover {
    background: #fff;
    color: #850f1c;
    text-decoration: none;
}

.cycle-registration-popup__close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 66%);
    border-radius: 50%;
    background: rgb(19 10 14 / 70%);
    color: #fff;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.cycle-registration-popup__close:hover {
    background: #181015;
}

.cycle-registration-popup__close:focus-visible,
.cycle-registration-popup__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-height: 500px) {
    .cycle-registration-popup__body {
        padding-top: 84px;
    }
}
