.card {
    border-radius: 0px 8px 8px 8px;
    border: 1px solid #2a5493;
    position: relative;
    font-size: 26px;
    color: #2a5493;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 25% 39.29% 36%;
    grid-template-columns: 25% 39.29% 36%;
    height: calc(100% - 40px);
}

.card-jk {
    border-radius: 0px 8px 8px 8px;
    border: 1px solid #2a5493;
    position: relative;
    font-size: 26px;
    color: #2a5493;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 25% 39.29% 36%;
    grid-template-columns: 25% 39.29% 36%;

}


.card__layout {
    padding-top: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.card__layout__btn {
    font-size: 18px;
    color: #000;
    width: 100%;
    padding: 8px 0;
}

.card__layout__btn:hover:not(.card__layout__btn-selected) {
    color: #2a5493;
    text-decoration: underline;
}

.card__layout__btn-selected {
    color: #fff;
    background-color: #2a5493;
}

.card__price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: 8px;
    border-left: 1px solid #868686;
    border-right: 1px solid #868686;
    text-align: center;
}

.card__price p {
    color: #000;
    font-size: 24px;
}

.card__price p span {
    font-size: 36px;
    font-weight: 700;
}

.card__price__link {
    color: #fff;
    font-size: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 3px 3px 0 0;
    background: #e65d5d;
    height: 50px;
}

.card__price__link:hover {
    text-decoration: underline;
}

.card__img {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.card__img img {
    max-width: 214px;
    max-height: 231px;
}

.card__magnifier {
    position: absolute;
    opacity: 0.8;
    bottom: 0;
    right: 1px;
    width: 40px;
    height: 40px;
    border-radius: 7px 0px;
    background: #2a5493;
}

.card__magnifier img {
    width: 24px;
}

.card__magnifier:hover {
    opacity: 1;
}

.card__rooms {
    position: absolute;
    top: -40px;
    left: -1px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-radius: 8px 8px 0px 0px;
    background: #96accc;
    font-size: 18px;
    height: 40px;
    text-align: center;
    color: #fff;
}

.card__room:first-child {
    border-radius: 8px 0px 0px 0px;
}

.card__room:last-child {
    border-radius: 0px 8px 0px 0px;
}

.card__room {
    border: 1px solid #718db7;
    width: 175px;
    padding: 8px 0;
    height: 100%;
    border-right: 1px solid #718db7;
}

.card__room:hover:not(.card__room-selected) {
    text-decoration: underline;
}

.card__room-selected {
    background: #2a5493;
    border: none;
}

@media (max-width: 890px) {
    .card__room {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .card__layout__btn {
        font-size: 12px;
    }

    .card__price p {
        font-size: 16px;
    }

    .card__price p span {
        font-size: 24px;
    }

    .card__price__link {
        font-size: 12px;
    }

    .card__rooms {
        font-size: 12px;
    }

    .card__room {
        width: 113px;
    }
}

@media (max-width: 580px) {
    .card {
        margin-top: 40px;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .card__layout {
        gap: 0px;
    }

    .card__layout h5 {
        margin-bottom: 8px;
    }

    .card__layout__btn {
        padding: 10px 0;
        font-size: 18px;
    }

    .card__price {
        border: none;
        border-top: 1px solid #868686;
        border-bottom: 1px solid #868686;
        min-height: 115px;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: start;
    }

    .card__price h5 {
        font-size: 30px;
    }

    .card__price p {
        font-size: 28px;
    }

    .card__price p span {
        font-size: 40px;
    }

    .card__price__link {
        border-radius: 3px 0px 8px 8px;
        font-size: 22px;
    }

    .card__img img {
        width: auto;
    }

    .card__magnifier {
        border-radius: 7px 0 0 0;
    }

    .card__rooms {
        width: 100%;
        position: static;
    }

    .card__room {
        width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .card__layout__btn {
        font-size: 14px;
    }

    .card__price h5 {
        font-size: 26px;
    }

    .card__price p {
        font-size: 24px;
    }

    .card__price p span {
        font-size: 36px;
    }

    .card__price__link {
        font-size: 18px;
    }

    .card__room {
        font-size: 12px;
    }
}