.gift {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.gift__matrix {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
    position: relative;
}
.gift__matrix-picture {
    display: flex;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    height: 387px;
}
.gift__matrix-picture img {
    width: 100%;
    height: 100%;
}
.gift__matrix-picture .price {
    position: absolute;
    left: 41px;
    bottom: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: 600;
}
.gift__matrix-thumbs {
    display: flex!important;
    justify-content: space-between;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
}
.swiper-wrapper {
    max-height: 346px;
    flex-wrap: wrap;
    flex-direction: column;
}
.gift__matrix-thumb {
    cursor: pointer;
    position: relative;
}
.gift__matrix-thumb::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
}
.gift__matrix-thumb.active::after {
    content: url('/local/templates/mainTpl/img/Check.svg');
    width: 24px;
    height: 24px;
    top: 30px;
    right: 20px;
    position: absolute;
    display: block;
}
.gift__matrix-thumb img {
    height: 100%;
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}
.gift__form {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.gift__nominals {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gift__nominal-text {
    font-weight: 300;
}
.gift__nominal-price{
    display: flex;
    gap: 20px;
    position: relative;
}
.gift__nominal {
    border: 1px solid #000;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    height: 41px;
    max-width: 95px;
    width: 100%;
}
.gift__nominal.active {
    background-color: #058DCF;
    border-color: #058DCF;
    color: #fff;
}
.gift__form-blocks {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
}
.gift__form-inputs {
    display: flex;
    gap: 30px;
}
.gift__form-inputs label {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    position: relative;
}
.gift__form-inputs input {
    outline: none;
    border: none;
    background-color: inherit;
    border-bottom: 1px solid #0000001A;
    font-size: 16px;
    padding: 0px 0px 12px 0px;
    font-weight: 300;
}
.gift__form-inputs input::placeholder {
    color: #000;
}
.gift__form-inputs .description {
    font-size: 12px;
}
.gift__nominals .error, .gift__matrix .error {
    position: absolute;
    bottom: -30px;
    top: unset!important;
}
.gift .error{
    color: red;
    position: absolute;
    font-size: 12px;
    top: -35px;
}
.gift__form-block {
    display: flex;
    flex-direction: column;
    background-color: #F7F7F7;
    border-radius: 35px;
    padding: 36px;
    gap: 40px;
}
.gift__form-block .title {
    font-size: 24px;
    font-weight: 500;
}
.gift__form-btn {
    width: fit-content;
    outline: none;
    border: none;
    background-color: #FCE482;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    border-radius: 50px;
    width: 166px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
}
.gift__form-text {
    margin-top: -28px;
    font-size: 12px;
    font-weight: 300;
    position: relative;
}
.gift__form-text .error {
    top: -10px;
    font-weight: 400;
}
.gift__form-text a {
    color: #000;
    font-weight: 400;
}
.gift__form-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.gift__form-checkbox input {
    display: none;
}
.gift__form-checkbox span {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 10px;
}
.gift__form-checkbox input:checked + span::before {
    content: "";
    display: block;
    width: 12px;
    height: 8px;
    background-image: url(/local/templates/mainTpl/img/check.svg);
    background-repeat: no-repeat;
    background-size: cover;
}
.swiper-wrapper {
    row-gap: 15px;
}
.swiper-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}
.swiper-scrollbar {
    position: static!important;
    height: 1px!important;
}
.swiper-scrollbar-drag {
    height: 1px!important;
}
.swiper-button {
    bottom: 0!important;
    top: unset!important;
    width: 24px!important;
    height: 24px!important;
    position: static!important;
    margin: 0!important;
}
.swiper-button::after {
    font-size: 12px!important;
    color: #000;
}
.swiper-navigation {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 18px;
}
@media (max-width:1200px) {
    .gift__form-blocks {
        grid-template-columns: repeat(1,1fr);
    }
    .gift__matrix-picture {
        height: fit-content;
    }
    .swiper-wrapper {
        width: 100%!important;
        gap: 15px;
    }
}
@media(max-width: 1050px) {
    .swiper-wrapper {
        max-height: 300px;
    }
}
@media(max-width: 920px) {
    .swiper-wrapper {
        max-height: 200px;
    }
}
@media(max-width:769px) {
    .gift__matrix {
        display: flex;
        flex-direction: column;
    }
    .gift__matrix-picture {
        height: 100%;
    }
}
@media(max-width:500px) {
    .gift__form-inputs {
        flex-direction: column;
    }
    .gift__form-inputs label{
        width: 100%;
    }
    .gift__nominal-price {
        flex-wrap: wrap;
    }
    .gift__matrix-picture .price {
        left: 20px;
        bottom: 20px;
    }
    .gift__matrix-picture::after {
        right: 20px;
        top: 20px;
    }
    .gift .error {
        top: -23px;
    }
    .gift__matrix-thumb.active::after {
        top: 15px;
        right: 15px;
    }
    .swiper-wrapper {
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 0px;
    }
}
@media(min-width:500px) {
    .swiper-slide {
        margin: 0!important;
    }
}