:root {
    --primary: #07254a;
    --primary-dark: #04172f;
    --secondary: #c8943f;
    --light: #f4f7fb;
    --soft: #e8eef5;
    --text: #243244;
    --muted: #667488;
    --white: #ffffff;
    --max-page: 1440px;
    --max-content: 1200px;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(7, 37, 74, .14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    line-height: 1.7;
}

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

a {
    color: inherit;
}

.container {
    width: min(92%, var(--max-content));
    margin: 0 auto;
}

.narrow {
    max-width: 920px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 37, 74, .94);
    backdrop-filter: blur(16px);
    color: var(--white);
    transition: box-shadow .25s ease, background .25s ease;
}

.navbar-scrolled {
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
    background: rgba(4, 23, 47, .98);
}

.nav-inner {
    width: min(92%, var(--max-page));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-weight: 800;
    letter-spacing: .14em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: .95rem;
    opacity: .9;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    padding: 24px 0 0;
}

.hero-frame {
    width: min(96%, var(--max-page));
    margin: 0 auto;
    border-radius: 0 0 34px 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--primary);
}

.hero-frame img {
    width: 100%;
    height: auto;
}

.kpi-section {
    padding: 36px 0 20px;
}

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

.kpi-card {
    background: var(--white);
    border: 1px solid rgba(7, 37, 74, .08);
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(7, 37, 74, .07);
}

.kpi-card strong {
    display: block;
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.kpi-card span {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    font-size: .95rem;
}

.intro {
    padding: 82px 0 60px;
    text-align: center;
}

.eyebrow {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
    font-size: .78rem;
    margin-bottom: 14px;
}

h1, h2 {
    color: var(--primary);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    margin-bottom: 28px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
}

.intro p,
.section-text,
.about p,
.contact p {
    font-size: 1.14rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.services {
    width: min(92%, var(--max-content));
    margin: 0 auto;
    display: grid;
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 42px;
    align-items: start;
    background: var(--white);
    border: 1px solid rgba(7, 37, 74, .08);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 58px);
    box-shadow: 0 18px 60px rgba(7, 37, 74, .08);
}

.service-card.accent {
    background: linear-gradient(135deg, var(--primary) 0%, #0c3b74 100%);
    color: var(--white);
}

.service-card.accent h2,
.service-card.accent p,
.service-card.accent li {
    color: var(--white);
}

.service-card.accent .eyebrow {
    color: #f0c16c;
}

.service-icon {
    width: 128px;
    height: 128px;
    border-radius: 30px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.service-card.accent .service-icon {
    background: rgba(255, 255, 255, .12);
}

.service-content p {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 24px;
}

.service-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    padding-left: 20px;
}

.service-content li::marker {
    color: var(--secondary);
}

.process,
.integrations,
.tech,
.about,
.contact {
    padding: 96px 0;
}

.process h2,
.integrations h2,
.tech h2 {
    max-width: 880px;
}

.process-graphic {
    margin-top: 42px;
    background: radial-gradient(circle at 50% 20%, #123f77, var(--primary-dark));
    border-radius: 30px;
    padding: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.process-graphic svg {
    width: 100%;
    height: auto;
}

.node rect {
    fill: rgba(255, 255, 255, .11);
    stroke: rgba(255, 255, 255, .35);
    stroke-width: 2;
}

.node.main rect,
.node.erp rect {
    fill: rgba(200, 148, 63, .22);
    stroke: rgba(240, 193, 108, .85);
}

.node text {
    fill: white;
    font-size: 21px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.flow-line {
    fill: none;
    stroke: rgba(240, 193, 108, .85);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 12 16;
    animation: flow 1.8s linear infinite;
}

.flow-line.strong {
    stroke-width: 6;
}

#arrow path {
    fill: rgba(240, 193, 108, .95);
}

@keyframes flow {
    from { stroke-dashoffset: 60; }
    to { stroke-dashoffset: 0; }
}

.integrations {
    background: var(--light);
}

.logo-grid,
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.logo-grid span,
.tech-grid div {
    background: var(--white);
    border: 1px solid rgba(7, 37, 74, .08);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 10px 28px rgba(7, 37, 74, .06);
}

.about {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.about h2,
.about p {
    color: var(--white);
}

.contact {
    text-align: center;
}

.button {
    display: inline-flex;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(200, 148, 63, .28);
    transition: transform .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--primary);
}

.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .75s ease, transform .75s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all .25s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-content ul {
        grid-template-columns: 1fr;
    }

    .process-graphic {
        padding: 12px;
        overflow-x: auto;
    }

    .process-graphic svg {
        min-width: 820px;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 4%;
        background: var(--primary-dark);
    }

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

    .hero {
        padding-top: 10px;
    }

    .hero-frame {
        width: 100%;
        border-radius: 0 0 22px 22px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .intro,
    .process,
    .integrations,
    .tech,
    .about,
    .contact {
        padding: 64px 0;
    }

    .service-icon {
        width: 96px;
        height: 96px;
    }
}
