.down, .up {
    padding-left: 0;
    padding-right: 0;
}

.infobox {
    margin-top: 50px;
    box-shadow: rgba(0, 0, 0, 0.0470588) 0px 1px 1px 0px;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 4px 4px 4px 4px;
}

.infobox_head {
    background: rgb(245, 245, 245) none repeat scroll 0% 0% / auto padding-box border-box;
    border-top: 0px none rgb(221, 221, 221);
    border-right: 0px none rgb(221, 221, 221);
    border-bottom: 1px solid rgb(221, 221, 221);
    border-left: 0px none rgb(221, 221, 221);
    border-radius: 3px 3px 0 0;
    padding: 10px 15px;
}

.infobox_body {
    padding: 15px;
}

.infobox_body > p {
    margin: 0;
    margin-left: 25px;
}

input[type=number] {
    border: none;
    background: none;
    outline: none;
    padding: 0;
    font-size: 25px;
}

label {
    text-align: left;
    margin: 27px 0 10px 0 !important;
}

.close-modal {
    border-bottom: 0 !important;
}

.modal-spinner {
    height: 48px !important;
}

/**
cards
 */

.pay {
    --pay-accent: #f35858;
    --pay-text: #52575c;
    --pay-muted: #8a9096;
    --pay-border: #e3e6ea;
    --pay-shadow: 0 1px 3px rgba(82, 87, 92, 0.08), 0 4px 14px rgba(82, 87, 92, 0.08);
    --pay-shadow-hover: 0 2px 6px rgba(82, 87, 92, 0.1), 0 14px 30px rgba(82, 87, 92, 0.16);
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2em;
}

.pay-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pay-border);
    border-radius: 10px;
    box-shadow: var(--pay-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pay-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pay-shadow-hover);
}

.pay-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.pay-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pay-card:hover .pay-card__image img {
    transform: scale(1.04);
}

.pay-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.2em 0.8em;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF7088, #F2B69D);
    color: #fff;
    font-size: 0.8em;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.pay-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25em;
    padding: 0.75em 1em 0.75em;
    text-align: center;
}

.pay .pay-card__title {
    margin: 0;
    color: var(--pay-text);
    font-size: 1.05em;
    line-height: 1.35;
    /* до двух строк вместо обрезки в одну */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.pay-card__price {
    color: var(--pay-accent);
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.2;
}

.pay-card__price small {
    color: var(--pay-muted);
    font-size: 0.6em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pay .pay-card__button {
    display: block;
    width: auto; /* тема на мобильных растягивает .button на 100% */
    margin: 0 1em 1em;
    padding: 0.5em 1em;
    border: 1px solid var(--pay-accent);
    border-radius: 6px;
    background: transparent;
    color: var(--pay-accent);
    text-align: center;
    letter-spacing: 0.05em;
}

.pay .pay-card__button:hover,
.pay .pay-card__button:focus {
    border-color: var(--pay-accent);
    background: var(--pay-accent);
    color: #fff;
}

.pay-info {
    position: sticky;
    top: 2em;
}

.pay-info header {
    text-align: center;
}

@media screen and (max-width: 736px) {
    .pay-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5em;
    }

    /* в одну колонку выравнивать цены по соседям не нужно */
    .pay .pay-card__title {
        min-height: 0;
    }

    .pay-info {
        position: static;
        margin-top: 2em;
    }
}

/**
Не активная кнопка в меню
 */

#nav > ul > li.current-menu-ancestor > a {
    border-color: rgba(255, 255, 255, 0);
    background-color: rgba(255, 255, 255, 0);
    color: #fff;
}

/**
ajax form
 */

.hourCounter {
    -moz-user-select: none; /* Mozilla Firefox */
    -ms-user-select: none; /* Internet Explorer (не поддерживается) */
    -o-user-select: none; /* Opera Presto (не поддерживается) */
    -webkit-user-select: none; /* Google Chrome, Opera Next, Safari */
}

.radios-as-buttons input {
    position: absolute;
    left: -9999px;
}

.radios-as-buttons label {
    display: block;
    cursor: pointer;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 5px;
    text-align: center;
    height: 70px;
    line-height: 70px;
}

.radios-as-buttons label:hover {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
}

.radios-as-buttons input:checked + label {
    background: white;
    box-shadow: inset -1px 1px 12px rgba(0, 0, 0, .2);
}

.window img {
    width: 175px;
    vertical-align: middle;
}

/* плейсхолдеры светлее — иначе пустое поле выглядит заполненным
   (тема задаёт всем плейсхолдерам #555 !important) */
#confirmForm input::-webkit-input-placeholder {
    color: #b3b8bd !important;
}

#confirmForm input::-moz-placeholder {
    color: #b3b8bd !important;
    opacity: 1;
}

#confirmForm input::placeholder {
    color: #b3b8bd !important;
    opacity: 1;
}

/* ошибки валидации под полями формы */
#confirmForm input.is-invalid {
    border-color: #f35858;
    box-shadow: 0 0 0 1px #f35858;
}

.field-error {
    display: block;
    min-height: 1.4em;
    margin-top: 0.3em;
    color: #f35858;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: left;
}

.field-error:empty {
    min-height: 0;
    margin-top: 0;
}
