:root {
    --bg: #f6f4ef;
    --paper: #fff;
    --text: #111;
    --muted: #6b6b6b;
    --line: #dedbd2;
    --dark: #111;
    --radius: 28px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg)
}

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

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    padding: 22px 6vw;

    background: rgba(246, 244, 239, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-weight: 750;
    letter-spacing: -.04em
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    color: var(--muted)
}

.nav a:hover,
.nav a.active {
    color: var(--text)
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 80px 6vw 100px
}

.kicker,
.category {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .13em
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(52px, 8vw, 112px);
    line-height: .9;
    letter-spacing: -.075em
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(34px, 5vw, 72px);
    line-height: .95;
    letter-spacing: -.06em
}

h3 {
    margin-bottom: 10px;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.035em
}

.lead {
    max-width: 690px;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55
}

.lead-small {
    max-width: 700px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--text);
    border-radius: 999px;
    font-weight: 650;
    transition: transform .2s ease
}

.button:hover {
    transform: translateY(-2px)
}

.button.dark {
    color: #fff;
    background: var(--dark)
}

.hero-image {
    min-height: 620px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ddd
}

.hero-image img {
    height: 100%;
    min-height: 620px;
    object-fit: cover
}

.section {
    padding: 90px 6vw;
    border-top: 1px solid var(--line)
}

.section-head {
    max-width: 900px;
    margin-bottom: 34px
}

.section-head p {
    max-width: 720px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.direction-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line)
}

.direction-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    filter: brightness(.78);
    transition: transform .4s ease
}

.direction-card:hover img {
    transform: scale(1.04)
}

.direction-card .content {
    position: relative;
    z-index: 2;
    padding: 26px;
    color: white
}

.direction-card p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.45
}

.page-hero {
    padding: 86px 6vw 48px
}

.page-hero .lead {
    max-width: 840px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #ddd;
    border: 1px solid var(--line)
}

.gallery-item img {
    aspect-ratio: 4/5;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.gallery-item:hover img {
    transform: scale(1.035)
}

.project-list {
    display: grid;
    gap: 24px
}

.project-card {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper)
}

.project-preview {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 34px;
    background: #f1eee7
}

.project-preview img {
    max-height: 420px;
    object-fit: contain
}

.project-text {
    padding: 40px;
    align-self: center
}

.project-text p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px
}

.tag {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px
}

.text-block {
    max-width: 820px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65
}

.contact-box {
    max-width: 760px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper)
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    font-size: 20px
}

.contact-list li {
    margin-bottom: 14px
}

.contact-list a {
    border-bottom: 1px solid currentColor
}

.footer {
    padding: 30px 6vw;
    border-top: 1px solid var(--line);
    color: var(--muted)
}

.note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5
}

@media(max-width:1100px) {

    .direction-grid,
    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero,
    .project-card {
        grid-template-columns: 1fr
    }

    .hero-image,
    .hero-image img {
        min-height: 520px
    }
}

@media(max-width:720px) {
    .header {
        align-items: flex-start;
        flex-direction: column
    }

    .nav {
        gap: 14px
    }

    .hero,
    .section,
    .page-hero {
        padding-left: 5vw;
        padding-right: 5vw
    }

    .direction-grid,
    .gallery {
        grid-template-columns: 1fr
    }

    .hero-image,
    .hero-image img {
        min-height: 420px
    }

    .direction-card {
        min-height: 360px
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.94);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.lightbox.active {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 720px) {
    .lightbox {
        padding: 12px;
    }

    .lightbox img {
        max-width: 100vw;
        max-height: 85vh;
        border-radius: 10px;
    }

    .gallery-item,
    .gallery-item img {
        max-width: 100%;
    }
    body {
        padding-top: 170px;
    }
}

body {
    margin: 0;
    padding-top: 80px;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 42px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 720px) {
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100000;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
}