/* =========================================================
   АКАДЕМИЯ СНЮСОНАУК
   Стиль: старый научный веб / 2004–2007
   ========================================================= */

html {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;

    background: #4b5866;

    color: #222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;

    line-height: 1.45;
}

a {
    color: #0000cc;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #ff0000;
}

a:active {
    color: #ff0000;
}


/* =========================================================
   ОСНОВНАЯ ОБЛАСТЬ
   ========================================================= */

.page {
    width: 860px;
    margin: 18px auto;

    background: #eeeeee;

    border: 1px solid #111;

    box-shadow:
        3px 3px 0 #222,
        6px 6px 0 rgba(0, 0, 0, 0.25);
}


/* =========================================================
   ШАПКА
   ========================================================= */

.header {
    min-height: 100px;

    padding: 18px 22px;

    box-sizing: border-box;

    background:
        linear-gradient(
            to bottom,
            #e8edf2 0%,
            #c6d0da 48%,
            #aeb9c4 50%,
            #d9dfe5 100%
        );

    border-bottom: 1px solid #666;

    text-align: left;
}

.header-title {
    margin-top: 8px;

    color: #102b50;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;
    font-weight: bold;

    letter-spacing: 1px;

    text-shadow: 1px 1px 0 #ffffff;
}

.header-subtitle {
    margin-top: 5px;

    color: #444;

    font-family:
        "Times New Roman",
        serif;

    font-size: 15px;
    font-style: italic;
}


/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */

.navigation {
    display: flex;

    padding: 4px;

    background: #d5d5d5;

    border-bottom: 1px solid #777;

    gap: 3px;
}

.navigation a {
    display: block;

    padding: 6px 18px;

    color: #000080;

    background:
        linear-gradient(
            to bottom,
            #ffffff 0%,
            #eeeeee 45%,
            #c7c7c7 100%
        );

    border: 1px solid #777;

    font-size: 12px;
    font-weight: bold;

    text-decoration: none;
}

.navigation a:hover {
    color: #000000;

    background:
        linear-gradient(
            to bottom,
            #eeeeee 0%,
            #cccccc 100%
        );
}

.navigation a:active,
.navigation a.active {
    color: #ffffff;

    background:
        linear-gradient(
            to bottom,
            #345d91 0%,
            #193b68 100%
        );

    border-color: #102b50;
}


/* =========================================================
   ОСНОВНОЙ LAYOUT
   ========================================================= */

.content-layout {
    display: grid;

    grid-template-columns: 190px 1fr;

    min-height: 500px;
}

.sidebar {
    padding: 10px;

    background: #d9d9d9;

    border-right: 1px solid #888;
}

.main-column {
    padding: 12px;

    background: #f5f5f5;
}


/* =========================================================
   БОКОВАЯ ПАНЕЛЬ
   ========================================================= */

.sidebar-block {
    margin-bottom: 12px;

    background: #eeeeee;

    border: 1px solid #888;
}

.sidebar-title {
    padding: 5px 7px;

    color: #ffffff;

    background:
        linear-gradient(
            to bottom,
            #4d7097,
            #294d75
        );

    border-bottom: 1px solid #18334e;

    font-size: 11px;
    font-weight: bold;
}

.sidebar-menu {
    margin: 0;
    padding: 6px 9px 8px 25px;
}

.sidebar-menu li {
    margin: 3px 0;
}

.news-mini {
    padding: 7px;

    border-bottom: 1px dotted #888;

    font-size: 11px;
}

.news-mini strong {
    display: block;

    margin-bottom: 2px;

    color: #555;

    font-size: 10px;
}

.news-mini a {
    display: block;
}

.sidebar-more {
    padding: 6px;

    text-align: right;

    font-size: 11px;
}


/* =========================================================
   БЛОКИ КОНТЕНТА
   ========================================================= */

.content-box {
    margin-bottom: 12px;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #aaa;

    box-shadow: inset 1px 1px 0 #ffffff;
}

.content-box h1 {
    margin: 0 0 10px 0;

    padding-bottom: 5px;

    color: #173c67;

    border-bottom: 2px solid #54769b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;
}

.content-box h2 {
    margin: 0 0 8px 0;

    padding-bottom: 4px;

    color: #173c67;

    border-bottom: 1px solid #aaa;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;
}

.content-box h3 {
    margin: 4px 0;

    color: #333;

    font-size: 14px;
}

.content-box p {
    margin: 7px 0;
}


/* =========================================================
   УВЕДОМЛЕНИЯ
   ========================================================= */

.notice {
    margin: 12px 0 4px;

    padding: 8px 10px;

    background: #fff8cc;

    border: 1px solid #b8a94b;

    color: #554d00;
}


/* =========================================================
   НОВОСТИ
   ========================================================= */

.news-item {
    margin-bottom: 14px;
    padding-bottom: 12px;

    border-bottom: 1px dotted #888;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: none;
}

.news-date {
    color: #777;

    font-size: 11px;
    font-weight: bold;
}


/* =========================================================
   СПИСКИ
   ========================================================= */

.old-list {
    margin: 7px 0;
    padding-left: 28px;
}

.old-list li {
    margin: 7px 0;
}


/* =========================================================
   ПРОЕКТЫ
   ========================================================= */

.project {
    margin: 9px 0;
    padding: 8px;

    background: #eeeeee;

    border: 1px solid #aaa;
}

.project h3 {
    margin-top: 0;
}

.status {
    display: inline-block;

    padding: 2px 6px;

    border: 1px solid #555;

    font-size: 10px;
    font-weight: bold;
}

.status-active {
    color: #ffffff;

    background: #286628;

    border-color: #164216;
}


/* =========================================================
   ПОДВАЛ
   ========================================================= */

.footer {
    padding: 14px;

    background: #d3d3d3;

    border-top: 1px solid #777;

    color: #444;

    font-size: 11px;

    text-align: center;
}

.footer a {
    font-size: 11px;
}

.footer-line {
    width: 70%;

    margin: 9px auto;

    border-top: 1px solid #999;
}

.visitor-counter {
    margin-top: 6px;

    font-family:
        "Courier New",
        monospace;

    font-size: 12px;
}

.browser-note {
    margin-top: 5px;

    color: #666;

    font-family:
        "Times New Roman",
        serif;

    font-size: 11px;
    font-style: italic;
}


/* =========================================================
   ПРОЧЕЕ
   ========================================================= */

.small-text {
    color: #666;

    font-size: 11px;
}


/* =========================================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
   Сайт всё ещё выглядит старым, но не ломается.
   ========================================================= */

@media (max-width: 900px) {

    .page {
        width: calc(100% - 20px);

        margin: 10px;
    }

    .content-layout {
        grid-template-columns: 170px 1fr;
    }
}

@media (max-width: 650px) {

    .page {
        width: calc(100% - 10px);

        margin: 5px;
    }

    .content-layout {
        display: block;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #888;
    }

    .navigation {
        flex-wrap: wrap;
    }

    .navigation a {
        flex: 1 1 auto;

        text-align: center;
    }

    .header-title {
        font-size: 23px;
    }
}