@font-face {
    font-family: "Fixel";
    src: url("/assets/fonts/FixelVariable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #252527;
    --bg-second: #18181B;
    --bg-soft: #10161d;
    --panel: #141d26;
    --panel-2: #18222d;
    --line: rgba(255,255,255,.09);
    --text: #edf3f8;
    --muted: #a6b3bf;
    --accent: #CBFB45;
    --accent-2: #8aa0b4;
    --success: #1e8e5a;
    --error: #9c3d3d;
    --shadow: 0 24px 60px rgba(0,0,0,.26);
    --radius: 20px;
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family:  "Fixel", Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 6vw, 3.0rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}
.narrow { width: min(860px, calc(100% - 40px)); }
.section { padding: 60px 0; }
.section-tight { padding: 60px 0px; }
.section-dark { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--bg-second); }
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 700;
}
.muted { color: var(--muted); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(37,37,39,.75);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.site-logo img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}
.logo-mark {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), #7e8fa0);
    box-shadow: 0 0 24px rgba(208,161,94,.35);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    font-weight: 500;
}
.main-nav a.active,
.main-nav a:hover { }
.nav-cta { margin-left: 8px; }
.burger {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(7,11,15,.88) 0%, rgba(7,11,15,.66) 46%, rgba(7,11,15,.34) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.52) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 90px;
    max-width: 820px;
}
.hero-text {
    font-size: 1.12rem;
    color: #cdd7df;
    max-width: 720px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.page-hero {
    padding: 90px 0 30px;
}

.hero-contacts {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-contacts-video,
.hero-contacts-overlay {
    position: absolute;
    inset: 0;
}
.hero-contacts-video {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
.hero-contacts-overlay {
    background:
        linear-gradient(90deg, rgba(7,11,15,.88) 0%, rgba(7,11,15,.66) 46%, rgba(7,11,15,.34) 100%),
        linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.52) 100%);
    height: 600px;
}
.hero-contacts-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 90px;
    max-width: 820px;
}
.hero-contacts-text {
    font-size: 1.12rem;
    color: #cdd7df;
    max-width: 720px;
}
.hero-contacts-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent);
    color: #111;
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,.14);
}
.text-link {
    color: var(--accent);
    font-weight: 700;
}

.stats-grid,
.cards-grid,
.benefits-grid,
.case-grid {
    display: grid;
    gap: 20px;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.benefits-grid { grid-template-columns: repeat(2, 1fr); }
.case-grid { grid-template-columns: repeat(3, 1fr); }

.stat-card,
.card,
.benefit-card,
.case-card,
.contact-card,
.cta-box {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.case-card, .benefit-card {padding: 18px;}

.stat-card { padding: 28px; }
.stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-label { color: var(--muted); }

.card { padding: 28px; }
.card p { color: #c7d1d9; }
.card-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
}
.project-meta { color: var(--muted); font-size: .96rem; }
.service-card-large,
.project-card-large { min-height: 100%; }

.project-card img {margin-bottom: 16px}

.section-head,
.split {
    display: grid;
    gap: 30px;
    align-items: start;
}
.section-head {
    grid-template-columns: 1fr auto;
    margin-bottom: 28px;
}
.split-2 { grid-template-columns: 1fr 1fr; }

.section-services {
    background-image: url("/assets/img/blueprint.png");
    background-repeat: no-repeat;
    background-position: left bottom;
}

.timeline { display: grid; gap: 14px; }
.timeline-item,
.list-row {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
}
.timeline-item span {
    display: inline-flex;
    min-width: 42px;
    margin-right: 10px;
    color: var(--accent);
    font-weight: 800;
}

.clean-list {
    margin: 0;
    padding-left: 20px;
    color: #d6dde4;
}
.clean-list li { margin-bottom: 10px; }

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
}
.cta-box-light { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}
.contact-card { padding: 30px; }
.contact-item { margin-bottom: 16px; color: #dce4ea; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form span { color: var(--muted); font-size: .92rem; }


.contact-cta-text {
    max-width: 800px;
}

input, textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: #4f4f4f;
    color: var(--text);
    padding: 14px 16px;
    outline: none;
}
input:focus, textarea:focus {
    border-color: rgba(208,161,94,.8);
    box-shadow: 0 0 0 3px rgba(208,161,94,.12);
}
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}
.alert-success { background: rgba(30,142,90,.14); border: 1px solid rgba(30,142,90,.45); }
.alert-error { background: rgba(156,61,61,.16); border: 1px solid rgba(156,61,61,.45); }

.site-footer {
    padding: 56px 0 26px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 26px;
}
.footer-brand,
.footer-title {
    font-weight: 800;
    margin-bottom: 12px;
}
.site-footer a,
.site-footer p,
.site-footer span { color: var(--muted); }
.site-footer a { display: block; margin-bottom: 10px; }
.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 980px) {
    .stats-grid,
    .cards-grid-3,
    .cards-grid-2,
    .benefits-grid,
    .split-2,
    .contact-layout,
    .footer-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    .site-logo img {
        height: 44px;
        max-width: 180px;
    }
    .main-nav {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        background: rgba(11,17,23,.96);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .burger { display: block; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 70px 0; }
    .hero-content { padding-top: 110px; }
    .container, .narrow { width: min(var(--container), calc(100% - 28px)); }
    .card, .contact-card, .stat-card { padding: 22px; }
}
