/* =====================================================
   PAGE
   ===================================================== */

body.main-page {
    background: #ffffff;
    color: #ffffff;
}

body.inner-page {
    background: #ffffff;
    color: #000000;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none !important;
}

/* =====================================================
   BITRIX PANEL
   ===================================================== */

:root {
    --bitrix-panel-height: 0px;
}

/*
 * Панель Bitrix всегда должна находиться выше сайта.
 */
#bx-panel {
    z-index: 10000 !important;
}

#bx-panel-back {
    z-index: 9999 !important;
}


/* =====================================================
   MENU OVERLAY
   ===================================================== */

.menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 800;

    background: rgba(0, 0, 0, 0.42);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =====================================================
   HEADER
   EXISTING BITRIX STRUCTURE
   ===================================================== */

.header-style-1 {
    position: fixed;

    top: var(--bitrix-panel-height);
    left: 0;

    z-index: 900;

    width: 100%;

    color: #ffffff;

    background: rgba(10, 22, 19, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    transition:
        background 0.25s ease,
        backdrop-filter 0.25s ease,
        box-shadow 0.25s ease;
}

.header-style-1.is-scrolled,
.header-style-1.is-open {
    background: rgba(10, 22, 19, 0.72);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}


/* =====================================================
   HEADER OLD WRAPPERS RESET
   ===================================================== */

.header-style-1 .main-header {
    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    box-shadow: none;
}

.header-style-1 .main-header > .container {
    width: 100%;
    max-width: 1540px;

    margin: 0 auto;
    padding: 0 38px;
}

.header-style-1 .header-flex {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 34px;
}


/* =====================================================
   LOGO
   ===================================================== */

.header-style-1 .logo-holder {
    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}

.header-style-1 .logo {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
}

.header-style-1 .logo a {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.header-style-1 .logo img,
.header-style-1 .logo svg {
    display: block;

    width: 130px;
    max-width: 130px;
    height: auto;
}


/* =====================================================
   NAVIGATION
   ===================================================== */

.header-style-1 .navbar {
    position: static;

    min-height: 0;

    margin: 0;
    padding: 0;

    flex: 1 1 auto;

    background: transparent;

    border: 0;
    box-shadow: none;
}

.header-style-1 .navbar-collapse {
    display: block !important;

    height: auto !important;

    margin: 0;
    padding: 0;

    border: 0;
    box-shadow: none;
}

.header-style-1 .navbar ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* =====================================================
   ROOT MENU
   ===================================================== */

.header-style-1 .navbar > .navbar-collapse > ul,
.header-style-1 #main-nav > ul {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(26px, 4vw, 70px);

    margin: 0;
    padding: 0;
}

.header-style-1 #main-nav > ul > li {
    position: relative;

    float: none;

    margin: 0;
    padding: 0;
}


/* =====================================================
   ROOT MENU LINKS
   ===================================================== */

.header-style-1 #main-nav > ul > li > a {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 30px 0;

    color: #ffffff;
    background: transparent !important;

    font-family: 'Geologica', Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;

    border: 0;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.header-style-1 #main-nav > ul > li > a:hover,
.header-style-1 #main-nav > ul > li:hover > a,
.header-style-1 #main-nav > ul > li.active > a,
.header-style-1 #main-nav > ul > li.selected > a {
    color: #67a956;

    background: transparent !important;
}


/* =====================================================
   DROPDOWN
   DESKTOP — FIXED
   ===================================================== */

.header-style-1 #main-nav > ul > li.dropdown {
    position: relative;
}


/* мостик между пунктом и выпадающим меню */

.header-style-1 #main-nav > ul > li.dropdown:has(> .dropdown-menu)::after {
    content: "";

    position: absolute;

    top: 100%;
    left: -16px;
    right: -16px;

    height: 18px;
}


/* =====================================================
   DROPDOWN PANEL
   ===================================================== */

.header-style-1
#main-nav
> ul
> li.dropdown
> .dropdown-menu {

    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    z-index: 100;

    display: block;

    width: max-content;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));

    margin: 0;
    padding: 8px;

    box-sizing: border-box;

    background: rgba(9, 22, 17, 0.97);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(7px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}


/* открыть dropdown */

.header-style-1
#main-nav
> ul
> li.dropdown:hover
> .dropdown-menu,

.header-style-1
#main-nav
> ul
> li.dropdown:focus-within
> .dropdown-menu {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =====================================================
   BOOTSTRAP / YAMM RESET
   ===================================================== */

.header-style-1 .dropdown-menu {
    float: none !important;
}

.header-style-1 .dropdown-menu > li {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    float: none !important;
}


/* =====================================================
   YAMM CONTENT
   ===================================================== */

.header-style-1 .dropdown-menu .yamm-content {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: transparent;
}


/* =====================================================
   SUBMENU LIST
   ===================================================== */

.header-style-1 .dropdown-menu .links {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    gap: 3px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    list-style: none;
}

.header-style-1 .dropdown-menu .links > li {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* =====================================================
   SUBMENU LINKS
   ===================================================== */

.header-style-1
.dropdown-menu
.links
> li
> a {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 11px 13px;

    box-sizing: border-box;

    color: rgba(255, 255, 255, 0.86);

    background: transparent;

    border: 0;
    border-radius: 9px;

    font-family: 'Geologica', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;

    text-align: left;

    text-decoration: none;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}


/* hover */

.header-style-1
.dropdown-menu
.links
> li
> a:hover {

    color: #ffffff;

    background: rgba(103, 169, 86, 0.14);

    transform: translateX(2px);
}


/* active / selected */

.header-style-1
.dropdown-menu
.links
> li.active
> a,

.header-style-1
.dropdown-menu
.links
> li.selected
> a,

.header-style-1
.dropdown-menu
.links
> li
> a.active,

.header-style-1
.dropdown-menu
.links
> li
> a.selected {

    color: #79bd67;

    background: rgba(103, 169, 86, 0.13);
}

/* =====================================================
   PHONE
   ===================================================== */

.header-style-1 .phone-holder {
    display: flex;
    align-items: center;

    gap: 12px;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}

.header-style-1 .phone-link {
    color: #ffffff;

    text-decoration: none;

    transition: color 0.2s ease;
}

.header-style-1 .phone-text {
    font-family: 'Geologica', Arial, sans-serif;

    font-size: 18px;
    line-height: 1;
    font-weight: 800;

    white-space: nowrap;
}

.header-style-1 .phone-link:hover {
    color: #67a956;
}

.header-style-1 .phone-icon {
    display: none;

    align-items: center;
    justify-content: center;
}

.header-style-1 .phone-icon img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}


/* =====================================================
   BURGER
   ===================================================== */

.header-style-1 .burger-btn {
    display: none;

    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.header-style-1 .burger-bar {
    display: block;

    width: 28px;
    height: 2px;

    margin: 6px auto;

    background: #ffffff;

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.header-style-1 .burger-btn.is-active .burger-bar:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.header-style-1 .burger-btn.is-active .burger-bar:nth-child(2) {
    opacity: 0;
}

.header-style-1 .burger-btn.is-active .burger-bar:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =====================================================
   HEADER TABLET / MOBILE — CLEAN VERSION
   ===================================================== */

@media screen and (max-width: 1100px) {

    .header-style-1 .main-header > .container {
        padding: 0 20px;
    }

    .header-style-1 .header-flex {
        height: 70px;
        gap: 16px;
    }

    .header-style-1 .burger-btn {
        display: block;
        order: 1;
    }

    .header-style-1 .logo-holder {
        order: 2;
    }

    .header-style-1 .phone-holder {
        order: 3;
        margin-left: auto;
    }

    .header-style-1 .phone-text {
        display: none;
    }

    .header-style-1 .phone-icon {
        display: flex;
    }


    /* =================================================
       MOBILE NAVBAR
       ================================================= */

    .header-style-1 .navbar {
        position: fixed;

        top: calc(var(--bitrix-panel-height) + 70px);
        left: 0;

        width: 100%;

        height: calc(
            100vh
            - var(--bitrix-panel-height)
            - 70px
        );

        margin: 0;
        padding: 18px 20px 28px;

        overflow-x: hidden;
        overflow-y: auto;

        background: rgba(8, 18, 15, 0.985);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.22s ease,
            visibility 0.22s ease,
            transform 0.22s ease;
    }

    .header-style-1.is-open .navbar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }


    /* =================================================
       RESET BITRIX / BOOTSTRAP MENU
       ================================================= */

    .header-style-1 #main-nav,
    .header-style-1 #main-nav > ul,
    .header-style-1 #main-nav > ul > li,
    .header-style-1 .dropdown-menu,
    .header-style-1 .dropdown-menu > li,
    .header-style-1 .dropdown-menu .yamm-content,
    .header-style-1 .dropdown-menu .links,
    .header-style-1 .dropdown-menu .links > li {
        float: none !important;
    }

    .header-style-1 #main-nav {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .header-style-1 #main-nav > ul {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 8px;

        margin: 0;
        padding: 0;
    }


    /* =================================================
       ROOT MENU ITEM
       ================================================= */

    .header-style-1 #main-nav > ul > li {
        position: relative;

        width: 100%;

        margin: 0;
        padding: 0;

        border: 0;
    }

    .header-style-1 #main-nav > ul > li::after {
        display: none !important;
    }


    /* =================================================
       ROOT LINK
       ================================================= */

    .header-style-1 #main-nav > ul > li > a {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        min-height: 54px;

        margin: 0;
        padding: 0 16px;

        color: #ffffff;

        background: rgba(255, 255, 255, 0.045) !important;

        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 13px;

        font-family: 'Geologica', Arial, sans-serif;
        font-size: 17px;
        line-height: 1.3;
        font-weight: 600;

        white-space: normal;

        text-decoration: none;

        transition:
            background 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease;
    }

    .header-style-1 #main-nav > ul > li > a:hover {
        color: #ffffff;

        background: rgba(255, 255, 255, 0.075) !important;

        border-color: rgba(255, 255, 255, 0.12);
    }


    /* =================================================
       ARROW FOR ITEMS WITH SUBMENU
       ================================================= */

    .header-style-1
    #main-nav
    > ul
    > li:has(> .dropdown-menu)
    > a::after {

        content: "";

        width: 8px;
        height: 8px;

        flex: 0 0 auto;

        margin-left: 14px;

        border-right: 2px solid rgba(255, 255, 255, 0.75);
        border-bottom: 2px solid rgba(255, 255, 255, 0.75);

        transform: rotate(45deg) translateY(-2px);

        transition:
            transform 0.2s ease,
            border-color 0.2s ease;
    }

    .header-style-1
    #main-nav
    > ul
    > li.is-open
    > a::after {

        transform: rotate(225deg) translate(-2px, -2px);

        border-color: #76b864;
    }

    .header-style-1
    #main-nav
    > ul
    > li.is-open
    > a {

        color: #ffffff;

        background: rgba(106, 166, 76, 0.12) !important;

        border-color: rgba(118, 184, 100, 0.28);
    }


    /* =================================================
       MOBILE DROPDOWN
       ================================================= */

    .header-style-1
    #main-nav
    > ul
    > li.dropdown
    > .dropdown-menu {

        position: static !important;

        display: none;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 6px 0 2px !important;
        padding: 8px !important;

        background: rgba(255, 255, 255, 0.035) !important;

        border:
            1px solid
            rgba(255, 255, 255, 0.06) !important;

        border-radius: 12px;

        box-shadow: none !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
    }

    .header-style-1
    #main-nav
    > ul
    > li.dropdown.is-open
    > .dropdown-menu {

        display: block;
    }


    /* =================================================
       YAMM CONTENT RESET
       ================================================= */

    .header-style-1 .dropdown-menu > li {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
    }

    .header-style-1 .dropdown-menu .yamm-content {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
    }


    /* =================================================
       SUBMENU LIST
       ================================================= */

    .header-style-1 .dropdown-menu .links {
        width: 100% !important;

        display: flex !important;
        flex-direction: column;

        gap: 4px;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none;
    }

    .header-style-1 .dropdown-menu .links > li {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: 0 !important;
    }


    /* =================================================
       SUBMENU LINK
       ================================================= */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a {

        position: relative;

        display: flex;
        align-items: center;

        width: 100% !important;

        min-height: 44px;

        margin: 0 !important;

        padding: 10px 12px 10px 34px !important;

        box-sizing: border-box;

        color: rgba(255, 255, 255, 0.76) !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 9px;

        font-family: 'Geologica', Arial, sans-serif;
        font-size: 15px;
        line-height: 1.4;
        font-weight: 450;

        white-space: normal;

        text-align: left;

        text-decoration: none;

        transition:
            color 0.2s ease,
            background 0.2s ease;
    }


    /* маленькая зелёная точка */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a::before {

        content: "";

        position: absolute;

        left: 14px;
        top: 50%;

        width: 6px;
        height: 6px;

        border-radius: 50%;

        background: #6aa64c;

        transform: translateY(-50%);

        opacity: 0.85;
    }


    /* hover / tap */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a:hover {

        color: #ffffff !important;

        background:
            rgba(
                106,
                166,
                76,
                0.11
            ) !important;

        padding-left: 34px !important;
    }
}

/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media screen and (max-width: 640px) {

    .header-style-1 .main-header > .container {
        padding: 0 14px;
    }

    .header-style-1 .header-flex {
        height: 64px;
        gap: 12px;
    }

    .header-style-1 .navbar {
        top: calc(
            var(--bitrix-panel-height) + 64px
        );

        height: calc(
            100vh
            - var(--bitrix-panel-height)
            - 64px
        );

        padding: 14px 14px 28px;
    }

    .header-style-1 .logo img,
    .header-style-1 .logo svg {
        width: 112px;
        max-width: 112px;
    }

    .header-style-1 .burger-btn {
        width: 38px;
        height: 38px;
    }

    .header-style-1 .burger-bar {
        width: 25px;
    }

    .header-style-1 #main-nav > ul {
        gap: 6px;
    }

    .header-style-1 #main-nav > ul > li > a {
        min-height: 50px;

        padding: 0 14px;

        border-radius: 11px;

        font-size: 16px;
    }

    .header-style-1
    #main-nav
    > ul
    > li.dropdown
    > .dropdown-menu {

        margin-top: 5px !important;

        padding: 7px !important;

        border-radius: 10px;
    }

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a {

        min-height: 42px;

        padding:
            9px
            10px
            9px
            32px !important;

        font-size: 14px;
    }

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a::before {

        left: 13px;

        width: 5px;
        height: 5px;
    }
}

/* =====================================================
   FINAL MOBILE HEADER FIX
   MUST BE AT THE END OF CSS
   ===================================================== */

@media screen and (max-width: 1100px) {

    /* -------------------------------------------------
       HEADER MUST ALWAYS FILL VIEWPORT
       ------------------------------------------------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
    }

    .header-style-1 {
        position: fixed !important;

        top: var(--bitrix-panel-height) !important;
        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    .header-style-1 .main-header {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-style-1 .main-header > .container {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 20px !important;

        box-sizing: border-box !important;
    }

    .header-style-1 .header-flex {
        width: 100% !important;
        max-width: none !important;
        height: 70px;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;

        display: flex !important;
        align-items: center !important;

        gap: 16px;
    }


    /* -------------------------------------------------
       BURGER / LOGO / PHONE
       ------------------------------------------------- */

    .header-style-1 .burger-btn {
        display: block !important;

        order: 1;

        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        margin: 0 !important;
    }

    .header-style-1 .logo-holder {
        order: 2;

        flex: 0 0 auto;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-style-1 .phone-holder {
        order: 3;

        flex: 0 0 auto;

        margin-left: auto !important;
    }

    .header-style-1 .phone-text {
        display: none !important;
    }

    .header-style-1 .phone-icon {
        display: flex !important;
    }


    /* -------------------------------------------------
       MOBILE PANEL
       IMPORTANT: viewport width, NOT parent width
       ------------------------------------------------- */

    .header-style-1 .navbar {
        position: fixed !important;

        top: calc(var(--bitrix-panel-height) + 70px) !important;
        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        max-width: none !important;

        height: calc(
            100dvh
            - var(--bitrix-panel-height)
            - 70px
        ) !important;

        min-height: 0 !important;

        margin: 0 !important;
        padding: 18px 20px 36px !important;

        box-sizing: border-box !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        float: none !important;

        background: rgba(7, 18, 14, 0.985) !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;
    }

    .header-style-1.is-open .navbar {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translateY(0) !important;
    }


    /* -------------------------------------------------
       BOOTSTRAP COLLAPSE RESET
       ------------------------------------------------- */

    .header-style-1 .navbar-collapse,
    .header-style-1 #main-nav {
        display: block !important;

        position: static !important;

        width: 100% !important;
        max-width: none !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        float: none !important;

        border: 0 !important;
        box-shadow: none !important;

        box-sizing: border-box !important;
    }


    /* -------------------------------------------------
       ROOT LIST
       ------------------------------------------------- */

    .header-style-1 #main-nav > ul,
    .header-style-1 .navbar-nav {
        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;
        justify-content: flex-start !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 8px !important;

        float: none !important;

        list-style: none !important;
    }


    /* -------------------------------------------------
       ROOT ITEM
       ------------------------------------------------- */

    .header-style-1 #main-nav > ul > li {
        position: relative !important;

        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        float: none !important;

        border: 0 !important;

        box-sizing: border-box !important;
    }

    .header-style-1 #main-nav > ul > li::after {
        display: none !important;
    }


    /* -------------------------------------------------
       ROOT LINK
       ------------------------------------------------- */

    .header-style-1 #main-nav > ul > li > a {
        position: relative !important;

        display: flex !important;

        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        max-width: none !important;

        min-height: 56px;

        margin: 0 !important;
        padding: 0 18px !important;

        box-sizing: border-box !important;

        color: #ffffff !important;

        background:
            rgba(255, 255, 255, 0.045) !important;

        border:
            1px solid
            rgba(255, 255, 255, 0.08) !important;

        border-radius: 14px !important;

        font-family: 'Geologica', Arial, sans-serif !important;
        font-size: 17px !important;
        line-height: 1.3 !important;
        font-weight: 650 !important;

        text-decoration: none !important;

        white-space: normal !important;

        box-shadow: none !important;

        transition:
            background 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease;
    }

    .header-style-1 #main-nav > ul > li > a:hover {
        color: #ffffff !important;

        background:
            rgba(255, 255, 255, 0.075) !important;

        border-color:
            rgba(255, 255, 255, 0.13) !important;
    }


    /* -------------------------------------------------
       DROPDOWN ARROW
       ------------------------------------------------- */

    .header-style-1
    #main-nav
    > ul
    > li:has(> .dropdown-menu)
    > a::after {

        content: "";

        display: block;

        width: 8px;
        height: 8px;

        flex: 0 0 8px;

        margin-left: 16px;

        border-right:
            2px solid
            rgba(255, 255, 255, 0.7);

        border-bottom:
            2px solid
            rgba(255, 255, 255, 0.7);

        transform: rotate(45deg);

        transition:
            transform 0.2s ease,
            border-color 0.2s ease;
    }

    .header-style-1
    #main-nav
    > ul
    > li.is-open
    > a {

        background:
            rgba(103, 169, 86, 0.12) !important;

        border-color:
            rgba(103, 169, 86, 0.30) !important;
    }

    .header-style-1
    #main-nav
    > ul
    > li.is-open
    > a::after {

        transform: rotate(225deg);

        border-color: #76b864;
    }


    /* -------------------------------------------------
       DROPDOWN PANEL
       ------------------------------------------------- */

    .header-style-1
    #main-nav
    > ul
    > li.dropdown
    > .dropdown-menu {

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: none !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 6px 0 0 !important;
        padding: 7px !important;

        box-sizing: border-box !important;

        float: none !important;

        background:
            rgba(255, 255, 255, 0.035) !important;

        border:
            1px solid
            rgba(255, 255, 255, 0.07) !important;

        border-radius: 12px !important;

        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header-style-1
    #main-nav
    > ul
    > li.dropdown.is-open
    > .dropdown-menu {

        display: block !important;
    }


    /* -------------------------------------------------
       YAMM RESET
       ------------------------------------------------- */

    .header-style-1 .dropdown-menu > li,
    .header-style-1 .dropdown-menu .yamm-content,
    .header-style-1 .dropdown-menu .links,
    .header-style-1 .dropdown-menu .links > li {

        position: static !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        float: none !important;

        box-sizing: border-box !important;

        background: transparent !important;

        border: 0 !important;

        transform: none !important;
    }


    /* -------------------------------------------------
       SUBMENU LIST
       ------------------------------------------------- */

    .header-style-1 .dropdown-menu .links {
        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 3px !important;

        list-style: none !important;
    }


    /* -------------------------------------------------
       SUBMENU ITEM
       ------------------------------------------------- */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a {

        position: relative !important;

        display: flex !important;

        align-items: center !important;

        width: 100% !important;
        max-width: none !important;

        min-height: 44px;

        margin: 0 !important;

        padding:
            10px
            14px
            10px
            36px !important;

        box-sizing: border-box !important;

        color:
            rgba(255, 255, 255, 0.74) !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 9px !important;

        font-family: 'Geologica', Arial, sans-serif !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        font-weight: 450 !important;

        white-space: normal !important;

        text-align: left !important;
        text-decoration: none !important;

        transform: none !important;
    }


    /* green marker */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a::before {

        content: "";

        position: absolute;

        top: 50%;
        left: 15px;

        width: 6px;
        height: 6px;

        background: #67a956;

        border-radius: 50%;

        transform: translateY(-50%);
    }


    /* submenu hover */

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a:hover {

        color: #ffffff !important;

        background:
            rgba(103, 169, 86, 0.11) !important;

        padding-left: 36px !important;
    }
}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media screen and (max-width: 640px) {

    .header-style-1 .main-header > .container {
        padding: 0 14px !important;
    }

    .header-style-1 .header-flex {
        height: 64px;
    }

    .header-style-1 .navbar {
        top:
            calc(
                var(--bitrix-panel-height)
                + 64px
            ) !important;

        width: 100vw !important;

        height:
            calc(
                100dvh
                - var(--bitrix-panel-height)
                - 64px
            ) !important;

        padding:
            14px
            14px
            30px !important;
    }

    .header-style-1 .logo img,
    .header-style-1 .logo svg {
        width: 112px;
        max-width: 112px;
    }

    .header-style-1 #main-nav > ul {
        gap: 6px !important;
    }

    .header-style-1 #main-nav > ul > li > a {
        min-height: 52px;

        padding: 0 15px !important;

        font-size: 16px !important;

        border-radius: 12px !important;
    }

    .header-style-1
    #main-nav
    > ul
    > li.dropdown
    > .dropdown-menu {

        margin-top: 5px !important;

        padding: 6px !important;

        border-radius: 10px !important;
    }

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a {

        min-height: 42px;

        padding:
            9px
            12px
            9px
            33px !important;

        font-size: 14px !important;
    }

    .header-style-1
    .dropdown-menu
    .links
    > li
    > a::before {

        left: 13px;

        width: 5px;
        height: 5px;
    }
}

/* =====================================================
   FOOTER
   EXISTING STRUCTURE
   ===================================================== */

#footer {
    padding: 26px 0 32px;

    background: #ffffff;

    color: #111111;

    border-top: 1px solid #eef0ec;
}

#footer .footer-container {
    width: 100%;
    max-width: 1540px;

    margin: 0 auto;
    padding: 0 40px;

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr
        0.9fr
        1.1fr;

    gap: 54px;

    align-items: start;
}


/* =====================================================
   FOOTER GENERAL
   ===================================================== */

#footer .footer-section {
    margin: 0;
    padding: 0;

    color: #111111;
}

#footer .footer-section h4 {
    margin: 0 0 22px;

    color: #111111;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
}


/* =====================================================
   FOOTER LOGO
   ===================================================== */

#footer .logo-section {
    max-width: 280px;
}

#footer .logo-section > a {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    text-decoration: none;
}

#footer .logo-section > a img {
    display: block;

    width: 150px !important;
    max-width: 150px;
    height: auto;
}


/* =====================================================
   FOOTER ABOUT
   ===================================================== */

#footer .footer-about {
    margin: 0;

    color: #333333;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;

    letter-spacing: 0.02em;
}

#footer .footer-about a {
    color: #333333;

    text-decoration: none;

    transition: color 0.2s ease;
}

#footer .footer-about a:hover {
    color: #67a956;
}


/* =====================================================
   FOOTER DEVELOPER
   ===================================================== */

#footer .footer-about + .footer-about {
    margin-top: 18px !important;
}

#footer .footer-about + .footer-about a {
    display: inline-block;

    color: #111111;

    text-transform: uppercase;

    letter-spacing: 1px;

    font-family:
        'Days One',
        sans-serif !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    transition: color 0.2s ease;
}

#footer .footer-about + .footer-about a:hover {
    color: #67a956;
}


/* =====================================================
   FOOTER WORKING HOURS
   ===================================================== */

#footer .working-hours table {
    width: auto;

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: collapse;
}

#footer .working-hours tbody,
#footer .working-hours tr,
#footer .working-hours td {
    border: 0;
}

#footer .working-hours td {
    padding: 0;

    color: #111111;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;

    vertical-align: top;
}

#footer .working-hours td:first-child {
    padding-right: 18px;
}


/* =====================================================
   FOOTER SUPPORT
   ===================================================== */

#footer .support-info p {
    margin: 0 0 18px;

    color: #111111;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
}

#footer .support-info p:last-child {
    margin-bottom: 0;
}

#footer .support-info a.callibri_footer_phone {
    display: inline-flex;

    color: #000000;

    text-decoration: none;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 28px !important;
    line-height: 1;
    font-weight: 700 !important;

    letter-spacing: -0.04em;

    white-space: nowrap;

    transition: color 0.22s ease;
}

#footer .support-info a.callibri_footer_phone:hover {
    color: #67a956;
}


/* =====================================================
   FOOTER CONTACTS
   ===================================================== */

#footer .contact-info p {
    margin: 0 0 24px;

    color: #111111;

    font-family: 'Geologica', Arial, sans-serif;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
}

#footer .contact-info p:last-child {
    margin-bottom: 0;
}

#footer .contact-info a {
    color: #111111;

    text-decoration: none;

    transition: color 0.22s ease;
}

#footer .contact-info a:hover {
    color: #67a956;
}


/* =====================================================
   FOOTER RESET
   ===================================================== */

#footer a {
    outline: none;
}

#footer img {
    max-width: 100%;
}

#footer table,
#footer tbody,
#footer tr,
#footer td {
    background: transparent;
}


/* =====================================================
   FOOTER TABLET
   ===================================================== */

@media screen and (max-width: 1180px) {

    #footer .footer-container {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            44px
            54px;
    }

    #footer .logo-section {
        max-width: none;
    }
}


/* =====================================================
   FOOTER MOBILE
   ===================================================== */

@media screen and (max-width: 768px) {

    #footer {
        padding:
            34px
            0
            38px;
    }

    #footer .footer-container {
        padding:
            0;

        grid-template-columns: 1fr;

        gap: 34px;
    }

    #footer .logo-section > a img {
        width: 140px !important;
        max-width: 140px;
    }

    #footer .footer-section h4 {
        margin-bottom: 16px;

        font-size: 17px;
    }

    #footer .working-hours td {
        font-size: 16px;
    }

    #footer .support-info p {
        margin-bottom: 14px;

        font-size: 16px;
    }

    #footer .support-info a.callibri_footer_phone {
        font-size: 25px !important;
    }

    #footer .contact-info p {
        font-size: 16px;
    }
}


/* =====================================================
   FOOTER SMALL MOBILE
   ===================================================== */

@media screen and (max-width: 520px) {

    #footer {
        padding:
            30px
            0
            34px;
    }

    #footer .footer-container {
        padding:
            0;

        gap: 30px;
    }

    #footer .logo-section > a img {
        width: 132px !important;
        max-width: 132px;
    }

    #footer .footer-about {
        font-size: 13px;
    }

    #footer .footer-about + .footer-about a {
        font-size: 12px !important;
    }

    #footer .footer-section h4 {
        font-size: 16px;
    }

    #footer .working-hours td {
        font-size: 15px;
    }

    #footer .support-info p {
        font-size: 15px;
    }

    #footer .support-info a.callibri_footer_phone {
        font-size: 23px !important;
    }

    #footer .contact-info p {
        font-size: 15px;
    }
}