/* ========================================
   Brochures page
   ======================================== */

.brochures-page {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.brochures-hero {
    position: relative;
    padding: 76px 0 64px;
    text-align: center;
    color: #ffffff;
    background: url("/static/assets/images/brochures-img-1.png") center/cover no-repeat;
    overflow: hidden;
}

.brochures-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 10, 14, 0.7) 0%, rgba(4, 10, 14, 0.35) 55%, rgba(4, 10, 14, 0.25) 100%);
}

.brochures-hero-content {
    position: relative;
    z-index: 1;
}

.brochures-hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brochures-tabs {
    background: #f2f5f7;
    border-bottom: 1px solid #d9e3ea;
}

.brochures-tabs-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1120px;
    margin: 0 auto;
}

.brochures-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #86919c;
    background: #e3e9ee;
    border-right: 1px solid #d5dde4;
}

.brochures-tab:last-child {
    border-right: none;
}

.brochures-tab.is-active {
    background: #ffffff;
    color: var(--accent-color);
}

.brochures-tab.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
}

.brochures-list {
    position: relative;
    padding: 44px 0 72px;
    background: #ffffff;
}

.brochures-list-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}

.brochures-rail {
    position: absolute;
    left: -48px;
    top: 120px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #7a8792;
}

.brochure-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 24px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.brochure-card:first-of-type {
    padding-top: 8px;
}

.brochure-card:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.brochure-card-media {
    order: 2;
    width: 180px;
    height: 230px;
    border: 1px solid #e3e7eb;
    background: #f4f6f8;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.brochure-card-content {
    order: 1;
}

.brochure-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brochure-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.brochure-card-description {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #5f6b76;
}

.brochure-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #7ab8ae;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.brochure-download:hover {
    background: #64a99f;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(48, 120, 112, 0.25);
}

.brochure-download svg {
    width: 16px;
    height: 16px;
}

html[data-theme="dark"] .brochures-tabs {
    background: #0d2830;
    border-bottom-color: #12323b;
}

html[data-theme="dark"] .brochures-tab {
    background: #102c35;
    color: #aab6bf;
    border-right-color: #12323b;
}

html[data-theme="dark"] .brochures-tab.is-active {
    background: #0f2a33;
    color: #ffffff;
}

html[data-theme="dark"] .brochures-list {
    background: #0a1f26;
}

html[data-theme="dark"] .brochure-card {
    border-bottom-color: #1a3a44;
}

html[data-theme="dark"] .brochure-card-media {
    border-color: #1a3a44;
    background: #0f2a33;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .brochure-card-title {
    color: #ffffff;
}

html[data-theme="dark"] .brochure-card-description {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .brochures-list-inner {
        padding: 0 24px;
    }

    .brochures-tabs-inner {
        grid-template-columns: 1fr;
    }

    .brochures-tab {
        border-right: none;
        border-bottom: 1px solid #d5dde4;
    }

    .brochure-card {
        grid-template-columns: 1fr;
    }

    .brochure-card-media {
        width: min(240px, 100%);
        height: 300px;
    }

    .brochures-rail {
        display: none;
    }
}

@media (max-width: 600px) {
    .brochures-hero {
        padding: 64px 0 52px;
    }

    .brochure-card-media {
        width: 100%;
        height: 260px;
    }
}