:root {
    --bg: #f6f3ed;
    --surface: #ffffff;
    --ink: #172026;
    --muted: #64727d;
    --line: #e4ded3;
    --accent: #c8792c;
    --accent-dark: #9d5818;
    --dark: #111a20;
    --dark-soft: #20303a;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(17, 26, 32, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    left: 16px;
}

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

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: var(--dark);
    color: #d9e0e4;
    font-size: 14px;
}

.topbar__inner,
.header-main,
.nav,
.hero__actions,
.section-heading--row,
.cta-band__inner,
.footer-bottom {
    display: flex;
    align-items: center;
}

.topbar__inner {
    justify-content: space-between;
    min-height: 42px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 243, 237, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(228, 222, 211, 0.8);
}

.header-main {
    min-height: 82px;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 14px;
    font-size: 15px;
}

.brand__text {
    font-size: 20px;
}

.nav {
    gap: 8px;
}

.nav__link {
    padding: 11px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--ink);
    background: #ebe4d8;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.header-cta,
.btn--primary {
    color: #fff;
    background: var(--accent);
}

.header-cta:hover,
.btn--primary:hover {
    background: var(--accent-dark);
}

.btn--ghost {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.72);
}

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

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(200, 121, 44, 0.18), transparent 32%),
        linear-gradient(135deg, #fbf8f2 0%, #eee4d6 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
    min-height: 690px;
    padding: 70px 0;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 900;
}

.hero__actions {
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero__media {
    position: relative;
}

.hero__media img,
.split img,
.service-card img,
.project-card img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.hero__media img {
    aspect-ratio: 4 / 3;
}

.hero-card {
    position: absolute;
    right: 28px;
    bottom: -28px;
    max-width: 230px;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.hero-card strong {
    display: block;
    font-size: 28px;
}

.section {
    padding: 96px 0;
}

.section--warm {
    background: #ebe3d6;
}

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

.section-heading {
    max-width: 740px;
    margin-bottom: 38px;
}

.section-heading h2,
.cta-band h2,
.contact-form h2,
.contact-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading--row {
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.feature-grid,
.service-preview,
.cards-grid,
.project-grid,
.stats-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

.feature-grid,
.service-preview {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.service-preview article,
.contact-form,
.contact-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-card span {
    color: var(--accent);
    font-weight: 900;
}

.feature-card h3,
.service-preview h3,
.service-card h2,
.project-card h2 {
    margin: 14px 0 10px;
    line-height: 1.2;
}

.feature-card p,
.service-preview p,
.service-card p,
.project-card p,
.contact-panel p,
.site-footer p {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split img {
    aspect-ratio: 4 / 3;
}

.check-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
    font-weight: 700;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.text-link {
    color: var(--accent-dark);
    font-weight: 900;
}

.cta-band {
    padding: 76px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
}

.cta-band__inner {
    justify-content: space-between;
    gap: 28px;
}

.cta-band p {
    max-width: 560px;
    color: #d9e0e4;
}

.page-hero .container {
    padding: 90px 0;
    max-width: 920px;
}

.cards-grid {
    grid-template-columns: repeat(2, 1fr);
}

.service-card,
.project-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(17, 26, 32, 0.08);
}

.service-card img,
.project-card img {
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 16 / 10;
}

.service-card div,
.project-card div {
    padding: 26px;
}

.process {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 40px;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.timeline li {
    position: relative;
    padding: 24px 0 24px 58px;
    border-bottom: 1px solid rgba(17, 26, 32, 0.12);
}

.timeline li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 22px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-weight: 900;
}

.timeline strong,
.timeline span {
    display: block;
}

.timeline span {
    color: var(--muted);
}

.project-grid {
    grid-template-columns: repeat(2, 1fr);
}

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

.stats-grid article {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
}

.stats-grid strong {
    display: block;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
}

.stats-grid span {
    display: block;
    margin-top: 10px;
    color: #c8d1d7;
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.map-placeholder {
    display: grid;
    gap: 8px;
    min-height: 220px;
    margin-top: 28px;
    place-items: center;
    padding: 24px;
    border-radius: 20px;
    color: var(--muted);
    background: repeating-linear-gradient(135deg, #efe8dc 0, #efe8dc 12px, #e3d8c8 12px, #e3d8c8 24px);
    text-align: center;
}

.map-placeholder strong {
    color: var(--ink);
    font-size: 18px;
}

.map-placeholder span {
    max-width: 28ch;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--ink);
    background: #fbfaf7;
    font: inherit;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-note.is-success {
    color: var(--accent-dark);
    font-weight: 700;
}

.form-note--status {
    margin-top: -8px;
}

.site-footer {
    padding: 64px 0 26px;
    color: #d9e0e4;
    background: var(--dark);
}

.footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.brand--footer {
    color: #fff;
}

.footer-bottom {
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aab5bc;
    font-size: 14px;
}

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

.gallery-item {
    margin: 0;
}

.gallery-item__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item__trigger:hover,
.gallery-item__trigger:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.gallery-item__trigger img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.gallery-item figcaption {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

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

.gallery-preview__item {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-preview__item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-preview__item:hover img {
    transform: scale(1.03);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 15, 28, 0.88);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__figure {
    max-width: min(1100px, 100%);
    margin: 0;
}

.lightbox__image {
    display: block;
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 12px;
}

.lightbox__caption {
    margin-top: 14px;
    color: #fff;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 980px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 126px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: flex;
    }

    .hero__grid,
    .split,
    .process,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: auto;
    }

    .feature-grid,
    .service-preview,
    .cards-grid,
    .project-grid,
    .stats-grid,
    .gallery-grid,
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-band__inner,
    .section-heading--row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .topbar__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .brand__text {
        font-size: 17px;
    }

    .hero__grid,
    .page-hero .container,
    .section {
        padding: 54px 0;
    }

    .feature-grid,
    .service-preview,
    .cards-grid,
    .project-grid,
    .stats-grid,
    .gallery-grid,
    .gallery-preview {
        grid-template-columns: 1fr;
    }

    .hero-card {
        position: static;
        margin-top: 16px;
        max-width: none;
    }
}
