/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue:        #1a3a6b;
    --blue-dark:   #122c55;
    --blue-mid:    #2756a0;
    --blue-light:  #e8eef7;
    
    --red-accent: #cc1a1a;
    --bg:          #f5f5f5;
    --bg-card:     #ffffff;
    --text:        #1a1a1a;
    --text-mid:    #3d3d3d;
    --text-light:  #666666;
    --border:      #d0d6de;
    --border-light:#e8eaed;
    --shadow:      0 1px 4px rgba(0,0,0,0.1);
    --radius:      3px;
    --font: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--blue); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.topbar a { color: rgba(255,255,255,0.7); font-size: 12px; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ===== HEADER ===== */
.header {
    background: var(--blue);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
    display: flex;
    align-items: stretch;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 0 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: 4px;
    text-decoration: none;
    white-space: nowrap;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.logo-text em { color: #cc1a1a; font-style: normal; }

.nav {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.nav a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.nav a.active {
    color: #fff;
    border-bottom-color: #cc1a1a;
    background: rgba(255,255,255,0.06);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    background: var(--blue);
    background-image: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
    color: #fff;
    height: 110px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid #cc1a1a;
    overflow: hidden;
}
.hero h1 { margin: 0; font-size: 1.75rem; }
.hero p  { display: none; }
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.8);
}
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.hero p {
    display: none;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.6;
}
.hero-emblem {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    background: var(--blue);
    background-image: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
    color: #fff;
    height: 110px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid #cc1a1a;
    overflow: hidden;
}
.page-header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
}
.page-header p { display: none; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: none;
}
.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a { color: var(--blue-mid); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--border); }

/* ===== SECTIONS ===== */
.section { padding: 40px 0; }
.section--gray { background: #efefef; }
.section--blue { background: var(--blue-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 10px;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.section-more {
    font-size: 13px;
    color: var(--blue-mid);
}

/* ===== CARDS (text-only, no images) ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.card {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--text);
    border-left: 4px solid var(--blue);
}
.card:hover { background: var(--blue-light); text-decoration: none; }
.card:hover .card-num { background: #cc1a1a; }
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}
.card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.15s;
}
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cc1a1a;
    font-weight: 700;
}
.card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.35;
}
.card-body p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}
.card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NEWS ===== */
.news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.news-item {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    display: flex;
    align-items: stretch;
    transition: background 0.15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--blue-light); }
.news-date-col {
    width: 80px;
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.news-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.news-month {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.8px;
    margin-top: 3px;
}
.news-content {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-content h3 {
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}
.news-content h3 a { color: var(--text); }
.news-content h3 a:hover { color: var(--blue); text-decoration: none; }
.news-content p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ===== CLASS GRID ===== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.class-card {
    background: var(--bg-card);
    padding: 20px 10px;
    text-align: center;
    cursor: default;
    transition: background 0.15s;
}
.class-card:hover {
    background: var(--blue);
}
.class-card:hover .class-num { color: #cc1a1a; }
.class-card:hover .class-label { color: rgba(255,255,255,0.75); }
.class-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue);
    transition: color 0.15s;
}
.class-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
    transition: color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== SUBJECT LIST ===== */
.subject-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.subject-item {
    background: var(--bg-card);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
    font-size: 0.9rem;
}
.subject-item:hover { background: var(--blue-light); }
.subject-icon {
    width: 32px;
    height: 32px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* ===== INFO BOX ===== */
.info-box {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    padding: 18px 22px;
    margin: 24px 0;
}
.info-box h4 {
    color: var(--blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.info-box p { font-size: 0.9rem; color: var(--text-mid); }

.warn-box {
    background: #fdf0f0;
    border-left: 4px solid #cc1a1a;
    padding: 18px 22px;
    margin: 24px 0;
}
.warn-box h4 { color: #cc1a1a; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.warn-box p { font-size: 0.9rem; color: var(--text-mid); }

/* ===== DATA TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}
.data-table th {
    background: var(--blue);
    color: #fff;
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}
.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--blue-light); }
.data-table tr:hover td { background: #dce6f4; }

/* ===== ARTICLE ===== */
.article-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    padding: 36px 0;
}
.article-main {}
.article-aside {}

.article-main h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    line-height: 1.3;
}
.article-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-img {
    width: 100%;
    margin: 20px 0;
    border: 1px solid var(--border);
}
.article-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.article-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 8px;
}
.article-content p { margin-bottom: 14px; line-height: 1.7; }
.article-content ul, .article-content ol {
    margin: 0 0 16px 22px;
}
.article-content li { margin-bottom: 7px; line-height: 1.6; }
.article-content strong { color: var(--text); }

/* Aside box */
.aside-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    padding: 18px;
    margin-bottom: 20px;
}
.aside-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--blue);
    margin-bottom: 12px;
    font-weight: 700;
}
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}
.aside-box ul li:last-child { border-bottom: none; }
.aside-box ul li a { color: var(--blue-mid); }
.aside-box ul li a:hover { color: var(--blue); }

/* ===== PHOTO STRIP ===== */
.photo-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 28px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.photo-strip img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    transition: transform 0.3s, box-shadow 0.3s;
}
.photo-strip img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Одиночный фото-баннер (главная страница) */
.photo-strip--single {
    padding: 24px 20px;
}
.photo-strip--single img {
    width: 100%;
    max-width: 900px;
    height: 260px;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .photo-strip { gap: 12px; padding: 20px 16px; }
    .photo-strip img { width: 185px; height: 185px; }
    .photo-strip--single img { height: 190px; }
}
@media (max-width: 680px) {
    .photo-strip { gap: 10px; padding: 16px 12px; }
    .photo-strip img { width: 140px; height: 140px; }
    .photo-strip--single img { height: 160px; }
}
@media (max-width: 600px) {
    .photo-strip { flex-direction: column; align-items: center; padding: 20px 16px; }
    .photo-strip img { width: 100%; max-width: 340px; height: 220px; }
    .photo-strip--single img { height: 180px; }
}

/* ===== STATS ROW ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.stat-item {
    background: var(--bg-card);
    padding: 20px;
    text-align: center;
}
.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.6);
    margin-top: auto;
    font-size: 13px;
}
.footer-main {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.footer-logo em { color: #cc1a1a; font-style: normal; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.5); max-width: 320px; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .article-wrap { grid-template-columns: 1fr; }
    .article-aside { display: none; }
}
@media (max-width: 768px) {
    .nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--blue-dark); padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 20px; border-bottom: none; border-left: 3px solid transparent; }
    .nav a.active { border-left-color: #cc1a1a; }
    .burger { display: flex; }
    .header-inner { position: relative; }
    .hero h1 { font-size: 1.5rem; }
    .hero-emblem { display: none; }
    .topbar { display: none; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .class-grid { grid-template-columns: repeat(4, 1fr); }
    .cards { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
