/* Шрифты */
@font-face {
    font-family: "Gilroy-regular";
    src: url("assets/fonts/gilroy-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Gilroy-semibold";
    src: url("assets/fonts/gilroy-semibold.ttf") format("truetype");
}

/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html, body {
    height: 100%;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

html {
    font-family: "Gilroy-regular", sans-serif;
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    background: #f5f0eb;
    color: #2d2a27;
    line-height: 1.5;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: #2d2a27;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #c49b7a;
}

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1315px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ===== СТРАНИЦЫ ===== */
.page {
    margin-top: 650px;
}

#main-page {
    display: block;
}

/* ===== ЗАГОЛОВКИ ===== */
.section-title {
    font-size: 55px;
    font-weight: 600;
    text-align: center;
    color: #2d2a27;
}

.main-title {
    color: #fff;
    font-family: "Gilroy-semibold", sans-serif;
}

/* Шапка */
.header-container {
    max-width: 1315px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: background .3s;
    background: transparent;
}

.header.scrolled {
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 155, 122, 0.08);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 70px;
}

.logo {
    flex-shrink: 0;
    margin-top: 30px;
}

.logo img {
    height: 80px;
    transition: height .8s;
}

.header.scrolled .logo {
    margin-top: 0;
}

.header.scrolled .logo img {
    height: 50px;
}

/* ===== МЕНЮ (ПК) ===== */
.hamburger {
    display: none;
}

.nav {
    position: relative;
    width: auto;
    z-index: 100;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-button {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 14px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
    position: relative;
}

.menu-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.menu-button:hover {
    color: #fff;
}

.menu-button:hover::after {
    width: 60%;
}

.header.scrolled .menu-button {
    color: rgba(45, 42, 39, 0.6);
}

.header.scrolled .menu-button:hover {
    color: #2d2a27;
}

.header.scrolled .menu-button::after {
    background: #c49b7a;
}

/* ===== БАННЕР ===== */
.banner {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
    height: 100vh;
    overflow: hidden;
}

.banner__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    background: url('assets/img/background-laza.jpg') center / cover no-repeat;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.page-title {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 0.5;
    font-family: "Gilroy-semibold", sans-serif;
    z-index: 2;
    margin-top: 250px;
}

.page-title h1 {
    font-size: 130px;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.page-title span {
    font-size: 50px;
    text-transform: uppercase;
    opacity: 0.8;
    text-align: end;
    color: #fff;
}

/* ===== БЛОКИ ===== */
.block {
    padding: 60px 0;
    background: #f5f0eb;
    position: relative;
}

.block:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 155, 122, 0.2), transparent);
}

/* ===== СЕТКИ ===== */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.grid-item {
    flex: 0 0 auto;
    transition: transform .3s ease, opacity .3s;
}

.grid-item:hover {
    transform: translateY(-8px);
    opacity: .85;
}

/* ===== КОНТАКТЫ ===== */
.grid--contact .grid-item {
    flex: 1 1 30%;
    max-width: 300px;
}

.grid--contact .grid-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.grid--contact .grid-item img {
    max-width: 80px;
    margin-bottom: 15px;
}

.grid--contact .grid-item span {
    font-size: 20px;
    font-weight: 500;
    color: #2d2a27;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: #2d2a27;
    padding: 10px 0;
    text-align: center;
}

.site-footer .container {
    justify-content: center;
}

.site-footer-info {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ===== ОБЩЕЕ ===== */
.animation-sink {
    transition: transform .3s ease, opacity .3s;
}

.animation-sink:hover {
    transform: translateY(-8px);
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    font-size: 22px;
    text-align: center;
    color: #4a4540;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .page-title h1 {
        font-size: 100px;
    }

    .page-title span {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .page {
        margin-top: 480px;
    }

    .container {
        gap: 30px;
    }

    .section-title {
        font-size: 30px;
    }

    .page-title {
        margin-top: 200px;
        line-height: 0.7;
    }

    .page-title h1 {
        font-size: 50px;
        text-align: end;
        margin: 0 0 30px 0;
    }

    .page-title span {
        font-size: 30px;
    }

    .header__content {
        min-height: 70px;
        padding: 5px 15px;
    }

    .logo {
        margin-top: 0;
    }

    .logo img {
        height: 60px;
    }

    .header.scrolled .logo img {
        height: 45px;
    }

    .text-content {
        font-size: 18px;
        padding: 0 10px;
    }

    /* Мобильное меню */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 100;
        touch-action: manipulation;
    }

    .hamburger-line {
        display: block;
        width: 28px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .header.scrolled .hamburger-line {
        background: #2d2a27;
    }

    .overlay.is-open {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 100;
    }

    .nav.is-open {
        right: 0;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .menu li {
        width: 100%;
    }

    .menu-button {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 18px;
        color: #2d2a27;
        border-bottom: 1px solid rgba(45, 42, 39, 0.05);
    }

    .menu-button::after {
        display: none;
    }

    .menu-button:hover {
        color: #c49b7a;
    }

    .banner__content {
        min-height: 80vh;
        background-position: 60% center;
    }

    .banner-overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .grid--contact .grid-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .grid--contact .grid-item img {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .page {
        margin-top: 420px;
    }

    .page-title h1 {
        font-size: 38px;
    }

    .page-title span {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .text-content {
        font-size: 16px;
    }

    .grid--contact .grid-item img {
        max-width: 50px;
    }

    .grid--contact .grid-item span {
        font-size: 16px;
    }
}
