/* ================= RESET & LAYOUT ================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #111827;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

/* ================= HERO VIDEO ================= */

.hero-video {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.85) 100%
    );
}

.hero-video .container {
    position: relative;
    z-index: 3;
    max-width: 960px;
    padding: 0 1rem;
}

/* ================= HERO TEXT ================= */

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #f9fafb;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e5e7eb;
}

/* ================= BUTTONS ================= */

.hero-video .btn {
    border-radius: 14px;
    transition: all .3s ease;
}

.hero-video .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000;
}

/* ================= SECTIONS ================= */

section {
    padding: 4.5rem 0;
}

section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ================= CARDS ================= */

.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card-img-fixed {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* ================= VIDEO CARD ================= */

.video-card {
    position: relative;
}

.video-card::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity .3s ease;
}

.video-card:hover::after {
    opacity: 1;
}

/* ================= CONTENT TEXT ================= */

.card-body {
    padding: 1.25rem;
}

.card-body h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: .5rem;
}

.card-body p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ================= LINKS ================= */

a {
    color: inherit;
}

a.text-decoration-none:hover h6 {
    text-decoration: underline;
}

/* ================= ACCORDION ================= */

.accordion-item {
    border: none;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.accordion-button {
    font-weight: 600;
    background-color: #f9fafb;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background-color: #eef2ff;
    color: #4338ca;
}

.accordion-body {
    background-color: #ffffff;
    padding: 1.5rem;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .hero-video {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .card-img-fixed {
        height: 160px;
    }
}

/* ===== Mobile table fix ===== */
.table-responsive-mobile {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Print styles ===== */
@media print {

    /* диаграмманы жашырабыз */
    #riasecChart,
    .chart-container,
    canvas {
        display: none !important;
    }

    /* карточкаларды жөнөкөй кылабыз */
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #000 !important;
        padding: 6px !important;
        font-size: 12px;
    }

    /* кнопкаларды, навбарды жашыруу */
    nav, footer, button {
        display: none !important;
    }
}
