html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *::after, *::before {
    box-sizing: inherit;
}

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

button {
    padding: 0;
    border: none;
    background-color: transparent;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem; /* Вместо 20px */
}

body {
    color: #151618;
    font-size: 1rem; /* 16px */
    font-weight: 300;
    line-height: 1.5;
    font-family: "Lato", serif;
    position: relative;
}

.headerInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    padding: 1.875rem 0; /* 30px */
}

.logo {
    margin-bottom: 0 auto;
}

.logo img {
    width: 9.375rem; /* 150px */
}

.menuBtn {
    display: none;
    width: 2.5rem; /* 40px */
    height: 1.25rem; /* 20px */
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.menu_close {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1;
    transition: background-color .3s ease;
}

.menu_close.menu_open {
    display: block;
}

.adaptiveNav, .menuClose {
    display: none;
}

.menuBtn span {
    background-color: #000;
    height: 2px;
    width: 100%;
}

.menuItem {
    font-size: 1.5rem; /* 24px */
    font-family: "Cormorant", serif;
}

.menuList {
    display: flex;
    align-items: center;
    gap: 0 4rem; /* 65px */
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    margin-left: 5.3125rem; /* 85px */
    position: relative;
    z-index: 3;
}

.menuCloseBtn img {
    width: 1.875rem; /* 30px */
}

.adaptiveActLink img {
    width: 1.5625rem; /* 25px */
}

.user {
    display: flex;
    align-items: center;
    gap: 0 1.25rem; /* 20px */
}

.userLink img {
    width: 1.5625rem; /* 25px */
}

.userItemSearch {
    margin-left: 5rem; /* 80px */
}

.top {
    background-image: url(../img/top.jpg);
    background-repeat: no-repeat;
    background-position: center bottom 65%;
    background-size: cover;
}

.topInner {
    min-height: 31.25rem; /* 500px */
    color: #fff;
    font-family: "Cormorant", serif;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.topTitle {
    font-size: 3.75rem; /* 60px */
    margin-bottom: 1.25rem; /* 20px */
    max-width: 48.75rem; /* 780px */
    line-height: 1;
    font-weight: 400;
}

.topText {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 3rem; /* 48px */
    max-width: 35rem; /* 560px */
    line-height: normal;
}

.blockquoteTitle {
    text-align: center;
    font-size: 3.75rem; /* 60px */
    font-family: "Cormorant", serif;
}

.blockquoteText {
    text-align: center;
    font-family: "Cormorant", serif;
    font-size: 2.5rem; /* 40px */
    max-width: 44rem; /* 704px */
    line-height: normal;
    margin: 0 auto;
}

.footer {
    background-color: #f4f4f4;
    padding: 1.25rem 0; /* 20px */
    text-align: center;
}

.footerText {
    margin-bottom: 0.9375rem; /* 15px */
    font-size: 0.875rem; /* 14px */
    color: #333;
}

.socialLinks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.socialLinkItem {
    display: inline-block;
    margin: 0 0.625rem; /* 10px */
}

.socialLink img {
    width: 1.875rem; /* 30px */
    height: 1.875rem; /* 30px */
    transition: transform 0.3s ease;
}

.socialLink img:hover {
    transform: scale(1.1);
}

/* Медиа-запросы */
@media (max-width: 1000px) {
    .userItemSearch {
        margin-left: 2rem; /* 30px */
    }

    .menu {
        margin-right: auto;
    }

    .menuList {
        margin-left: 3.75rem; /* 60px */
    }

    .logo {
        margin-bottom: 0;
    }

    .headerInner {
        min-width: auto;
    }

    .blockquoteText {
        margin-top: 7.5rem; /* 120px */
        margin-bottom: 8.4375rem; /* 135px */
    }
}

@media (max-width: 860px) {
    .menuList {
        transform: translateY(-100%);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 30rem; /* 480px */
        margin: 0 auto;
        background-color: #fff;
        display: block;
        text-align: center;
        padding-top: 3.75rem; /* 60px */
        transition: transform .6s ease;
    }

    .menuList.menuListOpen {
        transform: translateY(0%);
    }

    .menuCloseBtn {
        position: absolute;
        top: 1.25rem; /* 20px */
        right: 1.25rem; /* 20px */
    }

    .menuItem {
        margin-bottom: 1.875rem; /* 30px */
        font-size: 1.5rem; /* 24px */
        font-family: "Cormorant", serif;
    }

    .adaptiveMenu {
        padding-top: 3.75rem; /* 60px */
        margin: 3.75rem 1.875rem; /* 60px 30px */
        border-top: 2px solid #F7F2EA;
    }

    .adaptiveAct {
        background-color: #F7F2EA;
        height: 3.75rem; /* 60px */
        padding: 0 6.25rem; /* 100px */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .adaptiveMenuItem {
        margin-bottom: 2.1875rem; /* 35px */
    }

    .menuBtn {
        display: flex;
    }

    .adaptiveNav, .menuClose {
        display: block;
    }

    .menu {
        order: -1;
        margin-right: 0;
    }

    .logo {
        margin-left: auto;
        margin-right: 9.625rem; /* 154px */
    }
}
