:root {
    --burgundy: #570019;
    --burgundy-deep: #440013;
    --cream: #f3f0e9;
    --white: #ffffff;
    --ink: #171615;
    --muted: #77736e;
    --gold: #b4914f;
    --line: #d8d0c3;
    --container: 1304px;
    --header-height: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 9.4vw), var(--container));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    color: var(--white);
    transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
    color: var(--ink);
    background: rgba(243, 240, 233, 0.97);
    box-shadow: 0 1px 0 rgba(23, 22, 21, 0.08);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 9.4vw), var(--container));
    height: 100%;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    min-width: 176px;
    line-height: 1;
    text-transform: uppercase;
}

.brand strong {
    font-size: 28px;
    letter-spacing: 0.7px;
}

.brand span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(38px, 5vw, 86px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.main-navigation a {
    position: relative;
    padding-block: 14px;
}

.main-navigation a:not(.main-navigation__phone)::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    height: 1px;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    background: currentColor;
    transition: transform 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-navigation__phone {
    padding-left: 30px !important;
    border-left: 1px solid var(--gold);
    font-size: 15px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 42.4% 57.6%;
    min-height: 900px;
    overflow: hidden;
    color: var(--white);
    background: var(--burgundy);
}

.hero__panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 900px;
    padding: 216px clamp(40px, 4.7vw, 68px) 46px;
    background: var(--burgundy);
}

.hero__content {
    width: min(100%, 550px);
}

.eyebrow {
    margin: 0 0 28px;
    color: var(--burgundy);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.eyebrow--gold {
    margin-bottom: 50px;
    color: var(--gold);
    font-size: 16px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(52px, 4.2vw, 64px);
    line-height: 1.18;
    letter-spacing: -1.7px;
}

.hero__lead {
    max-width: 540px;
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 52px);
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.15px;
    text-transform: uppercase;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--light {
    min-width: 220px;
    color: var(--burgundy);
    background: var(--cream);
}

.button--light:hover,
.button--light:focus-visible {
    background: var(--white);
}

.text-link {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.text-link span {
    font-size: 22px;
    transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
    transform: translateX(5px);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.stat strong {
    font-size: 36px;
    line-height: 1;
}

.stat span {
    font-size: 14px;
    line-height: 1.45;
}

.hero__visual {
    position: relative;
    min-width: 0;
    min-height: 900px;
    background:
        linear-gradient(180deg, rgba(22, 9, 5, 0.22) 0%, rgba(22, 9, 5, 0) 28%, rgba(22, 9, 5, 0.18) 100%),
        url("public/images/hero-kitchen.jpg") center / cover no-repeat;
}

.hero__caption {
    position: absolute;
    right: 10%;
    bottom: 42px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero__number {
    position: absolute;
    right: 6.5%;
    bottom: 37px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    font-weight: 800;
}

.section {
    padding: 112px 0 100px;
    scroll-margin-top: var(--header-height);
}

.section h2 {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(47px, 4.2vw, 66px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.section-intro {
    max-width: 750px;
    margin: 42px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.services__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 78px);
    align-items: center;
    margin-top: 32px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-height: 170px;
    padding: 34px 28px 26px;
    border-radius: 16px;
    background: var(--white);
}

.service-card__number {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--gold);
    font-size: 15px;
    font-weight: 800;
}

.service-card h3 {
    margin: 7px 0 21px;
    font-size: 27px;
    line-height: 1.1;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.42;
}

.services__image {
    position: relative;
    min-height: 498px;
    margin: 0 0 36px;
}

.services__image > img {
    width: 100%;
    height: 100%;
    min-height: 498px;
    object-fit: cover;
    border-radius: 19px;
}

.services__image figcaption {
    position: absolute;
    right: 8%;
    bottom: -36px;
    left: 6%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 28px 30px 24px;
    border-radius: 14px;
    color: var(--white);
    background: var(--burgundy);
}

.services__image figcaption strong {
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.25;
}

.services__image figcaption span {
    font-size: 15px;
}

.real-works {
    padding-top: 122px;
    background: #e9e3da;
}

.real-works__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: end;
}

.real-works__heading h2 {
    max-width: 900px;
}

.real-works__heading > p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.58;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.portfolio-photo {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #c8b9a5;
    cursor: zoom-in;
}

.portfolio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease, filter 300ms ease;
}

.portfolio-photo__label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 46px 16px 15px;
    opacity: 0;
    color: var(--white);
    background: linear-gradient(180deg, transparent, rgba(24, 12, 11, 0.84));
    text-align: left;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-photo__label small {
    display: block;
    margin-bottom: 4px;
    color: #d0aa58;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.portfolio-photo__label strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-photo:hover img,
.portfolio-photo:focus-visible img {
    transform: scale(1.025);
    filter: brightness(0.9);
}

.portfolio-photo:hover .portfolio-photo__label,
.portfolio-photo:focus-visible .portfolio-photo__label {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: var(--white);
    background: rgba(16, 10, 9, 0.96);
}

.lightbox::backdrop {
    background: rgba(16, 10, 9, 0.96);
}

.lightbox[open] {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    align-items: center;
}

.lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 52px 10px 34px;
}

.lightbox figure img {
    max-width: 100%;
    max-height: calc(100dvh - 112px);
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.lightbox figcaption {
    max-width: 900px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.lightbox__close,
.lightbox__arrow {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__arrow:hover,
.lightbox__arrow:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
}

.lightbox__close {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
}

.lightbox__arrow {
    justify-self: center;
}

.about {
    padding-top: 118px;
    padding-bottom: 92px;
}

.about__top {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(58px, 8vw, 110px);
    align-items: center;
}

.about__copy h2 {
    max-width: 730px;
    font-size: clamp(46px, 4vw, 62px);
    line-height: 1.08;
}

.about__copy > p:last-child {
    max-width: 670px;
    margin: 34px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.trust-card {
    padding: 46px 42px 36px;
    border-radius: 18px;
    background: var(--white);
}

.trust-card h3 {
    margin: 0 0 26px;
    color: var(--gold);
    font-size: 15px;
    text-transform: uppercase;
}

.trust-card ol {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-card li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.trust-card li span {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    background: var(--burgundy);
    font-size: 12px;
}

.process {
    margin-top: 34px;
}

.process > .eyebrow {
    margin-bottom: 58px;
}

.process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.process__steps::before {
    position: absolute;
    top: 23px;
    right: 4%;
    left: 4%;
    height: 2px;
    content: "";
    background: var(--line);
}

.process__steps li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.process__steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 5px solid var(--cream);
    border-radius: 50%;
    color: var(--white);
    background: var(--burgundy);
    font-size: 13px;
    font-weight: 800;
}

.process__steps strong {
    font-size: 15px;
}

.contact {
    padding: 70px 0 48px;
    scroll-margin-top: var(--header-height);
    color: var(--white);
    background: var(--burgundy);
}

.contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 70px;
    align-items: start;
}

.contact h2 {
    margin: 0;
    font-size: clamp(48px, 4.2vw, 65px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.contact p {
    max-width: 720px;
    margin: 30px 0 42px;
    font-size: 18px;
    line-height: 1.5;
}

.contact address {
    font-size: 13px;
    font-style: normal;
}

.contact__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.button--contact {
    min-height: 64px;
    color: var(--burgundy);
    background: var(--cream);
    font-size: clamp(18px, 2vw, 24px);
    text-transform: none;
}

.button--contact:hover,
.button--contact:focus-visible {
    background: var(--white);
}

.contact__telegram {
    font-size: 15px;
    font-weight: 700;
}

.contact__telegram:hover,
.contact__telegram:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact__brand {
    margin-top: 2px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    text-transform: uppercase;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 48% 52%;
    }

    .hero__panel {
        padding-inline: 4.7vw 34px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero__stats {
        gap: 18px;
    }

    .stat strong {
        font-size: 31px;
    }

    .services__layout {
        grid-template-columns: 1fr;
    }

    .services__image {
        min-height: 560px;
        margin-top: 12px;
    }

    .services__image > img {
        min-height: 560px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 76px;
    }

    .site-header__inner {
        width: min(calc(100% - 40px), var(--container));
    }

    .brand strong {
        font-size: 24px;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-navigation {
        position: fixed;
        z-index: 101;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: min(86vw, 430px);
        height: 100dvh;
        padding: 96px 34px 42px;
        transform: translateX(102%);
        color: var(--ink);
        background: var(--cream);
        box-shadow: -18px 0 50px rgba(23, 22, 21, 0.15);
        font-size: 24px;
        transition: transform 240ms ease;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .main-navigation__phone {
        margin-top: 18px;
        padding: 24px 0 0 !important;
        border-top: 1px solid var(--gold);
        border-left: 0;
        font-size: 18px;
    }

    .hero {
        display: block;
        min-height: auto;
    }

    .hero__panel {
        min-height: 720px;
        padding: 172px 6vw 50px;
    }

    .hero__content {
        width: min(100%, 650px);
    }

    .hero h1 {
        font-size: clamp(45px, 8vw, 64px);
    }

    .hero__actions {
        align-items: center;
        flex-direction: row;
    }

    .hero__visual {
        min-height: 70vw;
        max-height: 720px;
        background-position: center;
    }

    .hero__caption {
        right: 9%;
    }

    .container {
        width: min(calc(100% - 40px), var(--container));
    }

    .section {
        padding: 84px 0 78px;
    }

    .section h2 {
        font-size: clamp(42px, 7vw, 60px);
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .real-works__heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .real-works__heading > p {
        max-width: 680px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 38px;
    }

    .lightbox[open] {
        grid-template-columns: 62px minmax(0, 1fr) 62px;
    }

    .about__top {
        grid-template-columns: 1fr;
    }

    .process {
        margin-top: 70px;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .contact__actions {
        max-width: 520px;
    }

    .contact__brand {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .brand {
        min-width: 0;
    }

    .hero__panel {
        min-height: 770px;
        padding-top: 146px;
    }

    .eyebrow--gold {
        margin-bottom: 32px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 54px);
        line-height: 1.08;
        letter-spacing: -1.2px;
    }

    .hero__lead {
        font-size: 17px;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .button--light {
        width: 100%;
    }

    .text-link {
        justify-content: center;
    }

    .hero__stats {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
        gap: 24px;
        width: calc(100% + 6vw);
        margin-right: -6vw;
        padding-right: 6vw;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hero__stats::-webkit-scrollbar {
        display: none;
    }

    .stat {
        gap: 15px;
    }

    .stat strong {
        font-size: 30px;
    }

    .stat span {
        font-size: 12px;
    }

    .hero__visual {
        min-height: 112vw;
    }

    .hero__caption {
        bottom: 25px;
        left: 6vw;
        font-size: 11px;
    }

    .hero__number {
        bottom: 23px;
    }

    .eyebrow {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .section h2 {
        font-size: clamp(38px, 11vw, 49px);
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .section-intro {
        margin-top: 26px;
        font-size: 17px;
    }

    .services__layout {
        margin-top: 32px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }

    .services__image,
    .services__image > img {
        min-height: 440px;
    }

    .services__image figcaption {
        right: 12px;
        bottom: -46px;
        left: 12px;
        padding: 24px 22px;
    }

    .projects {
        padding-top: 108px;
    }

    .projects__grid {
        gap: 16px;
    }

    .real-works {
        padding-top: 86px;
    }

    .real-works__heading > p {
        font-size: 16px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 30px;
    }

    .portfolio-photo {
        border-radius: 9px;
    }

    .portfolio-photo__label {
        display: none;
    }

    .lightbox[open] {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .lightbox figure {
        grid-column: 1;
        grid-row: 1;
        padding: 76px 14px 90px;
    }

    .lightbox figure img {
        max-height: calc(100dvh - 184px);
    }

    .lightbox__arrow {
        position: absolute;
        bottom: 22px;
    }

    .lightbox__arrow--previous {
        left: 22px;
    }

    .lightbox__arrow--next {
        right: 22px;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
    }

    .about__copy h2 {
        font-size: clamp(39px, 10.5vw, 50px);
    }

    .about__copy > p:last-child {
        margin-top: 26px;
        font-size: 17px;
    }

    .trust-card {
        padding: 34px 24px 30px;
    }

    .trust-card li {
        align-items: flex-start;
        font-size: 16px;
    }

    .process > .eyebrow {
        margin-bottom: 30px;
    }

    .process__steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process__steps::before {
        top: 18px;
        bottom: 18px;
        left: 20px;
        width: 2px;
        height: auto;
    }

    .process__steps li {
        flex-direction: row;
        gap: 20px;
        min-height: 76px;
        text-align: left;
    }

    .process__steps li > span {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }

    .contact {
        padding: 60px 0 42px;
    }

    .contact h2 {
        font-size: clamp(43px, 12vw, 56px);
    }

    .contact p {
        margin: 24px 0 34px;
        font-size: 17px;
    }

    .button--contact {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
