.gift-certificate-container {
    max-width: 1093px;
    margin: 40px auto;
    padding: 0;
}

.gift-columns {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.gift-column {
    min-width: 0;
    width: 50%;
}

.gift-column--left {
    display: flex;
    justify-content: center;
    width: max-content;
    position: relative;
}

.gift-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.gift-column--right h2 {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: rgba(49, 57, 50, 1);
    margin-bottom: 24px;
}

.gift-column--right p {
    color: #666;
    line-height: 1.6;
}

p.description_cert {
    color: rgba(49, 57, 50, 1);
    background: rgba(237, 244, 238, 1);
    border-radius: 24px;
    padding: 32px;
    margin: 24px 0;
}


.gift-column--right input,
.gift-column--right textarea,
.gift-column--right select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid rgba(222, 222, 222, 1);
    border-radius: 8px;
    font-size: 16px;
    background: #FFF;
    box-shadow: inset 0 4px 4px rgb(0 0 0 / .03);
    outline: unset;
}

.gift-column--right select {
    margin: 5px 0;
}

.gift-column--right textarea {
    height: 80px;
    resize: vertical;
}

.gift-buttons,
.gift-amount-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.gift-buttons {
    width: 100%;
}

.gift-buttons > button {
    width: 50%;
}

.gift-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.gift-amount-buttons {
    gap: 15px;
    flex-wrap: wrap;
}

.gift-amount-buttons button {
    background: #fff;
    border: 1px solid rgba(237, 237, 237, 1);
    color: rgba(142, 142, 142, 1);
    border-radius: 50px;
    padding: 13px 15px;
    transition: 0.3s;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

.gift-amount-buttons button.active {
    background: rgba(255, 120, 27, 1);
    border: 1px solid rgba(255, 120, 27, 1);
    color: #FFF;
    transition: 0.3s;
}

.gift-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumbnail-wrapper {
    position: relative;
    width: 100px;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 118, 39, 0.5); /* зелёный оверлей */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.thumbnail-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


.thumbnail-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.gift-nav {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    gap: 32px;
}

.gift-nav button {
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.gift-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gift-buttons button:first-child,
.gift-nav button:first-child {
    background: #FFF;
    color: rgba(20, 118, 39, 1);
    border-radius: 51px;
    border: 1px solid rgba(20, 118, 39, 1);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    padding: 10px 48px;
    transition: 0.3s;
}

.gift-buttons button:last-child,
.gift-nav button:last-child {
    background: rgba(20, 118, 39, 1);
    color: #FFF;
    border-radius: 51px;
    font-size: 16px;
    line-height: 1.3;
    padding: 10px 48px;
    font-weight: 600;
    transition: 0.3s;
}

@media screen and (min-width: 900px) {
    .gift-buttons button:first-child:hover,
    .gift-nav button:first-child:hover {
        background: rgba(20, 118, 39, 1);
        color: #FFF;
        transition: 0.3s;
    }

    .gift-buttons button:last-child:hover,
    .gift-nav button:last-child:hover {
        background: #fb6107;
        color: #FFF;
        transition: 0.3s;
    }

}
.gift-radio-group {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gift-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.gift-schedule-inputs {
    display: flex;
    gap: 0;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gift-schedule-inputs input,
.gift-schedule-inputs select {
    flex: 1;
    min-width: 120px;
}

#step_con_2, #step_con_3, #step_con_4, #step_con_5 {
    margin: auto 0;
    transform: translateY(-24px);
}

div input.radio_gift {
    width: fit-content;
}

.gift-radio-group p {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: rgba(49, 57, 50, 1);
}

.date_gift_con {
    display: flex;
    gap: 16px;
    width: 100%;
}

.date_gift_con > * {
    width: calc(50% - 8px);
}

.gift-title-top > p {
    display: none;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    text-align: center;
    color: rgba(49, 57, 50, 1);
    transition: 0.3s;
}

.gift-title-top > p.active {
    display: block;
    transition: 0.3s;
}

.gift-steps_counter {
    padding: 24px 0 48px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.gift-steps_counter > span {
    color: rgba(20, 118, 39, 1);
    background: rgba(224, 235, 225, 1);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    transition: 0.3s;
}

.gift-steps_counter span.active {
    background: rgba(23, 131, 44, 1);
    color: rgba(255, 255, 255, 1);
    transition: 0.3s;
}

#step_con_1 > h2 {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: rgba(49, 57, 50, 1);
}

.gift-image {
    border-radius: 12px;
}

#gift-certificate-app {
    margin: 100px 0;
}

.gift-input-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.gift-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-radio-item {
    margin: 16px 0;
}

.gift-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.gift-radio-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-radio-label span:last-child {
    flex: 1;
    line-height: 1.5;
}

.gift-radio-group p.send_immediately_desc {
    color: rgb(112 111 111);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    margin-top: 4px;
}

.gift_check_block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0px 6px 18px 0px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin: 0 auto 32px;
}

.gift_check_block > * {
    width: 50%;
}

.gift_check_block div p:first-child {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: rgba(49, 57, 50, 1);
    width: max-content;
}

.cert-time_send,
.gift_check_block div p:nth-child(2) {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(142, 142, 142, 1);
    width: max-content;
    margin: 6px 0;
}

.gift_check_block img {
    width: 130px;
    border-radius: 8px;
}

#step_con_6 {
    width: fit-content;
}

.gift-column--right p.gift_final_value {
    background: linear-gradient(180deg, #147627 0%, #29883C 100%);
    color: #FFF;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.3;
    border-radius: 8px;
    padding: 4px 10px;
    width: fit-content;
}

.cert_privacy {
    max-width: 556px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    color: rgba(142, 142, 142, 1);
}

.cert_privacy a {
    color: rgba(23, 131, 44, 1);
    text-decoration: underline;
    transition: 0.3s;
}
@media screen and (min-width: 900px) {
    .cert_privacy a:hover {
        color: rgba(249, 98, 34, 1);
        transition: 0.3s;
    }
}

.cert-number-value {
    max-width: 330px;
}
.amount_img {
    height: fit-content;
    width: max-content;
    position: absolute;
    right: 24px;
    font-size: 24px;
    font-weight: 600;
    color: #18882D;
    bottom: 64px;
    background: #FFF;
    padding: 3px 6px;
    border-radius: 4px;
}
.amount_img_small_container {
    position: relative;
    width: 30%;
}
.amount_img_small {
    height: fit-content;
    width: max-content;
    position: absolute;
    right: 23px;
    font-size: 14px;
    font-weight: 600;
    color: #18882D;
    bottom: 29px;
    background: #FFF;
    padding: 0 6px;
    border-radius: 4px;
}

@media screen and (max-width: 1000px) {
    .gift-nav button:first-child:not(.pay_yandex_modal) {
        transform: translateY(50px);
    }

    .gift-nav button:last-child:not(.pay_yandex_modal) {
        transform: translateY(-50px);
    }

    .pay_yandex_modal {
        margin-top: 24px;
    }

    .gift_check_block {
        padding: 0;
    }
}

@media screen and (max-width: 1000px) {
    .gift-columns {
        display: block;
    }
    .gift-column {
        margin: 0 auto;
    }
    #step_con_2, #step_con_3, #step_con_4, #step_con_5 {
        margin: 40px auto 0;
        width: fit-content;
    }
    #gift-certificate-app {
        margin: 20px 0;
    }
    .gift-column {
        width: 100%;
        padding: 0 15px;
    }
    .gift-buttons > button {
        width: 100%;
    }
    .gift-buttons > button:first-child {
        margin-bottom: 12px;
    }
    .gift-buttons {
        display: block;
    }
    p.description_cert {
        border-radius: 8px;
        padding: 16px;
        font-size: 16px;
    }
    #step_con_1 > h2 {
        font-size: 26px;
    }
    #step_con_3,#step_con_4,#step_con_6,#step_con_5 {
        max-width: 330px;
    }
    .gift-amount-buttons {
        gap: 10px;
    }
    .gift-amount-buttons button {
        padding: 6px 10px;
    }
    .gift-column--right h2 {
        margin-bottom: 16px;
    }
    .gift-buttons, .gift-amount-buttons {
        margin-bottom: 16px;
    }
    .amount_img {
        right: 50%;
        transform: translateX(100%);
    }
    .gift-nav {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }
    .gift-nav button {
        width: 100%;
        margin: 4px 0;
    }
    .gift_check_block {
        display: block;
        width: 100%;
    }
    .gift_check_block > * {
        width: 100%;
    }
    .cert-time_send, .gift_check_block div p:nth-child(2) {
        width: fit-content;
    }
    .gift_check_block div p:first-child {
        font-size: 16px;
    }
    .gift_check_block img {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 12px;
    }
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select::-ms-expand {
    display: none;
}
@media screen and (max-width: 900px) {
    .amount_img_small {
        bottom: 55px
    }
}

.garantii__items ul li {
    font-weight: 500;
}
.quantity_max_fade-seven .sub_title_max_quantity {
    font-weight: 700;
}
p.description_cert {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}
@media screen and (max-width: 1000px){
    #step_con_1 .gift-buttons button:first-child {
        transform: translateY(50px);
    }
    #step_con_1 .gift-buttons button:last-child {
        transform: translateY(-50px);
    }
    #step_con_6 .cert_privacy,
    .gift_check_block {
        margin-bottom: 16px;
    }
}
.garantii__items ul li {
    color: #313932;
}
.cert-number-value_wrapper {
    margin-bottom: 32px;
}
.cert-number-value_wrapper.red input,
.cert-number-value_wrapper.red_max input {
    border: 1px solid red;
    position: relative;
}

.cert-number-value_wrapper.red::after {
    content: "Минимальная сумма 2500 ₽";
    display: block;
    position: absolute;
    top: 100px;
    left: 0;
    color: red;
    font-size: 12px;
    width: max-content;
}

.cert-number-value_wrapper.red_max::after {
    content: "Максимальная сумма 10000 ₽";
    display: block;
    position: absolute;
    top: 100px;
    left: 0;
    color: red;
    font-size: 12px;
    width: max-content;
}

@media screen and (max-width: 1000px) {
    .cert-number-value_wrapper.red::after,
    .cert-number-value_wrapper.red_max::after {
        top: 115px;
        left: 20px;
    }
}




