@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;
}

body.modal-open {
    overflow: hidden;
}

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 {
    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: visible;
    background: #fff;
    justify-self: center;
}

.search-select-wrap {
    position: relative;
    flex: 0 0 196px;
}

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

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

.search-select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 246px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
}

.search-select-dropdown__list {
    padding: 8px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(33, 46, 74, 0.16);
}

.search-select-dropdown__option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 16px;
    text-align: left;
    color: #232b37;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.search-select-dropdown__option:hover,
.search-select-dropdown__option:focus-visible,
.search-select-dropdown__option.is-active {
    background: #f2f6fc;
    color: #4876c5;
}

.search-select-wrap.is-open .search-select-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-select-wrap.is-open .search-select {
    color: var(--nb-accent);
}

.search-select-wrap.is-open .search-select img {
    opacity: 1;
    transform: rotate(180deg);
}

.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: transparent;
    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;
}

.header-location {
    position: relative;
}

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

.location-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 206px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
}

.location-dropdown__list {
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(33, 46, 74, 0.16);
}

.location-dropdown__option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 9px;
    text-align: left;
    color: #232b37;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.location-dropdown__option:hover,
.location-dropdown__option:focus-visible,
.location-dropdown__option.is-active {
    background: #f2f6fc;
    color: #4876c5;
}

.header-location.is-open .location-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-location.is-open .location-button {
    color: var(--nb-accent);
}

.header-location.is-open .location-button img {
    opacity: 1;
    transform: rotate(180deg);
}

.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--mobile-search,
.menu-button {
    display: none;
}

.menu-button {
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #20242d;
}

.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: 20px;
    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: 400;
}

.nav-item--dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    font: inherit;
}

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

.nav-collections-toggle__icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

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

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

.nav-dropdown {
    position: absolute;
    top: calc(100% - 15px);
    left: -15px;
    width: 420px;
    padding: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 25;
}

.nav-dropdown__list {
    padding: 15px 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(33, 46, 74, 0.16);
}

.nav-dropdown__link {
    display: block;
    padding: 6px 10px;
    color: #232b37;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
    background: #F2F6FC;
    color: #4876C5;
}

.nav-dropdown--collections {
    left: -13px;
    width: 265px;
}

.nav-dropdown__list--collections {
    padding: 11px 9px 10px;
}

.nav-dropdown__link--collections {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #252d39;
    line-height: 1.35;
}

.nav-dropdown__icon {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: #7f8ba3;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-item--dropdown:hover > .nav-link,
.nav-item--dropdown:focus-within > .nav-link,
.nav-item--dropdown.is-open > .nav-link {
    color: var(--nb-accent);
}

.nav-item--dropdown:not(.nav-item--collections):hover > .nav-link img,
.nav-item--dropdown:not(.nav-item--collections):focus-within > .nav-link img,
.nav-item--dropdown:not(.nav-item--collections).is-open > .nav-link img {
    opacity: 1;
    transform: rotate(180deg);
}

.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;
}

.callback-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 120;
}

.callback-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.callback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 28, 39, 0.56);
}

.callback-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
}

.callback-dialog--form {
    background: #1f222b;
}

.callback-dialog--success {
    min-height: 292px;
    background: #fff;
}

.callback-dialog__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 3;
}

.callback-dialog__close span {
    position: absolute;
    left: 7px;
    top: 15px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #8b97b2;
}

.callback-dialog__close span:first-child {
    transform: rotate(45deg);
}

.callback-dialog__close span:last-child {
    transform: rotate(-45deg);
}

.callback-dialog__hero {
    position: relative;
    min-height: 221px;
    padding: 57px 40px 34px;
    background: #23262f;
    overflow: hidden;
}

.callback-dialog__decor {
    position: absolute;
    top: 8px;
    right: -1px;
    width: 160px;
    height: 191px;
    opacity: 0.22;
    pointer-events: none;
}

.callback-dialog__decor img {
    width: 100%;
    height: 100%;
}

.callback-dialog__title {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #fff;
    font-size: 41px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.callback-dialog__title span {
    display: inline-block;
    padding: 0 6px 2px 4px;
    background: #ffdf2f;
    color: #20242d;
}

.callback-dialog__subtitle {
    position: relative;
    z-index: 1;
    max-width: 270px;
    margin: 0;
    color: #d5dbe9;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.callback-dialog__body {
    padding-top: 49px;
    background: #fff;
    border-radius: 24px 24px 0 0;
}

.callback-form {
    padding: 0 48px 40px;
}

.callback-form__field {
    display: block;
    margin-bottom: 14px;
}

.callback-form__input {
    width: 100%;
    height: 50px;
    border: 1px solid #cfd9eb;
    border-radius: 8px;
    padding: 0 18px;
    color: #20242d;
    font-size: 16px;
    line-height: 1;
    outline: none;
    background: #fff;
}

.callback-form__input::placeholder {
    color: #8b8f9b;
    opacity: 1;
}

.callback-form__consent {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 25px 0 25px;
    cursor: pointer;
}

.callback-form__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.callback-form__checkbox-mark {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #c8d1e1;
    border-radius: 4px;
    background: #fff;
}

.callback-form__checkbox-mark::before,
.callback-form__checkbox-mark::after {
    content: "";
    position: absolute;
    opacity: 0;
    background: #fff;
    border-radius: 999px;
}

.callback-form__checkbox-mark::before {
    left: 4px;
    top: 9px;
    width: 4px;
    height: 2px;
    transform: rotate(45deg);
}

.callback-form__checkbox-mark::after {
    left: 6px;
    top: 8px;
    width: 8px;
    height: 2px;
    transform: rotate(-45deg);
    transform-origin: left center;
}

.callback-form__checkbox:checked + .callback-form__checkbox-mark {
    border-color: #4e79c8;
    background: #4e79c8;
}

.callback-form__checkbox:checked + .callback-form__checkbox-mark::before,
.callback-form__checkbox:checked + .callback-form__checkbox-mark::after {
    opacity: 1;
}

.callback-form__consent-text {
    color: #344059;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
}

.callback-form__submit,
.callback-success__button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 8px;
    background: #20242d;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.callback-form__submit[disabled] {
    background: #d8dfe6;
    color: #818ca1;
}

.callback-success {
    padding: 52px 40px 40px;
    text-align: center;
}

.callback-success__title {
    margin: 0 0 26px;
    color: #20242d;
    font-size: 39px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.callback-success__text {
    max-width: 204px;
    margin: 0 auto 27px;
    color: #344059;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.callback-success__button {
    width: 113px;
    margin: 0 auto;
}

.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;
    }

    .nav-dropdown {
        left: 0;
    }

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

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

    .header-top {
        border-bottom-color: #dfe7f4;
    }

    .header-top__inner {
        min-height: 72px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        padding: 0;
    }

    .site-logo img {
        width: 119px;
        max-width: none;
        height: 28px;
    }

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

    .site-search {
        display: none;
    }

    .header-actions {
        width: auto;
        margin-left: auto;
        gap: 6px;
        justify-content: flex-end;
        align-items: center;
    }

    .icon-button--mobile-search,
    .menu-button {
        display: inline-flex;
    }

    .location-button,
    .header-actions__divider {
        display: none;
    }

    .header-location {
        display: none;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        background: #f2f6fc;
    }

    .icon-button img {
        width: 18px;
        height: 18px;
    }

    .menu-button {
        width: 24px;
        height: 38px;
        margin-left: 2px;
    }

    .header-nav {
        display: none;
    }

    .hero-404 {
        min-height: 0;
        background:
            radial-gradient(circle at 50% 38%, rgba(160, 187, 235, 0.18), rgba(255, 255, 255, 0) 48%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(236, 243, 255, 0.88)),
            #f8fbff;
    }

    .hero-404__map {
        opacity: 0.09;
        background-position: center top;
    }

    .hero-404__content {
        max-width: 343px;
        margin: 0 auto;
        padding-top: 74px;
        padding-bottom: 160px;
    }

    .error-visual {
        width: 100%;
        max-width: 336px;
        margin-bottom: 30px;
    }

    .error-code {
        font-size: 142px;
        line-height: 0.84;
        letter-spacing: -0.075em;
        color: rgba(142, 171, 223, 0.86);
    }

    .error-mark {
        top: 54%;
        width: 80px;
    }

    .hero-title {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    .hero-text {
        max-width: 330px;
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 34px;
    }

    .hero-button {
        min-width: 139px;
        height: 52px;
        border-radius: 9px;
        padding: 0 21px;
        font-size: 16px;
        font-weight: 500;
    }

    .chat-widget {
        width: 52px;
        height: 52px;
        right: 8px;
        bottom: 22px;
        border-radius: 8px;
        box-shadow: none;
    }

    .callback-modal {
        padding: 12px;
    }

    .callback-dialog {
        max-width: 100%;
    }

    .callback-dialog__close {
        top: 18px;
        right: 18px;
    }

    .callback-dialog__hero {
        min-height: 220px;
        padding: 57px 40px 34px;
    }

    .callback-dialog__body {
        padding-top: 49px;
    }

    .callback-form {
        padding: 0 48px 40px;
    }

    .callback-success {
        padding: 56px 36px 40px;
    }

    .site-footer {
        padding-top: 24px;
        padding-bottom: 38px;
        background: #1d212a;
    }

    .footer-map {
        opacity: 0.72;
        background-position: center top;
    }

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

    .footer-logo img {
        width: 206px;
        max-width: none;
        height: auto;
    }

    .footer-links {
        margin-bottom: 30px;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    .footer-links > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-links > [class*="col-"] + [class*="col-"] {
        margin-top: 28px;
    }

    .footer-menu {
        gap: 12px;
    }

    .footer-menu a {
        font-size: 14px;
        line-height: 1.28;
    }

    .footer-menu .mt-5 {
        margin-top: 22px !important;
    }

    .footer-links > div:nth-child(2) .footer-menu > li:first-child a,
    .footer-links > div:nth-child(3) .footer-menu > li:first-child a {
        color: #8e97ac;
    }

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

    .footer-note,
    .footer-contacts {
        font-size: 12px;
        line-height: 1.42;
    }

    .footer-bottom .col-lg-4 {
        margin-top: 24px;
    }

    .footer-contacts p {
        margin-bottom: 2px;
    }
}
