/* Premium styling — главная страница only (.home-page) */

.home-page {
    --home-brand-1: #1e3a8a;
    --home-brand-2: #667eea;
    --home-brand-3: #764ba2;
    --home-brand-4: #c471ed;
    --home-surface: #ffffff;
    --home-muted: #5c6370;
    --home-radius: 16px;
    --home-shadow: 0 10px 40px rgba(30, 27, 75, 0.08);
}

.home-page .home-bg-animation {
    opacity: 0.35;
}

/* Hero */
.home-page .home-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
    border-bottom: 1px solid rgba(30, 27, 75, 0.06);
}

.home-page .home-hero-title {
    font-size: clamp(1.55rem, 3.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--home-brand-1) 0%, var(--home-brand-2) 35%, var(--home-brand-3) 65%, var(--home-brand-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem !important;
}

.home-page .home-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 42%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-brand-2), var(--home-brand-3), var(--home-brand-4));
}

.home-page .home-hero-lead {
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.home-page .home-hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    color: var(--home-brand-1);
    font-size: 0.82rem;
    font-weight: 600;
}

/* SEO direction pills */
.home-page .home-directions {
    padding: 1.25rem 0;
    background: #f8f9fc;
    border-bottom: 1px solid rgba(30, 27, 75, 0.05);
}

.home-page .home-seo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--home-brand-1);
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.22);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-page .home-seo-pill:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--home-brand-2), var(--home-brand-3));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
}

/* Category icons */
.home-page .vektor-categories {
    padding: 1.75rem 0 1.25rem;
}

.home-page .vektor-category a {
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(30, 27, 75, 0.05);
    backdrop-filter: blur(6px);
}

.home-page .vektor-category a:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow);
}

.home-page .vektor-category i {
    color: var(--home-brand-3) !important;
}

.home-page .vektor-category p {
    text-shadow: none;
    color: var(--home-brand-1);
    font-weight: 600;
}

/* Carousel */
.home-page .wb-banner {
    margin: 1.5rem 0 2rem;
}

.home-page .home-carousel {
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
}

.home-page .carousel-slide-inner {
    min-height: 240px;
    border: none !important;
    background: linear-gradient(135deg, var(--home-brand-1) 0%, var(--home-brand-3) 100%) !important;
}

.home-page .carousel-item:nth-child(2n) .carousel-slide-inner {
    background: linear-gradient(135deg, #312e81 0%, var(--home-brand-2) 55%, var(--home-brand-4) 100%) !important;
}

.home-page .carousel-slide-inner h2 {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.home-page .carousel-slide-inner .lead {
    opacity: 0.92;
    font-size: 1.05rem;
}

.home-page .carousel-slide-inner .btn-home-carousel {
    background: #fff;
    color: var(--home-brand-1);
    border: none;
    font-weight: 700;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .carousel-slide-inner .btn-home-carousel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    color: var(--home-brand-3);
}

.home-page .home-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.45);
}

.home-page .home-carousel .carousel-indicators .active {
    background-color: #fff;
    width: 24px;
    border-radius: 999px;
}

/* Popular courses */
.home-page .wb-products {
    padding: 2.5rem 0 3rem;
}

.home-page .section-header h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--home-brand-1);
    letter-spacing: 0.01em;
}

.home-page .section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-brand-2), var(--home-brand-4));
}

.home-page .product-card {
    border-radius: var(--home-radius);
    border: 1px solid rgba(30, 27, 75, 0.06);
    box-shadow: 0 4px 20px rgba(30, 27, 75, 0.06);
}

.home-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow);
}

.home-page .product-img {
    border-radius: var(--home-radius) var(--home-radius) 0 0;
}

.home-page .product-badge {
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--home-brand-2), var(--home-brand-3));
}

.home-page .product-skills {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-page .product-results {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--home-brand-1);
}

.home-page .product-price-meta {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
}

.home-page .product-lesson-price {
    font-size: 0.75rem;
    color: #6c757d;
}

.home-page .product-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Advantages */
.home-page .wb-advantages {
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 100%);
    padding: 3rem 0;
    margin: 0;
    border-top: 1px solid rgba(30, 27, 75, 0.05);
}

.home-page .advantage-item {
    background: #fff;
    border-radius: var(--home-radius);
    padding: 1.75rem 1.25rem;
    height: 100%;
    border: 1px solid rgba(30, 27, 75, 0.06);
    box-shadow: 0 4px 18px rgba(30, 27, 75, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .advantage-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow);
}

.home-page .advantage-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--home-brand-2), var(--home-brand-3));
    margin-bottom: 1rem;
}

.home-page .advantage-item h4 {
    font-weight: 700;
    color: var(--home-brand-1);
}

/* Map */
.home-page .wb-map {
    padding-top: 2rem !important;
}

.home-page .wb-map .section-header h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--home-brand-1);
}

.home-page .wb-map-embed {
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
}

@media (max-width: 767.98px) {
    .home-page {
        --home-radius: 18px;
        --home-shadow: 0 14px 36px rgba(30, 27, 75, 0.1);
    }

    .home-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero — компактно: только заголовок (lead, лицензия — в footer / desktop) */
    .home-page .home-hero {
        padding: 0.75rem 0 0.5rem;
        background:
            radial-gradient(ellipse 120% 80% at 50% -20%, rgba(102, 126, 234, 0.1) 0%, transparent 55%),
            linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
        border-bottom: none;
    }

    .home-page .home-hero-title {
        font-size: clamp(1.35rem, 5vw, 1.55rem);
        line-height: 1.22;
        letter-spacing: -0.01em;
        padding-bottom: 0.55rem;
        margin-bottom: 0 !important;
    }

    .home-page .home-hero-title::after {
        width: min(72px, 32%);
        height: 3px;
    }

    .home-page .home-hero-lead,
    .home-page .home-hero-trust {
        display: none;
    }

    /* SEO pills — на мобилке навигация через иконки категорий ниже */
    .home-page .home-directions {
        display: none;
    }

    /* Категории */
    .home-page .vektor-categories {
        padding: 0.65rem 0 0.75rem;
    }

    .home-page .vektor-categories .row {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .home-page .vektor-category a {
        padding: 0.95rem 0.35rem 0.85rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 1);
        box-shadow: 0 6px 22px rgba(30, 27, 75, 0.07);
    }

    .home-page .vektor-category i {
        font-size: 2.15rem !important;
        margin-bottom: 0.15rem;
        filter: drop-shadow(0 2px 6px rgba(118, 75, 162, 0.2));
    }

    .home-page .vektor-category p {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    /* Карусель */
    .home-page .wb-banner {
        margin: 1rem 0 1.5rem;
    }

    .home-page .home-carousel {
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(30, 27, 75, 0.14);
    }

    .home-page .carousel-slide-inner {
        min-height: 220px;
        padding: 1.25rem !important;
    }

    .home-page .carousel-slide-inner h2 {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
        line-height: 1.25;
    }

    .home-page .carousel-slide-inner .lead {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .home-page .carousel-slide-inner .btn-home-carousel {
        padding: 0.6rem 1.5rem;
        font-size: 0.88rem;
    }

    .home-page .home-carousel .carousel-control-prev,
    .home-page .home-carousel .carousel-control-next {
        width: 2.2rem;
        opacity: 0.85;
    }

    .home-page .home-carousel .carousel-indicators {
        margin-bottom: 0.65rem;
    }

    /* Курсы */
    .home-page .wb-products {
        padding: 1.75rem 0 2rem;
    }

    .home-page .section-header {
        justify-content: center;
        text-align: center;
        margin-bottom: 1.35rem;
    }

    .home-page .section-header h2::after {
        margin-left: auto;
        margin-right: auto;
        width: 56px;
    }

    .home-page .product-card {
        border-radius: 20px;
        border: 1px solid rgba(30, 27, 75, 0.07);
        box-shadow: 0 8px 28px rgba(30, 27, 75, 0.08);
    }

    .home-page .product-img {
        height: 231px;
    }

    .home-page .product-info {
        padding: 1rem 1.05rem 1.1rem;
    }

    .home-page .product-name {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.65rem;
    }

    .home-page .product-skills {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
        margin-bottom: 0.5rem;
    }

    .home-page .product-results {
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
        -webkit-line-clamp: 2;
    }

    .home-page .product-price {
        font-size: 1.05rem;
    }

    .home-page .product-actions .btn {
        width: 100%;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
        margin-top: 0.35rem;
    }

    /* Преимущества */
    .home-page .wb-advantages {
        padding: 2rem 0 2.25rem;
    }

    .home-page .wb-advantages .row {
        --bs-gutter-y: 0.75rem;
    }

    .home-page .advantage-item {
        display: flex;
        align-items: flex-start;
        gap: 0.95rem;
        text-align: left;
        padding: 1.15rem 1rem;
        border-radius: 18px;
        box-shadow: 0 6px 22px rgba(30, 27, 75, 0.06);
    }

    .home-page .advantage-item i {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
        margin-bottom: 0;
        flex-shrink: 0;
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.28);
    }

    .home-page .advantage-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
    }

    .home-page .advantage-item p {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 0;
        color: var(--home-muted);
    }

    /* Отзывы */
    .home-page .testimonials-widget {
        background: linear-gradient(180deg, #fff 0%, #f3f4fb 100%) !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .home-page .testimonials-widget .h3 {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--home-brand-1);
    }

    .home-page .testimonial-card {
        border-radius: 18px !important;
        border: 1px solid rgba(30, 27, 75, 0.06) !important;
        box-shadow: 0 8px 24px rgba(30, 27, 75, 0.07) !important;
    }

    /* Карта */
    .home-page .wb-map {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }

    .home-page .wb-map .section-header {
        margin-bottom: 1rem;
    }

    .home-page .wb-map-embed {
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(30, 27, 75, 0.1);
    }
}

@media (max-width: 575.98px) {
    .home-page .home-hero-title {
        font-size: 1.32rem;
    }

    .home-page .vektor-category i {
        font-size: 1.95rem !important;
    }

    .home-page .carousel-slide-inner {
        min-height: 200px;
    }
}
