:root {
    --bg: #0b0f19;
    --bg-2: #0e1424;
    --card: #111528;
    --line: #1b2442;
    --text: #e8ebf5;
    --muted: #a5afc2;
    --acc: #5b8cff;
    --acc-2: #22c55e;
    --r: 18px;
    --shadow: 0 16px 40px rgba(0,0,0,.35)
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

html, body {
    margin: 0;
    background: linear-gradient(160deg,var(--bg) 0%,var(--bg-2) 60%,var(--bg) 100%);
    color: var(--text);
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif
}

a {
    color: var(--text);
    text-decoration: none
}

    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
        outline: 2px solid #8aa9ff;
        outline-offset: 2px;
        border-radius: 10px
    }

img {
    max-width: 100%;
    display: block
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,15,25,.78);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid rgba(27,36,66,.6)
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800
}

.logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--acc),#8aa9ff);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    font-size: 18px
}

.logo-text {
    letter-spacing: .2px
}

.logo-accent {
    color: #9db6ff
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px
}

    .nav a {
        opacity: .92;
        transition: .2s
    }

        .nav a:hover {
            opacity: 1;
            transform: translateY(-1px)
        }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: .2s
}

    .btn:hover {
        transform: translateY(-1px);
        opacity: .97
    }

.btn-primary {
    background: var(--acc);
    color: #fff;
    box-shadow: var(--shadow)
}

.btn-ghost {
    background: transparent;
    border-color: #273255
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid #273255;
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--text)
}

/* Hero */
.hero {
    padding: 44px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center
}

.tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    border: 1px solid #273255;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 12px
}

h1 {
    font-size: 42px;
    line-height: 1.12;
    margin: .2em 0 .4em
}

.lead {
    color: var(--muted);
    font-size: 18px
}

.card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg,#121a33,#0d1326);
    border-radius: var(--r);
    box-shadow: var(--shadow)
}

.hero-visual {
    aspect-ratio: 4/3;
    overflow: hidden
}

    .hero-visual canvas {
        width: 100%;
        height: 100%;
        display: block;
        background: radial-gradient(1200px 400px at 20% 20%,rgba(91,140,255,.22),transparent), radial-gradient(800px 300px at 80% 80%, rgba(34,197,94,.18), transparent)
    }

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px
}

.bullets {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding-left: 20px
}

    .bullets li {
        color: var(--muted)
    }

/* Sections */
.section {
    padding: 40px 0
}

.h2 {
    font-size: 28px;
    margin: 0 0 16px
}

.grid {
    display: grid;
    gap: 18px
}

.cards {
    grid-template-columns: repeat(3,1fr)
}

.product {
    padding: 18px;
    transition: .2s
}

    .product .thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 180px;
        border: 1px solid #ccc;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
        margin-bottom: 12px;
        transition: all 0.2s ease-in-out;
    }

        .product .thumb img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            padding: 4px;
            display: block;
            transform: scale(1.08);
        }

        .product .thumb:hover {
            border-color: #999;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            transform: scale(1.02);
        }

    .product h3 {
        margin: .2em 0
    }

.pill {
    display: inline-block;
    font-size: 12px;
    color: #c9d3ff;
    border: 1px solid #2a3354;
    border-radius: 999px;
    padding: 4px 8px;
    margin-top: 8px
}

/* Stats */
.stats {
    padding: 16px 0 40px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    padding: 18px
}

.stat {
    font-size: 28px;
    font-weight: 800
}

.muted {
    color: var(--muted)
}

/* Industries */
.industries {
    grid-template-columns: repeat(3,1fr)
}

.ind {
    padding: 18px
}

/* Contact/RFQ */
.contact {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    padding: 22px
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

    .form input, .form textarea {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #273255;
        background: #0b1122;
        color: var(--text)
    }

        .form input::placeholder, .form textarea::placeholder {
            color: #8b95aa
        }

    .form textarea {
        min-height: 120px;
        grid-column: 1/-1;
        resize: vertical
    }

    .form button {
        grid-column: 1/-1
    }

.contact-side {
    display: grid;
    align-content: start;
    gap: 12px
}

.tip {
    background: #0d162e;
    border: 1px solid #21315a;
    border-radius: 12px;
    padding: 12px
}

.checks {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(10,14,25,.8);
    backdrop-filter: saturate(1.2) blur(10px);
    margin-top: 60px;
    padding: 40px 0 20px;
    font-size: 15px;
    color: var(--text)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

    .footer-grid h4 {
        font-size: 16px;
        margin: 0 0 10px;
        font-weight: 600;
    }

    .footer-grid ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 6px;
    }

    .footer-grid a {
        color: var(--muted);
        transition: .2s;
    }

        .footer-grid a:hover {
            color: var(--acc);
        }

.footer-brand p {
    margin: 6px 0;
}

.footer-brand .logo img {
    display: block;
    margin-bottom: 10px;
}

.footer-req ul li,
.footer-contacts ul li {
    color: var(--muted);
}

@media (max-width:980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width:640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        text-align: center
    }
}

/* A11y */
.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    .skip:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 8px;
        background: #000;
        color: #fff
    }

/* Responsive */
@media (max-width:980px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .cards, .industries, .stats-grid, .form {
        grid-template-columns: 1fr
    }

    .contact {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .menu-btn {
        display: inline-flex
    }

    .nav {
        position: absolute;
        right: 20px;
        top: 64px;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--line);
        background: #0c1121;
        border-radius: 14px;
        display: none
    }

        .nav.open {
            display: flex
        }
}
.product-details {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 10px;
}

.gallery-main {
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

    .gallery-main img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: opacity .15s;
    }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(72px,1fr));
    gap: 10px;
}

.thumb-btn {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .05s;
}

    .thumb-btn img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        pointer-events: none;
    }

    .thumb-btn:hover {
        border-color: #bbb;
        box-shadow: 0 2px 6px rgba(0,0,0,.08)
    }

    .thumb-btn.is-active {
        border-color: #7aa2ff;
        box-shadow: 0 0 0 2px rgba(122,162,255,.25)
    }

@media (max-width:980px) {
    .product-details {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        min-height: 280px;
    }
}

/* ---- Тёмная панель/таблица Support (совпадает с Category) ---- */
.panel-dark {
    background: rgba(15,23,42,0.75); /* #0f172a с лёгкой прозрачностью */
    border: 1px solid #24304f;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(2,6,23,.25);
}

/* таблица */
.table-dark thead tr {
    background: rgba(148,163,184,.08);
    border-bottom: 1px solid #24304f;
}

.table-dark th {
    color: #e5e7eb;
    font-weight: 600;
    font-size: .95rem;
}

.table-dark td {
    color: #e5e7eb;
    font-size: .9rem;
    border-bottom: 1px solid #1e293b;
}

.table-dark tbody tr:hover {
    background: rgba(148,163,184,.06);
}

/* кнопка — размер и стиль как у “Скачать” на Category */
.btn.btn-primary.btn-slim {
    background: #3b82f6; /* тот же синий */
    color: #fff;
    border: 1px solid rgba(59,130,246,.35);
    border-radius: 10px;
    padding: 6px 14px; /* такой же “высокий” вид */
    font-size: .9rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(0,0,0,.15) inset, 0 1px 6px rgba(59,130,246,.25);
    transition: background .15s, transform .02s;
}

    .btn.btn-primary.btn-slim:hover {
        background: #2563eb;
    }

    .btn.btn-primary.btn-slim:active {
        transform: translateY(1px);
    }

/* чтобы белый не просвечивал */
.support .card {
    background: transparent;
    border: none;
}

/* ===== Top products (главная) ===== */
.top-products {
    padding-top: 24px;
    padding-bottom: 8px;
}

/* Заголовок и кнопка «Все продукты» — в одну линию */
.tp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* Сетка: ровно 3 карточки на широких, 2 на средних, 1 на мобильных */
.tp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .tp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tp-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка — слегка упругая при hover, без яркого белого фона */
.tp-card {
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    border: 1px solid #253150; /* в твоём темном стиле */
    background: rgba(15,23,42,0.5); /* полупрозрачная тёмная подложка */
}

    .tp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(2,6,23,.25);
        border-color: #3b82f6;
    }

/* Превью уже есть (.product .thumb), но чуть уменьшим высоту в этом блоке */
.top-products .product .thumb {
    height: 160px;
}

@media (max-width:640px) {
    .top-products .product .thumb {
        height: 150px;
    }
}

/* Кнопка «Все продукты» не громоздкая */
.tp-more {
    padding: 6px 12px;
    font-size: .9rem;
    border-radius: 8px;
}

/* ===== Анимация появления карточек ===== */
.reveal {
    opacity: 0;
    transform: translateY(10px);
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
        transition: opacity .4s ease, transform .4s ease;
    }

/* ===== Hero: engineering product panel ===== */

.hero-tech-panel {
    position: relative;
    min-height: 360px;
    padding: 22px;
    overflow: hidden;
    background: radial-gradient(700px 320px at 15% 15%, rgba(91,140,255,.20), transparent), radial-gradient(520px 260px at 90% 85%, rgba(34,197,94,.12), transparent), linear-gradient(180deg, #121a33, #0d1326);
}

    /* Техническая сетка, очень приглушённая */
    .hero-tech-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .12;
        background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
        background-size: 26px 26px;
        mask-image: radial-gradient(circle at center, black, transparent 78%);
        pointer-events: none;
    }

    /* Лёгкий диагональный блик */
    .hero-tech-panel::after {
        content: "";
        position: absolute;
        inset: -40%;
        background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.05), transparent 65%);
        transform: rotate(8deg);
        pointer-events: none;
    }

.tech-panel-header,
.tech-panel-grid,
.tech-panel-specs {
    position: relative;
    z-index: 1;
}

.tech-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

    .tech-panel-header strong {
        display: block;
        margin-top: 3px;
        font-size: 18px;
        letter-spacing: .02em;
        color: #f8fafc;
    }

.panel-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .18em;
    color: #94a3b8;
    text-transform: uppercase;
}

.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 12px;
    color: #a7f3d0;
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(34,197,94,.08);
}

    .panel-status::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #22c55e;
        box-shadow: 0 0 12px rgba(34,197,94,.9);
    }

.tech-panel-grid {
    display: grid;
    gap: 10px;
}

.tech-line {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(2,6,23,.32);
    backdrop-filter: blur(6px);
}

    .tech-line.active {
        border-color: rgba(91,140,255,.48);
        background: rgba(91,140,255,.10);
    }

.line-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    border-radius: 10px;
    background: rgba(15,23,42,.85);
    border: 1px solid rgba(91,140,255,.30);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.tech-line strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    margin-bottom: 2px;
}

.tech-line small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.tech-panel-specs {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148,163,184,.18);
}

    .tech-panel-specs div {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 10px;
        align-items: baseline;
    }

    .tech-panel-specs span {
        color: #64748b;
        font-size: 12px;
    }

    .tech-panel-specs strong {
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 600;
    }

@media (max-width: 640px) {
    .hero-tech-panel {
        min-height: auto;
        padding: 16px;
    }

    .tech-panel-header {
        display: grid;
    }

    .tech-line {
        grid-template-columns: 1fr;
    }

    .line-code {
        justify-content: flex-start;
        padding: 0 10px;
        width: max-content;
    }

    .tech-panel-specs div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
/* ===== Hero badges ===== */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

    .hero-badges span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 6px 10px;
        border: 1px solid rgba(91,140,255,.28);
        border-radius: 999px;
        background: rgba(91,140,255,.07);
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 600;
    }
.logo-img {
    filter: brightness(1.18) contrast(1.08);
}
/* ===== Catalog: compact filter + one grid ===== */

.catalog-page {
    padding-top: 34px;
}

.catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

    .catalog-head .h2 {
        margin-bottom: 8px;
    }

    .catalog-head .muted {
        max-width: 760px;
        margin: 0;
    }

.catalog-count {
    min-width: 112px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(15,23,42,.55);
    text-align: center;
}

    .catalog-count strong {
        display: block;
        font-size: 30px;
        line-height: 1;
        color: #f8fafc;
    }

    .catalog-count span {
        display: block;
        margin-top: 5px;
        font-size: 12px;
        color: var(--muted);
    }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 18px;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(91,140,255,.25);
    border-radius: 999px;
    background: rgba(91,140,255,.06);
    color: #cbd5e1;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

    .filter-chip:hover {
        border-color: rgba(91,140,255,.55);
        background: rgba(91,140,255,.11);
        transform: translateY(-1px);
    }

    .filter-chip.is-active {
        background: #5b8cff;
        border-color: #5b8cff;
        color: #fff;
    }

    .filter-chip span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: rgba(15,23,42,.75);
        color: #cbd5e1;
        font-size: 12px;
    }

    .filter-chip.is-active span {
        background: rgba(255,255,255,.18);
        color: #fff;
    }

.catalog-visible {
    white-space: nowrap;
    font-size: 13px;
}

    .catalog-visible strong {
        color: #e8ebf5;
    }

.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    text-decoration: none;
    color: inherit;
}

    .catalog-card h3 {
        margin: .2em 0;
    }

    .catalog-card p {
        margin: 0;
    }

.catalog-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.product-more {
    color: #9db6ff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

    .catalog-card:hover .product-more {
        color: #c7d7ff;
    }

.catalog-card[hidden] {
    display: none;
}

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-head {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .catalog-head,
    .catalog-toolbar {
        display: grid;
    }

    .catalog-count {
        text-align: left;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-visible {
        white-space: normal;
    }
}
/* ===== Privacy links under forms ===== */

.micro {
    font-size: .8rem;
}

.form-privacy {
    grid-column: 1 / -1;
    margin: 0;
}

    .form-privacy a {
        color: #9db6ff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }