﻿:root {
    --home-max-width: 1200px;
    --home-card-bg: rgba(20, 30, 50, 0.85);
    --home-border: rgba(255, 255, 255, 0.12);
    --home-highlight: #4db8ff;
}

.home-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.section-spacing {
    padding: clamp(3rem, 5vw, 6rem) 0;
}

.section-content {
    position: relative;
    z-index: 1;
    width: min(var(--home-max-width), 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.star-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #050912 0%, #0e1a30 100%);
}

.star-bg .star-layer {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent 55%),
                      radial-gradient(1px 1px at 60px 80px, rgba(77, 184, 255, 0.5), transparent 60%),
                      radial-gradient(1px 1px at 120px 40px, rgba(255, 255, 255, 0.35), transparent 60%);
    background-size: 160px 160px, 220px 220px, 240px 240px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.star-bg .section-content {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.8rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin: 0 auto;
}

.hero-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hero-heading .main-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 30px rgba(59, 130, 246, 0.45);
}

.hero-heading .lead {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 2rem;
}

.stat-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    text-align: center;
    padding: 1.25rem 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 1.5rem;
    min-height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-card h4,
.advantage-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-card i,
.advantage-title i {
    color: var(--home-highlight);
    font-size: 1.4rem;
}

.feature-card p,
.advantage-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-showcase .section-note,
.carousel-section .section-note {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.carousel-frame {
    background: rgba(5, 10, 20, 0.7);
    border: 1px solid var(--home-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.carousel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
}

.carousel-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active {
    background-color: var(--home-highlight);
}

.section-divider {
    margin: 0 auto;
    width: min(1200px, 100%);
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .section-content {
        padding: 0 1.25rem;
    }
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carousel-frame img {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .section-content {
        padding: 0 1rem;
    }

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

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .advantage-card {
        padding: 1.25rem;
    }

    .carousel-frame img {
        max-height: 360px;
    }
}
