
.menu {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 960px;
    overflow: hidden;
}

/* Background */
.menu__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.menu__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Header */
.menu__header {
    position: relative;
    width: 100%;
    height: 125px;
    background-color: #232c34;
    overflow: hidden;
}

/* Close Button */
.menu__close-btn {
    position: absolute;
    left: 47px;
    top: 42px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu__close-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Phone */
.menu__phone {
    position: absolute;
    left: 254px;
    top: 55px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: normal;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
}

/* Logo */
.menu__logo {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    width: 231px;
    height: 55px;
    z-index: 10;
}

.menu__logo img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Header Actions */
.menu__header-actions {
    /* Container is logical only, children are absolute */
}

/* Select Apartment Button */
.menu__select-flat {
    position: absolute;
    left: 1016px;
    top: 44px;
    width: 213.5px;
    height: 42px;
    border: 1px solid #bf9086;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 0.78;
    letter-spacing: 0.64px;
    color: #bf9086;
    text-transform: none;
    white-space: pre;
    transition: background-color 0.3s, color 0.3s;
}

.menu__select-flat:hover {
    background-color: #bf9086;
    color: #fff;
}

/* Promotions Button */
.menu__promo-btn {
    position: absolute;
    left: 1251.5px;
    top: 44px;
    width: 92.4px;
    height: 42px;
    background-color: #bf9086;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 0.78;
    letter-spacing: 0.64px;
    color: #fff;
    transition: opacity 0.3s;
}

.menu__promo-btn:hover {
    opacity: 0.9;
}

/* 360 Button */
.menu__360-btn {
    position: absolute;
    left: 1365px;
    top: 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
}

.menu__360-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu__360-text {
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 0.78;
    letter-spacing: 0.48px;
    color: #fff;
}

/* Favorites/Search Button */
.menu__favorites-btn {
    position: absolute;
    left: 1429px;
    top: 43px;
    width: 43px;
    height: 43px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

.menu__favorites-btn:hover {
    border-color: #fff;
}

.menu__favorites-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Menu Content */
.menu__content {
    position: relative;
    width: 100%;
    max-width: 1496px;
    margin: 0 auto;
    padding-right: 2rem;
    padding-left: 2rem;
    height: calc(100% - 125px);
    display: flex;
    flex-direction: column;
}

/* Menu Columns Container */
.menu__columns {
    margin-top: 114px;
    margin-bottom: 180px;
    display: flex;
    gap: 220px;
}

/* Column */
.menu__column {
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

/* Section */
.menu__section {
    display: flex;
    flex-direction: column;
    margin-bottom: 23px;
    gap: 22px;
}

.menu__section-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu__line {
    width: 45px;
    height: 1px;
    background-color: #BF9086;
}

.menu__link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.mb76 {
    margin-bottom: 76px;
}

.mb80 {
    margin-bottom: 80px;
}

.mb64 {
    margin-bottom: 64px;
}

/* Submenu */
.menu__submenu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 65px;
}

.menu__sublink {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #bf9086;
    line-height: 100%;
    text-decoration: none;
}


/* Footer Links */
.menu__footer-links {
    width: 100%;
    display: flex;
    align-items: center;
}

.menu__footer-links:before {
    content: '';
    width: 100%;
    height: 1px;
    background-color: #BF9086;
}

.menu__footer-decoration {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    pointer-events: none;
    z-index: 1;
}

.menu__footer-decoration img {
    width: 100%;
    height: 100%;
    display: block;
}

.menu__footer-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    text-align: left;
    margin-left: 30px;
}

.menu__footer-link {
    font-family: 'Wremena', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.new-arrow_btn {
    width: 80px;
    height: 80px;
    border: 1px solid #BF9086;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
}

.new-arrow_btn:after {
    content: '';
    position: absolute;
    width: calc(100% - 25px);
    height: 1px;
    background-color: #BF9086;
    top: 50%;
    left: 0;
}

.new-arrow_btn:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: calc(50% - 6px);
    right: 18px;
    background-image: url(/local/templates/nagatinskiy/assets/images/new_arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
}
.menu__columns .menu__column:nth-child(2) .menu__section:nth-child(2n) {
    margin-bottom: 64px;
}
@media(max-width: 980px) {
    .menu__columns {
        gap: 80px;
    }
}

@media(max-width: 790px) {
    .menu__columns {
        margin-top: 31px;
        margin-bottom: 20px;
        gap: 0;
        flex-direction: column;
    }

    .menu__section {
        margin-bottom: 8px;
        gap: 6px;
    }

    .menu__submenu {
        gap: 7px
    }

    .menu__sublink {
        line-height: 135%;
    }

    .menu__link {
        line-height: 150%;
    }

    .mb76 {
        margin-bottom: 24px;
    }

    .mb31,
    .mb64,
    .mb80 {
        margin-bottom: 31px;
    }
}

@media(max-width: 440px) {
    .menu__link {
        font-size: 16px;
    }

    .menu__sublink {
        font-size: 12px;
    }

    .menu__footer-link {
        font-size: 14px;
    }

    .new-arrow_btn {
        width: 44px;
        height: 44px;
    }

    .new-arrow_btn:before {
        right: 8px;
    }

    .new-arrow_btn:after {
        width: calc(100% - 15px);
    }

    .menu__line {
        width: 19px;
    }

    .menu__section-header {
        gap: 8px;
    }

    .menu__footer-text {
        margin-left: 13px;
    }

    .menu__content {
        padding: 0 18px;
    }

    .menu__submenu {
        padding-left: 28px;
    }
}