@font-face {
    font-family: "Geologica";
    src: url("/theme/fonts/geologica/Geologica-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --nb-font: "Geologica", "Segoe UI", sans-serif;
    --nb-text: #1d2430;
    --nb-muted: #5a6271;
    --nb-line: #d8e2f2;
    --nb-soft-line: rgba(150, 176, 222, 0.22);
    --nb-accent: #4e79c8;
    --nb-accent-soft: #93aedf;
    --nb-surface: #f1f6ff;
    --nb-icon-surface: #dce6f6;
    --nb-dark: #191d27;
    --nb-dark-line: rgba(106, 122, 157, 0.18);
    --nb-footer-text: #d4d9e6;
    --nb-footer-muted: #8f98ae;
    --nb-footer-accent: #ffdf2f;
    --nb-button: #20242d;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--nb-font);
    color: var(--nb-text);
    background: #fff;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-container {
    max-width: 1320px;
    padding-left: 40px;
    padding-right: 40px;
}

.site-page {
    min-height: 100vh;
    background: #fff;
}

.site-header {
    position: relative;
    z-index: 10;
}

.header-top {
    background: #fff;
    border-bottom: 1px solid var(--nb-line);
}

.header-top__inner {
    min-height: 81px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
}

.site-logo__mark {
    width: 37px;
    height: 42px;
}

.site-logo__text,
.footer-logo__text {
    font-size: 21px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.site-logo__text {
    color: #2a3142;
}

.site-search {
    width: min(100%, 640px);
    max-width: 640px;
    height: 44px;
    display: flex;
    align-items: stretch;
    border: 1px solid #c7d3e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    justify-self: center;
}

.search-select,
.search-submit,
.location-button,
.icon-button,
.hero-button,
.chat-widget {
    border: 0;
    appearance: none;
}

.search-select {
    flex: 0 0 196px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 0 16px;
    background: #fff;
    color: #2b3340;
    font-size: 16px;
    line-height: 1;
    border-right: 1px solid #d4dced;
}

.search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.search-input {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0 18px;
    font-size: 16px;
    color: #1d2430;
    outline: none;
}

.search-input::placeholder {
    color: #9ca7ba;
    opacity: 1;
}

.search-submit {
    flex: 0 0 50px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #d4dced;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.location-button {
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222836;
    font-size: 16px;
    font-weight: 500;
}

.header-actions__divider {
    width: 1px;
    height: 34px;
    background: #d5deed;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--nb-icon-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover,
.chat-widget:hover,
.hero-button:hover {
    transform: translateY(-1px);
}

.header-nav {
    background: #eef4ff;
    border-bottom: 1px solid #dbe4f2;
}

.main-nav .navbar-nav {
    width: 100%;
    gap: 21px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.main-nav .nav-link {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #1b2230;
    font-size: 16px;
    font-weight: 500;
}

.nav-item--icon .nav-link {
    gap: 10px;
}

.main-nav .nav-item--icon {
    margin-right: auto;
}

.nav-item--dropdown .nav-link img,
.location-button img,
.search-select img {
    opacity: 0.78;
}

.hero-404 {
    position: relative;
    overflow: hidden;
    min-height: 818px;
    background:
        radial-gradient(circle at 50% 46%, rgba(140, 171, 230, 0.14), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(236, 243, 255, 0.82)),
        #f8fbff;
}

.hero-404__map {
    position: absolute;
    inset: 0;
    background-image: url(/theme/img/backgrounds/map-dark.svg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    opacity: 0.1;
}

.hero-404__content {
    position: relative;
    padding-top: 145px;
    padding-bottom: 165px;
}

.error-visual {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto 34px;
}

.error-code {
    color: rgba(142, 171, 223, 0.97);
    font-size: clamp(180px, 22vw, 248px);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.error-mark {
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(122px, 12vw, 160px);
    transform: translate(-50%, -50%);
}

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d2430;
}

.hero-text {
    max-width: 560px;
    margin: 0 auto 43px;
    color: #323847;
    font-size: 18px;
    line-height: 1.42;
}

.hero-button {
    min-width: 141px;
    height: 50px;
    border-radius: 9px;
    background: var(--nb-button);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    padding: 0 22px;
}

.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nb-accent);
    box-shadow: 0 16px 28px rgba(78, 121, 200, 0.22);
    z-index: 20;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--nb-dark);
    color: var(--nb-footer-text);
    padding: 40px 0 34px;
}

.footer-map {
    position: absolute;
    inset: 0;
    background-image: url("/theme/img/backgrounds/map-dark.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    pointer-events: none;
}

.footer-brand-row {
    position: relative;
    padding-bottom: 44px;
    margin-bottom: 36px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-logo__mark {
    width: 37px;
    height: 42px;
}

.footer-logo__text {
    color: #fff;
}

.footer-brand-row::after,
.footer-bottom::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--nb-dark-line);
}

.footer-brand-row::after {
    bottom: 0;
}

.footer-links {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
}

.footer-menu {
    display: grid;
    gap: 20px;
}

.footer-menu a {
    color: var(--nb-footer-text);
    font-size: 18px;
    line-height: 1.15;
    transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-contacts a:hover {
    color: #fff;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding-top: 39px;
}

.footer-bottom::before {
    top: 0;
}

.footer-note,
.footer-contacts {
    color: var(--nb-footer-muted);
    font-size: 15px;
    line-height: 1.4;
}

.footer-contacts a {
    color: var(--nb-footer-muted);
}

@media (max-width: 1199.98px) {
    .site-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-top__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 28px;
        padding: 18px 0;
    }

    .site-search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .header-actions {
        margin-left: 0;
    }

    .main-nav .navbar-nav {
        flex-wrap: wrap;
        gap: 22px;
        padding: 12px 0;
        justify-content: flex-start;
    }

    .hero-404__content {
        padding-top: 120px;
        padding-bottom: 140px;
    }
}

@media (max-width: 767.98px) {
    .site-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-top__inner {
        gap: 16px;
    }

    .site-logo img {
        width: 37px;
        height: auto;
    }

    .site-logo__text,
    .footer-logo__text {
        font-size: 19px;
    }

    .site-search {
        height: auto;
        flex-wrap: wrap;
    }

    .search-select,
    .search-input-wrap,
    .search-submit {
        flex: 1 0 100%;
        height: 44px;
    }

    .search-select,
    .search-submit {
        border: 0;
    }

    .search-select {
        border-bottom: 1px solid #d4dced;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .header-actions__divider {
        display: none;
    }

    .main-nav .navbar-nav {
        gap: 14px 18px;
        padding: 12px 0;
        justify-content: flex-start;
    }

    .main-nav .nav-link {
        min-height: auto;
        font-size: 15px;
    }

    .hero-404 {
        min-height: 640px;
    }

    .hero-404__content {
        padding-top: 88px;
        padding-bottom: 110px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-text {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .chat-widget {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: 24px;
    }

    .site-footer {
        padding-top: 28px;
    }

    .footer-brand-row {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .footer-links {
        margin-bottom: 32px;
    }

    .footer-menu {
        gap: 16px;
    }

    .footer-menu a {
        font-size: 17px;
    }

    .footer-bottom {
        padding-top: 28px;
    }
}
