:root {
    --navy: #07152f;
    --navy-2: #0d244a;
    --blue: #0f72d8;
    --cyan: #27b7e8;
    --steel: #5f6f86;
    --line: #dbe5ef;
    --soft: #f4f8fc;
    --white: #ffffff;
    --accent: #f2a51a;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(7, 21, 47, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand img {
    width: 172px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
    color: #20324d;
}

.main-nav a {
    padding: 10px 0;
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav-cta,
.btn--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #064c9a);
}

.btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .45);
}

.btn--ghost-dark {
    color: var(--navy);
    border-color: var(--line);
}

.btn--light {
    color: var(--navy);
    background: var(--white);
}

.btn:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--navy);
}

.hero__slide {
    display: none;
    min-height: 640px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(7, 21, 47, .95), rgba(7, 21, 47, .72), rgba(7, 21, 47, .34)),
        var(--hero-image) center / cover no-repeat;
}

.hero__slide.is-active {
    display: flex;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: center;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 16px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p,
.page-hero p,
.detail-hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .84);
    font-size: 19px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__panel {
    align-self: end;
    margin-bottom: 70px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.hero__panel strong {
    display: block;
    color: var(--accent);
    font-size: 48px;
    line-height: 1;
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dots button {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .4);
}

.hero__dots button.is-active {
    background: var(--accent);
}

.section {
    padding: 86px 0;
}

.section--tint {
    background: var(--soft);
}

.section--dark {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(7, 21, 47, .98), rgba(11, 43, 87, .96)),
        url("../images/tech-grid.svg") center / cover;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section__head h2 {
    max-width: 720px;
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: 0;
}

.section__head a {
    color: var(--blue);
    font-weight: 800;
}

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

.service-card,
.feature-card,
.reference-card,
.side-panel,
.form-card,
.contact-info {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(7, 21, 47, .06);
}

.service-card {
    min-height: 220px;
    padding: 26px;
    transition: transform .2s ease, border-color .2s ease;
}

.service-card:hover,
.feature-card:hover {
    border-color: rgba(15, 114, 216, .45);
    transform: translateY(-4px);
}

.service-card span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--navy-2);
    font-weight: 900;
}

.service-card h3,
.feature-card h3 {
    margin: 20px 0 8px;
    font-size: 21px;
    line-height: 1.25;
}

.service-card p,
.feature-card p {
    margin: 0;
    color: var(--steel);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 54px;
    align-items: center;
}

.split h2 {
    margin: 10px 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.check-list span {
    padding: 14px;
    border-left: 3px solid var(--blue);
    background: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stats div {
    padding: 24px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(145deg, var(--navy), var(--blue));
}

.stats strong {
    display: block;
    font-size: 42px;
    line-height: 1;
}

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

.card-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--soft);
}

.feature-card div {
    padding: 22px;
}

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

.industry-grid a {
    display: grid;
    min-height: 138px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .07);
    font-weight: 900;
}

.industry-grid span {
    align-self: end;
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.logo-row div {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--steel);
    background: var(--white);
    font-weight: 900;
}

.cta {
    padding: 58px 0;
    color: var(--white);
    background: linear-gradient(135deg, #064c9a, #07152f);
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta h2 {
    max-width: 780px;
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.14;
}

.breadcrumb-wrap {
    padding: 14px 0;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--steel);
}

.page-hero,
.detail-hero {
    padding: 96px 0;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(7, 21, 47, .96), rgba(10, 51, 101, .84)),
        url("../images/hero-automation.svg") center / cover no-repeat;
}

.detail-hero {
    background:
        linear-gradient(135deg, rgba(7, 21, 47, .94), rgba(10, 51, 101, .78)),
        var(--detail-image) center / cover no-repeat;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: start;
}

.prose {
    color: #253551;
    font-size: 17px;
}

.prose h2,
.prose h3 {
    color: var(--navy);
}

.side-panel {
    position: sticky;
    top: 124px;
    padding: 24px;
}

.side-panel h3 {
    margin-top: 0;
}

.side-panel .btn {
    width: 100%;
    margin-top: 10px;
}

.meta-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.meta-strip span {
    padding: 12px;
    border-radius: var(--radius);
    background: var(--soft);
    font-weight: 700;
}

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

.reference-card {
    padding: 22px;
    text-align: center;
}

.reference-card img {
    max-height: 78px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.document-list {
    display: grid;
    gap: 12px;
}

.document-list a {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.document-list span {
    color: var(--steel);
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 12px;
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
}

.contact-info,
.form-card {
    padding: 26px;
}

.contact-info a,
.contact-info span {
    display: block;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 800;
}

.form-card {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 7px;
    color: #253551;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #172235;
    font: inherit;
    background: var(--white);
}

textarea {
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
}

.map {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.narrow {
    max-width: 860px;
}

.flash {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: #e9f7ef;
    color: #0f6037;
    font-weight: 800;
}

.flash--error {
    background: #fff0f0;
    color: #9b1c1c;
}

.maintenance-page {
    min-height: 100vh;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(7, 21, 47, .96), rgba(10, 51, 101, .86)),
        url("../images/hero-automation.svg") center / cover no-repeat;
}

.maintenance {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.maintenance__card {
    width: min(680px, 100%);
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    background: rgba(7, 21, 47, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.maintenance__card img {
    width: 180px;
    margin-bottom: 30px;
}

.maintenance__card h1 {
    margin: 12px 0 16px;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.06;
    letter-spacing: 0;
}

.maintenance__card p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.maintenance__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.maintenance__contact a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 800;
}

.footer {
    color: rgba(255, 255, 255, .78);
    background: #061226;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 58px 0;
}

.footer__logo {
    width: 170px;
    margin-bottom: 18px;
}

.footer h3 {
    margin-top: 0;
    color: var(--white);
}

.footer a {
    display: block;
    margin: 9px 0;
}

.footer__quote {
    color: var(--accent);
    font-weight: 900;
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.footer__bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
}

@media (max-width: 980px) {
    .topbar__inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

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

    .hero,
    .hero__slide {
        min-height: 620px;
    }

    .hero__inner,
    .split,
    .content-layout,
    .contact-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .hero__panel {
        align-self: start;
        margin-bottom: 0;
    }

    .service-grid,
    .card-grid,
    .industry-grid,
    .reference-grid,
    .gallery-grid,
    .logo-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-panel {
        position: static;
    }
}

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

    .brand img {
        width: 144px;
    }

    .hero h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 36px;
    }

    .hero p,
    .page-hero p,
    .detail-hero p {
        font-size: 16px;
    }

    .section {
        padding: 58px 0;
    }

    .section__head,
    .cta__inner {
        display: grid;
    }

    .service-grid,
    .card-grid,
    .industry-grid,
    .reference-grid,
    .gallery-grid,
    .logo-row,
    .form-grid,
    .check-list,
    .stats,
    .meta-strip {
        grid-template-columns: 1fr;
    }
}
