* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #27211d;
    background: #eee9e1;
    font-family: "Manrope", sans-serif;
}

body,
button,
a {
    font-family: "Manrope", sans-serif;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
}


/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 28px 68px;
}

.header-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    grid-column: 1;
    justify-self: start;
    color: #f4eee6;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 5px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.logo:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.nav {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav a {
    position: relative;
    display: block;
    color: #f4eee6;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav a:hover {
    opacity: 0.7;
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social,
.instagram {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4eee6;
    border: 1px solid rgba(244, 238, 230, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition:
        color 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.social:hover,
.instagram:hover {
    color: #241812;
    background: #f4eee6;
    border-color: #f4eee6;
    transform: translateY(-2px);
}

.instagram svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.instagram svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.social {
    font-size: 14px;
    font-weight: 500;
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(244, 238, 230, 0.5);
    color: #f4eee6;
    font-size: 12px;
    letter-spacing: 1px;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.header-button:hover {
    background: #f4eee6;
    color: #211710;
    border-color: #f4eee6;
    transform: translateY(-2px);
}

.menu-button {
    display: none;
}

.mobile-menu {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #211710;
    color: #f1ece4;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.62) saturate(0.8);
    transition:
        transform 1.2s cubic-bezier(0.2, 0.65, 0.25, 1),
        filter 0.8s ease;
}

.hero:hover .hero-photo img {
    transform: scale(1.012);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(27, 18, 13, 0.95) 0%,
            rgba(27, 18, 13, 0.72) 38%,
            rgba(27, 18, 13, 0.15) 75%,
            rgba(27, 18, 13, 0.15)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 136px);
    margin: auto;
    padding-top: 205px;
}

.hero-label,
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.13em;
}

.hero-label span,
.section-label span {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
}

.hero h1 {
    max-width: 690px;
    margin: 26px 0 28px;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(58px, 6vw, 92px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 440px;
    margin: 0 0 32px;
    font-size: 12px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-width: 160px;
    padding: 14px 20px;
    background: #eee7dd;
    color: #2a201a;
    font-size: 10px;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.main-button:hover {
    transform: translateY(-3px);
    background: #f5efe6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.main-button span {
    font-size: 17px;
}

.hero-bottom {
    position: absolute;
    z-index: 3;
    left: 68px;
    right: 68px;
    bottom: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
}


/* =========================
   ABOUT
========================= */

.about {
    background: #eee9e1;
}

.about-inner {
    width: calc(100% - 136px);
    margin: auto;
    padding: 95px 0;
    display: grid;
    grid-template-columns: 1.1fr 0.85fr 0.85fr;
    gap: 55px;
    align-items: center;
}

.about-text .section-label,
.advantages .section-label {
    color: #776b60;
}

.about h2,
.advantages h2 {
    margin: 20px 0 28px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(45px, 4vw, 65px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.about-text p {
    max-width: 420px;
    margin: 0 0 15px;
    color: #6d6259;
    font-size: 12px;
    line-height: 1.7;
}

.outline-button {
    display: inline-flex;
    gap: 30px;
    margin-top: 18px;
    padding: 13px 20px;
    border: 1px solid #b9aea3;
    font-size: 9px;
    transition:
        background 0.35s ease,
        transform 0.35s ease,
        border-color 0.35s ease;
}

.outline-button:hover {
    background: #ded7cd;
    border-color: #9e9286;
    transform: translateY(-2px);
}

.about-photo {
    height: 470px;
    overflow: hidden;
}

.about-photo img {
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.about-photo:hover img {
    transform: scale(1.035);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
}

.feature-icon {
    font-size: 25px;
    color: #756b61;
}

.feature h3 {
    margin: 0 0 7px;
    font-size: 10px;
    letter-spacing: 0.11em;
    font-weight: 600;
}

.feature p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
    color: #82776c;
}


/* =========================
   WORKS
========================= */

.works {
    background: #241812;
    color: #f0ebe3;
    padding: 70px 0 85px;
}

.works-inner {
    width: calc(100% - 136px);
    margin: auto;
}

.works .section-label {
    color: #9f9388;
}

.works-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.works h2 {
    margin: 18px 0 45px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 4vw, 67px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.works-link {
    margin-bottom: 50px;
    display: flex;
    gap: 15px;
    font-size: 9px;
    color: #c8beb4;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.works-link:hover {
    opacity: 0.65;
    transform: translateX(3px);
}

.gallery {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 0.85fr;
    grid-template-rows: 245px 245px;
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-main {
    grid-row: span 2;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.82);
    transition:
        transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1),
        filter 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
    filter: brightness(0.98) saturate(1);
}

.gallery-caption {
    display: none;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(-4px);
    opacity: 1;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            transparent 55%,
            rgba(0, 0, 0, 0.55)
        );
    pointer-events: none;
}


/* =========================
   ADVANTAGES
========================= */

.advantages {
    background: #eee9e1;
}

.advantages-inner {
    width: calc(100% - 136px);
    margin: auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 70px;
    align-items: center;
}

.advantages-title h2 {
    font-size: clamp(38px, 3.2vw, 55px);
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-icon {
    margin-bottom: 16px;
    font-size: 22px;
    color: #756a60;
}

.advantage h3 {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.advantage p {
    margin: 0;
    font-size: 9px;
    line-height: 1.55;
    color: #82776d;
}


/* =========================
   CONTACT
========================= */

/* =========================
   CONTACT
========================= */

.contact {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: white;
}

.contact > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.48) saturate(0.75);
    transition:
        transform 1s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.contact:hover > img {
    transform: scale(1.015);
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(30, 19, 13, 0.93),
            rgba(30, 19, 13, 0.28)
        );
}

.contact-overlay {
    position: relative;
    z-index: 2;
    width: calc(100% - 136px);
    min-height: 520px;
    margin: auto;
    padding: 70px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.contact-left {
    max-width: 600px;
}

.contact-left h2 {
    margin: 20px 0;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(45px, 5vw, 70px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.contact-left p {
    max-width: 400px;
    margin: 0 0 25px;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}


/* =========================
   PHONE
========================= */

.contact-phone {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 28px;
}

.contact-phone span {
    width: fit-content;
    color: #f4eee6;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.03em;
}


/* =========================
   CONTACT BUTTONS
========================= */

.contact-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-instagram {
    font-size: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
    transition:
        opacity 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.contact-instagram:hover {
    opacity: 0.7;
    border-color: white;
    transform: translateY(-2px);
}


/* =========================
   SOCIALS
========================= */

.contact-social {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-social > span {
    display: block;
    margin-bottom: 12px;
    font-size: 8px;
    letter-spacing: 0.12em;
}

.contact-social div {
    display: flex;
    gap: 15px;
    color: white;
}

.contact-social div a {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.contact-social div a:hover {
    opacity: 0.65;
    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

.footer {
    min-height: 85px;
    padding: 25px 68px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: #211710;
    color: #9e9186;
    font-size: 8px;
    letter-spacing: 0.04em;
}

.footer-logo {
    color: #eee8df;
    font-size: 16px;
    letter-spacing: 0.25em;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.7;
}

.footer div:nth-child(2) {
    text-align: center;
}

.footer div:nth-child(3) {
    text-align: right;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 13, 9, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal img {
    width: auto;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}


/* =========================
   MOBILE
========================= */

/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 900px) {

    .header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 18px 20px;
    }

    .header-inner {
        width: 100%;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 19px;
        letter-spacing: 4px;
    }

    /* Скрываем обычную навигацию */

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    /* Кнопка меню */

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;

        width: 46px;
        height: 46px;

        padding: 0;

        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.25);

        cursor: pointer;

        transition:
            background 0.3s ease,
            border-color 0.3s ease;
    }

    .menu-button span {
        display: block;
        width: 20px;
        height: 1px;
        background: #fff;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    .menu-button:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* Анимация превращения ☰ в X */

    .menu-button.active span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-button.active span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    /* =========================
       MOBILE MENU
    ========================= */

    .mobile-menu {
        position: absolute;

        top: 82px;
        left: 20px;
        right: 20px;

        display: flex;
        flex-direction: column;

        padding: 10px 0;

        background: rgba(39, 29, 23, 0.98);

        border: 1px solid rgba(255, 255, 255, 0.12);

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.3);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-12px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu a {
        display: flex;
        align-items: center;

        min-height: 54px;

        padding: 0 22px;

        color: #f4eee6;

        font-size: 12px;
        letter-spacing: 0.08em;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        transition:
            background 0.25s ease,
            padding-left 0.25s ease;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.06);
        padding-left: 28px;
    }

    /* =========================
       HERO
    ========================= */

    .hero-content {
        width: calc(100% - 40px);
        max-width: 100%;
        padding-top: 145px;
    }

    .hero h1 {
        font-size: clamp(46px, 12vw, 72px);
    }

    .hero-content p {
        max-width: 330px;
    }

    .hero-bottom {
        left: 20px;
        right: 20px;
    }

    /* =========================
       ABOUT
    ========================= */

    .about-inner {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        padding: 70px 0;
    }

    .about-photo {
        height: 400px;
    }

    .about-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* =========================
       WORKS
    ========================= */

    .works-inner {
        width: calc(100% - 40px);
    }

    .works-title-row {
        display: block;
    }

    .works-link {
        margin-bottom: 30px;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows:
            300px
            200px
            200px;
    }

    .gallery-main {
        grid-column: span 2;
        grid-row: auto;
    }

    /* =========================
       ADVANTAGES
    ========================= */

    .advantages-inner {
        width: calc(100% - 40px);

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 70px 0;
    }

    .advantages-list {
        grid-template-columns: 1fr 1fr;
    }

    /* =========================
       CONTACT
    ========================= */

    .contact-overlay {
        width: calc(100% - 40px);

        min-height: 480px;

        align-items: flex-start;

        flex-direction: column;

        padding: 60px 0;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-social {
        margin-top: 50px;
    }

    /* =========================
       FOOTER
    ========================= */

    .footer {
        width: 100%;

        padding: 25px 20px;

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .footer div {
        text-align: left !important;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 550px) {

    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 145px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .hero-bottom {
        font-size: 8px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows:
            330px
            230px
            230px
            230px
            230px;
    }

    .gallery-main {
        grid-column: auto;
    }

    .advantages-list {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================
   PHONE
========================= */

.contact-phone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.contact-phone a {
    width: fit-content;
    color: #f4eee6;
    font-size: 16px;
    letter-spacing: 0.04em;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.contact-phone a:hover {
    opacity: 0.65;
    transform: translateX(4px);
}

/* =========================
   MOBILE FIX
========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

@media (max-width: 768px) {

    .header-inner,
    .hero-content,
    .about,
    .works,
    .advantages,
    .contact-overlay,
    .footer-inner {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    .hero {
        width: 100%;
    }

    .gallery {
        width: 100%;
    }

    .gallery-item {
        width: 100%;
    }

    .contact {
        width: 100%;
    }
}
/* =========================
   MOBILE FINAL FIX
========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px) {

    .header {
        width: 100%;
        padding: 20px;
    }

    .header-inner {
        width: 100%;
        height: 75px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .logo {
        grid-column: 1;
    }

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-button {
        grid-column: 2;
        display: flex;
        justify-self: end;
        width: 38px;
        height: 38px;
    }

    .hero-content {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    .about-inner,
    .works-inner,
    .advantages-inner,
    .contact-overlay {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    .about,
    .works,
    .advantages,
    .contact,
    .hero,
    .footer {
        width: 100%;
        max-width: 100%;
    }

    .gallery {
        width: 100%;
        max-width: 100%;
    }

    .gallery-item {
        min-width: 0;
    }

    .contact-left {
        max-width: 100%;
    }

    .footer {
        width: 100%;
    }
}