.ayu-department-hero {
    --department-accent: #BA1530;
    position: relative;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(108deg, #0c1c35 0%, #152640 53%, #435064 100%);
}

.ayu-department-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, .025) 44%, rgba(255, 255, 255, .025) 63%, transparent 63%);
}

.ayu-department-hero .carousel-item {
    padding: 78px 0 112px;
}

.ayu-department-hero__content {
    max-width: 920px;
    min-height: 290px;
    text-align: left;
}

.ayu-department-hero .ayu-department-hero__faculty {
    margin: 0 0 18px;
    color: #ff758b;
    font: 700 15px/1.5 "Segoe UI", Arial, sans-serif;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.ayu-department-hero .ayu-department-hero__title {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.2vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-transform: none;
    text-align: left;
    text-wrap: wrap;
    overflow-wrap: anywhere;
}

.ayu-department-hero .ayu-department-hero__description {
    max-width: 660px;
    margin: 22px 0 0;
    color: #d8e0ec;
    font: 400 17px/1.7 "Segoe UI", Arial, sans-serif;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ayu-department-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ayu-department-hero__button {
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid var(--department-accent);
    border-radius: 6px;
    color: #fff;
    background: var(--department-accent);
    font: 600 14px/1.5 "Segoe UI", Arial, sans-serif;
}

.ayu-department-hero__button:disabled {
    opacity: 1;
    cursor: default;
}

.ayu-department-hero__button--outline {
    border-color: rgba(255, 255, 255, .4);
    background: transparent;
}

.ayu-department-metrics-wrap {
    position: relative;
    z-index: 2;
    margin-top: -46px;
}

.ayu-department-metrics {
    display: grid;
    grid-template-columns: repeat(var(--department-metric-count, 4), minmax(0, 1fr));
    margin: 0;
    padding: 12px 0;
    border: 1px solid #edf0f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 34, 57, .09);
}

.ayu-department-metrics__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 16px 30px;
}

.ayu-department-metrics__item + .ayu-department-metrics__item {
    border-left: 1px solid #edf0f4;
}

.ayu-department-metrics dt {
    color: #536174;
    font: 500 14px/1.5 "Segoe UI", Arial, sans-serif;
    overflow-wrap: anywhere;
}

.ayu-department-metrics dd {
    margin: 0;
    color: #ba1530;
    font: 700 clamp(28px, 2.2vw, 38px)/1.1 Georgia, "Times New Roman", serif;
    overflow-wrap: anywhere;
}

.ayu-department-metrics dd span {
    font-size: .7em;
}

@media (max-width: 767px) {
    .ayu-department-hero .carousel-item { padding: 52px 0 94px; }
    .ayu-department-hero__content { min-height: 0; }
    .ayu-department-hero .ayu-department-hero__faculty { font-size: 12px; margin-bottom: 14px; }
    .ayu-department-hero .ayu-department-hero__description { font-size: 16px; }
    .ayu-department-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
    .ayu-department-metrics__item { padding: 16px 20px; }
    .ayu-department-metrics__item:nth-child(odd) { border-left: 0; }
    .ayu-department-metrics__item:nth-child(n + 3) { border-top: 1px solid #edf0f4; }
    .ayu-department-metrics dt { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ayu-department-hero .carousel-item { transition: none; }
}
