/*
 * Ichki sahifalarning sarlavha bloki — `PageHero` widget.
 *
 * Sayt header'i `position: fixed` (gorom/css/menu.css) va hero ustida
 * suzib turadi, shuning uchun hero yuqoridan joy qoldiradi.
 * Global `h1 { font-size: 75px }` (gorom/css/style.css) bu yerda
 * aniq qiymatlar bilan bekor qilinadi.
 */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 42px;
    background: #0b2f7a url("../images/back1.png") center 30% / cover no-repeat;
    color: #fff;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 33, 94, 0.96) 0%, rgba(11, 55, 150, 0.82) 45%, rgba(11, 55, 150, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 40%);
    content: "";
}

.page-hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-hero__main {
    min-width: 0;
    max-width: 100%;
}

.page-hero__title {
    margin: 0;
    color: #fff;
    font-size: var(--fs-page-title);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.page-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    line-height: var(--lh-card); font-weight: var(--fw-medium);
}

.page-hero__crumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero__crumbs li + li::before {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    content: "";
}

.page-hero__crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.page-hero__crumbs a:hover,
.page-hero__crumbs a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.page-hero__crumbs svg {
    flex: 0 0 auto;
}

.page-hero__crumbs [aria-current] {
    color: #fff;
    font-weight: var(--fw-semibold);
}

.page-hero__motto {
    position: relative;
    max-width: 440px;
    margin: 0;
    padding-left: 72px;
    color: #fff;
    font-size: var(--fs-body);
    font-style: italic;
    line-height: var(--lh-body);
}

.page-hero__motto::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 52px;
    height: 3px;
    border-radius: 2px;
    background-color: #3b82f6;
    content: "";
}

/*
 * ---- Planshet va telefon ----
 * Mobil header (web/mycss/mobile-header.css, ~95px) hero ustida shaffof
 * turadi — yuqoridan shuncha joy qoldiriladi. Balandlik kontentga qarab
 * (ekranni to'ldirmaydi).
 */
@media (max-width: 991.98px) {
    .page-hero {
        padding: 124px 0 36px;
        background-position: 30% center;
    }

    .page-hero::before {
        background: linear-gradient(180deg, rgba(9, 36, 110, 0.8) 0%, rgba(14, 58, 160, 0.72) 45%, rgba(8, 30, 90, 0.92) 100%);
    }

    .page-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        width: 100%;
    }

    .page-hero__title {
        font-size: 34px;
        line-height: 1.18;
    }

    .page-hero__crumbs {
        gap: 10px 12px;
        margin-top: 22px;
        font-size: 16px;
        font-weight: var(--fw-medium);
        line-height: 24px;
    }

    .page-hero__crumbs li {
        gap: 12px;
    }

    .page-hero__crumbs li + li::before {
        width: 7px;
        height: 7px;
    }

    .page-hero__crumbs svg {
        width: 22px;
        height: 22px;
    }

    .page-hero__motto {
        max-width: none;
        padding-left: 60px;
        font-size: 17px;
        line-height: 1.4;
    }

    .page-hero__motto::before {
        width: 44px;
    }
}

/* ---- Telefon ---- */
@media (max-width: 575.98px) {
    .page-hero {
        padding: 116px 0 30px;
        background-position: 35% center;
    }

    .page-hero__inner {
        gap: 20px;
    }

    .page-hero__title {
        font-size: 32px;
    }

    .page-hero__crumbs {
        font-size: 15px;
    }
}
