* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #142033;
    background: linear-gradient(180deg, #e9f8ef 0%, #d4f0df 100%);
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(203, 215, 235, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    text-align: left;
}

.brand-text {
    text-align: left;
}

.brand-text h1 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.5px;
    color: #0f2241;
}

.brand-text span {
    font-size: clamp(14px, 2.2vw, 18px);
    color: #496086;
}

.brand-logo {
    height: 62px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(14, 25, 45, 0.2));
}

.site-main {
    padding: 30px 0 46px;
}

.catalog-list-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.catalog-list-head h2 {
    margin: 0 0 6px 0;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.8px;
    color: #0f2241;
}

.catalog-list-subtitle {
    margin: 0;
    color: #5b7197;
    font-size: 16px;
}

.catalog-count {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cfe0ff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #234476;
    box-shadow: 0 12px 20px rgba(31, 111, 235, 0.12);
    white-space: nowrap;
}

.catalog-list .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.catalog-card {
    border-radius: 14px;
    overflow: hidden;
    min-height: 0;
    transform: translateX(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-list .catalog-card {
    color: #12223f;
    background: #ffffff;
    border: 1px solid #d6e1f2;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.catalog-list .catalog-card:hover {
    transform: translateX(5px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
    border-color: #b8cbea;
}

.catalog-card .card-body {
    padding: 16px 18px;
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: #ecf2ff;
    border: 1px solid #d2e0fb;
    color: #2b4f8f;
    margin-bottom: 10px;
}

.catalog-list .catalog-card .card-body h3 {
    margin: 0 0 6px 0;
    font-size: 30px;
    line-height: 1;
    color: #0f2241;
}

.catalog-list .catalog-card .card-body p {
    margin: 0;
    color: #5d7296;
    line-height: 1.35;
}

.catalog-list .catalog-card:nth-child(6n + 1) {
    border-left: 6px solid #2563eb;
}
.catalog-list .catalog-card:nth-child(6n + 2) {
    border-left: 6px solid #16a34a;
}
.catalog-list .catalog-card:nth-child(6n + 3) {
    border-left: 6px solid #db2777;
}
.catalog-list .catalog-card:nth-child(6n + 4) {
    border-left: 6px solid #ea580c;
}
.catalog-list .catalog-card:nth-child(6n + 5) {
    border-left: 6px solid #0ea5e9;
}
.catalog-list .catalog-card:nth-child(6n + 6) {
    border-left: 6px solid #7c3aed;
}

.catalog-cover {
    background: linear-gradient(135deg, #102347 0%, #17376f 55%, #0c1832 100%);
    border: 1px solid #335e9f;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(8, 20, 45, 0.32);
    color: #edf4ff;
    margin-bottom: 24px;
    padding: 14px;
}

.catalog-cover.theme-dark {
    background: linear-gradient(135deg, #111827 0%, #0f274d 70%, #0b1220 100%);
    color: #f1f5ff;
}

.catalog-cover.theme-accent {
    background: linear-gradient(135deg, #0f2858 0%, #1e40af 60%, #0284c7 100%);
}

.cover-frame {
    border: 1px solid rgba(143, 181, 255, 0.45);
    border-radius: 12px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(18, 44, 88, 0.7) 0%, rgba(10, 24, 48, 0.84) 100%);
}

.cover-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.cover-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.cover-company {
    margin: 0;
    font-size: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cover-about {
    margin-top: 8px;
    color: #d8e5ff;
    font-size: 12px;
    line-height: 1.4;
}

.cover-about-title {
    color: #9cc7ff;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cover-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #9cc7ff;
}

.cover-tagline {
    text-align: center;
    line-height: 1.4;
    border-top: 1px solid rgba(156, 199, 255, 0.4);
    border-bottom: 1px solid rgba(156, 199, 255, 0.4);
    padding: 10px 8px;
    margin: 10px 0 12px;
}

.cover-info {
    display: grid;
    gap: 5px;
    font-size: 12px;
    text-align: center;
}

.cover-info span {
    color: #dce8ff;
}

.catalog-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(31, 111, 235, 0.2);
}

.btn-pdf {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.btn-excel {
    background: linear-gradient(135deg, #0f766e 0%, #16a34a 100%);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(330px, 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    grid-template-columns: 290px 1fr;
    background: #fff;
    border: 1px solid #cfdcf2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.product-image {
    background: #e8effb;
    width: 290px;
    min-height: 280px;
    padding: 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.product-info {
    background: #fff;
    color: #1b2a45;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    line-height: 1.1;
    color: #0f2241;
}

.product-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    line-height: 1.2;
}

.product-langs span {
    display: inline-flex;
    background: #edf3ff;
    border: 1px solid #d4e1f7;
    border-radius: 999px;
    color: #36527d;
    padding: 2px 7px;
}

.product-desc {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.35;
    color: #556b8f;
}

.product-prices {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.product-prices span {
    border-radius: 8px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    text-align: center;
    padding: 5px;
    font-weight: 700;
    font-size: 13px;
}

.product-variations {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #d8e2f0;
}

.variation-item {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #41536f;
    margin-bottom: 3px;
}

.pagination {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.site-footer {
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid #d8e2f0;
    padding: 16px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .catalog-list-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-image {
        width: 100%;
        min-height: 220px;
    }

    .product-image img {
        min-height: 220px;
    }
}

@media print {
    body {
        background: #f6f7fb;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .site-header,
    .site-footer,
    .catalog-actions,
    .pagination {
        display: block !important;
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
        gap: 18px;
    }

    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
