/*
 * Theme Name: Тема сайта
 * Author: Eduard Shpigel
 * Author URI: https://t.me/edshpigel
 * Version: 1.0.0
 */

.main-pay__payment-method-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 17px;
    margin-top: 17px;
}

div.main-pay-autopayment-periods {
    gap: 10px 9px;
}

.main-pay__payment-method-wrapper label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    color: #b8b6c1;
}

.main-pay__payment-method-wrapper label input {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.main-pay__payment-method-wrapper label span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
}
.main-pay__payment-method-wrapper label span:before {
    content: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 5px;
    display: block;
    mask-size: 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 11H7.5C10 11 11 10 11 7.5V4.5C11 2 10 1 7.5 1H4.5C2 1 1 2 1 4.5V7.5C1 10 2 11 4.5 11Z' stroke='%23B8B6C1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.main-pay__payment-method-wrapper label:has(input:checked) span {
    color: var(--black);
}
.main-pay__payment-method-wrapper label:has(input:checked) span:before {
    color: var(--black);
    mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 11H7.5C10 11 11 10 11 7.5V4.5C11 2 10 1 7.5 1H4.5C2 1 1 2 1 4.5V7.5C1 10 2 11 4.5 11Z' stroke='%23B8B6C1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.875 5.99996L5.29 7.41496L8.125 4.58496' stroke='%23B8B6C1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.main-pay-form:has(input[name="type"][value="invoice"]:checked) .main-pay__methods,
.main-pay-form:has(input[name="type"][value="invoice"]:checked) .main-forms__item-tel {
    display: none;
}
.main-pay-form:has(input[name="type"][value="invoice"]:checked) .btn-invoice-generate {
    display: block !important;
}
.main-pay-form:has(input[name="type"][value="invoice"]:checked) button.btn-submit {
    display: none;
}
.header__logo img {
    object-fit: contain;
}

.sproject__projects-content {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.bshare {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.bshare__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2em;
    color: var(--black);
}

.main-pay__sum-wrapper {
    position: relative;
    margin-top: 10px;
}
.mechety__item-share {
    position: relative;
}
.mechety__item-share-dropdown .bshare {
    margin-bottom: 0;
}
.mechety__item-share-dropdown .bshare__flex {
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.mechety__item-share-dropdown {
    position: absolute;
    bottom: 100%;
    right: -15px;
    padding: 15px;

    width: max-content;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;

    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.mechety__item-share-dropdown:not([aria-hidden="true"]) {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}
.main-pay__sum-wrapper .main-pay__sum-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px;
    pointer-events: none;
    margin-top: 0;
    max-width: 65%;
    justify-content: flex-end;
    gap: 3px;
    padding-right: 8px;
}
.main-pay__sum-wrapper .main-pay__sum-input {
    padding-right: 180px;
    text-align: left;
    margin-top: 0;
    font-size: 23px;
}
.main-pay__sum-wrapper .main-pay__sum-buttons .main-pay__sum-btn {
    pointer-events: all;
    padding: 4px 7px;
    font-size: 10px;
}
.main-pay__methods-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}
.modal-form.fancybox__content.modal-help {
    max-width: 500px;
}
.modal-form.fancybox__content .modal-form__content {
}
.main-pay__methods-list .main-pay__method-name {
    font-size: 12px;
}
.main-pay__methods-list .main-pay__method label {
    gap: 6px;
    border-radius: 12px;
    padding: 7px 10px;
}
.main-pay__methods-list .main-pay__method label:after {
    content: none;
}
.main-pay__method + .main-pay__method {
    margin-top: 0;
}
.main-pay__methods-list .main-pay__method-icon img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    object-fit: contain;
}
.spost__imgs .swiper-btns {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 32px;
    padding: 10px;
}
.spost__imgs {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 20px;
}
.spost__imgs .swiper-btns .swiper-button-prev,
.spost__imgs .swiper-btns .swiper-button-next {
    width: 36px;
    position: relative;
    inset: 0;
    margin-top: 0;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: #f4f3f2;
    color: var(--black);
    z-index: 1;
    box-shadow: none;
}
.spost__imgs .swiper-btns .swiper-button-prev svg,
.spost__imgs .swiper-btns .swiper-button-next svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.spost__imgs-wrap {
    position: relative;
    padding-top: 50%;
}

@media (max-width: 768px) {
    div.header__flex .header__tel {
        display: flex;
        font-size: 12px;
    }
    .bshare {
        justify-content: center;
        box-shadow: 0 20px 34px rgba(26, 26, 26, 0.06);
        border-radius: 18px;
        padding: 10px 15px;
        background: var(--white);
    }
    .bshare__flex {
        flex-grow: 1;
        justify-content: center;
    }
    .header__tel {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.rform .contact__methods-input:before {
    background: #fff;
}

.rform__main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.rform__imgs {
    flex: 0 0 355px;
}

@media (max-width: 1337px) {
    .rform__imgs {
        display: none;
    }
}

.rform__text {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    color: #131320;
}

.rform__heading {
    margin: 0;
}

.rform__wrapper {
    padding: 70px 55px 60px;
    background: linear-gradient(146deg, #dcf9ff 0%, #f0fdff 100%);
    border-radius: 80px;
    position: relative;
    overflow: hidden;
}

.rform__wrapper::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -120px;
    width: 544px;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: #d2f1f7;
}

@media (max-width: 1337px) {
    .rform__wrapper::after {
        display: none;
    }
}
@media (max-width: 992px) {
    .rform__wrapper {
        border-radius: 30px;
        padding: 40px 30px;
    }
}
.rform__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1337px) {
    .rform__top {
        flex-direction: column;
    }
}

.rform__info {
    flex: 0 0 520px;
}

@media (max-width: 1337px) {
    .rform__info {
        flex: initial;
    }
}

.rform__info-top {
    font-family: var(--ff-sec);
    font-weight: 700;
    font-size: 52px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #57bccf;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 992px) {
    .rform__info-top {
        font-size: 24px;
    }
}

.rform__info-top span:nth-child(2) {
    color: #131320;
}

.rform__info-bar {
    height: 11px;
    position: relative;
    background: #cfe3e7;
    border-radius: 24px;
    margin-top: 20px;
    overflow: hidden;
}

.rform__info-bar span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(141deg, #57bccf 0%, #47abbe 100%);
    border-radius: 24px;
}

.rform__info-desc {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 992px) {
    .rform__info-desc {
        flex-direction: column;
    }
    .rform__info-desc br {
        display: none;
    }
}

.rform__info-desc p:first-child {
    font-weight: 500;
    font-size: 18px;
    line-height: 140%;
    color: #131320;
    margin: 0;
}

.rform__info-desc p:not(:first-child) {
    font-size: 14px;
    line-height: 120%;
    text-align: right;
    color: #131320;
    margin: 0;
}

@media (max-width: 992px) {
    .rform__info-desc p:not(:first-child) {
        text-align: left;
    }
}
