/**
 * CRO Header / Footer styles (2026-04-30)
 * Base: cro-plan/wireframes/home.html
 */

:root {
    --navy: #14345B;
    --navy-deep: #0f1e35;
    --orange: #E8953A;
    --paper: #f5f2ec;
    --ink: #1a2b4a;
}

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
    background: var(--navy) !important;
    color: #fff;
    position: sticky !important;
    top: 0;
    z-index: 1100;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    border-bottom: 2px solid var(--orange);
    margin-bottom: 0;
}
/* External gap UNDER header — visible space between header and content */
body .site-header + main,
body .site-header + .site-main,
body .site-header + .vsb-main {
    margin-top: 32px !important;
    padding-top: 0 !important;
}
@media (max-width: 900px) {
    body .site-header + main,
    body .site-header + .site-main,
    body .site-header + .vsb-main {
        margin-top: 40px !important;
    }
}
.site-header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.site-header .header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
    flex-wrap: nowrap;
}
.site-header .header__start {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1 1 auto;
}
.site-header .header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-header .header__logo img {
    height: 46px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* Main nav (desktop) */
.site-header .header__menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

/* 16.05.2026 — Hover/focus dropdown for WP nav-menu items with children.
   Sticky header is z-index:1100, so dropdown must be z-index:1200+ to
   render ABOVE the header line, otherwise it stays clipped inside the bar.
   Per Anastasiia: dropdown must drop DOWN below header bar (not inline). */
.site-header .header__menu_list .menu-item-has-children {
    position: relative !important;
}
.site-header .header__menu_list .menu-item-has-children > a::after {
    content: " ▾";
    font-size: .9em;
    margin-left: 4px;
    opacity: .8;
}
.site-header .header__menu_list .sub-menu {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    left: -14px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: #0f2a4a !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 6px !important;
    min-width: 220px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, visibility .18s, transform .18s;
    z-index: 1200 !important;
    display: block !important;
    flex-direction: column !important;
}
.site-header .header__menu_list .menu-item-has-children:hover > .sub-menu,
.site-header .header__menu_list .menu-item-has-children:focus-within > .sub-menu,
.site-header .header__menu_list .sub-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header .header__menu_list .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header .header__menu_list .sub-menu a {
    display: block;
    padding: 9px 18px;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.site-header .header__menu_list .sub-menu a:hover,
.site-header .header__menu_list .sub-menu a:focus-visible {
    color: var(--orange, #E8953A);
    background: rgba(255, 255, 255, .04);
}

/* Mobile burger menu — submenu inline (16.05.2026 v5).
   Услуги = normal-size LABEL with chevron, no click; sub-items indented + smaller. */
@media (max-width: 1024px) {
    .site-header .header__menu_list .menu-item-has-children > a,
    .m-drawer__nav .menu-item-has-children > a {
        /* Same prominence as other top items, but visually a LABEL not a link */
        color: rgba(255, 255, 255, .80) !important;
        pointer-events: none !important;
        cursor: default !important;
    }
    .site-header .header__menu_list .menu-item-has-children > a::after,
    .m-drawer__nav .menu-item-has-children > a::after {
        content: " ▼" !important;
        font-size: .65em;
        margin-left: 6px;
        opacity: .55;
        position: relative;
        top: -1px;
    }

    /* Sub-menu items — INDENTED + smaller font + thinner.
       Visually subordinate so the hierarchy is obvious. */
    .m-drawer__nav .sub-menu,
    .site-header .header__menu_list .sub-menu {
        list-style: none !important;
        padding-left: 18px !important;
        margin: 4px 0 6px !important;
    }
    .m-drawer__nav .sub-menu li,
    .site-header .header__menu_list .sub-menu li {
        list-style: none !important;
    }
    .m-drawer__nav .sub-menu li::marker,
    .site-header .header__menu_list .sub-menu li::marker {
        content: '' !important;
    }
    .m-drawer__nav .sub-menu > li > a,
    .site-header .header__menu_list .sub-menu > li > a {
        font-size: .85em !important;
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        color: rgba(255, 255, 255, .85) !important;
        padding: 8px 0 8px 12px !important;
        border-left: 2px solid rgba(255, 255, 255, .15) !important;
        display: block !important;
    }
    .m-drawer__nav .sub-menu > li > a:hover,
    .site-header .header__menu_list .sub-menu > li > a:hover {
        color: var(--orange, #E8953A) !important;
        border-left-color: var(--orange, #E8953A) !important;
    }
    .site-header .header__menu_list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 4px 0 8px 14px;
        min-width: 0;
    }
    .site-header .header__menu_list .sub-menu a {
        padding: 6px 0;
        text-transform: none;
        letter-spacing: 0;
        font-size: .8rem;
        opacity: .85;
    }
}
.site-header .header__menu_list a {
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .15s;
}
.site-header .header__menu_list .current-menu-item > a,
.site-header .header__menu_list a:hover {
    color: var(--orange);
}

/* WP nav menu submenu (Walker-generated) */
.site-header .header__menu_item--parent { position: relative; }

.site-header .header__menu_link--toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.site-header .header__menu_link--toggle:hover { color: var(--orange); }
.site-header .header__menu_link--toggle[aria-expanded="true"] { color: var(--orange); }
.site-header .header__menu_link--toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.site-header .header__menu_link--toggle span { display: inline-block; transition: transform .18s; }

.site-header .header__menu_submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -14px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, visibility .18s, transform .18s;
    z-index: 100;
}
.site-header .header__menu_item--parent:hover .header__menu_submenu,
.site-header .header__menu_submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header .header__menu_sublink {
    display: block;
    padding: 9px 18px;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.site-header .header__menu_sublink:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, .04);
}

/* Fallback (hardcoded) Services dropdown */
.site-header .header__menu-dropdown { position: relative; }
.site-header .header__menu-dropdown-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-header .header__menu-dropdown-trigger:hover { color: var(--orange); }
.site-header .header__menu-dropdown-list {
    position: absolute;
    top: 100%;
    left: -14px;
    margin-top: 10px;
    padding: 10px 0;
    list-style: none;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, visibility .18s, transform .18s;
    z-index: 100;
}
.site-header .header__menu-dropdown:hover .header__menu-dropdown-list,
.site-header .header__menu-dropdown-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-header .header__menu-dropdown-list a {
    display: block;
    padding: 9px 18px;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.site-header .header__menu-dropdown-list a:hover {
    color: var(--orange);
    background: rgba(255, 255, 255, .04);
}

/* Right cluster */
.site-header .header__contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

/* BUY CTA button */
.site-header .header-button--buy {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border: 1.5px solid var(--orange);
    border-radius: 4px;
    color: #fff;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, color .2s;
}
.site-header .header-button--buy:hover {
    background: var(--orange);
    color: #fff;
}

/* Contacts dropdown */
.site-header .header__contacts-dd { position: relative; }
.site-header .header__contacts-dd-trigger {
    background: none;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 7px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
}
.site-header .header__contacts-dd-arrow,
.site-header .header__lang-arrow { font-size: .6rem; opacity: .7; }
.site-header .header__contacts-dd-menu,
.site-header .header__lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 6px 0 0;
    padding: 8px 0;
    list-style: none;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    min-width: 260px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    z-index: 100;
}
.site-header .header__lang-menu { min-width: 160px; }
.site-header .header__contacts-dd-menu {
    max-height: 70vh;
    overflow-y: auto;
}
.site-header .header__contacts-dd-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 10px;
    color: #fff;
    font-size: .88rem;
    text-decoration: none;
}
.site-header .header__contacts-dd-menu a svg { opacity: .75; flex-shrink: 0; }
.site-header .header__contacts-dd-menu a:hover { background: rgba(255, 255, 255, .04); }
.site-header .header__contacts-dd-label {
    padding: 4px 16px;
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .08em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 4px;
    padding-top: 8px;
}
.site-header .header__contacts-dd-label:first-of-type { border-top: 0; margin-top: 0; padding-top: 4px; }

/* Lang switcher */
.site-header .header__lang { position: relative; }
.site-header .header__lang-trigger {
    background: none;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 7px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.site-header .header__lang-menu a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    text-decoration: none;
}
.site-header .header__lang-menu a.is-active {
    color: var(--orange);
    font-weight: 600;
}

/* Mobile burger */
.site-header .header-mobile-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    position: relative;
}
.site-header .header-mobile-button__dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

/* Mobile drawer */
.header-mobile {
    background: var(--navy-deep);
    color: #fff;
    padding: 20px 24px 28px;
}
.header-mobile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.header-mobile__logo img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.header-mobile__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    opacity: .75;
}
.header-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.header-mobile-menu-list a {
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
}
.header-mobile-menu-list .current-menu-item > a { color: var(--orange); }

.header-mobile__cta {
    display: block;
    margin-top: 16px;
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.header-mobile__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.header-mobile__contacts a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-size: .9rem;
}
.header-mobile__lang {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap;
}
.header-mobile__lang a {
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    text-decoration: none;
    font-weight: 600;
}
.header-mobile__lang a.is-active { color: var(--orange); }

/* Visibility helpers */
.site-header .hide-mobile { display: flex; }
.site-header .show-mobile { display: none; }
@media (max-width: 900px) {
    .site-header .hide-mobile { display: none !important; }
    .site-header .show-mobile { display: inline-flex !important; }
    .site-header .header-mobile.show-mobile[hidden] { display: none !important; }
    .site-header .header__content { padding: 12px 16px; gap: 12px; }
    .site-header .container { padding: 0; }
    .site-header .header__start { gap: 0; flex: 0 1 auto; }
    .site-header .header__logo img { height: 32px; }
    .site-header .header-button--buy { padding: 7px 12px; font-size: .7rem; letter-spacing: .04em; }
    .site-header .header__contact { gap: 8px; }
}
/* Very small phones: hide buy CTA in top bar (it's already in drawer) */
@media (max-width: 480px) {
    .site-header .header-button--buy { display: none; }
}

/* Mobile lang switcher (compact RU▾) */
.site-header .m-header__lang {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 6px 8px;
    cursor: pointer;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    margin-right: 4px;
    position: relative;
}
.site-header .m-header__lang span { font-size: .55rem; opacity: .8; }
.site-header .m-header__lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 8px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    min-width: 160px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    z-index: 110;
}
.site-header .m-header__lang-menu a {
    display: block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    text-decoration: none;
}
.site-header .m-header__lang-menu a.is-active { color: var(--orange); font-weight: 600; }
.site-header .m-header__lang-menu li { display: block; list-style: none; }
.site-header .m-header__lang { display: none; }
@media (max-width: 900px) {
    .site-header .m-header__lang { display: inline-flex !important; }
}


/* Tablet polish */
@media (max-width: 1100px) and (min-width: 901px) {
    .site-header .header__menu_list { gap: 16px; }
    .site-header .header__menu_list a { font-size: .76rem; letter-spacing: .04em; }
    .site-header .header__contact { gap: 10px; }
    .site-header .header-button--buy { padding: 9px 16px; font-size: .76rem; }
}

/* ======================================================
   MOBILE DRAWER (CRO mobile macro — slide-from-right overlay)
   ====================================================== */
.m-drawer {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 53, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 200;
    transform: translateX(100%);
    transition: transform .28s ease-out;
    overflow-y: auto;
    padding: 20px;
    color: #fff;
    visibility: hidden;
}
.m-drawer.open {
    transform: translateX(0);
    visibility: visible;
}
.m-drawer__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    z-index: 2;
}
.m-drawer__vikki {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 44px 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.m-drawer__vikki-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8d8e4, #90b4c8);
    border: 2px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #555;
    overflow: hidden;
    flex-shrink: 0;
}
.m-drawer__vikki-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    font-weight: 700;
}
.m-drawer__vikki-info p {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}
.m-drawer__vikki-info small {
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
}
.m-drawer__nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.m-drawer__nav a.active,
.m-drawer__nav a:hover,
.m-drawer__nav .current-menu-item > a {
    color: var(--orange);
}
.m-drawer__cta-primary {
    display: block;
    width: 100%;
    background: var(--orange);
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    margin: 20px 0 12px;
    box-sizing: border-box;
}
.m-drawer__phones {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.m-drawer__phones a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1rem;
}
.m-drawer__socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap;
}
.m-drawer__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.m-drawer__socials svg {
    fill: #fff;
    width: 18px;
    height: 18px;
}
.m-drawer__lang {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    flex-wrap: wrap;
    justify-content: center;
}
.m-drawer__lang a {
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 4px;
    letter-spacing: .04em;
}
.m-drawer__lang a.is-active {
    color: var(--orange);
    border-color: var(--orange);
}

body.mobile-drawer-open { overflow: hidden; }

/* ======================================================
   FOOTER MOBILE (CRO m-footer)
   ====================================================== */
@media (max-width: 640px) {
    body .site-footer .container { padding: 36px 20px 16px; }
    body .site-footer .footer__vikki { margin-bottom: 24px; padding-bottom: 18px; gap: 12px; }
    body .site-footer .footer__vikki-avatar { width: 56px; height: 56px; }
    body .site-footer .footer__vikki-name { font-size: 1.25rem; }
    body .site-footer .footer__vikki-role { font-size: .68rem; }
    body .site-footer .footer__lead-phone { font-size: 1.95rem; line-height: 1.05; }
    body .site-footer .footer__lead-alt { margin-top: 6px; }
    body .site-footer .footer__lead-alt a { font-size: .88rem; opacity: .65; }
    body .site-footer .footer__social { gap: 10px; margin-bottom: 22px; }
    body .site-footer .footer__social a { width: 36px; height: 36px; }
    body .site-footer .footer__social svg { width: 16px; height: 16px; }
    /* Hide redundant footer nav on mobile — full nav is in burger drawer already */
    body .site-footer .footer__nav { display: none; }
    body .site-footer .footer__meta { font-size: .68rem; gap: 4px 10px; line-height: 1.6; margin-bottom: 8px; flex-direction: column; }
    body .site-footer .footer__meta-sep { display: none; }
    body .site-footer .footer__legal { font-size: .65rem; line-height: 1.5; }
    body .site-footer .footer__image { padding: 16px 16px 4px; }
    body .site-footer .footer__image img { max-width: 90%; }
}

/* ======================================================
   FOOTER
   ====================================================== */
/* High specificity to beat .vsb-page (Sunny Beach plugin) overrides */
body .site-footer,
body.vsb-page .site-footer {
    background: var(--paper) !important;
    color: var(--ink) !important;
    margin-top: 0;
    border-top: 2px solid var(--orange);
}

/* Vikki block in footer */
body .site-footer .footer__vikki {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 28px;
    padding-bottom: 20px;
    max-width: 360px;
    border-bottom: 1px solid rgba(26, 43, 74, .12);
}
body .site-footer .footer__vikki-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--orange);
    background: linear-gradient(135deg, #c8d8e4, #90b4c8);
}
body .site-footer .footer__vikki-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body .site-footer .footer__vikki-info { text-align: left; }
body .site-footer .footer__vikki-name {
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
    line-height: 1.1;
}
body .site-footer .footer__vikki-role {
    display: block;
    font-size: .78rem;
    color: var(--orange);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}
body .site-footer * {
    color: inherit;
}
body .site-footer .footer__lead-phone,
body .site-footer .footer__lead-alt a,
body .site-footer .footer__menu_list a,
body .site-footer .footer__meta a,
body .site-footer .footer__legal a {
    color: var(--ink);
}
body .site-footer .footer__meta { color: rgba(26, 43, 74, .6); }
body .site-footer .footer__legal { color: rgba(26, 43, 74, .5); }
body .site-footer .footer__menu_list { color: rgba(26, 43, 74, .78); }
body .site-footer .footer__social a { background: rgba(26, 43, 74, .06); color: var(--ink); }
body .site-footer .footer__social svg { fill: var(--ink); }
.site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 24px;
}

.site-footer .footer__lead {
    text-align: center;
    margin-bottom: 28px;
}
.site-footer .footer__lead-phone {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    transition: color .2s;
}
.site-footer .footer__lead-phone:hover { color: var(--orange); }
.site-footer .footer__lead-alt a {
    transition: opacity .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-footer .footer__lead-alt a:hover { opacity: 1; color: var(--orange); }
/* Telegram glyph next to alt phone (replaced ✈ emoji 16.05.2026) */
.site-footer .footer__lead-tg-icon {
    color: #229ED9; /* Telegram brand blue */
    flex-shrink: 0;
}
.site-footer .footer__social a { transition: background .2s, transform .2s; }
.site-footer .footer__social a:hover { transform: translateY(-2px); }
.site-footer .footer__menu_list a { transition: color .15s; }
.site-footer .footer__menu_list a:hover { color: var(--orange); }
.site-footer .footer__meta a { transition: color .15s, border-color .15s; }
.site-footer .footer__meta a:hover { color: var(--orange); border-color: var(--orange); }
.site-footer .footer__lead-alt {
    margin-top: 8px;
}
.site-footer .footer__lead-alt a {
    color: var(--ink);
    opacity: .7;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer .footer__social {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
}
.site-footer .footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(26, 43, 74, .06);
    color: var(--ink);
    border-radius: 50%;
    transition: background .2s;
}
.site-footer .footer__social a:hover { background: rgba(26, 43, 74, .14); }

.site-footer .footer__nav {
    text-align: center;
    margin-bottom: 22px;
}
.site-footer .footer__menu_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(26, 43, 74, .78);
}
.site-footer .footer__menu_list a {
    color: inherit;
    text-decoration: none;
}
.site-footer .footer__menu_list li + li::before {
    content: "·";
    margin-right: 18px;
    margin-left: -18px;
    opacity: .3;
}

/* "Услуги" + sub-menu rendered as its own block below the main menu row (16.05.2026)
   Row 1: Главная · Квартиры у моря · О нас · Блог · Контакты
   Row 2: УСЛУГИ (heading)
   Row 3: Аренда · Продать квартиру · Управление
   Selector uses :has() because theme strips the default `menu-item-has-children` class. */
.site-footer .footer__menu_list {
    align-items: baseline;
}
/* Dissolve the parent <li> so its <a> (Услуги) and <ul.sub-menu> become direct flex children */
.site-footer .footer__menu_list > li:has(> .sub-menu) {
    display: contents;
}
/* Услуги link — own row below main items */
.site-footer .footer__menu_list > li:has(> .sub-menu) > a {
    flex-basis: 100%;
    order: 98;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 600;
    color: var(--navy, #14345b);
}
/* No dot separator before Услуги (it's on its own row, not adjacent to siblings) */
.site-footer .footer__menu_list > li:has(> .sub-menu) > a::before {
    content: none;
}
/* Sub-menu — its own horizontal row, centered, below Услуги */
.site-footer .footer__menu_list > li:has(> .sub-menu) > .sub-menu {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    flex-basis: 100%;
    order: 99;
    font-size: .74rem;
    letter-spacing: .06em;
    opacity: .85;
}
/* Sub-menu items: simple inline links with dot separators */
.site-footer .footer__menu_list .sub-menu li {
    display: inline-flex;
}
.site-footer .footer__menu_list .sub-menu li + li::before {
    content: "·";
    margin-right: 16px;
    margin-left: -16px;
    opacity: .3;
}

.site-footer .footer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 20px;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(26, 43, 74, .6);
    margin-bottom: 12px;
}
.site-footer .footer__meta a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 43, 74, .25);
    padding-bottom: 2px;
}
.site-footer .footer__meta-sep { opacity: .3; }

.site-footer .footer__legal {
    text-align: center;
    font-size: .72rem;
    line-height: 1.55;
    color: rgba(26, 43, 74, .5);
    max-width: 720px;
    margin: 0 auto;
}
.site-footer .footer__legal a { color: inherit; }

.site-footer .footer__image {
    padding: 24px 24px 8px;
    display: flex;
    justify-content: center;
}
.site-footer .footer__image img {
    max-width: min(1100px, 95%);
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1200%) hue-rotate(195deg) brightness(95%) contrast(95%);
    opacity: .95;
    /* 07.08.2026 — БЕЗ цього лого перетворювалось на суцільний синій прямокутник.
       Глобальний плейсхолдер дає img фон #F0EEE9, а filter застосовується до
       ВСЬОГО елемента разом із фоном: brightness(0) робить фон чорним, далі
       hue-rotate фарбує його в синій — літери зникають у власній заливці. */
    background: transparent;
}

@media (max-width: 640px) {
    .site-footer .footer__meta { font-size: .72rem; gap: 6px 12px; }
    .site-footer .footer__meta-sep { display: none; }
    .site-footer .container { padding: 40px 18px 18px; }
}

/* Floating bot widget — ALWAYS visible on top of all content, all pages (16.05.2026) */
.tg-float-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    background: var(--orange) !important;
    color: #fff !important;
    padding: 14px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 28px rgba(232, 120, 32, .4) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: .85rem !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    /* High z-index — above all page content + sticky elements, below modals (9999) */
    z-index: 9500 !important;
    transition: transform .2s !important;
}
.tg-float-btn:hover { transform: translateY(-2px) !important; }
@media (max-width: 640px) {
    .tg-float-btn {
        bottom: 16px !important;
        right: 16px !important;
        padding: 11px 18px !important;
        font-size: .78rem !important;
    }
    /* Hide floating widget on mobile when a sticky bottom CTA bar is present
       (single-object, rental, sellers pages) — avoids overlap with the page's own CTA */
    body:has(.obj-v2-sticky):not(.obj-v2-sticky[hidden]) .tg-float-btn,
    body:has(.obj-v3-sticky) .tg-float-btn,
    body:has(.m-sticky-cta) .tg-float-btn,
    body:has(.sellers-sticky-cta) .tg-float-btn {
        display: none !important;
    }
}

