.f-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 1000;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: none;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.f-modal-overlay.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
    overflow-y: auto;
}

.f-modal-wrapp {
    background: #F8FAFC;
    border-radius: 36px;
    padding: 60px;
    width: 35%;
    max-width: 35%;
    position: relative;
    margin: 0 auto;
}

.f-modal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 60px;
}

.f-modal-close {
    border-radius: 16px;
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    cursor: pointer
}

.f-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.f-modal-header img {
    width: 100%;
    border-radius: 36px;
}

.f-modal-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 16px;
}

.f-modal-date {
    border-radius: 12px;
    padding: 8px 16px;
    background: #D9F99D;
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    -ms-flex-item-align: start;
    align-self: flex-start;
    margin: 0 auto;
}

.f-modal-title {
    font-weight: 500;
    font-size: 30px;
}

.f-modal-subtitle {
    font-weight: 400;
    font-size: 20px;
    color: #000;
    text-align: center;
}

.f-modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.f-modal-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #64748B;
}

.f-modal-callback {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 16px;
}

.footer {
    margin-top: 40px 0;
    padding: 40px 40px;
}

.footer__container {
    border-radius: 36px;
    padding: 80px;
    background: #333738 url("../images/footer-decor.png") bottom 0 right 155px no-repeat;
    color: #B8BABC;
}

.footer__container a {
    color: #B8BABC;
}

.footer__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 60px;
}

.footer__item_left {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 428px;
    flex: 0 1 428px;
}

.footer__item_copyraiting {
    margin-top: 24px;
}

.footer__item_dosclink {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 123px;
}

.footer__item_dosclink a {
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    text-decoration: underline;
}

.footer__item_dosclink a:hover {
    color: #fff;
}

.footer__item_right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 60px;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer__item_wrapptop {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 60px;
}

.footer__item_wrappbottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer__item_wrappbottom a.podbor {
    background: transparent;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 800;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--white-main);
}

.footer__item_wrappbottom a.podbor:hover {
    color: var(--red-hover);
}

.footer__item_link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 36px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.footer__item_link a {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
}

.footer__item_link a:hover {
    color: var(--red-hover);
}

.footer__item_linkphone {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer__text {
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    margin-top: 32px;
}

.callback__footer {
    margin-right: 37px;
}

.pagination {
    margin-top: 60px;
    width: 100%;
}

.pagination__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pagination__row ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 8px;
}

.pagination__row ul li {
    border-radius: 16px;
    width: 48px;
    height: 48px;
    background: #EDEDED;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pagination__row ul li a {
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #333738;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.pagination__row ul li.activ {
    background: #fff;
    border: 1px solid #B8BABC;
}

#titolo-testo-immagine-container .container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#titolo-testo-immagine-container-dop .container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.service-icon {
  color: #fff;
  transition: color .25s ease;
}

/* Основная страница — ховер белый */
.page-main:hover svg.service-icon {
  color: #000;
}

/* Другая страница — ховер красный */
.page-other .service-item:hover .service-icon {
  fill: #e42313;
}

.forms {
    margin: 40px 0;
    padding: 40px 0;
}

.forms-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
}

.form-container {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    padding: 60px;
    border-radius: 36px;
}

.form-container-left {
    background: #fff;
    color: #333738;
}

.form-container-left .form-title {
    color: black;
}

.form-container-right {
    background: #333738 url("../images/form-bg.png") right bottom no-repeat;
    color: #EDEDED;
}

.form-container-right .form-title {
    color: #ffffff;
}

.form-container-wrapp {
    margin-top: 24px;
}

.form-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 140%;
}

.form-subtitle {
    margin-top: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
}

.input-group {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.input-field {
    width: 100%;
    height: 60px;
    padding: 30px 24px 10px 24px;
    font-size: 16px;
    border-radius: 16px!important;
    background: #F8F8F8;
    border: 1px solid #EDEDED!important;
    outline: none;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333738;
}

.input-field:focus + .input-label,
.input-field.has-value + .input-label {
    top: 12px;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    font-size: 11px;
    font-weight: 500;
    color: #B8BABC;
}

.input-label {
    position: absolute;
    left: 24px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 16px;
    color: #333738;
    pointer-events: none;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 16px;
    display: none;
}

.input-field:focus ~ .clear-btn,
.input-field.has-value ~ .clear-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.file-upload-group {
    margin-bottom: 24px;
}

.file-upload-container {
    width: 100%;
    height: 60px;
    padding: 19px 6px 19px 24px;
    font-size: 16px;
    border-radius: 16px;
    background: #F8F8F8;
    border: 1px solid #EDEDED;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.file-upload-label {
    font-size: 16px;
    color: #333738;
}

.file-upload-btn {
    border: 1px solid #B8BABC;
    border-radius: 12px;
    padding: 12px 24px;
    background: #FFF;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
}

.file-input {
    display: none;
}

.attached-files {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.attached-files:not(:empty) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.attached-file-item {
    position: relative;
    min-height: 60px;
    padding: 30px 48px 10px 24px;
    background: #F8F8F8;
    border: 1px solid #EDEDED;
    border-radius: 16px;
}

.attached-file-label {
    position: absolute;
    left: 24px;
    top: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #B8BABC;
}

.attached-file-name {
    display: block;
    font-size: 16px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.add-more-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.add-more-link {
    color: #E30613;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    text-decoration: none;
    border-bottom: 1px dotted #E30613;
    padding-bottom: 1px;
}

.add-more-link:hover {
    color: #c1121f;
}

.checkboxes-group {
    margin: 24px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
}
.checkbox-item:first-child {
    margin-left: 0px;
}

.checkbox-input {
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    border: 0.50px solid #B8BABC;
    border-radius: 6px;
    padding: 3px 2px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: #EDEDED;
    cursor: pointer;
    position: relative;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    margin-top: 0;
}

.checkbox-input:checked::after {
    content: '';
    background: url("../images/check.svg") center center no-repeat;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
}

.checkbox-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    color: rgba(51, 55, 56, 0.6);
}

.checkbox-text a {
    color: rgba(51, 55, 56, 0.6);
}

.form-container-right .checkbox-text {
    color: #B8BABC;
}

.form-container-right .checkbox-text a {
    color: #B8BABC;
}

.btn-f{
    border-radius: 16px;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #fff;
    background: var(--red);
    border: none;
    cursor:pointer;
    display: flex;
    gap: 4px;
}
.btn-f:hover{
    background: var(--red-hover); 
}


@media(max-width: 1600px){
    .footer {
        padding: 40px 20px;
    } 
}

@media(max-width: 1349px){
    .footer__row {
        flex-direction: column;
    }
    .footer__item_left {
        flex: 0 1 100%;
        order: 2;
        display: flex;
        align-items: start;
        justify-content: space-between;
    }
    .footer__item_dosclink {
        margin-top: 0;
    }
    .footer__item_right {
        order: 1;
    }
    .callback__footer {
        margin-right: 0;
    }
}

@media(max-width: 1199px){
    .footer__item_wrapptop{
        display: none;
    }  
    .footer__item_left {
        order: 1;
    }
    .footer__item_right {
        order: 2;
    }
}

@media(max-width: 991px){
    .footer__container{
        padding: 40px;
    }
    .footer__item_left {
        flex-direction: column;
    }
    .footer__item_wrappbottom {
        flex-direction: column;
        gap: 24px;
    }
}