.page-department .container {
    width: 90%;
    margin: 0 auto;
}

.page-department .box-image-item,
.page-department .responsive-image {
    background-size: cover;
    width: 946px;
    height: 485px;
}

@media (max-width: 768px) {
    .page-department .box-image-item,
    .page-department .responsive-image {
        width: auto;
        height: auto;
        min-height: 220px;
    }
}

.page-department .row-50 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.page-department .team-classic-wrap {
    position: relative;
    width: 100%;
}

.page-department .team-classic-img img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform .3s ease;
}

.page-department .team-classic-img img:hover {
    transform: scale(1.05);
}

.page-department .equal-width {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 277px;
    text-align: center;
}

@media (max-width: 575px) {
    .page-department .equal-width {
        width: 100%;
    }
}

/* ---------- ТЁМНЫЕ СЕКЦИИ ---------- */
/* .bg-default в style.css записан как rgb(255,255,255) — этот
   формат не попал в автогенерируемый override, поэтому секции
   оставались белыми. Здесь закрываем это для страниц отделов. */
.page-department .bg-default {
    background: linear-gradient(180deg, #08111d 0%, #0d1b2c 100%);
}

.page-department .bg-gray-100 {
    background: linear-gradient(180deg, #0d1b2c 0%, #08111d 100%);
}

.page-department .bg-primary {
    background: linear-gradient(180deg, #0a1524 0%, #0d1b2c 100%);
}

/* ---------- КАРТОЧКИ "ОСОБЕННОСТИ ОТДЕЛА" ---------- */
.page-department .box-icon-2 {
    height: 100%;
    padding: 34px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.page-department .box-icon-2:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 241, 217, .22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.page-department .box-icon-2 .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 241, 217, .16), rgba(20, 241, 217, .05));
    border: 1px solid rgba(20, 241, 217, .16);
    box-shadow: 0 10px 24px rgba(20, 241, 217, .10);
    transition: transform .3s ease;
}

.page-department .box-icon-2:hover .feature-icon {
    transform: translateY(-3px) scale(1.05);
}

.page-department .box-icon-2 .feature-icon .icon {
    font-size: 30px;
    color: #14f1d9;
}

.page-department .box-icon-2 .title {
    color: #ffffff;
}

.page-department .box-icon-2 .text {
    color: rgba(255, 255, 255, .72);
}

/* ---------- РУКОВОДСТВО ОТДЕЛА ---------- */
.page-department .team-box-left {
    height: 100%;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)) !important;
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.page-department .team-box-left:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 241, 217, .22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.page-department .team-box-left .team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(20, 241, 217, .30) !important;
    background: #0c1929 !important;
}

.page-department .team-box-left .title {
    color: #ffffff;
}

.page-department .team-box-left .subtitle {
    color: #14f1d9;
    font-weight: 700;
}

/* ---------- ЦИТАТЫ ("Важная информация" / "Интересные факты") ---------- */
/* #002156 — насыщенный тёмно-синий, автоконвертер его не тронул */
.page-department .quote-simple q {
    color: rgba(255, 255, 255, .88);
}

.page-department .quote .quote-meta {
    color: #ffffff;
}

.page-department .quote .position {
    color: #14f1d9;
}

.page-department .quote-simple q:before {
    color: rgba(20, 241, 217, .30);
}

/* точки owl-карусели */
.page-department .owl-carousel .owl-dot span {
    background: rgba(255, 255, 255, .25);
}

.page-department .owl-carousel .owl-dot.active span,
.page-department .owl-carousel .owl-dot:hover span {
    background: #14f1d9;
}

/* ---------- CASE-КАРТОЧКИ (SWAT) ---------- */
.page-department .card {
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.page-department .card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 241, 217, .22) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .40);
}

.page-department .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.page-department .card-title {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: #ffffff;
    font-weight: 800;
}

.page-department .card-text {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .72);
}

.page-department .card-text strong {
    color: rgba(255, 255, 255, .88);
}

.page-department .card-text .badge {
    margin: 2px 4px 2px 0;
}

/* кнопка "Подробнее" прижата к низу карточки */
.page-department .card-body .btn {
    margin-top: auto;
}

/* ---------- СЧЁТЧИКИ ---------- */
.page-department .box-counter {
    border-radius: 18px;
    transition: transform .3s ease;
}

.page-department .box-counter:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.page-department .box-counter-main > * {
    background: linear-gradient(135deg, #14f1d9, #3a8cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-department .box-counter-title {
    color: rgba(255, 255, 255, .60);
}

/* ---------- ГАЛЕРЕЯ "ЖИЗНЬ ОТДЕЛА" ---------- */
.page-department .collage-gallery img {
    border-radius: 12px;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.page-department .collage-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}

/* ---------- СПИСКИ И ТЕКСТ ---------- */
.page-department .list-marked-2 {
    color: rgba(255, 255, 255, .88);
}

.page-department .list-marked-2 > li::before {
    color: #14f1d9;
}

.page-department .big {
    color: rgba(255, 255, 255, .75);
}

.page-department .title-icon .icon,
.page-department .title-icon-2 .icon {
    color: #14f1d9;
}

@media (prefers-reduced-motion: reduce) {
    .page-department .box-icon-2,
    .page-department .team-box-left,
    .page-department .card,
    .page-department .collage-gallery img,
    .page-department .team-classic-img img {
        transition: none;
    }
}
