/* ============================================
   UZMIX — Main CSS
   ============================================ */

:root {
    --blue: #1B4BF5;
    --blue-hover: #1038d0;
    --black: #0D0D0D;
    --white: #ffffff;
    --gray-50: #F7F8FA;
    --gray-100: #F0F1F5;
    --gray-200: #E4E5EB;
    --gray-400: #9FA3B0;
    --gray-600: #5C6170;
    --gray-800: #2A2D38;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,.10);
    --transition: 0.22s ease;
    --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
select { font-family: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- TYPOGRAPHY ---- */
.blue { color: var(--blue); }

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--black);
}

.section {
    padding: 5rem 0;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 3rem;
}

.section-header__right {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.section-more-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 500;
    transition: gap var(--transition);
}

.section-more-link:hover { gap: 1rem; }

.section-more-link__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}

.section-more-link:hover .section-more-link__circle {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--blue);
    color: white;
}

.btn--primary:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,75,245,.3);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--gray-200);
    color: var(--black);
}

.btn--outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- ALERTS ---- */
.messages-container {
    position: fixed;
    top: 100px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.alert--success { border-left: 4px solid #22c55e; }
.alert--error { border-left: 4px solid #ef4444; }
.alert__close { color: var(--gray-400); font-size: 1.2rem; }

/* ============================================
   UMUMIY PAGE HERO — barcha sahifalar uchun
   ============================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--gray-100);
    padding: 2rem 0 2rem;           /* ⭐ 2rem yuqori, 2rem past */
    overflow: hidden;
    margin-top: 0;                   /* ⭐ Margin yo'q */
    margin-bottom: 0;                /* ⭐ Margin yo'q */
}

.page-hero__bg-text {
    position: absolute;
    top: 50%;
    right: -2rem;
    transform: translateY(-50%);
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 900;
    color: var(--gray-100);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    opacity: 0.6;
    z-index: 0;
}

/* ⭐ MUHIM: max-width OLIB TASHLANDI — kontent chapga tekislanadi */
.page-hero__inner {
    position: relative;
    z-index: 1;
}

/* Breadcrumb — page-hero ichida */
.page-hero .breadcrumb,
.page-hero .breadcrumb__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin: 0 0 1rem 0;
    padding: 0;
    background: transparent;
    border: none;
}

.page-hero .breadcrumb a,
.page-hero .breadcrumb__inner a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero .breadcrumb a:hover,
.page-hero .breadcrumb__inner a:hover {
    color: var(--blue);
}

.page-hero .breadcrumb span,
.page-hero .breadcrumb__inner span {
    color: var(--gray-400);
}

.page-hero .breadcrumb__sep {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Eyebrow */
.page-hero__eyebrow,
.page-hero .section-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gray-600);
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
    text-transform: uppercase;
}

/* Sarlavha */
.page-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 1.6rem);
    font-weight:800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Tavsif */
.page-hero__desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

/* ---- EMPTY MESSAGE ---- */
.empty-message {
    color: var(--gray-400);
    font-style: italic;
    padding: 2rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .section-header { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section-title { font-size: 2rem; }

    .page-hero {
        padding: 2.25rem 0 2rem;
    }

    .page-hero__bg-text {
        font-size: 6rem;
        right: -1rem;
    }

    .page-hero__title {
        font-size: 1.5rem;
    }

    .page-hero__desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 1.75rem 0 1.5rem;
    }                                                                                   

    .page-hero__title {
        font-size: 1.35rem;
    }

    .page-hero__eyebrow,
    .page-hero .section-eyebrow {
        font-size: 0.65rem;
    }
}

/* ============================================
   PAGE HERO — Meta qatori (sana, vaqt, ko'rishlar)
   ============================================ */
.page-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.page-hero__meta-item i {
    font-size: 0.85rem;
    color: var(--blue);
}

/* Mobil uchun */
@media (max-width: 768px) {
    .page-hero__meta {
        gap: 0.85rem;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }
    
    .page-hero__meta-item {
        font-size: 0.75rem;
    }
}