:root {
    --brand: #3c8fb6;
    --brand-dark: #2d6e8e;
    --ink: #111827;
    --muted: #657184;
    --line: #e5edf3;
    --soft: #f7fbfd;
    --panel: #ffffff;
    --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
}

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

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

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

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    transform: translateY(-110%);
    padding: 12px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(60, 143, 182, 0.08);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #364152;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:not(.nav-cta):hover,
.mobile-menu a:not(.nav-cta):hover {
    color: var(--brand);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
}

.nav-cta {
    padding: 10px 18px;
    color: #fff;
    background: var(--brand);
}

.button {
    padding: 14px 24px;
    border: 1px solid transparent;
}

.button.primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 28px rgba(60, 143, 182, 0.24);
}

.button.primary:hover {
    background: var(--brand-dark);
}

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

.button.full {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #eef7fb;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.mobile-menu {
    display: none;
}

.hero {
    min-height: 760px;
    padding: 130px 0 88px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, #f8fdff 0%, #fff 76%),
        radial-gradient(circle at 72% 20%, rgba(60, 143, 182, 0.12), transparent 34%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 64px;
    align-items: center;
}

.section-label {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 6px 12px;
    border: 1px solid rgba(60, 143, 182, 0.18);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf8fc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 span,
.stat strong {
    color: var(--brand);
}

.hero-text {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.7;
}

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

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.trust-row span::before,
.project-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.hero-media {
    position: relative;
}

.hero-media > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-card {
    position: absolute;
    left: -28px;
    bottom: -34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: min(340px, calc(100% - 20px));
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-card p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-card strong {
    display: block;
    color: var(--brand);
    font-size: 28px;
}

.hero-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.section {
    padding: 104px 0;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: 0;
}

.section-head p:last-child {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

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

.project-card,
.portfolio-card,
.contact-form,
.contact-card,
.map-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.project-card {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-top: 4px solid var(--brand);
}

.project-badge {
    align-self: flex-start;
    margin: 0 0 20px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf8fc;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #edf8fc;
    border-radius: 8px;
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon.small {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.project-card h3,
.contact-card h3 {
    margin: 22px 0 10px;
    font-size: 22px;
}

.project-card p:not(.project-badge) {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.project-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.project-card a {
    margin-top: auto;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 900;
}

.stats {
    padding: 50px 0;
    border-block: 1px solid var(--line);
    background: #fff;
}

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

.stat {
    text-align: center;
    padding: 18px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.portfolio-section,
.contact-section {
    background: var(--soft);
}

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

.portfolio-card {
    overflow: hidden;
}

.window-bar {
    min-height: 46px;
    display: grid;
    grid-template-columns: repeat(3, 12px) 1fr;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-bar span:nth-child(1) {
    background: #ff5f56;
}

.window-bar span:nth-child(2) {
    background: #ffbd2e;
}

.window-bar span:nth-child(3) {
    background: #27c93f;
}

.window-bar em {
    justify-self: center;
    color: #95a1b2;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.portfolio-image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    padding: 32px;
    background: #fff;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.refs-section {
    background: #fff;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    width: max-content;
    display: flex;
    animation: marquee 34s linear infinite;
}

.marquee-item {
    width: 260px;
    height: 120px;
    display: grid;
    place-items: center;
    padding: 16px;
}

.marquee-item img {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7);
}

.contact-form {
    width: min(760px, 100%);
    margin: 0 auto 48px;
    padding: 34px;
}

.contact-form h3 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: #5f6b7c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d9e1e8;
    border-radius: 0;
    padding: 12px 2px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    text-transform: none;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--brand);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    gap: 18px;
    padding: 26px;
}

.contact-card h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.contact-card p,
.contact-card a {
    display: block;
    margin: 2px 0;
    font-weight: 900;
    line-height: 1.45;
}

.map-card {
    overflow: hidden;
    height: 390px;
}

.map-loader {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    background: #e8eef4;
}

.map-loader img,
.map-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
}

.map-loader span {
    position: relative;
    z-index: 1;
    padding: 14px 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 900;
}

.site-footer {
    padding: 46px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-wrap {
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

.footer-wrap img {
    height: 40px;
    width: auto;
}

.footer-wrap nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 800;
}

.footer-wrap p {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-wrap small {
    max-width: 820px;
    color: #9ca3af;
    line-height: 1.7;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .hero {
        padding-top: 110px;
    }

    .hero-grid,
    .project-grid,
    .portfolio-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        gap: 48px;
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu.open {
        display: grid;
        gap: 10px;
        padding: 10px 20px 18px;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        font-weight: 800;
    }

    .mobile-menu .nav-cta {
        color: #fff;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 70px;
    }

    .hero-grid,
    .project-grid,
    .portfolio-grid,
    .stats-grid,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-card {
        position: static;
        margin: 16px auto 0;
        width: 100%;
    }

    .section {
        padding: 74px 0;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .contact-form {
        padding: 24px;
    }

    .map-card {
        height: 320px;
    }
}
