/* Seven Hills responsive stabilization */
html,
body {
    max-width: 100%;
}

body {
    min-width: 0;
}

img,
picture,
svg,
video,
canvas {
    max-width: 100%;
}

.container {
    width: 100%;
}

.section_header,
.section_header-title,
.section_header-text {
    max-width: 100%;
}

.section_header-title,
.section_header-text,
.menu_tab-list_item .main_text,
.blog_post .main_text,
.recent_posts-item .main_text {
    overflow-wrap: break-word;
}

.logo--brand {
    display: block;
    flex-shrink: 1;
    line-height: 1;
    min-width: 0;
    text-transform: none;
}

.logo--brand .logo_wordmark {
    display: block;
    height: auto;
    max-height: 76px;
    object-fit: contain;
    width: clamp(150px, 36vw, 230px);
}

.footer .logo--brand .logo_wordmark {
    width: clamp(180px, 52vw, 240px);
}

.header {
    background: rgba(255, 255, 255, .96);
}

    .header .container {
        gap: 14px;
        min-height: 76px;
    }

    .header .logo.logo--brand {
        max-width: calc(100% - 64px);
    }

.header .logo.logo--brand .logo_wordmark {
    width: clamp(150px, 42vw, 205px);
}

.header_nav {
    min-width: 100%;
}

.page_cover {
    align-items: center;
    display: flex;
    justify-content: center;
}

.page_cover-title {
    margin-top: 42px;
}

.menu_tab-list_item .main,
.blog_post .main,
.recent_posts-item .main,
.footer_block,
.footer_about {
    min-width: 0;
}

.menu_tab-list_item .main_name,
.menu_tabs-list_item .link .main_title,
.presentation_slider-slide .link .main_title,
.recent_posts-item .main_title,
.blog_post .main_title {
    overflow-wrap: anywhere;
}

.menu_tab-list_item .main {
    align-items: flex-start;
}

.menu_tab-list_item .main_price {
    flex-shrink: 0;
    margin-left: auto;
}

.menu_tabs-list_item .link,
.menu_tabs-list_item .link .media,
.menu_tabs-list_item .link img,
.presentation_slider-slide .link,
.presentation_slider-slide .link .media,
.presentation_slider-slide .link img,
.gallery_slider-slide .link,
.gallery_slider-slide img,
.banners_list-item .link .media img,
.blog_post .media img,
.recent_posts-item .media img {
    height: 100%;
}

.menu_tabs-list_item .link .main,
.presentation_slider-slide .link .main {
    text-align: left;
}

@media (hover: none), screen and (max-width: 1023.98px) {
    .menu_tabs-list_item .link .main,
    .presentation_slider-slide .link .main {
        opacity: 1;
    }
}

@media screen and (max-width: 767.98px) {
    body {
        font-size: 16px;
        line-height: 1.55;
    }

    .section {
        padding: 56px 0;
    }

    .section--nopb {
        padding-top: 56px;
    }

    h1,
    .h1 {
        font-size: clamp(38px, 12vw, 54px);
        line-height: 1.08;
    }

    h2,
    .h2 {
        font-size: clamp(28px, 8vw, 38px);
    }

    h3,
    .h3 {
        font-size: clamp(23px, 6vw, 30px);
    }

    .btn {
        height: auto;
        min-height: 52px;
        padding: 14px 22px;
    }

    .header {
        box-shadow: 0 8px 24px rgba(83, 73, 49, .08);
    }

    .header.opened {
        background: #f7f7f7;
        height: 100dvh;
        overflow-y: auto;
    }

    .header_nav {
        margin-top: 12px;
        max-height: calc(100dvh - 92px);
        padding-bottom: 28px;
    }

    .header_nav-list {
        gap: 14px;
    }

    .header_nav-socials {
        margin-top: 28px;
    }

    .hero {
        padding-top: 112px;
    }

    .hero_main .section_header {
        margin-bottom: 34px;
    }

    .hero_main .section_header-text {
        max-width: calc(100vw - 40px);
    }

    .hero_main .section_header .wrapper {
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero_main .section_header .wrapper .btn {
        flex: 1 1 160px;
        min-width: 0;
    }

    .hero_slider {
        height: clamp(260px, 72vw, 360px);
    }

    .page_cover {
        height: 220px;
    }

    .page_cover-title {
        margin-top: 58px;
    }

    .menu_tabs-list_item {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .menu_tabs-list_item .link .main {
        background: linear-gradient(180deg, rgba(247, 247, 247, .78), rgba(247, 247, 247, .94));
        justify-content: flex-end;
    }

    .presentation_header {
        min-height: 240px;
        padding: 28px 20px;
    }

    .presentation_slider-slide .link .main {
        background: linear-gradient(180deg, rgba(247, 247, 247, .70), rgba(247, 247, 247, .94));
        justify-content: flex-end;
        padding: 22px;
    }

    .blog_post .media,
    .recent_posts-item .media {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .banners_list-item .link {
        min-height: 220px;
    }

    #map {
        height: 300px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199.98px) {
    .header .container {
        max-width: 100%;
    }

    .header .logo.logo--brand .logo_wordmark {
        width: clamp(175px, 24vw, 220px);
    }

    .header_nav {
        margin-top: 18px;
    }

    .hero {
        padding-top: 140px;
    }

    .hero_main .section_header {
        margin-bottom: 70px;
    }

    .hero_slider {
        height: clamp(420px, 48vw, 560px);
    }

    .menu_tabs-list_item .link .main,
    .presentation_slider-slide .link .main {
        background: rgba(247, 247, 247, .92);
    }

    .presentation_header {
        min-height: 280px;
    }

    .testimonials_header {
        margin-left: 0;
    }
}

@media screen and (min-width: 1199.98px) {
    h1,
    .h1 {
        font-size: clamp(76px, 5.8vw, 92px);
    }

    .header {
        height: 112px;
    }

    .header .container {
        gap: 24px;
        padding: 0 clamp(28px, 5vw, 80px);
    }

    .header .logo.logo--brand {
        max-width: 230px;
    }

    .header .logo.logo--brand .logo_wordmark {
        width: clamp(200px, 14vw, 230px);
    }

    .header.sticky {
        height: 88px;
    }

    .header_nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header_nav-list {
        gap: clamp(16px, 1.8vw, 28px);
        margin-left: clamp(24px, 3vw, 60px);
    }

    .header_nav-socials {
        flex-shrink: 0;
        gap: 10px;
    }

    .header_nav-socials .link {
        height: 44px;
        width: 44px;
    }

    .hero {
        height: auto;
        min-height: min(760px, 100vh);
        padding-top: 112px;
    }

    .hero .container {
        align-items: stretch;
        display: flex;
        margin-left: max(20px, calc(50vw - 585px));
        margin-right: 0;
        max-width: unset;
        min-height: max(720px, calc(100vh - 112px));
        padding: 0;
    }

    .hero_main {
        flex: 0 0 min(42vw, 640px);
        margin-right: clamp(40px, 5vw, 90px);
        padding: 0;
    }

    .hero_slider {
        height: max(720px, calc(100vh - 112px));
        min-height: 720px;
        min-width: 0;
    }

    .hero_slider .swiper-wrapper,
    .hero_slider .swiper-slide,
    .hero_slider picture {
        height: 100% !important;
    }

    .hero_slider-nav {
        bottom: 0;
        top: unset;
        transform: none;
        width: fit-content;
    }

    .presentation_header {
        min-height: 360px;
    }

    .footer .container {
        gap: clamp(20px, 3vw, 48px);
    }
}

@media screen and (min-width: 1399.98px) {
    .hero .container {
        min-height: max(760px, calc(100vh - 112px));
    }

    .hero_slider {
        height: max(760px, calc(100vh - 112px));
        min-height: 760px;
    }
}
