.home-hero {
    position: relative;
    min-height: calc(100vh - 92px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 90px;
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(4, 14, 24, 0.38) 0%,
            rgba(4, 14, 24, 0.46) 45%,
            rgba(4, 14, 24, 0.58) 100%
        ),
        url("../images/home_img.png") center center / cover no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            circle at 50% 44%,
            rgba(255, 255, 255, 0.12),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.36) 100%
        );
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.06) 0%,
            rgba(0, 0, 0, 0.12) 38%,
            rgba(0, 0, 0, 0.30) 100%
        );
}

.home-hero-content {
    position: relative;
    z-index: 3;
    width: min(860px, 100%);
    text-align: center;
    margin: 26px auto 0;
}

.home-hero-content h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 68px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.home-hero-content > p {
    width: min(620px, 100%);
    margin: 26px auto 34px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 24px;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.home-hero-search {
    width: min(720px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 18px;
    align-items: center;
}

.home-hero-search input {
    width: 100%;
    min-height: 66px;
    border: 0;
    outline: 0;
    border-radius: 12px;
    padding: 0 24px;
    color: #102033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    font-size: 18px;
    font-weight: 500;
}

.home-hero-search input::placeholder {
    color: #8b94a3;
}

.home-hero-search button {
    min-height: 66px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: #075bdc;
    box-shadow:
        0 18px 38px rgba(7, 91, 220, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.home-hero-search button:hover {
    transform: translateY(-2px);
    background: #064ec0;
    box-shadow:
        0 22px 46px rgba(7, 91, 220, 0.46),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.home-hero-search button i {
    font-size: 18px;
}

.home-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 72px;
    margin-top: 42px;
}

.home-hero-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.home-hero-stat strong {
    display: block;
    color: #ffffff;
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.home-hero-stat span {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 500;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 23px;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #2a8cff, #075bdc);
}

.stat-icon.gold {
    background: linear-gradient(135deg, #ffd45a, #d49b05);
}

.stat-icon.green {
    background: linear-gradient(135deg, #20d988, #009f5e);
}

.home-hero-quote {
    width: min(720px, 100%);
    margin: 110px auto 0;
    min-height: 120px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 4px 1fr 160px;
    align-items: center;
    gap: 28px;
    padding: 24px 32px 24px 44px;
    text-align: left;
    background: rgba(19, 24, 30, 0.66);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.quote-line {
    width: 4px;
    height: 72px;
    border-radius: 4px;
    background: #f5c518;
}

.home-hero-quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 18px;
    line-height: 1.42;
    font-weight: 500;
}

.home-hero-quote span {
    display: inline-block;
    margin-top: 9px;
    color: #f5c518;
    font-size: 15px;
    font-weight: 700;
}

.quote-icon {
    justify-self: end;
    color: rgba(255, 255, 255, 0.16);
    font-size: 78px;
}

.modern-section {
    padding: 76px 0;
    background: #f4f7fb;
}

.modern-section:nth-of-type(even) {
    background: #ffffff;
}

.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #075bdc;
    background: rgba(7, 91, 220, 0.10);
    font-size: 13px;
    font-weight: 800;
}

.section-title {
    margin: 12px 0 0;
    color: #092340;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #075bdc;
    font-weight: 800;
    text-decoration: none;
}

.modern-books-grid {
    display: flex;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.modern-books-grid > * {
    flex: 0 0 calc(25% - 16.5px);
    min-width: 240px;
    scroll-snap-align: start;
}

.modern-books-grid::-webkit-scrollbar {
    height: 8px;
}

.modern-books-grid::-webkit-scrollbar-track {
    background: rgba(10, 35, 64, 0.04);
    border-radius: 4px;
}

.modern-books-grid::-webkit-scrollbar-thumb {
    background: rgba(10, 35, 64, 0.15);
    border-radius: 4px;
}

.modern-books-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 35, 64, 0.25);
}

.modern-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.modern-category-card {
    min-height: 116px;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #092340;
    background: #ffffff;
    border: 1px solid rgba(10, 35, 64, 0.08);
    box-shadow: 0 18px 38px rgba(13, 36, 64, 0.08);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.modern-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(13, 36, 64, 0.12);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #075bdc;
}

.modern-category-card span {
    font-weight: 800;
}

.empty-state {
    min-height: 180px;
    border-radius: 14px;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #637083;
    background: #ffffff;
    border: 1px dashed rgba(10, 35, 64, 0.18);
}

.empty-state i {
    color: #075bdc;
    font-size: 32px;
}

.empty-state p {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .home-hero {
        min-height: auto;
        padding: 110px 24px 70px;
    }

    .home-hero-content {
        margin: 0 auto;
    }

    .home-hero-content h1 {
        font-size: 58px;
    }

    .modern-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-hero {
        align-items: flex-start;
        padding: 92px 18px 48px;
        background-position: center center;
    }

    .home-hero-content h1 {
        font-size: 42px;
    }

    .home-hero-content > p {
        margin-top: 18px;
        font-size: 18px;
    }

    .home-hero-search {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-hero-search input,
    .home-hero-search button {
        min-height: 56px;
    }

    .home-hero-stats {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        width: min(420px, 100%);
        margin: 28px auto 0;
    }

    .home-hero-stat {
        width: 100%;
        padding: 12px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(10px);
    }

    .home-hero-quote {
        margin-top: 42px;
        grid-template-columns: 4px 1fr;
        padding: 22px;
        gap: 18px;
    }

    .quote-icon {
        display: none;
    }

    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .modern-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .home-hero-content h1 {
        font-size: 34px;
    }

    .home-hero-content > p {
        font-size: 16px;
    }

    .home-hero-stat strong {
        font-size: 24px;
    }

    .home-hero-stat span {
        font-size: 15px;
    }

    .modern-categories {
        grid-template-columns: 1fr;
    }
}