:root {
    --bg: #08162f;
    --line: rgba(255, 255, 255, 0.12);
    --ink: #eaf1ff;
    --ink-soft: rgba(234, 241, 255, 0.72);
    --text: #13233f;
    --text-soft: #5f6f86;
    --accent: #5ca6ff;
    --accent-2: #66d1c5;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(8, 22, 47, 0.24);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(92, 166, 255, 0.24), transparent 32%),
        linear-gradient(180deg, #08162f 0%, #0a1c39 22%, #eef3fa 22%, #eef3fa 100%);
}

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

button,
input,
textarea {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 22, 47, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #184f97, #0b2855);
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
}

.brand-copy small {
    color: var(--ink-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav > a,
.main-nav .nav-products-link {
    padding: 14px 20px;
    border-radius: 16px;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}

.main-nav > a:hover,
.main-nav > a:focus-visible,
.main-nav .nav-products-link:hover,
.main-nav .nav-products-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.main-nav .category-browse-shell {
    position: relative;
    width: auto;
}

.main-nav .nav-products-link {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
}

.main-nav .nav-category-menu {
    top: calc(100% - 4px);
    left: 50%;
    right: auto;
    width: min(780px, 88vw);
    transform: translate(-50%, 10px);
}

.main-nav .category-browse-shell:hover .nav-category-menu,
.main-nav .category-browse-shell:focus-within .nav-category-menu {
    transform: translate(-50%, 0);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--white);
}

.hero-section {
    padding: 72px 0 56px;
    color: var(--ink);
}

.hero-grid,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.hero-grid {
    align-items: stretch;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.about-section h2,
.contact-card h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-text,
.section-heading p,
.about-body,
.contact-card p {
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #07162f;
    background: linear-gradient(135deg, #66d1c5, #9ad2ff);
    box-shadow: 0 18px 36px rgba(102, 209, 197, 0.24);
}

.button.secondary {
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.hero-panel,
.hero-card-grid {
    display: grid;
    gap: 18px;
}

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

.hero-card {
    padding: 26px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-card-large {
    min-height: 260px;
    display: grid;
    align-content: end;
}

.hero-card h3,
.hero-card strong {
    margin: 12px 0 0;
    font-size: 24px;
    line-height: 1.3;
}

.hero-card p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.card-kicker {
    display: inline-block;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stats-section,
.section-block {
    padding: 72px 0;
}

.stats-section {
    padding-top: 0;
    padding-bottom: 32px;
}

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

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

.stat-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--ink);
}

.stat-card strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 34px;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--ink-soft);
    font-weight: 700;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 32px;
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2,
.about-section h2,
.contact-card h2 {
    color: #0c1c38;
    font-size: clamp(32px, 4vw, 48px);
}

.section-heading p,
.about-body,
.contact-card p {
    color: var(--text-soft);
}

.product-card,
.service-card,
.about-card,
.contact-card,
.quote-form {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(12, 28, 56, 0.06);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(12, 28, 56, 0.08);
}

.product-card-link {
    display: block;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-link:hover,
.product-card-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 28px 64px rgba(12, 28, 56, 0.12);
}

.product-card {
    overflow: hidden;
}

.product-visual {
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff, #edf3fb);
}

.product-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-visual-fallback,
.product-visual span,
.service-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: var(--white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.product-visual-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fbff, #edf3fb);
}

.product-body,
.service-card,
.about-card,
.contact-card,
.quote-form {
    padding: 26px;
}

.product-body h3,
.service-card h3,
.about-card h3 {
    margin: 0;
    color: #0c1c38;
    font-size: 24px;
    line-height: 1.3;
}

.product-body p,
.service-card p {
    margin: 14px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.category-card .product-body p:first-of-type {
    color: #0f3a75;
    font-weight: 800;
}

.category-card .product-body p:last-of-type {
    margin-top: 10px;
}

.category-visual {
    min-height: 180px;
}

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(92, 166, 255, 0.08);
    color: #184f97;
    font-size: 12px;
    font-weight: 800;
}

.catalog-empty {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed rgba(12, 28, 56, 0.16);
    color: var(--text-soft);
    font-weight: 700;
}

.product-note,
.about-card span,
.contact-list span,
.quote-form span {
    display: inline-block;
    color: #184f97;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-browse-shell {
    position: relative;
    width: min(420px, 100%);
}

.category-browse-toggle {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid rgba(12, 28, 56, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    color: #0c1c38;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(12, 28, 56, 0.08);
}

.category-browse-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(760px, 88vw);
    padding: 18px;
    display: grid;
    gap: 14px;
    border: 1px solid rgba(12, 28, 56, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 70px rgba(12, 28, 56, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.category-browse-shell:hover .category-browse-menu,
.category-browse-shell:focus-within .category-browse-menu,
.category-browse-shell.is-open .category-browse-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-group {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcff, #f3f7fd);
    border: 1px solid rgba(12, 28, 56, 0.06);
}

.category-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.category-group-title {
    color: #0c1c38;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.category-group-head span {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.category-group-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-group-links a,
.category-tree-parent,
.category-tree-children a {
    color: #0f3a75;
    font-weight: 700;
}

.category-group-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(92, 166, 255, 0.16);
}

.category-empty {
    color: var(--text-soft);
    font-weight: 700;
}

.about-section {
    background:
        linear-gradient(180deg, rgba(8, 22, 47, 0.03), rgba(8, 22, 47, 0.03)),
        linear-gradient(135deg, rgba(102, 209, 197, 0.08), rgba(92, 166, 255, 0.04));
}

.about-highlight {
    color: #0f3a75;
    font-size: 20px;
    font-weight: 700;
}

.about-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
    line-height: 1.8;
}

.service-card {
    min-height: 220px;
}

.service-icon {
    background: linear-gradient(135deg, #174b92, #4e9fff);
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.contact-list strong {
    display: block;
    margin-top: 8px;
    color: #0c1c38;
    line-height: 1.7;
}

.quote-form {
    display: grid;
    gap: 18px;
}

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

.quote-form label {
    display: grid;
    gap: 10px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    border: 1px solid rgba(12, 28, 56, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
    background: #f8fbff;
    color: #0c1c38;
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: 2px solid rgba(92, 166, 255, 0.25);
    border-color: #5ca6ff;
}

.form-button {
    border: 0;
    cursor: pointer;
}

.form-feedback {
    min-height: 24px;
    margin: 0;
    color: #184f97;
    font-weight: 700;
}

.site-footer {
    padding: 28px 0 42px;
    background: #08162f;
    color: var(--ink);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-shell strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.footer-shell p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--ink-soft);
    font-weight: 700;
}

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

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(8, 22, 47, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

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

    .main-nav .category-browse-shell {
        width: 100%;
    }

    .main-nav .nav-products-link {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav .nav-category-menu {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .main-nav .category-browse-shell:hover .nav-category-menu,
    .main-nav .category-browse-shell:focus-within .nav-category-menu {
        display: grid;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .stats-grid,
    .product-grid,
    .service-grid,
    .field-row,
    .hero-card-grid,
    .section-heading-row {
        grid-template-columns: 1fr;
    }

    .section-heading-row {
        display: grid;
    }

    .category-browse-shell {
        width: 100%;
    }

    .category-browse-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .section-block,
    .hero-section {
        padding: 56px 0;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}
