* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --background: #f2f7fb;
    --featured: #d9eaff;
    --text: #292b2e;
    --muted: #3f4449;
    --blue: #088dcb;
    --blue-dark: #0573a8;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.32;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.library-header {
    height: 458px;
    padding: 99px 0 0;
}

.back-link {
    display: inline-block;
    color: #303236;
    font-size: .94rem;
    font-weight: 800;
    transition: color .2s ease;
}

.back-link:hover { color: var(--blue); }

.books-mark {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    width: 370px;
    height: 106px;
    margin: 48px auto 48px;
}

.books-mark i { display: block; width: 17px; height: 105px; background: #ed4436; }
.books-mark i:nth-child(2) { background: #153e70; transform: skew(-10deg); }
.books-mark i:nth-child(3) { background: #057fb4; }
.books-mark i:nth-child(4) { background: #d7912a; }
.books-mark i:nth-child(5) { background: #4cae57; }
.books-mark i:nth-child(6) { background: #22a34a; transform: skew(7deg); }
.books-mark i:nth-child(7) { background: #078fc0; }
.books-mark i:nth-child(8) { background: #d93431; }
.books-mark i:nth-child(9) { background: #709c59; }
.books-mark i:nth-child(10) { background: #dc3c31; }
.books-mark i:nth-child(11) { margin-left: 16px; background: #d48d26; transform: skew(-12deg); }
.books-mark i:nth-child(12) { background: #16a7d1; }
.books-mark i:nth-child(13) { background: #f2a91b; }
.books-mark i:nth-child(14) { background: #fdb515; transform: skew(-7deg); }
.books-mark i:nth-child(15) { background: #cb1871; }
.books-mark i:nth-child(16) { background: #ef6425; }

.heading-block p { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }

.heading-block h1 {
    margin-top: -4px;
    font-size: 4.65rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.featured-report {
    min-height: 482px;
    background: var(--featured);
    padding: 66px 0 52px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    align-items: start;
    gap: 72px;
}

.featured-cover img,
.card-cover img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }

.featured-content { padding-top: 6px; }

.featured-content h2,
.card-content h3 { font-weight: 800; line-height: 1.12; }

.featured-content h2 { margin-bottom: 22px; font-size: 1.72rem; }

.description {
    color: var(--muted);
    max-width: 880px;
    font-size: 1.08rem;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 24px;
    font-size: .96rem;
}

.description-link { color: var(--blue); font-weight: 800; }
.description-link:hover { color: var(--blue-dark); text-decoration: underline; }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 24px;
    padding: 9px 16px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(8, 141, 203, .2);
    transition: transform .2s ease, background .2s ease;
}

.download-btn:hover { transform: translateY(-2px); background: var(--blue-dark); }
.download-btn.disabled { background: #9daab4; pointer-events: none; box-shadow: none; }

.documents-section { padding: 65px 0 100px; }
.section-title { margin-bottom: 52px; font-size: 1.55rem; font-weight: 800; }

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 76px;
    row-gap: 64px;
}

.report-card {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    align-items: start;
    gap: 25px;
    min-width: 0;
}

.card-content { min-width: 0; }

.card-content h3 {
    margin-bottom: 18px;
    font-size: 1.43rem;
    overflow-wrap: anywhere;
}

.card-content .description { font-size: 1rem; line-height: 1.25; }

.card-content .report-meta {
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
}

.empty-cover {
    display: grid;
    width: 100%;
    aspect-ratio: 210 / 297;
    place-items: center;
    padding: 20px;
    background: #e6edf3;
    color: #6c7780;
    text-align: center;
}

.empty-message,
.no-featured { padding: 28px 0; color: #66717b; }

@media (max-width: 900px) {
    .container { width: min(100% - 40px, 760px); }
    .library-header { height: 390px; padding-top: 52px; }
    .books-mark { margin-top: 42px; margin-bottom: 38px; }
    .featured-report { min-height: 0; }
    .featured-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 38px; }
    .documents-grid { grid-template-columns: 1fr; gap: 40px; }
    .report-card { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1216px); }
    .library-header { height: 330px; padding-top: 28px; }
    .books-mark { width: 270px; height: 62px; margin: 36px auto 35px; gap: 3px; }
    .books-mark i { width: 9px; height: 56px; }
    .heading-block p { font-size: .98rem; }
    .heading-block h1 { margin-top: 4px; font-size: 2.65rem; letter-spacing: -2px; }
    .featured-report { padding: 36px 0; }
    .featured-grid, .report-card { grid-template-columns: 1fr; }
    .featured-cover, .card-cover { width: min(240px, 76vw); margin: 0 auto; }
    .featured-content h2 { font-size: 1.35rem; }
    .description { font-size: .95rem; }
    .report-meta, .card-content .report-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
    .download-btn { width: 100%; }
    .documents-section { padding: 38px 0 60px; }
    .section-title { margin-bottom: 30px; }
    .report-card { gap: 20px; }
}
