.krp,
.krp * {
    box-sizing: border-box;
}

body.krp-popup-open {
    overflow: hidden;
}

.krp {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 24px;
    position: fixed;
    transition: opacity 180ms ease;
    visibility: hidden;
    z-index: 999999;
}

.krp.krp--visible {
    opacity: 1;
    visibility: visible;
}

.krp__backdrop {
    background: rgba(5, 7, 10, 0.72);
    inset: 0;
    position: absolute;
}

.krp__dialog {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    display: grid;
    grid-template-columns: minmax(255px, 0.82fr) minmax(360px, 1.18fr);
    max-height: calc(100vh - 48px);
    max-width: 760px;
    overflow: auto;
    position: relative;
    transform: translateY(16px) scale(0.985);
    transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
    width: 100%;
    z-index: 1;
}

.krp--visible .krp__dialog {
    transform: translateY(0) scale(1);
}

.krp__close {
    align-items: center;
    background: #f1f2f4;
    border: 0;
    border-radius: 50%;
    color: #202124;
    cursor: pointer;
    display: flex;
    font: 400 28px/1 Arial, sans-serif;
    height: 40px;
    justify-content: center;
    padding: 0 0 3px;
    position: absolute;
    right: 16px;
    top: 16px;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
    width: 40px;
    z-index: 3;
}

.krp__close:hover,
.krp__close:focus-visible {
    background: #df1228;
    color: #ffffff;
    outline: none;
    transform: rotate(4deg);
}

.krp__visual {
    align-items: center;
    background:
        radial-gradient(circle at 50% 44%, rgba(227, 18, 39, 0.34), transparent 36%),
        linear-gradient(145deg, #17191d 0%, #272a2f 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
    padding: 44px 26px;
    position: relative;
    text-align: center;
}

.krp__visual::before,
.krp__visual::after {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: '';
    height: 280px;
    position: absolute;
    width: 280px;
}

.krp__visual::before {
    left: -170px;
    top: -135px;
}

.krp__visual::after {
    bottom: -155px;
    right: -175px;
}

.krp__eyebrow {
    color: #d8dadd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.krp__discount {
    align-items: center;
    background: #df1228;
    border: 7px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.33), 0 0 0 9px rgba(223, 18, 40, 0.18);
    display: flex;
    height: 164px;
    justify-content: center;
    position: relative;
    transform: rotate(-4deg);
    width: 164px;
    z-index: 1;
}

.krp__discount strong {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
}

.krp__discount span {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 35px;
    font-weight: 900;
    margin-left: 7px;
    margin-top: -35px;
}

.krp__discount-label {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.07em;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.krp__visual-note {
    color: #c9cbd0;
    font-size: 13px;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.krp__content {
    align-self: center;
    color: #202124;
    padding: 54px 48px 42px;
}

.krp__kicker {
    color: #df1228;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 48px 10px 0;
}

.krp__content h2 {
    color: #181a1e;
    font-size: clamp(30px, 3.2vw, 41px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0 28px 17px 0;
}

.krp__content h2 span {
    color: #df1228;
}

.krp__description {
    color: #555961;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 19px;
}

.krp__benefits {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.krp__benefits li {
    align-items: flex-start;
    color: #34373d;
    display: flex;
    font-size: 14px;
    gap: 9px;
    line-height: 1.4;
    margin: 8px 0;
}

.krp__benefits li span {
    align-items: center;
    background: #e9f6ed;
    border-radius: 50%;
    color: #168447;
    display: inline-flex;
    flex: 0 0 20px;
    font-size: 13px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    margin-top: 1px;
}

.krp__cta {
    align-items: center;
    background: #df1228;
    border: 2px solid #df1228;
    border-radius: 7px;
    box-shadow: 0 9px 22px rgba(223, 18, 40, 0.23);
    color: #ffffff !important;
    display: flex;
    font-size: 16px;
    font-weight: 800;
    justify-content: center;
    min-height: 52px;
    padding: 12px 22px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
    width: 100%;
}

.krp__cta:hover,
.krp__cta:focus-visible {
    background: #bd0f22;
    border-color: #bd0f22;
    color: #ffffff !important;
    outline: none;
    transform: translateY(-1px);
}

.krp__later {
    background: transparent;
    border: 0;
    color: #6d7178;
    cursor: pointer;
    display: block;
    font-size: 13px;
    margin: 11px auto 0;
    padding: 5px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.krp__later:hover,
.krp__later:focus-visible {
    color: #202124;
    outline: none;
}

.krp__terms {
    color: #8a8e94;
    font-size: 11px;
    line-height: 1.42;
    margin: 13px 0 0;
    text-align: center;
}

/* Väčšie rozloženie iba pre klasické desktopové obrazovky. */
@media (min-width: 820px) {
    .krp__dialog {
        grid-template-columns: clamp(300px, 34vw, 390px) minmax(0, 1fr);
        max-width: 1120px;
    }

    .krp__visual {
        min-height: 560px;
        padding: 56px 34px;
    }

    .krp__discount {
        height: 188px;
        width: 188px;
    }

    .krp__discount strong {
        font-size: 101px;
    }

    .krp__discount span {
        font-size: 39px;
        margin-top: -39px;
    }

    .krp__discount-label {
        font-size: 31px;
        margin-top: 24px;
    }

    .krp__content {
        padding: 64px clamp(38px, 4vw, 58px) 50px;
    }

    .krp__kicker {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .krp__content h2 {
        font-size: clamp(30px, 3.1vw, 42px);
        margin-bottom: 21px;
        margin-right: 48px;
        white-space: nowrap;
    }

    .krp__description {
        font-size: 17px;
        margin-bottom: 22px;
    }

    .krp__benefits li {
        font-size: 15px;
        margin: 10px 0;
    }

    .krp__cta {
        font-size: 17px;
        min-height: 58px;
    }
}

@media (max-width: 700px) {
    .krp {
        align-items: flex-end;
        padding: 12px;
    }

    .krp__dialog {
        border-radius: 17px;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        max-width: 520px;
    }

    .krp__visual {
        min-height: 185px;
        padding: 27px 24px 24px;
    }

    .krp__eyebrow {
        margin-bottom: 10px;
    }

    .krp__discount {
        border-width: 5px;
        height: 96px;
        width: 96px;
    }

    .krp__discount strong {
        font-size: 53px;
    }

    .krp__discount span {
        font-size: 21px;
        margin-left: 4px;
        margin-top: -21px;
    }

    .krp__discount-label {
        font-size: 18px;
        margin-top: 10px;
    }

    .krp__visual-note {
        display: none;
    }

    .krp__content {
        padding: 28px 24px 24px;
    }

    .krp__content h2 {
        font-size: 30px;
        margin-right: 16px;
    }

    .krp__description {
        font-size: 15px;
    }
}

@media (max-width: 390px), (max-height: 680px) and (max-width: 700px) {
    .krp__visual {
        align-items: center;
        flex-direction: row;
        gap: 13px;
        min-height: 112px;
        padding: 18px 56px 18px 18px;
    }

    .krp__eyebrow,
    .krp__visual-note {
        display: none;
    }

    .krp__discount {
        flex: 0 0 76px;
        height: 76px;
        width: 76px;
    }

    .krp__discount strong {
        font-size: 42px;
    }

    .krp__discount span {
        font-size: 17px;
        margin-left: 3px;
        margin-top: -17px;
    }

    .krp__discount-label {
        font-size: 22px;
        margin: 0;
    }

    .krp__content {
        padding: 23px 20px 19px;
    }

    .krp__kicker {
        margin-bottom: 6px;
    }

    .krp__content h2 {
        font-size: 26px;
        margin-bottom: 11px;
    }

    .krp__description {
        line-height: 1.42;
        margin-bottom: 12px;
    }

    .krp__benefits {
        display: none;
    }

    .krp__terms {
        margin-top: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .krp,
    .krp__dialog,
    .krp__close,
    .krp__cta {
        transition: none;
    }
}
