:root {
    --nd-green: #3ba935;
    --nd-glass-text: #f5f8ff;
    --nd-glass-muted: #c2d2d9;
    --nd-glass-line: #a9c9d348;
    --nd-ink: #17241d;
}

html {
    scroll-padding-top: 100px;
}

.nd-header,
.nd-mobile-menu,
.nd-footer,
.nedgeo-search {
    font-family: "Inter", sans-serif;
}

.nd-header {
    position: fixed;
    top: 26px;
    left: 0;
    z-index: 100;
    width: 100%;
    pointer-events: none;
    color: var(--nd-glass-text);
    transition: top .22s ease;
}

.nd-header.nd-header--interior,
.nd-header.main_header--compact {
    top: 15px;
    color: var(--nd-ink);
}

.admin-bar .nd-header {
    top: 58px;
}

.admin-bar .nd-header.main_header--compact {
    top: 47px;
}

.nd-header__bar {
    position: relative;
    display: flex;
    width: min(90%, 1296px);
    min-height: 68px;
    margin: 0 auto;
    padding: 9px 20px 9px 22px;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.25vw, 36px);
    border: 1px solid #cce1ea66;
    border-radius: 22px;
    background: linear-gradient(111deg, #2331449c, #142233b3 70%);
    box-shadow: 0 8px 23px #0a122d40, inset 0 1px #ffffff20;
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    pointer-events: auto;
}

.nd-header.main_header--compact .nd-header__bar {
    border-color: #f7fffa;
    background:
        linear-gradient(110deg, #fefffcf2, #eaf3eff0),
        url("../img/navigation/ridge-header.svg") right -60px center / 580px 234px no-repeat;
    box-shadow: 0 9px 22px #243d4440, inset 0 1px 3px #fff;
}

.nd-wordmark {
    display: inline-flex;
    flex: none;
    align-items: center;
    width: 123px;
    min-height: 40px;
}

.nd-wordmark img {
    width: 123px;
    height: 19px;
}

.nd-menu-list,
.nd-footer ul,
.nedgeo-search ul {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nd-menu-list li,
.nd-footer li,
.nedgeo-search li {
    margin: 0;
    padding: 0;
}

.nd-header__nav {
    min-width: 0;
}

.nd-header__nav .nd-menu-list {
    display: flex;
    align-items: center;
    gap: clamp(13px, 1.6vw, 25px);
}

.nd-header__nav a,
.nd-header__phone a {
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .18s ease;
}

.nd-header__nav a:hover,
.nd-header__nav a[aria-current="page"] {
    color: #b0eaa6;
}

.nd-header.main_header--compact .nd-header__nav a:hover,
.nd-header.main_header--compact .nd-header__nav a[aria-current="page"] {
    color: #226d2e;
}

.nd-header__actions,
.nd-mobile-menu__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 11px;
}

.nd-header__phone {
    margin-left: 1px;
    padding: 6px 0 6px 13px;
    border-left: 1px solid #bacdd453;
    white-space: nowrap;
}

.nd-icon-button {
    display: inline-grid;
    flex: none;
    align-items: center;
    justify-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d5efff54;
    border-radius: 50%;
    color: var(--nd-glass-text);
    background: linear-gradient(140deg, #e3f6ff17, #83bbc611);
    transition: background-color .18s ease, border-color .18s ease;
    appearance: none;
}

.nd-icon-button:hover {
    border-color: #d2ecf2b3;
    background-color: #9bd3dc26;
}

.nd-icon--dark,
.nd-header.main_header--compact .nd-icon--light {
    display: none;
}

.nd-header.main_header--compact .nd-icon--dark {
    display: block;
}

.nd-header.main_header--compact .nd-icon-button {
    color: var(--nd-ink);
    border-color: #bacfc5;
    background: linear-gradient(125deg, #fbfffb, #e3eee7);
}

.nd-cta,
.nd-header .nd-cta.header_max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    color: #0d220e;
    background: var(--nd-green);
    font-family: "Nunito Sans", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.25;
    white-space: nowrap;
    transition: background-color .18s ease;
}

.nd-cta:hover,
.nd-header .nd-cta.header_max:hover {
    color: #0d220e;
    background: #63bf58;
}

:is(.nd-header, .nd-mobile-menu, .nd-footer, .nedgeo-search) :is(a, button):focus-visible {
    outline: 2px solid #8bcf81 !important;
    outline-offset: 4px;
}

.nd-header__toggle,
.nd-mobile-menu:not([open]) {
    display: none;
}

html.nd-navigation-open {
    overflow: hidden;
}

.nd-mobile-menu {
    box-sizing: border-box;
    position: fixed;
    inset: 17px 0 auto;
    width: min(calc(100% - 32px), 420px);
    max-width: none;
    max-height: calc(100vh - 34px);
    max-height: calc(100dvh - 34px);
    margin: 0 auto;
    padding: 14px 18px 26px;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--nd-glass-text);
    border: 1px solid #b9d8edaa;
    border-radius: 26px;
    background:
        url("../img/navigation/ridge-menu.svg") right -38px bottom 14px / 284px 237px no-repeat,
        linear-gradient(145deg, #22374bd9, #101e31f0 72%);
    box-shadow: 0 14px 32px #0a122d6b, inset 0 1px #e6f9ff22;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.nd-mobile-menu::backdrop {
    background: #07111b78;
}

.nd-mobile-menu[open] {
    animation: nd-mobile-enter .22s ease-out both;
}

@keyframes nd-mobile-enter {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nd-mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 34px;
}

.nd-mobile-menu__actions {
    gap: 7px;
}

.nd-mobile-menu__nav .nd-menu-list li + li {
    border-top: 1px solid #d4ecf02e;
}

.nd-mobile-menu__nav a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    box-shadow: inset 0 0 0 1px transparent;
    border-radius: 12px;
    color: var(--nd-glass-text);
    font-family: "Nunito Sans", "Inter", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.nd-mobile-menu__nav a::after {
    content: url("../img/navigation/menu-link.svg");
    flex: none;
    display: flex;
    align-items: center;
}

.nd-mobile-menu__nav a:hover,
.nd-mobile-menu__nav a[aria-current="page"] {
    background: linear-gradient(115deg, #b6e2ed32, #b6e2ed12);
    box-shadow: inset 0 0 0 1px #c8f1fa78;
}

.nd-mobile-menu__contacts {
    margin-top: 22px;
    padding: 25px 10px 11px;
    border-top: 1px solid #d4ecf02e;
}

.nd-mobile-menu__contacts p {
    margin: 0 0 8px;
    color: var(--nd-glass-muted);
    font-size: 14px;
}

.nd-mobile-menu__phone {
    margin-bottom: 10px;
    font-family: "Nunito Sans", "Inter", sans-serif;
    font-size: clamp(19px, 6vw, 26px);
    font-weight: 650;
    white-space: nowrap;
}

.nd-mobile-menu__phone a,
.nd-footer a {
    color: inherit;
}

.wrapper > .nd-footer {
    color: var(--nd-glass-text);
    background:
        url("../img/navigation/ridge-footer.svg") calc(50% + 395px) -195px / 800px 569px no-repeat,
        linear-gradient(100deg, #0d1c24ed, #11242cf0 49%, #10202cf2),
        url("../img/navigation/landscape.webp") center 58% / cover;
}

.nd-footer__inner {
    display: grid;
    grid-template-areas:
        "brand phones phones office"
        "rule rule rule rule"
        "services sections messengers reviews"
        "legal legal legal legal";
    grid-template-columns: 1.21fr 1fr .94fr 1.26fr;
    width: min(90%, 1296px);
    margin: auto;
    padding: 46px 0 33px;
    column-gap: clamp(26px, 3.6vw, 54px);
    row-gap: 25px;
}

.nd-footer__inner::before {
    content: "";
    grid-area: rule;
    border-top: 1px solid #d2e8ec29;
}

.nd-footer__brand { grid-area: brand; }
.nd-footer__phones { grid-area: phones; }
.nd-footer__office { grid-area: office; }
.nd-footer__services { grid-area: services; }
.nd-footer__sections { grid-area: sections; }
.nd-footer__messengers { grid-area: messengers; }
.nd-footer__reviews { grid-area: reviews; }
.nd-footer__legal { grid-area: legal; }

.nd-footer__brand p {
    max-width: 280px;
    margin-top: 6px;
    color: var(--nd-glass-muted);
    font-size: 15px;
    line-height: 1.55;
}

.nd-footer__phones {
    padding: 4px 0 0 clamp(0px, 6vw, 106px);
    font-family: "Nunito Sans", "Inter", sans-serif;
}

.nd-footer__phones div {
    margin-bottom: 3px;
    font-size: clamp(22px, 2.43vw, 35px);
    line-height: 1.18;
    font-weight: 640;
}

.nd-footer__phones > a {
    color: var(--nd-glass-muted);
    font-size: 15px;
}

.nd-footer__office {
    align-self: start;
    padding: 14px 16px;
    border: 1px solid var(--nd-glass-line);
    border-radius: 20px;
    background: linear-gradient(110deg, #253d4ed4, #192b3bb3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nd-footer h2 {
    margin: 0 0 11px;
    color: var(--nd-glass-muted);
    font: 400 13px/1.4 "Inter", sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.nd-footer__office h2 {
    margin-bottom: 5px;
}

.nd-footer__office a,
.nd-footer__messengers a,
.nd-footer__reviews a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nd-footer__office img,
.nd-footer__messengers img,
.nd-footer__reviews img {
    flex: none;
}

.nd-footer__office a,
.nd-footer .nd-menu-list a,
.nd-footer__reviews a {
    font-size: 15px;
    line-height: 1.45;
}

.nd-footer__hours {
    margin-top: 7px;
    color: var(--nd-glass-muted);
    font-size: 13px;
    line-height: 1.5;
}

.nd-footer__hours br {
    display: inline;
}

.nd-footer li + li {
    margin-top: 8px;
}

.nd-footer__messengers ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.nd-footer__messengers li + li {
    margin-top: 0;
}

.nd-footer__messengers a {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #abced142;
    border-radius: 8px;
    background: #b8e4e713;
    font-size: 14px;
}

.nd-footer a:hover {
    color: #c1f7be;
}

.nd-footer__maps {
    margin-bottom: 8px;
}

.nd-footer__rating {
    display: block;
    margin-top: 10px;
    border: 0;
}

.nd-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 20px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #d2e8ec29;
    color: var(--nd-glass-muted);
    font-size: 13px;
    line-height: 1.5;
}

.nd-footer__company {
    display: flex;
    flex-wrap: wrap;
    column-gap: 6px;
}

.nd-footer__company p + p::before {
    content: "· ";
}

.nd-footer__legal > a {
    margin-left: auto;
}

@media (max-width: 1130px) {
    .nd-header__bar { width: min(calc(100% - 24px), 900px); }
    .nd-header__nav,
    .nd-header__phone,
    .nd-header .nd-cta.header_max { display: none; }
    .nd-header__toggle { display: inline-grid; }
}

@media (max-width: 782px) {
    .admin-bar .nd-header,
    .admin-bar .nd-header.main_header--compact { top: 60px; }
}

@media (max-width: 600px) {
    .admin-bar .nd-header.main_header--compact { top: 12px; }
    .admin-bar .nd-header--interior.main_header--compact:not(.nd-header--scrolled) { top: 60px; }
}

@media (max-width: 700px) {
    .nd-header { top: 16px; }
    .nd-header.main_header--compact { top: 12px; }
    .nd-header__bar { min-height: 63px; padding: 8px 10px 8px 13px; border-radius: 21px; }
    .nd-header__actions { gap: 7px; }
    .wrapper > .nd-footer {
        background:
            url("../img/navigation/ridge-footer-mobile.svg") calc(50% + 84px) -118px / 464px 320px no-repeat,
            linear-gradient(125deg, #152731, #0e202b 80%);
    }
    .nd-footer__inner {
        grid-template-areas: "brand brand" "phones phones" "office office" "messengers messengers" "rule rule"
            "services sections" "reviews reviews" "legal legal";
        grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
        width: calc(100% - 48px);
        padding: 22px 0 32px;
        column-gap: 22px;
        row-gap: 19px;
    }
    .nd-footer__phones { padding: 0; }
    .nd-footer__phones div { font-size: clamp(23px, 8vw, 35px); }
    .nd-footer__office { padding: 15px 17px; }
    .nd-footer__messengers h2 { display: none; }
    .nd-footer__reviews { padding-top: 20px; border-top: 1px solid #d2e8ec29; }
    .nd-footer__reviews h2 { display: none; }
    .nd-footer__reviews ul { display: flex; flex-wrap: wrap; gap: 8px 12px; }
    .nd-footer__reviews li + li { margin-top: 0; }
    .nd-footer__legal { flex-direction: column; margin-top: 0; }
    .nd-footer__legal > a { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nd-header,
    .nd-icon-button,
    .nd-cta { transition: none; }
    .nd-mobile-menu[open] { animation: none; }
}

.nd-phone-dialog {
    position: fixed;
    inset: 0;
    width: min(420px, calc(100% - 32px));
    box-sizing: border-box;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 43px 24px 30px;
    border: 1px solid #e4dce8;
    border-radius: 16px;
    color: #171717;
    background: #fff;
    box-shadow: 0 18px 60px #17142033;
    text-align: center;
}

.nd-phone-dialog::backdrop { background: #1b14246b; }

.nd-phone-dialog__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #e4dce8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.nd-phone-dialog__close img { width: 16px; }
.nd-phone-dialog h2 { margin: 0 0 13px; font-size: 23px; line-height: 1.3; }

.nd-phone-dialog__number {
    margin: 0 0 21px;
    font-size: clamp(21px, 4vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    user-select: all;
}

.nd-phone-dialog__app {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    color: #642480;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
}

.nd-phone-dialog__status { margin: 12px 0 0; font-size: 14px; }
.nd-phone-dialog__status:empty { margin-top: 0; }
.nd-phone-dialog :focus-visible { outline: 2px solid #642480; outline-offset: 3px; }
