/* Портал учебных материалов City Business School.
   Палитра и шрифты — как на основном сайте m-mba.ru: тёмно-синий, синий,
   оранжевый акцент, системные шрифты. Никаких внешних подключений:
   на домене раздачи статики загрузка чужих ресурсов выглядела бы странно
   и добавляла бы точки отказа. */
:root {
    --navy: #214182;
    --blue: #0059AB;
    --blue-soft: #668FB8;
    --orange: #fc8800;
    --ink: #464646;
    --muted: #9b9c9e;
    --line: #e2e6ec;
    --bg: #f5f7fa;
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
}

a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand b { font-size: 19px; letter-spacing: 0.02em; }
.brand span { font-size: 12px; color: #b9c8e0; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: #dce5f2; text-decoration: none; }
.top nav a:hover { color: #fff; }
.btn-login {
    background: var(--orange); color: #fff; text-decoration: none;
    padding: 8px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
}
.btn-login:hover { background: #e07a00; color: #fff; }

/* Заголовок раздела */
.head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 34px 0; }
.head h1 { margin: 0 0 8px; font-size: 26px; color: var(--navy); font-weight: 600; }
.head p { margin: 0; max-width: 720px; color: #5a5f66; }

/* Карточки разделов */
main { padding: 34px 0 44px; }
h2 { font-size: 18px; color: var(--navy); margin: 30px 0 14px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; background: #fff;
}
.card h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); font-weight: 600; }
.card p { margin: 0 0 10px; font-size: 13px; color: #6b7280; }
.card .count { font-size: 12px; color: var(--muted); }

/* Список файлов */
.files { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.files a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--ink); font-size: 14px;
}
.files a:last-child { border-bottom: 0; }
.files a:hover { background: var(--bg); }
.files .type {
    font-size: 11px; font-weight: 700; color: #fff; background: var(--blue-soft);
    padding: 2px 6px; border-radius: 3px; letter-spacing: 0.04em;
}
.files .size { margin-left: auto; color: var(--muted); font-size: 12px; }

.note {
    margin-top: 26px; padding: 14px 16px; background: var(--bg);
    border-left: 3px solid var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px; color: #5a5f66;
}

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
    .top .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .top nav { order: 3; width: 100%; gap: 16px; padding-bottom: 6px; }
    .head { padding: 24px 0; }
    .head h1 { font-size: 21px; }
}
