

/* Start:/bitrix/templates/bs_education_s1/components/bitrix/news/divisions/bitrix/news.detail/.default/style.css?17822419779498*/
/* =========================
   BASE & RESET WITH BRAND COLORS
========================= */
body {
    margin: 0;
    background: #f8fafc;
    font-family: sans-serif; /* Без кастомных шрифтов */
    color: #1e293b; 
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Насыщенная палитра */
:root {
    --primary: #2563eb; 
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    
    --accent: #690f0e; 
    --accent-gradient: linear-gradient(135deg, #690f0e 0%, #4a0a09 100%);
    
    --contact-bg: #f0fdf4; 
    --contact-border: #e6f4ea;
    --contact-text: #166534;
    
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b; 
    --border-color: #e2e8f0;
    
    --radius-lg: 20px; 
    --radius-md: 12px;
    
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(37, 99, 235, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(37, 99, 235, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

/* =========================
   HERO SECTION (НА ВСЮ ШИРИНУ)
========================= */
.department-hero {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.department-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(15deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(37, 99, 235, 0.15) 100%);
    display: flex;
    align-items: flex-end;
}

.department-hero h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 40px 0;
    width: 100%;
    padding: 0 40px; /* Боковые отступы вместо жесткой ширины */
    line-height: 1.2;
    box-sizing: border-box;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =========================
   LAYOUT (НА ВСЮ ШИРИНУ)
========================= */
.department-container {
    padding: 40px; /* Комфортные паддинги от краев экрана */
    width: 100%;
    box-sizing: border-box;
}

.department-layout {
    display: grid;
    grid-template-columns: 320px 1fr; /* Сайдбар фиксирован, основной контент резиновый на всю ширину */
    gap: 40px;
    align-items: start;
}

/* =========================
   SIDEBAR (STICKY)
========================= */
.department-sidebar {
    position: relative;
    height: 100%;
}

.department-sidebar-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 40px; 
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: calc(100vh - 80px); 
    overflow-y: auto;
    scrollbar-width: none;
    padding: 4px; 
}

.department-sidebar-inner::-webkit-scrollbar {
    display: none;
}

/* =========================
   CARDS & NAVIGATION
========================= */
.department-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    transition: var(--transition);
}

.department-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.department-menu {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.department-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.department-menu a:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.35);
    transform: translateX(4px);
}

/* =========================
   HEAD CARD (РУКОВОДИТЕЛЬ)
========================= */
.head-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.head-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: var(--transition);
}

.head-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 3.5;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
    transition: var(--transition);
}

.head-card:hover::before {
    width: 6px;
}

.head-card:hover .head-img {
    transform: scale(1.02);
    box-shadow: 0 12px 24px -6px rgba(105, 15, 14, 0.2);
}

.head-card:hover .head-name {
    color: var(--accent);
}

.head-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.head-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    transition: var(--transition);
}

.head-position {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.head-academic {
    font-size: 13px; 
    color: #64748b; 
    margin-top: 4px;
    line-height: 1.4;
}

/* =========================
   BUTTON
========================= */
.btn-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #ffffff; 
    color: var(--accent); 
    border: 2px solid var(--accent); 
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(105, 15, 14, 0.04);
    transition: var(--transition);
}

.btn-doc:hover {
    background: var(--accent-gradient); 
    color: #ffffff;
    box-shadow: 0 8px 20px -5px rgba(105, 15, 14, 0.35);
    transform: translateY(-2px);
}

/* =========================
   CONTACTS CARD
========================= */
.contact-card {
    display: flex;
    flex-direction: column;
    background: var(--contact-bg);
    border: 1px solid var(--contact-border);
    padding: 20px; 
    border-radius: var(--radius-md);
}

.contact-card div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0; 
    border-bottom: 1px solid rgba(22, 101, 52, 0.08);
    font-size: 13.5px; 
    font-weight: 500;
    color: var(--contact-text);
    line-height: 1.4;
}

.contact-card div:first-child {
    padding-top: 0;
}

.contact-card div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-card div a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card div a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-card span:first-child {
    font-size: 16px; 
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================
   MAIN CONTENT
========================= */
.text-card {
    line-height: 1.75;
    font-size: 16px;
    color: #334155;
    padding: 48px;
    position: relative;
}

.text-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 48px;
    right: 48px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 0 0 4px 4px;
}

.text-card p {
    margin-top: 0;
    margin-bottom: 1.6em;
}

.text-card h2, .text-card h3 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.text-card h2 {
    font-size: 26px;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}
.text-card h3 { font-size: 21px; }

/* =========================
   RESPONSIVE & TABLET LAYOUT
========================= */
@media (max-width: 1024px) {
    .department-hero {
        height: 300px;
    }
    
    .department-hero h1 {
        font-size: 34px;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .department-container {
        padding: 30px 20px;
    }

    .department-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .department-sidebar-inner {
        position: relative;
        top: auto;
        max-height: none;
        padding: 0;
    }

    .head-card {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .head-img {
        width: 120px;
        height: 120px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }
    
    .head-info {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .department-hero {
        height: 200px;
    }

    .department-hero h1 {
        font-size: 24px;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .department-container {
        padding: 24px 16px;
    }

    .head-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .head-img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .text-card {
        padding: 32px 20px;
    }
    .text-card::after {
        left: 20px;
        right: 20px;
    }
}
/* End */
/* /bitrix/templates/bs_education_s1/components/bitrix/news/divisions/bitrix/news.detail/.default/style.css?17822419779498 */
