.safin-page-hero {
    --hero-bg-dark: #152535;
    --hero-bg-mid: #1c2e42;
    --hero-bg-light: #243a52;
    --hero-text: #ffffff;
    --hero-text-muted: #d4dde8;
    --hero-text-subtle: #c0cedc;
    --hero-accent: #b8dcfa;
    --hero-tag-bg: rgba(20, 73, 140, 0.55);
    --hero-tag-border: rgba(184, 220, 250, 0.45);
    --hero-tag-text: #d4ebff;

    width: 100%;
    padding: 0;
    margin: 0;
    font-family: Montserrat, sans-serif;
}

.safin-page-hero__wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-bg-dark) 0%, var(--hero-bg-mid) 50%, var(--hero-bg-light) 100%);
}

.safin-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 18, 32, 0.78) 0%, rgba(10, 22, 40, 0.62) 55%, rgba(10, 22, 40, 0.42) 100%);
}

.safin-page-hero__container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.safin-page-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    padding: 1.75rem 0;
}

.safin-page-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1rem;
    list-style: none;
    padding: 0;
}

.safin-page-hero__breadcrumb > li {
    display: inline-flex;
    align-items: center;
}

.safin-page-hero__breadcrumb > li:not(:last-child)::after {
    content: '›';
    margin: 0 6px;
    color: var(--hero-text-subtle);
    opacity: 0.7;
    font-size: 11px;
}

.safin-page-hero__breadcrumb a {
    font-size: 11px;
    color: var(--hero-text-subtle);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}

.safin-page-hero__breadcrumb a:hover,
.safin-page-hero__breadcrumb a:focus-visible {
    color: var(--hero-text);
}

.safin-page-hero__breadcrumb a:focus-visible {
    outline: 2px solid var(--hero-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.safin-page-hero__breadcrumb-current {
    font-size: 11px;
    color: var(--hero-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.safin-page-hero__main {
    min-width: 0;
    max-width: 720px;
}

.safin-page-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hero-tag-bg);
    border: 1px solid var(--hero-tag-border);
    color: var(--hero-tag-text);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.65rem;
    max-width: 100%;
    line-height: 1.35;
}

.safin-page-hero__tag svg {
    flex-shrink: 0;
}

.safin-page-hero__title {
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    font-weight: 600;
    color: var(--hero-text);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    text-wrap: balance;
}

.safin-page-hero__title span {
    color: var(--hero-accent);
}

.safin-page-hero__title--compact {
    font-size: clamp(1.5rem, 3.2vw, 2.125rem);
    line-height: 1.25;
    text-wrap: pretty;
}

.safin-page-hero__desc {
    font-size: 15px;
    color: var(--hero-text-muted);
    max-width: 600px;
    line-height: 1.65;
    margin: 0;
    text-wrap: pretty;
}

@media (max-width: 991px) {
    .safin-page-hero__wrap {
        min-height: auto;
    }

    .safin-page-hero__overlay {
        background: linear-gradient(180deg, rgba(8, 18, 32, 0.65) 0%, rgba(10, 22, 40, 0.9) 50%, rgba(10, 22, 40, 0.96) 100%);
    }

    .safin-page-hero__inner {
        min-height: 0;
        padding: 1.5rem 0 1.25rem;
    }

    .safin-page-hero__main {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .safin-page-hero__inner {
        padding: 1.25rem 0 1rem;
    }

    .safin-page-hero__breadcrumb {
        margin-bottom: 0.75rem;
    }

    .safin-page-hero__tag {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 0.5rem;
    }

    .safin-page-hero__title {
        margin-bottom: 0.5rem;
    }

    .safin-page-hero__desc {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .safin-page-hero__breadcrumb a {
        transition: none;
    }
}
