:root {
    --black: #121212;
    --black-soft: #191918;
    --panel: #20201e;
    --paper: #f7f2e8;
    --cream: #efe3cf;
    --gold: #d4aa55;
    --gold-light: #f1cd76;
    --text: #f9f4e9;
    --muted: #c8c0b4;
    --brown: #3a2218;
    --line: rgba(241, 205, 118, 0.22);
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--black);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.5;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-container,
.container {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(18, 18, 18, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 34px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-weight: 900;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--black);
    font-family: Georgia, serif;
    font-size: 1.65rem;
    line-height: 1;
}

.brand-text {
    letter-spacing: 0.22em;
    font-size: 1rem;
    color: #fff;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 36px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 800;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-light);
}

.header-contact,
.btn,
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.header-contact,
.btn-primary,
.button-primary {
    color: #241708;
    background: linear-gradient(180deg, #f0cf7f, var(--gold));
    box-shadow: 0 16px 38px rgba(212, 170, 85, 0.24);
}

.button-secondary {
    border-color: var(--line);
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    padding: 11px;
}

.nav-toggle-line {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.visual-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: var(--black);
}

.hero-slider {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    z-index: 0;
}

.hero-slide {
    position: relative;
    margin: 0;
    overflow: hidden;
    transform: skewX(-7deg);
    transform-origin: center;
    border-right: 3px solid rgba(241, 205, 118, 0.35);
}

.hero-slide:first-child {
    margin-left: -90px;
}

.hero-slide:last-child {
    margin-right: -90px;
    border-right: 0;
}

.hero-slide img {
    width: calc(100% + 160px);
    height: 100%;
    object-fit: cover;
    transform: skewX(7deg);
    transform-origin: center;
    margin-left: -80px;
    filter: saturate(1.08) contrast(1.06) brightness(1.16);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.hero-slide.is-active img {
    transform: skewX(7deg) scale(1.035);
    filter: saturate(1.14) contrast(1.08) brightness(1.22);
}

.hero-slide figcaption {
    position: absolute;
    left: -999px;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.33) 42%, rgba(0, 0, 0, 0.16) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.36));
}

.hero-message {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.hero-message h1 {
    max-width: 790px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.2rem, 7vw, 6.9rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-message p {
    max-width: 650px;
    margin: 28px 0 38px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.catalogue-trust {
    background: var(--black-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 190px;
    align-items: center;
}

.trust-grid article {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 9px;
    padding: 32px 20px;
}

.trust-icon {
    width: 42px;
    height: 42px;
    color: var(--gold-light);
}

.trust-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-grid h2 {
    margin: 8px 0 0;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
}

.trust-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding: 96px 0;
}

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

.section-heading p,
.section-label {
    margin: 0 0 14px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 900;
}

.section-heading h2,
.split-dark h2,
.contact-panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.visual-products,
.projects-visual {
    background: #161614;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.visual-grid article {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: var(--panel);
}

.visual-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.visual-grid article:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.visual-grid div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.visual-grid h3,
.visual-grid p {
    margin: 0;
}

.visual-grid h3 {
    color: #fff;
    font-size: 1.15rem;
}

.visual-grid p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.sectors-dark {
    background: var(--black);
}

.split-dark {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: 70px;
    align-items: center;
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sector-tags span {
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
}

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

.project-numbers article {
    min-height: 230px;
    display: grid;
    align-content: end;
    padding: 28px;
    background: linear-gradient(160deg, rgba(212, 170, 85, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--line);
}

.project-numbers strong {
    color: var(--gold-light);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
}

.project-numbers span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.contact-cta {
    background: var(--black-soft);
}

.contact-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 46px;
    background: #10100f;
    border: 1px solid var(--line);
}

.contact-panel p:not(.section-label) {
    margin: 16px 0 0;
    color: var(--muted);
}

.site-footer {
    padding: 56px 0 28px;
    background: #0f0f0e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-label {
    margin-bottom: 12px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 900;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero,
.section-contact,
.section-quality {
    background: var(--black);
}

.page-hero {
    padding: 92px 0;
}

.page-hero .lead,
.intro-text,
.quality-grid p,
.contact-info p,
.service-detail-list p,
.timeline p,
.service-list p,
.market-grid p {
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--line);
    background: #161614;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: #111;
    padding: 14px 15px;
}

@media (max-width: 1040px) {
    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
        order: 3;
    }

    .header-contact {
        display: inline-flex;
        flex: 0 0 auto;
        order: 2;
        min-height: 40px;
        padding: 0 16px;
        margin-right: 8px;
        border-radius: 999px;
        font-size: 0.78rem;
    }

    .nav-menu {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        display: grid;
        justify-content: stretch;
        gap: 0;
        padding: 10px 22px 26px;
        background: var(--black);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .visual-grid,
    .trust-grid,
    .project-numbers,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-dark {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-container,
    .container {
        width: min(100% - 28px, 1240px);
    }

    .header-inner {
        min-height: 72px;
        gap: 10px;
    }

    .brand {
        gap: 12px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        white-space: nowrap;
    }

    .header-contact {
        min-height: 34px;
        padding: 0 12px;
        margin-right: 2px;
        font-size: 0.72rem;
        box-shadow: none;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .nav-menu {
        top: 72px;
    }

    .visual-hero,
    .hero-message {
        min-height: calc(100svh - 72px);
    }

    .visual-hero {
        display: block;
        overflow: hidden;
    }

    .hero-slider {
        position: absolute;
        inset: 0;
        grid-template-columns: repeat(4, 72vw);
        transform: translateX(-52vw);
    }

    .hero-slide {
        transform: skewX(-5deg);
    }

    .hero-slide img {
        transform: skewX(5deg);
    }

    .hero-slide.is-active img {
        transform: skewX(5deg) scale(1.035);
    }

    .visual-overlay {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.22) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
    }

    .hero-message {
        position: relative;
        z-index: 3;
        justify-content: center;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 34px;
    }

    .hero-message h1 {
        max-width: 92vw;
        font-size: clamp(3rem, 14.5vw, 4.7rem);
        line-height: 0.96;
    }

    .hero-message p {
        max-width: 92%;
        margin: 22px 0 30px;
        font-size: 1.06rem;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.9);
    }

    .visual-grid,
    .trust-grid,
    .project-numbers,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .visual-grid article {
        min-height: 430px;
    }

    .contact-panel {
        display: grid;
        padding: 28px;
    }

    .section {
        padding: 72px 0;
    }
}
