:root {
    --color-bg: #F5F7F8;
    --color-border: #DEDEDE;
    --color-link: #0077ff;
    --color-accent: #003CC5;
    --swiper-navigation-color: var(--color-border);
    --swiper-pagination-color: var(--color-border);
    --swiper-pagination-bullet-inactive-color: var(--color-border);
    --swiper-pagination-bullet-inactive-opacity: 0.4;
    --header-z-index: 1000;
    --admin-height: 0px;
    --section-space: 40px;
    --border-radius: 20px;
    --conatiner-space: clamp(16px, 4vw, 40px);
}

@media screen and (min-width: 600px) {
    :root {
        --admin-height: var(--wp-admin--admin-bar--height,0px);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "sans-serif";
    font-size: 16px;
    line-height: 1.2;
    background: var(--color-bg);
    letter-spacing: 0.4px;
    overflow-x: hidden;
}

a:not([class]) {
    color: var(--color-link);
}

.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
}

.section-spacing {
    padding: var(--section-space) 0;
}

.container {
    width: 100%;
    max-width: clamp(420px, 90vw, 1540px);
    margin: 0 auto;
    padding: 0 var(--conatiner-space);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    font-size: inherit;
    text-align: center;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    background-image: linear-gradient(to right, #003CC5 0%, #0B63F6 51%, #003CC5 100%);
    padding: 10px 20px;
}
.btn[disabled],
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
}

.pulse-button {
    background: linear-gradient(to right, #003CC5 0%, #0B63F6 51%, #003CC5 100%);
    position: relative;
    z-index: 1;
}

.pulse-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: rgba(42, 125, 225, 0.5);
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.link {
    text-decoration: underline;
    color: inherit;
}

.title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 0.75em;
}

h1, .h1 {
    font-size: 38px;
}

.text-center {
    text-align: center;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.glass {
    background: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    &.glass-page {
        padding: var(--conatiner-space);
        border-radius: var(--border-radius);
    }

    &.clickable {
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease !important;

        /* светящийся градиент внутри */
        &::after {
            content: "";
            position: absolute;
            inset: -2px;
            background: linear-gradient(
                    120deg,
                    #00f0ff,
                    #8a2eff,
                    #ff2ea6,
                    #00f0ff
            );
            background-size: 300% 300%;
            opacity: 0;
            z-index: 0;
            transition: opacity 0.4s ease;
            filter: blur(30px);
            pointer-events: none;
        }

        @media (hover: hover) {
            &:hover {
                transform: scale(1.03);
                box-shadow: 0 5px 20px rgba(0,0,0,0.35);
            }
            /* включаем эффект */
            &:hover::after {
                opacity: 0.1;
                animation: gradient-move 4s ease infinite;
            }
        }
    }
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wrapper_bg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    /* opacity: 0.4; */
    border-radius: inherit;
    object-fit: contain;
    object-position: center;
}

*:has(>.wrapper_bg) {
    position: relative;
    z-index: 1;
}

.header {
    position: sticky;
    top: var(--admin-height);
    /* background: var(--color-bg); */
    z-index: var(--header-z-index);
    overflow: hidden;
}


.header_menu {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.header_menu a {
    color: inherit;
}

.header_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.header_nav {
    position: fixed;
    top: var(--admin-height);
    left: 0;
    width: 50%;
    padding: 30px 0;
    height: calc(100vh - var(--admin-height));
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--header-z-index);
    transition: all .3s linear;
    transform: translateX(-100%);
    backdrop-filter: blur(20px) saturate(120%);
}

.header_nav.open {
    transform: translateX(0);
}

.header .header_menu {
    display: none;
}

.close_menu {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 44px;
    height: 44px;
    padding: 7px;
    background: transparent;
}

.close_menu svg {
    width: 100%;
    height: 100%;
}

.burger_btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    background: transparent;
    width: 32px;
    height: 20px;
    flex: none;
}

.burger_btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.intro {
    padding-bottom: var(--section-space);
}

.intro_bg {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.intro_box {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    padding-top: 30px;
    min-height: calc(100vh - 62px);
}

.intro_title {
    margin-bottom: 0.5em;
}

.intro_desc {
    margin-bottom: 1em;
    font-size: 20px;
}

.intro_items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.intro_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: var(--border-radius);
}

.intro_item_title {
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.intro_item_desc {
    max-width: 300px;
}

.intro_text {
    max-width: 920px;
}

.why_us {
    position: relative;
    padding: var(--section-space) 0;
}

.why_us_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.why_us_title {
    font-size: 38px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1em;
    color: var(--color-accent);
}

.why_us_title span:nth-child(2) {
    width: 25vw;
    height: 25vw;
}

.why_us_title span:nth-child(3) {
    width: 30vw;
    height: 30vw;
}

.why_us_item_title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
}

.why_us_item {
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .2s ease-in-out;
}


.feedback {
    padding: var(--section-space) 0;
}

.section-spacing + .feedback{
    padding-top: 0;
}

.feedback_body {
    padding: 20px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
    width: 100%;
}

.feedback_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.feedback_form > p,
.feedback_form {
    display: grid;
    gap: 25px;
}

.feedback_label span {
    display: inline-block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: inherit;
    border-bottom: 1px solid #77C4B8;
    letter-spacing: inherit;
    background: transparent;
    outline: none;
}
.wpcf7-form-control-wrap {
    display: block;
}
.wpcf7-list-item-label {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wpcf7-list-item-label:after,.wpcf7-list-item-label:before {
    display: none;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7-not-valid-tip {
    padding-top: 5px;
}

.form-label br {
    display: none;
}
.feedback_desc {
    margin-bottom: 30px;
    max-width: 390px;
}

.feedback_img img {
    border-radius: var(--border-radius);
}

.feedback_img {
    position: relative;
    display: none;
}

.feedback_img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feedback_icon {
    margin-bottom: 15px;
}

.form-label-overlay {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    pointer-events: none;
    transition: all 0.15s linear;
    white-space: nowrap;
}

.form-label {
    position: relative;
    z-index: 1;
    font-size: 16px;
}
.form-label:has(.form-control:not(:placeholder-shown)) .form-label-overlay,
.form-label:has(.form-control:focus-visible) .form-label-overlay,
.form-label:has(.form-control:focus) .form-label-overlay,
.form-control:not(:placeholder-shown) + .form-label-overlay,
.form-control:focus-visible + .form-label-overlay,
.form-control:focus + .form-label-overlay {
    padding: 0;
    top: -15px;
}

.form-checkbox-label:has(.form-checkbox.required)  .form-checkbox-text:after, .form-label:has(.form-control.required) .form-label-overlay:after {
    content: '*';
    color: red;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

.form-checkbox-label input {
    display: none;
}

.form-checkbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid currentColor;
    flex: none;
}

.form-checkbox-icon svg {
    scale: 0;
}

.form-checkbox-icon svg {
    transition: all .15s linear;
}

.form-checkbox-label:has(.form-checkbox:checked) .form-checkbox-icon svg {
    scale: 1;
}

.contact_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.contact {
    position: relative;
    z-index: 1;
    --section-space: 30px;
    padding: var(--section-space) 0;
}

.contact_map {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact_map iframe {
    min-height: 300px;
    max-width: 100%;
}

.contact_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact_icon svg {
    width: 24px;
    height: 24px;
}

.contact_list li a {
    color: inherit;
    text-decoration: underline;
}

.contact_label {
    display: none;
}

.contact_title {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 28px;
}

.contact_text {
    padding: 20px;
    border-radius: var(--border-radius);
    width: 100%;
}

.services {
    padding: var(--section-space) 0;
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
}

.services .title{
    text-align: center;
}

.services .btn {
    width: 100%;
}

.services-category {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.services-list {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.service-card {
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    font-weight: 500;
    padding: 20px 30px;
}

.service-card_prices {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1;
}

.service-card_prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.service-card_title {
    font-weight: 500;
    font-size: 18px;
}

.old_price {
    font-size: 0.75em;
    text-decoration: line-through;
}

.special-price {
    color: #F54927;
    font-weight: 700;
}

.back-top-button {
    background: transparent;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: var(--header-z-index);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all .2s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transform: translateX(200%);
}

.back-top-button.show {
    transform: translateX(0);
}

.back-top-button svg {
    width: 100%;
    height: 100%;
    transition: inherit;
}

.rte h1,
.rte h2,
.rte h3,
.rte h4,
.rte h5,
.rte h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.rte h1 { font-size: 2rem; }
.rte h2 { font-size: 1.75rem; }
.rte h3 { font-size: 1.5rem; }
.rte h4 { font-size: 1.25rem; }
.rte h5 { font-size: 1.125rem; }
.rte h6 { font-size: 1rem; }

.rte p {
    margin-bottom: 1em;
}

.rte a {
    color: var(--color-link);
    text-decoration: underline;
    transition: color 0.2s;
}

.rte ul,
.rte ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
    list-style: unset;
}
.rte ul li,
.rte ol li {
    margin-bottom: 0.25em;
    ul, ol {
        margin-top: 1em;
    }
}

.rte ul ul li{
    list-style: circle;
}

.rte strong,
.rte b {
    font-weight: 600;
}

.rte em,
.rte i {
    font-style: italic;
}

.rte blockquote {
    border-left: 4px solid #ddd;
    margin: 1.5em 0;
    padding-left: 1em;
    color: #555;
    font-style: italic;
}

.rte img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin: 1em auto;
}

.rte figure {
    margin: 1.5em 0;
    text-align: center;
}
.rte figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5em;
}

.rte table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}
.rte th,
.rte td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}
.rte th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.rte hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2em 0;
}

.rte code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius);
    font-size: 0.95em;
}

.rte pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95em;
    margin: 1.5em 0;
}

.rte pre code {
    background: none;
    padding: 0;
    border: none;
}

.cf7-preloader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cf7-preloader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.wpcf7-response-output {
    display: none !important;
}

.cf7-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cf7-popup.active {
    display: flex;
}

.cf7-popup-content {
    background: #fff;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border-radius: 8px;
    text-align: center;
}

.cf7-close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

.footer {
    padding: 10px 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1f2937;
    color: #fff;
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept,
.btn-decline {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

.btn-accept {
    background: #00a3c8;
    color: white;
}

.btn-decline {
    background: transparent;
    border: 1px solid #ccc;
    color: #fff;
}

.btn-accept:hover {
    opacity: 0.9;
}

.btn-decline:hover {
    background: rgba(255,255,255,0.1);
}
.faq {
    padding-top: var(--section-space);
}
.faq_item {
    border-radius: var(--border-radius);
    &._open {
        padding-bottom: 16px;
        .faq_item_icon {
            transform: rotate(180deg);
        }
    }
}

.faq_wrapper {
    display: grid;
    gap: 16px;
}

.faq_item_title {
    padding: 16px;
    font-weight: 500;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq_item_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-border);
    opacity: 0.6;
    transition: all .2s ease-in-out;
}

.faq_item_desc {
    display: none;
    padding: 0 16px;
}

.before-after_image {
    flex: 0 0 50%;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.before-after-slider {
    border-radius: var(--border-radius);
}

.swiper-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 10px;
    transition: all .2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    @media (hover: hover) {
        &:hover {
            scale: 1.1;
        }
    }
}