:root {
    --bg: #f2f6fb;
    --bg-soft: #f9fbff;
    --panel: #ffffff;
    --line: #d2deea;
    --text: #1f3042;
    --muted: #61778e;
    --accent: #c88a2e;
    --brand: #1f629c;
    --brand-soft: #e8f1fb;
    --success: #218e5b;
    --shadow-sm: 0 8px 22px rgba(19, 47, 77, 0.07);
    --shadow-md: 0 16px 36px rgba(17, 43, 72, 0.1);
}

* {
    box-sizing: border-box;
}

body.site-body {
    margin: 0;
    font-family: "IBM Plex Sans", "PT Sans", "Helvetica Neue", sans-serif;
    line-height: 1.45;
    color: var(--text);
    background:
        radial-gradient(circle at 14% -10%, rgba(76, 135, 194, 0.18), transparent 32%),
        linear-gradient(180deg, #fbfdff 0%, #f3f7fc 46%, #eef4fa 100%);
}

a {
    color: var(--brand);
}

h1, h2, h3 {
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #15283c;
}

.container {
    width: min(1280px, 94vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(14, 38, 66, 0.06);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #ca4438, #de6940);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 18px rgba(179, 68, 46, 0.28);
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 13px;
}

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

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.main-nav a:hover {
    border-color: #bfd1e4;
    background: #eef4fb;
}

.main-nav a.is-active {
    background: var(--brand-soft);
    border-color: #aac4de;
    color: #174f81;
}

.site-main {
    padding: 28px 0 44px;
}

.hero {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f2f8ff 100%);
    padding: clamp(18px, 3vw, 30px);
    box-shadow: var(--shadow-md);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
}

.hero-text {
    margin: 16px 0 22px;
    color: var(--muted);
    max-width: 64ch;
}

.hero-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: #ecf4fd;
}

.hero-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    border-color: #2b73b3;
    background: linear-gradient(160deg, #2e80c7, #1f5f97);
    color: #ffffff;
}

.btn-ghost {
    background: #edf3fa;
}

.section-block {
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.section-head h1,
.section-head h2 {
    margin: 0 0 6px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.grid-cards {
    margin-top: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card-link {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    min-height: 132px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-link h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card-link p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card-link:hover {
    border-color: #9db9d4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.card-muted {
    background: linear-gradient(145deg, #fbfdff, #f2f6fb);
}

.docs-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.doc-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #f7fbff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.doc-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.doc-item p {
    margin: 0 0 10px;
    color: var(--muted);
}

.doc-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(150deg, #1f5f97, #2f7ec3);
}

.catalog-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
}

.sidebar {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #f8fbff;
    align-self: start;
    position: sticky;
    top: 90px;
}

.sidebar h2 {
    margin-top: 0;
}

.section-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.section-list a {
    color: var(--text);
    text-decoration: none;
}

.section-list a:hover {
    color: var(--brand);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.field input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    padding: 10px;
    font: inherit;
}

.facet {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.facet summary {
    cursor: pointer;
    list-style: none;
    padding: 10px;
    font-weight: 700;
    background: #edf4fb;
    position: relative;
}

.facet summary::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 10px;
    color: #5b7391;
    transition: transform 0.2s ease;
}

.facet[open] summary::after {
    transform: rotate(180deg);
}

.facet-options {
    max-height: 180px;
    overflow: auto;
    padding: 8px 10px;
    display: grid;
    gap: 6px;
}

.facet-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.product-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(150deg, #ffffff, #f4f9fe);
    box-shadow: 0 3px 10px rgba(21, 54, 86, 0.05);
}

.product-preview {
    margin: -2px -2px 12px;
    border: 1px solid #c9d9e9;
    border-radius: 10px;
    background: linear-gradient(145deg, #f8fcff, #eef5fc);
    height: 170px;
    overflow: hidden;
}

.product-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.product-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.product-card p {
    color: var(--muted);
    min-height: 48px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.product-page-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    margin-top: 14px;
}

.panel h2, .panel h3 {
    margin-top: 0;
}

.product-page-preview {
    margin: -2px -2px 14px;
    border: 1px solid #c9d9e9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fcff, #eef5fc);
}

.product-page-preview img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.price-value {
    font-size: 28px;
    margin: 10px 0 14px;
    color: var(--brand);
    font-weight: 700;
}

.documents {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.documents li {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

th {
    color: var(--brand);
    background: #edf4fb;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.breadcrumb-link {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--brand);
}

.pagination-wrap {
    margin-top: 14px;
}

.muted {
    color: var(--muted);
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    background: #f4f8fc;
}

.footer-row {
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-text {
    margin: 0;
    color: var(--muted);
}

.footer-contacts {
    display: grid;
    gap: 8px;
    text-align: right;
}

.footer-contacts a {
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 1120px) {
    .hero-grid,
    .catalog-layout,
    .product-page-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .main-nav a {
        flex: 0 0 auto;
    }

    .footer-row {
        flex-direction: column;
    }

    .footer-contacts {
        text-align: left;
    }

    .product-preview,
    .product-page-preview img {
        height: 190px;
    }
}
