.page-banner{
    background: #F4F4F4;
    max-height: 415px;
}

.d-flex-row{
    align-items: center;
    gap: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.page-banner__container{
    display: grid;
    grid-template-columns: 6fr 6fr;
}

.page-banner__image{
    background: url(/local/templates/uprav_new_ui/css/img/banner/terms-bg.webp) center center no-repeat;
    background-size: cover;
    min-height: 400px;
}

.page-banner__title{
    font-family: Wix Madefor Display;
    font-size: 48px;
    font-weight: 500;
    line-height: 60.48px;
    text-align: left;
}
.terms_details.d-flex {
    flex-wrap: nowrap;
    row-gap: 20px;
    column-gap: 20px;
}
.terms_details-info {
    max-width: 100%;
    border: 2px solid #3079d2;
    border-radius: 20px;
    padding: 30px 50px 30px 40px;
    position: relative;
    font-family: TT Norms;
    font-size: 18px;
    font-weight: 400;
    line-height: 21px;
}
.terms_details-info:after {
    content: '';
    display: block;
    position: absolute;
    width: 55px;
    height: 55px;
    top: -21px;
    right: -6px;
    background: url(https://uprav.ru/terms/images/info-block_icon.svg);
}
.steps-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
}
.steps-item {
    border-radius: 15px;
    padding: 40px 40px;
    background: white;
}
.steps-item > div + div {
    margin-top: 15px;
}
.steps-item__header {
    font-family: Wix Madefor Display;
    font-size: 32px;
    font-weight: 500;
    line-height: 40.32px;
    text-align: left;
    color: #093EB4;
}
.steps-item__text {
    font-family: Wix Madefor Display;
    font-size: 22px;
    font-weight: 500;
    line-height: 27.72px;
    text-align: left;
}
.steps-item__text-small {
    font-family: Wix Madefor Display;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.64px;
    text-align: left;
}
.steps-item a,
.steps-item a:visited {
    color: #3079D2;
    text-decoration: underline;
    font-family: Wix Madefor Display;
    font-size: 14px;
    font-weight: 400;
    line-height: 17.64px;
    text-align: left;
}
.terms_address {
    display: flex;
    flex-wrap: nowrap;
    row-gap: 40px;
    column-gap: 20px;
}
.terms_address-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 0px 20px 0px;
}
.terms-address-right{
    display: flex;
    align-items: center;
}
.terms_address p {
    font-family: Wix Madefor Display;
    font-size: 16px;
    font-weight: 500;
    line-height: 20.16px;
    text-align: left;
}
.terms_address p + p {
    margin-top: 20px;
}
.terms_address a {
    display: block;
    font-family: Wix Madefor Display;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    text-align: center;
    max-width: 390px;
    text-transform: none;
    height: 53px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#terms_slider {
    padding-top: 0;
    width: 100%;
    max-width: 640px;
}
#terms_slider .swiper {
    width: 100%;
    height: 100%;
}

#terms_slider .swiper-slide {
    max-width: 553px;
    max-height: 419px;
}
#terms_slider-container {
    position: relative;
}

#terms_slider-container .swiper-button-next,
#terms_slider-container .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: #b7c0cfe6;
}

#terms_slider-container .swiper-pagination {
    position: relative;
}
#terms_slider-container .swiper-pagination.d-flex {
    row-gap: 20px;
    column-gap: 20px;
    justify-content: center;
}
#terms_slider-container .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
}
#terms_slider-wrapper {
    max-width: 553px;
    overflow-x: hidden;
    margin-left: auto;
    margin-right: auto;
}
#terms_slider img {
    display: block;
    max-width: 100%;
}
.terms_documents.d-flex {
    flex-wrap: nowrap;
    row-gap: 20px;
    column-gap: 20px;

}
.terms_document-block {
    width: 50%;
}
.terms-document {
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    background: white;
}
.terms-document_header {
    font-family: Wix Madefor Display;
    font-size: 32px;
    font-weight: 500;
    line-height: 40.32px;
    text-align: left;
    color: #093EB4;
}
.terms-document__text {
    font-family: Wix Madefor Display;
    font-size: 22px;
    font-weight: 500;
    line-height: 27.72px;
    text-align: left;
}
.terms-document__text-small {
    font-family: Wix Madefor Display;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.64px;
    text-align: left;
}
.terms-document .terms-document__text a{
    text-decoration: underline;
    color:black;
}

.terms_left{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.terms-address-right .swiper__terms_slider {
    overflow: hidden !important;
    padding-bottom: 55px;
}
.swiper-button-next__terms_slider{
    right: 10px;
}
.swiper-button-prev__terms_slider{
    left: 10px;
}

.swiper-pagination__terms_slider{
    bottom: 20px !important;
}
.terms_faq .grid-4-1 {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}
.toggled-list_elements {
    margin-top: 30px;
}
.toggled-list_element-header {
    height: 100%;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #23426C;
    height: 140px;
    cursor: pointer;
}
.toggled-list_element-header.d-flex {
    flex-direction: column;
}
.icon-modal-faq{
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: flex-end;
}

.faq-modal_container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%);
    -ms-transform: translate(-50%);
    transform: translate(-50%);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
    max-width: calc(100% - var(--unit)*2);
    min-width: 280px;
    background: #fff;
    -webkit-transition: .4s ease;
    -o-transition: .4s ease;
    transition: .4s ease;
    opacity: 0;
}
.modal-window--center.modal-window--active .faq-modal_container {
    opacity: 1;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.toggled-list_elements {
    margin-top: 30px;
}
.toggled-list_element-header {
    min-height: 100%;
    height: max-content !important;
    height: 100% !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #23426C;
    height: 140px;
    cursor: pointer;
}
.toggled-list_element-header.d-flex {
    flex-direction: column;
}
.faq-modal_head {
    margin-bottom: 15px;
}
.faq-modal_head.d-flex {
    flex-wrap: nowrap;
    row-gap: 20px;
    column-gap: 20px;
}
.faq-modal_title {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.4;
    color: #23426C;
}

.faq-modal_content {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}
.faq-modal_content a {
    color: #3079D2;
    text-decoration: underline;
}
.bordered-block {
    border-radius: 15px;
    padding: 20px;
    background: #F4F4F4;
    display: flex;
    flex-wrap: nowrap;
}
@media (max-width: 980px) {
    .terms_faq .grid-4-1 {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}
@media (max-width: 767px) {
    .terms_faq .grid-4-1 {
        grid-template-columns:1fr !important;
    }
}

@media (max-width: 1815px) {
    .swiper-slide-terms img{
        width: 80%;
    }
    .swiper-pagination__terms_slider {
        bottom: 20px !important;
    }
    .swiper-button-next__terms_slider, .swiper-button-prev__terms_slider {
        top: 42%;
    }
}
@media (max-width: 1099px) {
    .terms_details-info {
        max-width: 460px;
    }
    .steps-list {
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
    }
   
}
@media (max-width: 1311px) {
    .page-banner__title {
        font-size: 38px;
    }
}
@media (max-width: 980px) {
    .faq-modal_title {
        font-size: 18px;
    }
    .bordered-block {
        padding: 10px;
        height: max-content;
        min-height: 109px;
    }
    .terms-address-right .swiper-button-next__terms_slider, .swiper-button-prev__terms_slider {
        top: 90%;
    }
    .terms-address-right .swiper-button-prev__terms_slider {
        top: 90%;
    }
    .page-banner__title{
        font-size: 24px !important;
        line-height: 30.24px !important;
    }
    .terms_address a {
        margin-top: 20px;
    }
    .terms_address {
        flex-direction: column;
        margin-left: 60px;
        margin-right: 60px;
    }
    .terms_address .terms_address-left, .terms-address-right{
        width: 100% !important;
        max-width: 100% !important;
    }
    .terms_details-info{
        font-size: 12px;
        line-height: 15.12px;
        opacity: 60%;
        border-radius: 0px;
        border: none;
        border-top: 1px solid #00000045;
        padding: 0px;
        margin-top: 10px;
        padding: 20px 0px 0px 0px;
    }
    .terms_details-info:after {
        display: none;
    }
    .top-banner_right {
        max-width: 320px;
    }
    .terms_details .terms_left, .terms_right {
        width: 100% !important;
        max-width: 100% !important;
    }
    .steps-item {
        padding: 30px;
    }
    .steps-item__header {
        font-size: 24px;
    }
    .steps-item__text {
        font-size: 20px;
    }
    .steps-item__text-small,
    .steps-item a,
    .steps-item a:visited {
        font-size: 18px;
    }
    .terms-document_header {
        font-size: 20px;
    }
    .terms-document__text {
        font-size: 16px;
        padding-left: 10px;
    }
    .terms-document__text-small {
        font-size: 14px;
    }
    .page-banner__image {
        display: none;
    }
    .page-banner__container {
        display: grid;
        grid-template-columns: 1fr;
        padding: 25px 0px;
    }
    .page-banner__container .fix-container{
        margin: inherit;
    }
}
@media (max-width: 767px) {
    .terms_details.d-flex {
        flex-direction: column;
    }
    .terms_details .terms_left,
    .terms_right {
        max-width: 100%;
    }
    .terms_details-info {
        padding: 15px;
    }
    .terms-document__text {
        font-size: 16px;
        padding-left: 0px;
    }
    .terms_details-info:after {
        content: '';
        width: 30px;
        height: 30px;
        background-size: 100% 100%;
        top: -12px;
        right: -5px;
    }
    .steps-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .steps-item__header {
        font-size: 24px;
    }
    .steps-item__text {
        font-size: 18px;
    }
    .steps-item__text-small,
    .steps-item a,
    .steps-item a:visited {
        font-size: 12px;
    }
    #terms_slider-container .swiper-button-next,
    #terms_slider-container .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    #terms_slider-container .swiper-button-next {
        right: -30px;
    }
    #terms_slider-container .swiper-button-prev {
        left: -30px;
    }
    .terms_address {
        margin-left: 0px;
        margin-right: 0px;
    }
    .terms_address p,
    .terms_address a {
        font-size: 14px;
    }
    .terms_documents.d-flex {
        flex-direction: column;
    }
    .terms_document-block {
        width: 100%;
    }
}
@media (max-width: 479px) {
    .terms_address a {
        font-size: 12px;
        margin-top: 20px;
    }
    .terms_address-right {
        min-width: 280px;
    }
}

.link-law{
    color: #317AD3;
}
