.footer {
    letter-spacing: -0.00rem;
    margin-bottom: 64px;
}
.footer .container-fluid.f-sub {
    display: flex;
    justify-content: space-between;
    padding-top: 49px;
    flex-direction: row-reverse;
    font-size: 14px;
    line-height: 129%;
    letter-spacing: -0.00em;
    color: #828689;
}
.footer li:first-child a{
    font-size: 20px;
    line-height: 122%;
    color: #060d14;
    letter-spacing: -0.00em;
}

.f-i ul li {
    margin-bottom: 12px;
    line-height: 122%;
}

.f-text {
    padding-top: 70px;
    display: flex;
    justify-content: space-between;
}

.f-text p {
    font-size: 20px;
    line-height: 120%;
    letter-spacing: -0.00em;
    color: rgba(255, 255, 255, 0.8);
}

.messengers{
    display: flex;
    gap: 16px;
}

.button.square {
    position: relative;
    font-size: 0;
    background: transparent;
    width: 390px;
    border: 1px solid #fff;
    border-radius: 20px;
    height: 40px;
    transition: 0.3s ease;
}

.button.square:hover {
    background: #fff;
    color: #080707;
}

.button.square::after {
    content: "Записаться";
    font-size: 18px;
    display: block;
}

.wcms-block-brelokform {
    display: flex;
    background: #080707;
    background-image: url(img/bg-form.png);
    border-radius: 24px;
    background-repeat: no-repeat;
    background-size: cover;
}

.wa-name {display: none;}

.wcms-block-text {
    max-width: 490px;
    margin-top: 3px;
}

.wcms-block-brelokform h2::before{
    content: "";
    background-image:  url(img/title-form.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 22px;
    height: 8px;
}


.custom-checkbox {
    color: #838383;
}

.custom-checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    margin-bottom: 8px;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox .checkbox-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #CECDCD;
    border-radius: 8px;
    margin-right: 8px;
    transition: all 0.2s;
    background-color: transparent;
}

.custom-checkbox .checkbox-icon {
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-icon-wrap {
    background-color: #393939; 
    border-color: #393939;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-icon-wrap .checkbox-icon {
    opacity: 1;
}

.custom-checkbox .checkbox-text {
    color: #838383;
    font-size: 14px;
}

.custom-checkbox .hint {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 4px;
}

.custom-checkbox .wa-field-mandatory {
    color: #ff4d4d;
    margin-left: 4px;
}

.custom-checkbox .checkbox-label:hover .checkbox-icon-wrap {
    border-color: #CECDCD;
}

.checkbox-icon-wrap svg {
    color: black;
}

.wcms-block-faq-question-q::after {
    content: url(img/faq-closed.svg);
    display: block;
    margin-right: 19px;
    height: 20px;
    width: 20px;
    position: relative;
}
.wcms-block-faq-question-q.open::after {
    content: url(img/faq-open.svg);
}
.tdp-img-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.button-href {
    border: 1px solid #080707;
    border-radius: 22px;
    padding: 9px 12px;
    color: #000;
    font-size: 18px;
    letter-spacing: -0.00em;
    text-align: center;
    margin-right: calc((100vw - 1215px) * 0.5);
    position: relative;
    top: -6px;
    transition: 0.3s ease-out all;
    margin-top: 33px;
}
.button-href:hover {
    border: 1px solid #000;
    background-color: #000;
    color: #FFFFFF;
    text-decoration: none;
}

.button-href a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.swiper-container {
    position: relative;
}

.swiper-container::after {
    display: inline-block;
    content: '';
    width: 120px;
    height: 200px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0px;
    pointer-events: none;
}

.gradient-none.swiper-container::after{
    display: none;
}

.service-list li::after {
    content: ""; 
    display: none; 
    position: absolute;
    right: 27px;
    width: 26px;
    height: 26px;
    background-image: url(img/services-icon.svg);
    background-repeat: no-repeat;
}

.service-list li:hover::after {
    display: block; 
}

h2.title-white::before {
    content: "";
    background-image: url(img/title-form.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 22px;
    height: 8px;
}
.header-adress-item a {
    color: #fff;
}
.header-adress-item a:hover {
    text-decoration: underline;
}
.header-reg-item {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}
.header-reg-item:hover {
    text-decoration: underline;
}
.fixed .header-reg-item {
    color: #000;
}
.post-content h3 {
    font-weight: 400;
    font-size: 24px;
    line-height: 117%;
    letter-spacing: -0.02em;
    color: #080707;
    margin-bottom: 32px;
}

.post-content p {
    font-size: 18px;
    line-height: 122%;
    color: #838383;
}
.mob-show {
    display: block;
}
.mob-show-flex {
    display: flex;
}
.mob-hide {
    display: none;
}
.wcms-block-brelokform {
    background-image: url(img/bg-form.png);
}


/* MODAL */
dialog {
    border: none;
    border-radius: 24px;
    padding: 48px 24px 24px 24px;
    width: 400px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}
dialog button  {
    background: transparent;
    border: none;
    cursor: pointer;
}
dialog:-internal-dialog-in-top-layer::backdrop {
    position: fixed;
    inset: 0px;
    background: #00000052;
}
dialog button svg {
    position: absolute;
    top: -24px;
    right: 0px;
}
dialog .icon svg {
    margin-bottom: 16px;
}
dialog h2 {
    font-weight: 400;
    font-size: 32px;
    line-height: 112%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #080707;
    margin-bottom: 8px;
}
dialog h2::before {
    display: none;
}
dialog .sub-text {
    font-weight: 370;
    font-size: 16px;
    line-height: 125%;
    text-align: center;
    color: #838383;
    margin-bottom: 16px;
}
dialog .button-close {
    width: fit-content;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: #fff;
    padding: 9px 16px;
    color: #fff;
    background-color: #080707;
    border-radius: 40px;
    cursor: pointer;
}
dialog .modal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* blog */
.blog h1 {
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #080707;
    margin-bottom: 16px;
}

.blog  h2::before {
    display: none;
}

.blog  .amg-text-content {
    font-size: 20px;
    line-height: 120%;
    color: #838383;
    max-width: 75%;
}

.blog  .amg-text {
    display: flex;
    justify-content: space-between;
}

.blog .amg-block-title {
    padding-bottom: 32px;
    border-bottom: 1px solid #cecdcd;
}

.blog-posts {
	display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 64px;
}

#wcms_block_41 .wcms-block-content {
	padding-left: 0;
	padding-right: 0;
}

.wcms-form-success-text {
    color: #fff;
}



@media (max-width: 992px) {
    .footer .container-fluid.f-sub {
        display: flex;
        justify-content: space-between;
        padding-top: 0;
        padding-left: 18px;
        padding-right: 18px;
        flex-direction: column;
        color: #828689;
    }
    .f-list {
        gap: 0;
    }
    
    .service-list li::after {
        display: none !important; 
        position: absolute;
        right: 27px;
        width: 26px;
        height: 26px;
        background-image: url(img/services-icon.svg);
        background-repeat: no-repeat;
    }
}

@media (max-width: 768px) {
    .footer {
        letter-spacing: -0.00rem;
    }
    .footer .title-logo {
        margin-bottom: 32px;
        background-position: unset;
        padding-bottom: 0;
    }
    .footer .container-fluid:first-child {
        padding: 16px;
    }
    .footer .menu-contacts-item {
        margin-bottom: 16px;
    }
    .footer .contacts-items {
        white-space: nowrap;
    }
    .footer .f-text {
        padding-top: 32px;
        display: flex;
        justify-content: space-between;
        flex-direction: column-reverse;
        padding-bottom: 32px;
    }
    .f-text p {
        font-size: 18px;
        line-height: 120%;
        letter-spacing: -0.00em;
        color: rgba(255, 255, 255, 0.8);
    }
    .footer .messengers {
        margin-bottom: 32px;
    }
    .footer .policy a,
    .footer .author {
        font-size: 14px;
    }

    .f-cnt {
        padding-bottom: 32px;
        gap: 0;
        flex-direction: column;
    }
    .f-list {
        gap: 0;
        margin-left: 0;
        flex-direction: column;
        font-size: 16px;
        padding-left: 0;
    }
    .footer li:first-child {
        letter-spacing: -0.02rem;
        font-size: 18px;
    }
    .f-i:first-child{
        margin-bottom: 10px;
    }
    .policy {
        gap: 6px;
    }
    .mob-hide {
        display: block;
    }
    .mob-show {
        display: none !important;
    }
    .mob-show-flex {
        display: none !important;
    }
    dialog {
        width: 100%;
        max-width: 343px;
        padding: 32px 16px 16px 16px;
    }
    dialog h2 {
        font-size: 24px;
        line-height: 117%;
    }
    dialog .sub-text {
        font-size: 16px;
        line-height: 125%;
    }
    dialog .button-close {
        width: 100%;
    }
    .container-text.mob-hide {
        margin-top: 16px;
    }
}
@media (max-width: 500px) {
	.blog h1 {
		font-size: 24px;
		line-height: 117%;
		margin-bottom: 8px;
	}
	.blog .amg-text-content {
		font-size: 16px;
		line-height: 125%;
		max-width: 100%;
	}
	.blog .amg-block-title {
		padding-bottom: 16px;
	}
	.blog .messengers {
		display: none;
	}

    .pb150 .messengers {
		display: none;
	}
}
@media (max-width: 450px) {
    .go-to-top {
        right: 6px;
        top: 26px;
    }
}

@media (max-width: 376px) {
    .f-i {
        padding-right: 0;
        width: 100%;
    }
    .f-i:first-child,
    .f-i {
        margin-bottom: 16px;
    }
}