:root {
    --primary: #0B1F3A;
    --primary-soft: #14345f;
    --accent: #F5A623;
    --accent-soft: #fff3dc;
    --text: #333333;
    --muted: #6f7b8a;
    --line: #e8edf4;
    --surface: #ffffff;
    --soft: #f6f8fb;
    --shadow: 0 24px 70px rgba(11, 31, 58, 0.12);
    --radius: 8px;
    --header: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: var(--header);
    transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(11, 31, 58, 0.08);
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0;
    z-index: 1002;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand span {
    display: none;
}

.home-page .brand span {
    display: none;
}

.nav-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(11, 31, 58, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1002;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle {
    gap: 5px;
}

.site-header.menu-open .nav-toggle span {
    opacity: 0;
}

.site-header.menu-open .nav-toggle::before {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 104px 28px 28px;
    background: #ffffff;
    box-shadow: -18px 0 60px rgba(11, 31, 58, 0.18);
    transform: translateX(105%);
    transition: transform 260ms ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-header.menu-open .site-nav {
    transform: translateX(0);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.site-header.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.site-nav a {
    padding: 14px 12px;
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 14px 30px rgba(245, 166, 35, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--line);
}

.section {
    padding: 76px 0;
}

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

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--primary);
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.55rem, 9vw, 5.6rem);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.55rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.lead {
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    color: var(--muted);
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #f7f9fc;
    color: #ffffff;
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 118px 0 70px;
    pointer-events: none;
}

.hero h1,
.hero .lead {
    color: #ffffff;
    max-width: 760px;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    margin-bottom: 10px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-intro {
    background: #ffffff;
    padding: 42px 0 64px;
}

.hero-intro-content {
    max-width: 820px;
    text-align: center;
}

.hero-intro h1 {
    font-size: clamp(2.1rem, 7vw, 4.2rem);
    margin-bottom: 10px;
}

.hero-intro .lead {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 22px;
    display: flex;
    gap: 10px;
}

.slider-btn,
.lightbox-btn,
.lightbox-close {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.62);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.grid {
    display: grid;
    gap: 18px;
}

.service-grid,
.product-grid,
.feature-grid,
.value-grid,
.contact-grid {
    grid-template-columns: 1fr;
}

.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(11, 31, 58, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(245, 166, 35, 0.38);
}

.card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-body {
    padding: 22px;
}

.icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.product-card .card-media {
    aspect-ratio: 1 / 1;
}

.why-card,
.value-card,
.contact-card {
    padding: 24px;
}

.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #ffffff;
    border-radius: var(--radius);
    padding: 46px 24px;
    display: grid;
    gap: 20px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cta::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -80px;
    border: 38px solid rgba(245, 166, 35, 0.24);
    border-radius: 50%;
}

.cta h2,
.cta p {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.page-hero {
    padding: 142px 0 70px;
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.64)), url("../img/robot.PNG") center / cover;
    color: #ffffff;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
    max-width: 760px;
}

.about-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 128px 0 72px;
    background: linear-gradient(rgba(11, 31, 58, 0.58), rgba(11, 31, 58, 0.66)), url("../img/7.jpeg") center / cover;
}

.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 126px 0 68px;
    background: linear-gradient(rgba(11, 31, 58, 0.54), rgba(11, 31, 58, 0.68)), url("../img/3.jpeg") center / cover;
}

.services-hero h1 {
    max-width: 720px;
}

.about-hero .container {
    max-width: min(1120px, calc(100% - 32px));
}

.about-hero h1 {
    max-width: 860px;
}

.about-intro .lead {
    color: var(--primary);
    font-weight: 600;
}

.premium-media {
    position: relative;
}

.premium-media::after {
    content: "";
    position: absolute;
    inset: auto 18px -18px auto;
    width: 42%;
    height: 42%;
    border: 12px solid rgba(245, 166, 35, 0.26);
    border-radius: var(--radius);
    z-index: -1;
}

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

.mission-card {
    padding: 30px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.services-showcase {
    padding-top: 64px;
}

.showcase-service {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
}

.showcase-media {
    width: min(100%, 430px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    justify-self: center;
    background: var(--soft);
}

.showcase-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 420ms ease;
}

.showcase-service:hover .showcase-media img {
    transform: scale(1.06);
}

.showcase-copy {
    max-width: 560px;
}

.showcase-copy h2 {
    font-size: clamp(1.75rem, 5vw, 2.55rem);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
    display: grid;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
}

.feature-list li::before {
    content: "\2713";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-badges span {
    border: 1px solid rgba(11, 31, 58, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    padding: 12px 18px;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(11, 31, 58, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tech-badges span:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.48);
    color: var(--accent);
}

.stats-section {
    background: var(--primary);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.stat-card strong {
    display: block;
    color: var(--accent);
    font-size: clamp(2.25rem, 8vw, 3.45rem);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
    font-weight: 700;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.gallery-preview-item {
    position: relative;
    min-height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(11, 31, 58, 0.12);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.gallery-preview-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.08), rgba(11, 31, 58, 0.72));
    opacity: 0.92;
    transition: opacity 220ms ease;
}

.gallery-preview-item span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    color: #ffffff;
    font-weight: 800;
}

.gallery-preview-item:hover {
    box-shadow: var(--shadow);
}

.gallery-preview-item:hover img {
    transform: scale(1.07);
}

.gallery-preview-item:hover::after {
    opacity: 1;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.services-cta {
    background: linear-gradient(135deg, #071629, var(--primary));
}

.split {
    display: grid;
    gap: 28px;
    align-items: center;
}

.split-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.service-row {
    padding: 28px 0;
}

.gallery-grid {
    columns: 1;
    column-gap: 18px;
}

.gallery-item {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    display: block;
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    break-inside: avoid;
    box-shadow: 0 14px 42px rgba(11, 31, 58, 0.12);
}

.gallery-item img {
    width: 100%;
    transition: transform 360ms ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 12, 24, 0.92);
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.contact-card a {
    color: var(--primary);
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form .card-body {
    display: grid;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 15px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.14);
}

.site-footer {
    background: #071629;
    color: rgba(255, 255, 255, 0.72);
    padding: 56px 0 22px;
}

.footer-grid {
    display: grid;
    gap: 30px;
}

.footer-brand img {
    width: 62px;
    margin-bottom: 18px;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 34px;
    padding-top: 20px;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 900;
    font-weight: 800;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-animate] {
    opacity: 0;
    transition: opacity 620ms ease, transform 620ms ease;
}

[data-animate="fade-up"] {
    transform: translateY(28px);
}

[data-animate="fade-left"] {
    transform: translateX(32px);
}

[data-animate="fade-right"] {
    transform: translateX(-32px);
}

[data-animate="zoom-in"] {
    transform: scale(0.94);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

@media (min-width: 560px) {
    .brand span {
        display: inline;
    }

    .home-page .brand span {
        display: none;
    }

    .service-grid,
    .product-grid,
    .feature-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        columns: 2;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 96px 0;
    }

    .hero-controls {
        right: 34px;
        bottom: 34px;
    }

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

    .mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-service {
        grid-template-columns: minmax(260px, 430px) 1fr;
        gap: 44px;
        padding: 40px 0;
    }

    .showcase-service.reverse {
        grid-template-columns: 1fr minmax(260px, 430px);
    }

    .showcase-service.reverse .showcase-media {
        order: 2;
    }

    .showcase-service.reverse .showcase-copy {
        justify-self: end;
    }

    .stats-grid,
    .gallery-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split.reverse .split-media {
        order: 2;
    }

    .cta {
        grid-template-columns: 1fr auto;
        padding: 58px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
    }

    .gallery-grid {
        columns: 3;
    }
}

@media (min-width: 980px) {
    .nav-toggle,
    .nav-backdrop {
        display: none;
    }

    .site-nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        flex-direction: row;
        align-items: center;
    }

    .site-nav a {
        padding: 10px 12px;
        background: transparent;
    }

    .site-nav a.active {
        background: transparent;
    }

    .home-page .nav-toggle {
        display: grid;
    }

    .home-page .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100vh;
        padding: 104px 28px 28px;
        background: #ffffff;
        box-shadow: -18px 0 60px rgba(11, 31, 58, 0.18);
        transform: translateX(105%);
        transition: transform 260ms ease;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .home-page .site-header.menu-open .site-nav {
        transform: translateX(0);
    }

    .home-page .nav-backdrop {
        display: block;
    }

    .home-page .site-nav a {
        padding: 14px 12px;
        background: transparent;
    }

    .home-page .site-nav a:hover,
    .home-page .site-nav a.active {
        background: var(--accent-soft);
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid,
    .gallery-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gallery-grid {
        columns: 4;
    }
}

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

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
