:root {
    --books-primary: #580c93;
    --books-primary-dark: #4a0a7a;
    --books-text: #171611;
    --books-muted: #6c757d;
    --books-bg: #fff;
    --books-border: #e0e0e0;
    --books-light: #f8f9fa;
    --books-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.books-landing {
    padding: 24px 0 72px;
    color: var(--books-text);
    font-family: GillSansC, Arial, sans-serif;
}

.books-kicker {
    margin: 0 0 10px;
    color: var(--books-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.books-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
    gap: 48px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--books-border);
    border-radius: 12px;
    background: var(--books-bg);
    box-shadow: var(--books-shadow);
}

.books-hero__content {
    max-width: 760px;
}

.books-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--books-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.books-hero__lead {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--books-muted);
    font-size: 17px;
    line-height: 1.6;
}

.books-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.books-hero__actions .btn,
.books-rules__action .btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.books-outline-btn {
    border: 1px solid var(--books-primary);
    background: #fff;
    color: var(--books-primary);
    text-decoration: none;
    transition: all .25s ease;
}

.books-outline-btn:hover {
    background: rgba(88, 12, 147, .08);
    color: var(--books-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

.books-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 25px;
    color: var(--books-muted);
    font-size: 13px;
}

.books-hero__facts span {
    position: relative;
}

.books-hero__facts span + span::before {
    position: absolute;
    top: 7px;
    left: -15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--books-primary);
    content: "";
}

.books-hero__facts strong {
    color: var(--books-text);
    font-weight: 600;
}

.books-hero__process {
    padding: 28px;
    border: 1px solid #e8dfff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f9f6ff 0%, #f3eeff 100%);
}

.books-hero__process h2 {
    margin: 0 0 20px;
    color: var(--books-text);
    font-size: 24px;
    font-weight: 600;
}

.books-hero__process ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.books-hero__process li {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #e8dfff;
}

.books-hero__process li > span {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--books-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.books-hero__process strong {
    display: block;
    margin-bottom: 4px;
    color: var(--books-text);
    font-size: 16px;
    font-weight: 600;
}

.books-hero__process p {
    margin: 0;
    color: var(--books-muted);
    font-size: 14px;
    line-height: 1.45;
}

.books-catalog {
    padding-top: 48px;
}

.books-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--books-light);
}

.books-section-heading h2,
.books-rules__intro h2 {
    margin: 0;
    color: var(--books-text);
    font-size: 24px;
    font-weight: 700;
}

.books-section-heading > p {
    max-width: 380px;
    margin: 0;
    color: var(--books-muted);
    font-size: 15px;
    text-align: right;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.book-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--books-border);
    border-radius: 12px;
    background: var(--books-bg);
    box-shadow: var(--books-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.book-card__cover {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 17px;
    border: 1px solid #e8dfff;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9f6ff 0%, #f3eeff 100%);
}

.book-card__cover::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--books-primary);
    content: "";
}

.book-card__cover::after {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    border: 1px solid rgba(88, 12, 147, .16);
    border-radius: 50%;
    content: "";
}

.book-card__brand,
.book-card__issue {
    position: relative;
    z-index: 1;
    color: var(--books-muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.book-card__cover strong {
    position: relative;
    z-index: 1;
    color: var(--books-primary-dark);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.book-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0;
}

.book-card__content h3 {
    margin: 0;
    color: var(--books-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.book-card__content p {
    margin: 12px 0 18px;
    color: var(--books-muted);
    font-size: 15px;
}

.book-card__link {
    display: inline-flex;
    gap: 9px;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(88, 12, 147, .08);
    color: var(--books-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.book-card__link:hover {
    background: rgba(88, 12, 147, .15);
    color: var(--books-primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.books-empty {
    margin-top: 28px;
    padding: 32px;
    border: 1px solid var(--books-border);
    border-radius: 12px;
    background: var(--books-bg);
    box-shadow: var(--books-shadow);
    text-align: center;
}

.books-empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
}

.books-empty p {
    margin: 0;
    color: var(--books-muted);
}

.books-rules {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid var(--books-border);
    border-radius: 12px;
    background: var(--books-bg);
    box-shadow: var(--books-shadow);
}

.books-rules__intro {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
    column-gap: 48px;
}

.books-rules__intro .books-kicker {
    grid-column: 1 / -1;
}

.books-rules__intro > p:last-child {
    margin: 0;
    color: var(--books-muted);
    font-size: 16px;
    line-height: 1.6;
}

.books-rules__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.books-rules__list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
    border-left: 4px solid var(--books-primary);
    border-radius: 10px;
    background: var(--books-light);
    transition: transform .25s ease, box-shadow .25s ease;
}

.books-rules__list > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
}

.books-rules__list span {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--books-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.books-rules__list p {
    margin: 0;
    color: var(--books-text);
    font-size: 15px;
    line-height: 1.55;
}

.books-rules__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--books-light);
}

.books-rules__action strong,
.books-rules__action span {
    display: block;
}

.books-rules__action strong {
    margin-bottom: 4px;
    color: var(--books-text);
    font-size: 19px;
    font-weight: 600;
}

.books-rules__action span {
    color: var(--books-muted);
    font-size: 15px;
}

.books-landing a:focus-visible {
    outline: 2px solid var(--books-primary);
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .books-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .books-hero__process {
        max-width: 680px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .books-landing {
        padding-top: 8px;
    }

    .books-hero {
        padding: 24px 20px;
    }

    .books-hero h1 {
        font-size: 28px;
    }

    .books-hero__lead {
        font-size: 16px;
    }

    .books-hero__facts {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .books-hero__facts span + span::before {
        display: none;
    }

    .books-hero__process {
        padding: 22px 18px;
    }

    .books-catalog {
        padding-top: 38px;
    }

    .books-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .books-section-heading > p {
        text-align: left;
    }

    .books-grid {
        gap: 18px;
        margin-top: 20px;
    }

    .book-card {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .book-card__cover {
        min-height: 170px;
        padding: 13px;
    }

    .book-card__cover strong {
        font-size: 16px;
    }

    .book-card__content h3 {
        font-size: 18px;
    }

    .books-rules {
        margin-top: 38px;
        padding: 26px 20px;
    }

    .books-rules__intro,
    .books-rules__list {
        grid-template-columns: 1fr;
    }

    .books-rules__intro {
        row-gap: 12px;
    }

    .books-rules__action {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .books-hero__actions,
    .books-hero__actions .btn,
    .books-rules__action .btn,
    .books-outline-btn {
        width: 100%;
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-card__cover {
        width: 145px;
        min-height: 198px;
    }
}
