/* Общие стили */
#wp-admin-bar-comments > a {
	display: none!important;
}

body {
    padding: 0px;
    margin: 0px;
    font-family: Tahoma, sans-serif;
    overflow-x: hidden;
    width: calc(100vw - var(--scrollbar-width));
    font-size: 18px;
}

/* Плавная прокрутка по всему сайту и корректная остановка у якорей. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(
        var(--complete-admin-bar-height, 0px) +
        var(--complete-home-header-height, 76px) +
        12px
    ) !important;
    margin-top: 0 !important;
}

/* При активном JS-скролле отключаем нативную анимацию, чтобы эффекты не накладывались. */
html.complete-js-smooth-scroll {
    scroll-behavior: auto;
}

/* Уважаем системную настройку уменьшения анимации. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Стили для скроллбара */

div.wpforms-container-full:not(:empty) {
    margin: 0px auto!important;
}

.wpforms-container .wpforms-field, .wp-core-ui div.wpforms-container .wpforms-field {
    padding: 5px 0!important;
}

.wpforms-field-label {
    margin: 0px 0px 5px 0px!important;
}

label.wpforms-field-label-inline a {
    color: #9a9a9a!important;
    transition: 0.5s;
}

label.wpforms-field-label-inline a:hover {
    color: #e30613!important;
    transition: 0.5s;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

p {
    margin-block-start: 8px!important;
    margin-block-end: 8px!important;
}

/* Стили контейнеров */
.container {
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили сайта */
body.admin-bar {
    margin-top: 0 !important;
}

/* =========================================================
   Главная страница: первый экран
   Все классы имеют уникальный префикс, чтобы не конфликтовать
   со стилями WordPress и плагинов.
   ========================================================= */
:root {
    --complete-home-accent: #d5ad6d;
    --complete-home-accent-dark: #ad8245;
    --complete-home-dark: #171714;
    --complete-home-muted: rgba(255, 255, 255, 0.78);
    --complete-home-border: rgba(255, 255, 255, 0.2);
    --complete-admin-bar-height: 0px;
    --complete-admin-bar-layout-height: 0px;
    --complete-home-header-height: 76px;
}

/*
 * WordPress добавляет margin-top к html. Тема управляет отступом сама,
 * чтобы абсолютная шапка и фиксированное мобильное меню не попадали
 * под admin bar.
 */
html {
    margin-top: 0 !important;
}

body.admin-bar {
    --complete-admin-bar-height: 32px;
    --complete-admin-bar-layout-height: 32px;
    padding-top: var(--complete-admin-bar-layout-height) !important;
}

body.home-landing-page {
    position: relative;
    min-width: 320px;
    box-sizing: border-box;
    background: var(--complete-home-dark);
    color: #fff;
}

body.complete-site-header-enabled.complete-home-menu-is-open {
    overflow: hidden;
}

/* На внутренних страницах общий фиксированный header занимает место в потоке. */
body.complete-inner-page {
    min-width: 320px;
    box-sizing: border-box;
    padding-top: calc(var(--complete-admin-bar-layout-height) + var(--complete-home-header-height)) !important;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.complete-home-main {
    min-height: calc(100vh - var(--complete-admin-bar-layout-height));
    min-height: calc(100svh - var(--complete-admin-bar-layout-height));
}

.complete-home-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: calc(100vh - var(--complete-admin-bar-layout-height));
    min-height: calc(100svh - var(--complete-admin-bar-layout-height));
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    background: #24231f;
}

.complete-home-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.complete-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 16, 14, 0.9) 0%, rgba(16, 16, 14, 0.72) 53%, rgba(16, 16, 14, 0.5) 100%),
        linear-gradient(180deg, rgba(8, 8, 7, 0.3) 0%, rgba(8, 8, 7, 0.06) 50%, rgba(8, 8, 7, 0.38) 100%);
}

.complete-home-hero__container {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    /*
     * Одинаковые верхний и нижний внутренние отступы сохраняют
     * содержимое первого экрана точно на вертикальной оси секции.
     * Высота шапки включена с обеих сторон, поэтому фиксированный
     * header не перекрывает контент даже на невысоких экранах.
     */
    padding-top: calc(var(--complete-home-header-height) + 24px);
    padding-bottom: calc(var(--complete-home-header-height) + 24px);
}

.complete-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(330px, 9fr);
    gap: clamp(28px, 3.6vw, 64px);
    align-items: center;
    width: 100%;
    min-width: 0;
}

.complete-home-hero__content {
    min-width: 0;
    max-width: 980px;
}

.complete-home-hero__title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5.5vw, 70px);
    font-family: "Alumni Sans", sans-serif;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.complete-home-hero__description {
    max-width: 760px;
    margin-top: 17px;
    color: var(--complete-home-muted);
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1.55;
}

.complete-home-hero__description > :first-child,
.complete-home-hero__form-description > :first-child {
    margin-top: 0 !important;
}

.complete-home-hero__description > :last-child,
.complete-home-hero__form-description > :last-child {
    margin-bottom: 0 !important;
}

.complete-home-hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.complete-home-benefit {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 78px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid rgba(213, 173, 109, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
        rgba(18, 18, 16, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 28px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}

.complete-home-benefit::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -26px;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(213, 173, 109, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.complete-home-benefit:hover {
    border-color: rgba(213, 173, 109, 0.55);
    transform: translateY(-2px);
}

.complete-home-benefit__icon-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 85px;
    width: 72px;
    height: 72px;
    margin-right: 13px;
    place-items: center;
    border: 1px solid rgba(213, 173, 109, 0.3);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(213, 173, 109, 0.24), rgba(213, 173, 109, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.complete-home-benefit__icon {
    display: block;
    width: 76px;
    height: 55px;
    object-fit: contain;
}

.complete-home-benefit__title {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

.complete-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 20px;
    border: 1px solid var(--complete-home-accent);
    border-radius: 8px;
    background: var(--complete-home-accent);
    color: #181714;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.complete-home-button:hover,
.complete-home-button:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #181714;
    transform: translateY(-1px);
}

.complete-home-button--mobile-cta {
    display: none;
    margin-top: 22px;
}

.complete-home-hero__form-card {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    box-sizing: border-box;
    padding: clamp(20px, 2.1vw, 25px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
    color: #24231f;
}

.complete-home-hero__form-title {
    margin: 0;
    color: #1d1c19;
    font-size: clamp(35px, 3.75vw, 45px);
    font-family: "Alumni Sans", sans-serif;
    text-align: center;
    font-weight: 700;
    line-height: 1.00;
}

.complete-home-hero__form-description {
    margin-top: 9px;
    color: #68645c;
    font-size: 14px;
    line-height: 1.48;
}

.complete-home-hero__form-wrap {
    margin-top: 15px;
}

/* Шапка первого экрана */
.complete-home-header {
    position: fixed;
    top: var(--complete-admin-bar-height);
    right: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(14, 14, 12, 0.82) 0%, rgba(14, 14, 12, 0.42) 100%);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transform: none;
    opacity: 1;
    transition:
        transform .46s cubic-bezier(.22, .75, .25, 1),
        opacity .34s ease;
}

/* Header скрывается только после прокрутки вниз более чем на 70px. */
.complete-home-header.is-scroll-hidden {
    transform: translate3d(0, calc(-100% - var(--complete-admin-bar-height, 0px) - 2px), 0);
    opacity: 0;
    pointer-events: none;
}

/* Открытое мобильное меню и фокус внутри header всегда возвращают его на экран. */
body.complete-home-menu-is-open .complete-home-header,
body.complete-keyboard-navigation .complete-home-header:focus-within {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

/* Открытая панель не должна наследовать временный transform шапки. */
body.complete-home-menu-is-open .complete-home-header {
    transition: opacity .2s ease;
}

body.complete-inner-page .complete-home-header {
    background: rgba(18, 18, 16, 0.97);
}

.complete-home-header__container {
    display: grid;
    grid-template-columns: minmax(150px, 205px) minmax(320px, 1fr) auto auto;
    gap: clamp(16px, 1.8vw, 32px);
    align-items: center;
    min-height: var(--complete-home-header-height);
}

.complete-home-header__logo-column,
.complete-home-header__menu-column,
.complete-home-header__phone-column,
.complete-home-header__button-column {
    min-width: 0;
}

.complete-home-header__logo-link,
.complete-home-header__logo {
    display: block;
}

.complete-home-header__logo-link {
    width: min(100%, 190px);
    text-decoration: none;
}

.complete-home-header__logo {
    width: 100%;
    max-width: 190px;
    max-height: 45px;
    object-fit: contain;
    object-position: left center;
}

.complete-home-header__site-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.complete-home-header__nav,
.complete-home-header__menu,
.complete-home-header__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.complete-home-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.35vw, 26px);
}

.complete-home-header__menu li {
    position: relative;
}

.complete-home-header__menu > li > a {
    display: flex;
    align-items: center;
    min-height: var(--complete-home-header-height);
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.complete-home-header__menu a:hover,
.complete-home-header__menu a:focus-visible,
.complete-home-header__menu .current-menu-item > a,
.complete-home-header__menu .current-menu-ancestor > a {
    color: var(--complete-home-accent);
}

.complete-home-header__menu ul {
    position: absolute;
    top: calc(100% - 8px);
    left: -14px;
    min-width: 280px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(7px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(23, 23, 20, 0.985);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.complete-home-header__menu ul ul {
    top: -9px;
    left: calc(100% + 9px);
}

.complete-home-header__menu li:hover > ul,
.complete-home-header__menu li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.complete-home-header__menu ul a {
    display: block;
    padding: 10px 11px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.complete-home-header__menu ul a:hover,
.complete-home-header__menu ul a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.complete-home-header__phone {
    color: #fff;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.complete-home-header__phone:hover,
.complete-home-header__phone:focus-visible {
    color: var(--complete-home-accent);
}

.complete-home-button--header {
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
}

.complete-home-header__menu-toggle,
.complete-home-submenu-toggle {
    display: none;
}

/* WPForms внутри карточки */
.complete-home-hero__form-wrap div.wpforms-container-full,
.complete-home-hero__form-wrap .wpforms-container {
    margin: 0 !important;
}

.complete-home-hero__form-wrap .wpforms-form .wpforms-field {
    padding: 5px 0 !important;
}

.complete-home-hero__form-wrap .wpforms-form .wpforms-field-label {
    margin: 0 0 5px !important;
    color: #37342f !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.complete-home-hero__form-wrap .wpforms-form input[type="text"],
.complete-home-hero__form-wrap .wpforms-form input[type="email"],
.complete-home-hero__form-wrap .wpforms-form input[type="tel"],
.complete-home-hero__form-wrap .wpforms-form input[type="number"],
.complete-home-hero__form-wrap .wpforms-form input[type="url"],
.complete-home-hero__form-wrap .wpforms-form select,
.complete-home-hero__form-wrap .wpforms-form textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1px solid #d7d2c9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #24231f !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.complete-home-hero__form-wrap .wpforms-form textarea {
    min-height: 86px !important;
    resize: vertical;
}

.complete-home-hero__form-wrap .wpforms-form input:focus,
.complete-home-hero__form-wrap .wpforms-form select:focus,
.complete-home-hero__form-wrap .wpforms-form textarea:focus {
    outline: none !important;
    border-color: var(--complete-home-accent) !important;
    box-shadow: 0 0 0 3px rgba(213, 173, 109, 0.18) !important;
}

.complete-home-hero__form-wrap .wpforms-form input::placeholder,
.complete-home-hero__form-wrap .wpforms-form textarea::placeholder {
    color: #98938a !important;
    opacity: 1 !important;
}

.complete-home-hero__form-wrap .wpforms-form .wpforms-field-checkbox li,
.complete-home-hero__form-wrap .wpforms-form .wpforms-field-radio li,
.complete-home-hero__form-wrap .wpforms-form .wpforms-field-description,
.complete-home-hero__form-wrap .wpforms-form .wpforms-field-checkbox label,
.complete-home-hero__form-wrap .wpforms-form .wpforms-field-radio label {
    color: #777168 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.complete-home-hero__form-wrap .wpforms-form .wpforms-submit-container {
    padding-top: 9px !important;
}

.complete-home-hero__form-wrap .wpforms-form button[type="submit"],
.complete-home-hero__form-wrap .wpforms-form input[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 18px !important;
    border: 1px solid var(--complete-home-accent) !important;
    border-radius: 8px !important;
    background: var(--complete-home-accent) !important;
    color: #181714 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}

.complete-home-hero__form-wrap .wpforms-form button[type="submit"]:hover,
.complete-home-hero__form-wrap .wpforms-form input[type="submit"]:hover,
.complete-home-hero__form-wrap .wpforms-form button[type="submit"]:focus,
.complete-home-hero__form-wrap .wpforms-form input[type="submit"]:focus {
    border-color: var(--complete-home-accent-dark) !important;
    background: var(--complete-home-accent-dark) !important;
    color: #fff !important;
}

.complete-home-hero__form-wrap .wpforms-form .wpforms-error {
    color: #bd2d2d !important;
    font-size: 12px !important;
}

.complete-home-hero__form-wrap .wpforms-confirmation-container-full,
.complete-home-hero__form-wrap .wpforms-confirmation-container {
    margin: 0 !important;
    padding: 13px !important;
    border: 1px solid #b8d9b6 !important;
    border-radius: 8px !important;
    background: #edf7ec !important;
    color: #31572f !important;
}

@media (max-width: 1320px) {
    .complete-home-header__container {
        grid-template-columns: minmax(135px, 175px) minmax(280px, 1fr) auto auto;
        gap: 14px;
    }

    .complete-home-header__menu {
        gap: 14px;
    }

    .complete-home-header__menu > li > a,
    .complete-home-header__menu ul a {
        font-size: 15px;
    }

    .complete-home-button--header {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 13px;
    }
}

@media (max-width: 1035px) {
    :root {
        --complete-home-header-height: 68px;
    }

    .complete-home-header {
        z-index: 1200;
        background: rgba(18, 18, 16, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.complete-site-header-enabled::after {
        content: '';
        position: fixed;
        top: var(--complete-admin-bar-height);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        visibility: hidden;
        opacity: 0;
        background: rgba(8, 8, 7, 0.62);
        pointer-events: none;
        transition: opacity .3s ease, visibility 0s linear .3s;
    }

    body.complete-site-header-enabled.complete-home-menu-is-open::after {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    /*
     * На планшете исходные третья и четвёртая колонки сдвигаются влево:
     * телефон -> колонка 2, кнопка -> колонка 3, бургер -> колонка 4.
     */
    .complete-home-header__container {
        grid-template-columns: minmax(125px, 1fr) auto auto 44px;
        gap: 12px;
        min-height: var(--complete-home-header-height);
    }

    .complete-home-header__logo-link {
        width: min(100%, 165px);
    }

    .complete-home-header__logo {
        max-width: 165px;
        max-height: 40px;
    }

    .complete-home-header__phone-column {
        grid-column: 2;
        grid-row: 1;
    }

    .complete-home-header__button-column {
        grid-column: 3;
        grid-row: 1;
    }

    .complete-home-header__menu-column {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
    }

    .complete-home-header__menu-toggle {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        box-sizing: border-box;
        padding: 9px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.07);
        cursor: pointer;
    }

    .complete-home-header__menu-toggle > span:not(.screen-reader-text) {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }

    .complete-home-header__menu-toggle[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .complete-home-header__menu-toggle[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    .complete-home-header__menu-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .complete-home-header__nav {
        position: fixed;
        top: var(--complete-admin-bar-height);
        right: 0;
        bottom: auto;
        left: auto;
        z-index: 2;
        width: min(88vw, 390px);
        height: calc(100vh - var(--complete-admin-bar-height));
        height: calc(100dvh - var(--complete-admin-bar-height));
        overflow-x: hidden;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translate3d(100%, 0, 0);
        box-sizing: border-box;
        padding: calc(var(--complete-home-header-height) + 8px) 18px 30px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        background:
            linear-gradient(180deg, rgba(213, 173, 109, 0.055), transparent 180px),
            #121210;
        box-shadow: -22px 0 60px rgba(0, 0, 0, 0.34);
        scrollbar-width: thin;
        scrollbar-color: rgba(213, 173, 109, 0.52) transparent;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transition:
            transform .36s cubic-bezier(.22, .75, .25, 1),
            opacity .25s ease,
            visibility 0s linear .36s;
        will-change: transform;
    }

    .complete-home-header__nav::-webkit-scrollbar {
        width: 6px;
    }

    .complete-home-header__nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .complete-home-header__nav::-webkit-scrollbar-thumb {
        border-radius: 20px;
        background: rgba(213, 173, 109, 0.52);
    }

    .complete-home-header__nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition-delay: 0s;
    }

    .complete-home-header__menu {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .complete-home-header__menu a::before,
    .complete-home-header__menu a::after {
        content: none !important;
        display: none !important;
    }

    .complete-home-header__menu > li {
        margin: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .complete-home-header__menu > li > a,
    .complete-home-header__menu ul a {
        min-height: 0;
        padding: 13px 35px 13px 4px;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 16px;
        white-space: normal;
    }

    .complete-home-header__menu ul {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 7px 17px;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .complete-home-header__menu li.submenu-is-open > ul {
        display: block;
    }

    .complete-home-header__menu ul ul {
        padding-left: 16px;
    }

    .complete-home-submenu-toggle {
        position: absolute;
        top: 7px;
        right: 2px;
        display: grid;
        width: 38px;
        height: 38px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .complete-home-submenu-toggle::before {
        content: '+';
    }

    .complete-home-submenu-toggle[aria-expanded="true"]::before {
        content: '−';
    }

    .complete-home-hero__container {
        padding-top: calc(var(--complete-home-header-height) + 22px);
        padding-bottom: calc(var(--complete-home-header-height) + 22px);
    }

    .complete-home-hero__grid {
        display: block;
    }

    .complete-home-hero__content {
        max-width: 860px;
    }

    .complete-home-hero__form-card {
        display: none;
    }

    .complete-home-button--mobile-cta {
        display: inline-flex;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --complete-admin-bar-height: 46px;
        --complete-admin-bar-layout-height: 46px;
    }
}

@media (max-width: 720px) {
    .complete-home-header__container {
        grid-template-columns: minmax(110px, 1fr) auto 0 44px;
        gap: 10px;
    }

    .complete-home-header__button-column {
        display: none;
    }

    .complete-home-header__menu-column {
        grid-column: 4;
    }

    .complete-home-hero__overlay {
        background: linear-gradient(90deg, rgba(16, 16, 14, 0.91) 0%, rgba(16, 16, 14, 0.7) 100%);
    }

    .complete-home-hero__title {
        font-size: clamp(32px, 8vw, 46px);
    }

    .complete-home-hero__description {
        margin-top: 14px;
        font-size: 16px;
    }

    .complete-home-hero__benefits {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 20px;
    }

    .complete-home-benefit {
        max-width: 430px;
        min-height: 68px;
        padding: 10px 12px;
    }

    .complete-home-benefit__icon-wrap {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }

    .complete-home-benefit__icon {
        width: 32px;
        height: 32px;
    }

    .complete-home-button--mobile-cta {
        width: 100%;
        max-width: 430px;
        margin-top: 17px;
    }
}

@media (max-width: 520px) {
    .complete-home-header__container {
        grid-template-columns: minmax(95px, 1fr) auto 0 44px;
        gap: 6px;
    }

    /* Телефон остаётся видимым в шапке даже на узких мобильных экранах. */
    .complete-home-header__phone-column {
        display: block;
        grid-column: 2;
    }

    .complete-home-header__phone {
        font-size: clamp(14px, 4.8vw, 16px);
    }

    .complete-home-header__logo-link {
        width: min(100%, 150px);
    }

    .complete-home-hero__container {
        align-items: center;
        padding-top: calc(var(--complete-home-header-height) + 18px);
        padding-bottom: calc(var(--complete-home-header-height) + 18px);
    }
}

@media (max-height: 760px) and (min-width: 1036px) {
    .complete-home-hero__container {
        padding-top: calc(var(--complete-home-header-height) + 14px);
        padding-bottom: calc(var(--complete-home-header-height) + 14px);
    }

    .complete-home-hero__title {
        font-size: clamp(32px, 3vw, 50px);
    }

    .complete-home-hero__description {
        margin-top: 11px;
        font-size: 16px;
    }

    .complete-home-hero__benefits {
        margin-top: 17px;
    }

    .complete-home-hero__form-card {
        padding: 21px;
    }

    .complete-home-hero__form-title {
        font-size: 26px;
    }

    .complete-home-hero__form-wrap {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .complete-home-header,
    .complete-home-header__nav,
    body.complete-site-header-enabled::after,
    .complete-home-header__menu-toggle > span,
    .complete-home-button,
    .complete-home-benefit,
    .complete-home-header__menu ul {
        transition: none !important;
    }
}

/* =========================================================
   Корректировки мобильной шапки и первого экрана
   ========================================================= */
.complete-home-header__mobile-actions {
    display: none;
}

@media (max-width: 1035px) {
    /* Панель начинается справа от верхнего края, пункты идут ниже строки шапки. */
    .complete-home-header__nav {
        padding: calc(var(--complete-home-header-height) + 8px) 18px 30px;
    }

    .complete-home-header__menu {
        box-sizing: border-box;
        padding-right: 20px;
    }

    /* Центрирование всего содержимого первого экрана на планшетах и мобильных. */
    .complete-home-hero__content {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .complete-home-hero__title,
    .complete-home-hero__description {
        margin-right: auto;
        margin-left: auto;
    }

    .complete-home-hero__benefits {
        width: 100%;
        max-width: 900px;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
        justify-items: center;
    }

    .complete-home-benefit {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
        text-align: left;
    }

    .complete-home-button--mobile-cta {
        margin-right: auto;
        margin-left: auto;
    }

    .complete-home-header__mobile-actions {
        box-sizing: border-box;
        width: 100%;
        margin-top: 22px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .complete-home-header__mobile-phone {
        display: none;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .complete-home-button--mobile-menu {
        display: none;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 720px) {
    /*
     * После скрытия кнопки из шапки в мобильной панели появляются
     * и сама кнопка, и телефон. Телефон при этом остаётся в шапке.
     */
    .complete-home-header__mobile-actions {
        display: block;
    }

    .complete-home-header__mobile-phone {
        display: flex;
    }

    .complete-home-button--mobile-menu {
        display: inline-flex;
    }
}

/* На самых узких экранах вместо основного логотипа показываем отдельный мобильный логотип из ACF. */
.complete-home-header__mobile-logo {
    display: none;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 500px) {
    .complete-home-header__logo-link--has-mobile-logo {
        width: 40px;
        max-width: 40px;
    }

    .complete-home-header__logo-link--has-mobile-logo .complete-home-header__logo,
    .complete-home-header__logo-link--has-mobile-logo .complete-home-header__site-name {
        display: none;
    }

    .complete-home-header__logo-link--has-mobile-logo .complete-home-header__mobile-logo {
        display: block;
    }
}

/* =========================================================
   Главная страница: секция преимуществ
   ========================================================= */
.complete-home-advantages {
    position: relative;
    padding: clamp(15px, 1vw, 15px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(213, 173, 109, 0.16), transparent 25%),
        linear-gradient(180deg, #f7f4ee 0%, #eee9df 100%);
    color: #24231f;
}

.complete-home-advantages::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(173, 130, 69, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.complete-home-advantages__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(90, 73, 46, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 24px 65px rgba(48, 39, 25, 0.14),
        0 3px 12px rgba(48, 39, 25, 0.07);
}

.complete-home-advantages__item {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    min-height: 132px;
    box-sizing: border-box;
    padding: clamp(20px, 0.8vw, 30px);
    transition: background-color .22s ease;
}

.complete-home-advantages__item:not(:nth-child(4n + 1)) {
    border-left: 1px solid rgba(90, 73, 46, 0.1);
}

.complete-home-advantages__item:nth-child(n + 5) {
    border-top: 1px solid rgba(90, 73, 46, 0.1);
}

.complete-home-advantages__item:hover {
    background: rgba(213, 173, 109, 0.08);
}

.complete-home-advantages__icon-wrap {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(173, 130, 69, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(213, 173, 109, 0.22), rgba(213, 173, 109, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.complete-home-advantages__icon {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.complete-home-advantages__content {
    min-width: 0;
}

.complete-home-advantages__title {
    margin: 0;
    color: #25231f;
    font-family: "Alumni Sans", sans-serif;
    font-size: clamp(24px, 1.65vw, 31px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.complete-home-advantages__description {
    margin: 7px 0 0 !important;
    color: #716b61;
    font-size: 14px;
    line-height: 1.48;
}

@media (max-width: 1200px) {
    .complete-home-advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complete-home-advantages__item,
    .complete-home-advantages__item:not(:nth-child(4n + 1)),
    .complete-home-advantages__item:nth-child(n + 5) {
        border-top: 0;
        border-left: 0;
    }

    .complete-home-advantages__item:nth-child(even) {
        border-left: 1px solid rgba(90, 73, 46, 0.1);
    }

    .complete-home-advantages__item:nth-child(n + 3) {
        border-top: 1px solid rgba(90, 73, 46, 0.1);
    }
}

@media (max-width: 680px) {
    .complete-home-advantages {
        padding: 15px 0;
    }

    .complete-home-advantages__grid {
        grid-template-columns: 1fr;
    }

    .complete-home-advantages__item,
    .complete-home-advantages__item:nth-child(even),
    .complete-home-advantages__item:nth-child(n + 3) {
        min-height: 0;
        padding: 20px;
        border-top: 0;
        border-left: 0;
    }

    .complete-home-advantages__item:nth-child(n + 2) {
        border-top: 1px solid rgba(90, 73, 46, 0.1);
    }
}

@media (max-width: 420px) {
    .complete-home-advantages__item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 16px;
    }

    .complete-home-advantages__icon-wrap {
        width: 54px;
        height: 54px;
        border-radius: 12px;
    }

    .complete-home-advantages__icon {
        width: 34px;
        height: 34px;
    }

    .complete-home-advantages__title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .complete-home-advantages__item {
        transition: none !important;
    }
}

/* =========================================================
   Главная страница: карточки услуг
   ========================================================= */
.complete-home-services {
    position: relative;
    padding: clamp(30px, 3.2vw, 48px) 0 clamp(36px, 3.8vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(213, 173, 109, 0.14), transparent 25%),
        linear-gradient(180deg, #f8f6f1 0%, #f1ede5 100%);
    color: #24231f;
}

.complete-home-services::before {
    content: '';
    position: absolute;
    top: 44px;
    left: max(10px, calc((100% - 1820px) / 2 + 10px));
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--complete-home-accent-dark), var(--complete-home-accent));
    pointer-events: none;
}

.complete-home-services__header {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.complete-home-services__title {
    margin: 0;
    color: #24231f;
    font-family: "Alumni Sans", sans-serif;
    font-size: clamp(36px, 4.1vw, 58px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.complete-home-services__subtitle {
    max-width: 820px;
    margin: 10px auto 0 !important;
    color: #81796d;
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.5;
    text-wrap: balance;
}

.complete-home-services__description {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 22px 0 0;
    color: #5f594f;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

.complete-home-services__description > :first-child {
    margin-top: 0 !important;
}

.complete-home-services__description > :last-child {
    margin-bottom: 0 !important;
}

.complete-home-services__description a {
    color: var(--complete-home-accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.complete-home-services__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.25vw, 22px);
    align-items: stretch;
    margin-top: 24px;
}

.complete-home-service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(76, 62, 39, 0.1);
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 14px 36px rgba(46, 37, 25, 0.11),
        0 2px 8px rgba(46, 37, 25, 0.06);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.complete-home-service-card:hover,
.complete-home-service-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(173, 130, 69, 0.28);
    box-shadow:
        0 20px 44px rgba(46, 37, 25, 0.16),
        0 4px 12px rgba(46, 37, 25, 0.08);
}

.complete-home-service-card__link {
    display: flex;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.complete-home-service-card__link:focus-visible {
    outline: 3px solid rgba(173, 130, 69, 0.55);
    outline-offset: -3px;
}

.complete-home-service-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ded7cb;
}

.complete-home-service-card__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(20, 19, 16, 0.13));
    pointer-events: none;
}

.complete-home-service-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.complete-home-service-card:hover .complete-home-service-card__image,
.complete-home-service-card:focus-within .complete-home-service-card__image {
    transform: scale(1.045);
}

.complete-home-service-card__media--empty {
    background:
        linear-gradient(135deg, rgba(213, 173, 109, 0.34), rgba(54, 48, 39, 0.12)),
        #ddd6ca;
}

.complete-home-service-card__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(71, 58, 38, 0.32);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.complete-home-service-card__placeholder::before,
.complete-home-service-card__placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: rgba(71, 58, 38, 0.38);
    transform: translate(-50%, -50%);
}

.complete-home-service-card__placeholder::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.complete-home-service-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    padding: clamp(17px, 1.4vw, 24px) clamp(15px, 1.2vw, 22px) clamp(19px, 1.5vw, 26px);
}

.complete-home-service-card__title {
    color: #292721;
    font-family: "Alumni Sans", sans-serif;
    font-size: clamp(25px, 1.9vw, 32px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.complete-home-service-card__description {
    display: block;
    margin-top: 9px;
    color: #766f64;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1240px) {
    .complete-home-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .complete-home-services::before {
        display: none;
    }

    .complete-home-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .complete-home-services {
        padding: 28px 0 36px;
    }

    .complete-home-services__description {
        margin-top: 18px;
        line-height: 1.58;
        font-size: 16px;
    }

    .complete-home-services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 480px;
        margin: 22px auto 0;
    }

    .complete-home-service-card__media {
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .complete-home-service-card,
    .complete-home-service-card__image {
        transition: none !important;
    }
}

/* =========================================================
   Главная страница: дополнительные блоки в секции услуг
   ========================================================= */
.complete-home-services__extras {
    position: relative;
    z-index: 1;
    margin-top: clamp(26px, 2.5vw, 38px);
}

.complete-home-services__extras-title {
    margin: 0;
    color: #24231f;
    font-family: "Alumni Sans", sans-serif;
    font-size: clamp(32px, 3.3vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-align: center;
    text-wrap: balance;
}

.complete-home-services__extras-list {
    display: grid;
    gap: clamp(14px, 1.3vw, 20px);
    margin-top: clamp(16px, 1.5vw, 22px);
}

.complete-home-services__extra-item {
    display: grid;
    grid-template-columns: minmax(0, 64%) minmax(320px, 36%);
    grid-template-areas: "content media";
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(76, 62, 39, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 10px 24px rgba(46, 37, 25, 0.08),
        0 2px 6px rgba(46, 37, 25, 0.04);
}

/* На широких экранах дополнительные блоки чередуются:
   текст + изображение, затем изображение + текст. */
.complete-home-services__extra-item:nth-child(even) {
    grid-template-columns: minmax(320px, 36%) minmax(0, 64%);
    grid-template-areas: "media content";
}

.complete-home-services__extra-content {
    grid-area: content;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 1.8vw, 28px);
}

.complete-home-services__extra-title {
    margin: 0;
    color: #292721;
    font-family: "Alumni Sans", sans-serif;
    font-size: clamp(27px, 2.25vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.complete-home-services__extra-description {
    margin-top: 10px;
    color: #686156;
    font-size: clamp(16px, 1.05vw, 18px);
    line-height: 1.62;
}

.complete-home-services__extra-description > :first-child {
    margin-top: 0 !important;
}

.complete-home-services__extra-description > :last-child {
    margin-bottom: 0 !important;
}

.complete-home-services__extra-description a {
    color: var(--complete-home-accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.complete-home-services__extra-description ul,
.complete-home-services__extra-description ol {
    padding-left: 1.25em;
}

.complete-home-services__extra-media {
    grid-area: media;
    position: relative;
    align-self: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ded7cb;
}

.complete-home-services__extra-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(76, 62, 39, 0.08);
    pointer-events: none;
}

.complete-home-services__extra-item:nth-child(even) .complete-home-services__extra-media::after {
    border-right: 1px solid rgba(76, 62, 39, 0.08);
    border-left: 0;
}

.complete-home-services__extra-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.complete-home-services__extra-item:hover .complete-home-services__extra-image {
    transform: scale(1.025);
}

@media (max-width: 1035px) {
    .complete-home-services__extra-item,
    .complete-home-services__extra-item:nth-child(even) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "content"
            "media";
    }

    .complete-home-services__extra-content {
        padding: clamp(18px, 3vw, 26px);
    }

    .complete-home-services__extra-media::after,
    .complete-home-services__extra-item:nth-child(even) .complete-home-services__extra-media::after {
        border-top: 1px solid rgba(76, 62, 39, 0.08);
        border-right: 0;
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .complete-home-services__extras {
        margin-top: 24px;
    }

    .complete-home-services__extras-list {
        gap: 16px;
        margin-top: 18px;
    }

    .complete-home-services__extra-content {
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .complete-home-services__extra-image {
        transition: none !important;
    }
}

.complete-home-services__extra-item--without-image,
.complete-home-services__extra-item--without-image:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content";
}

.complete-home-services__extra-item--image-only,
.complete-home-services__extra-item--image-only:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media";
}

.complete-home-services__extra-item--image-only .complete-home-services__extra-media {
    width: min(100%, 760px);
    max-width: 100%;
    margin-inline: auto;
}
