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

.kdc {
    --kdc-accent: #ffaa00;
    --kdc-accent-dark: #e79a00;
    --kdc-light: #ececec;
    --kdc-text: #050505;
    width: 100%;
    max-width: 860px;
    margin: 40px auto 0;
    color: var(--kdc-text);
    font-family: Montserrat, Arial, sans-serif;
}

.kdc__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 28px;
}

.kdc__card {
    position: relative;
    z-index: 1;
    height: 230px;
    min-height: 230px;
    padding: 56px 24px 18px;
    border: 2px solid transparent;
    border-radius: 16px;
    outline: 0;
    background: var(--kdc-light);
    cursor: pointer;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease,
        box-shadow .2s ease, transform .2s ease, min-height .2s ease;
}

.kdc__card:hover,
.kdc__card:focus-visible {
    border-color: var(--kdc-accent);
}

.kdc__card.is-active {
    z-index: 2;
    height: 268px;
    min-height: 268px;
    padding-top: 64px;
    padding-bottom: 24px;
    border-color: var(--kdc-accent-dark);
    background: var(--kdc-accent);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
    transform: scale(1.08);
}

.kdc__label {
    position: absolute;
    top: -13px;
    left: 50%;
    width: calc(100% - 38px);
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
    transform: translateX(-50%);
    border: 2px solid #e7e7e7;
    border-radius: 10px;
    background: #fff;
    color: var(--kdc-accent);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.kdc__card.is-active .kdc__label {
    border-color: var(--kdc-accent);
}

.kdc__card--club .kdc__label {
    width: 64%;
    min-width: 150px;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 28px;
}

.kdc__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
    white-space: nowrap;
}

.kdc__price strong {
    font-size: 48px;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.06em;
}

.kdc__card--club.is-active .kdc__price strong,
.kdc__card--premium.is-active .kdc__price strong {
    font-size: 60px;
}

.kdc__price span {
    font-size: 16px;
    font-weight: 800;
}

.kdc__card--club.is-active .kdc__price span,
.kdc__card--premium.is-active .kdc__price span {
    font-size: 18px;
}

.kdc__period {
    margin: 10px 0 20px;
    font-size: 15px;
    font-weight: 800;
}

.kdc__card--club.is-active .kdc__period,
.kdc__card--premium.is-active .kdc__period {
    margin: 12px 0 22px;
    font-size: 17px;
}

.kdc__card p {
    margin: 22px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.kdc__card--premium p {
    margin-top: 0;
}

.kdc__card--club.is-active p {
    margin-top: 0;
    font-size: 15px;
}

.kdc__card--premium p {
    font-size: 12px;
    line-height: 1.16;
}

.kdc__amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.kdc__amounts button,
.kdc__custom {
    min-height: 31px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--kdc-text);
    font: inherit;
}

.kdc__amounts button {
    padding: 6px 2px;
    cursor: pointer;
    font-size: 13px;
}

.kdc__amounts button:hover,
.kdc__amounts button:focus-visible,
.kdc__amounts button.is-active {
    outline: 2px solid var(--kdc-accent);
}

.kdc__custom {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.kdc__custom:focus-within {
    outline: 2px solid var(--kdc-accent);
}

.kdc__custom input {
    flex: 1;
    min-width: 0;
    height: 31px;
    padding: 0 8px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: var(--kdc-text);
    font: inherit;
    font-size: 13px;
    text-align: center;
    box-shadow: none !important;
}

.kdc__custom span:last-child {
    font-size: 12px;
    font-weight: 700;
}

.kdc__error {
    min-height: 24px;
    margin: 24px 0 2px;
    color: #b00020;
    font-size: 14px;
    text-align: center;
}

.kdc__submit {
    display: block;
    width: min(480px, 100%);
    min-height: 54px;
    margin: 0 auto;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    background: #ff1717;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    transition: background-color .18s ease;
}

.kdc__submit:hover,
.kdc__submit:focus-visible {
    background: #dc0000;
}

.kdc__checkout-form {
    display: none !important;
}

.kdc .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .kdc {
        max-width: 560px;
        margin-top: 38px;
    }

    .kdc__cards {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .kdc__card {
        height: auto;
        min-height: 0;
        padding: 84px 24px 34px;
        border-radius: 24px;
    }

    .kdc__card.is-active {
        height: auto;
        min-height: 0;
        transform: scale(1.02);
    }

    .kdc__label,
    .kdc__card--club .kdc__label {
        top: -22px;
        width: calc(100% - 48px);
        min-height: 64px;
        padding: 15px;
        border-radius: 18px;
        font-size: 30px;
    }

    .kdc__price strong,
    .kdc__card--club .kdc__price strong {
        font-size: 68px;
    }

    .kdc__price span,
    .kdc__card--club .kdc__price span {
        font-size: 22px;
    }

    .kdc__period,
    .kdc__card--club .kdc__period {
        margin: 14px 0 24px;
        font-size: 22px;
    }

    .kdc__card p,
    .kdc__card--club p,
    .kdc__card--premium p {
        margin-top: 24px;
        font-size: 19px;
        line-height: 1.25;
    }

    .kdc__amounts {
        gap: 10px;
        margin-bottom: 12px;
    }

    .kdc__amounts button,
    .kdc__custom {
        min-height: 54px;
        border-radius: 12px;
    }

    .kdc__amounts button,
    .kdc__custom input {
        height: 52px;
        font-size: 18px;
    }

    .kdc__submit {
        width: 100%;
        min-height: 60px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .kdc__card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .kdc__label,
    .kdc__card--club .kdc__label {
        width: calc(100% - 36px);
        font-size: 26px;
    }

    .kdc__price strong,
    .kdc__card--club .kdc__price strong {
        font-size: 58px;
    }
}

