/* supplement.css — точечные правки вёрстки (Фаза 4). */

/*
  SportSoft: div { float:left } + #page { width:986px }.
  Шапка: [лого 160px][nav 710px][Košík 116px] = 986px.
  Nav стоит РЯДОМ с лого, не под ним. 7×110px в 670px не влезает.
*/

/* Колонка 986px по центру окна — как внутренности футера */
#page {
    float: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* /pages и статьи: лого в <h2>, а reset margin был только у h1 — шапка ехала вниз */
#logoContainer h1,
#logoContainer h2 {
    margin: 0;
}

/* Оригинальный /design/logo.png в архиве отсутствует — берём существующий EFFFI jpg */
#logoContainer a {
    background: url('/media/img/efffi-logo.jpg') center no-repeat;
    background-size: contain;
}

/* leftBanner был position:absolute и вылезал на футер на коротких страницах */
#leftBanner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    float: left;
    margin: 0 0 24px 20px;
}

#contentContainer {
    margin-left: 20px;
}

#fbLikeButton {
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
}

#site-footer {
    position: relative;
    z-index: 2;
}

.romlifooter div {
    float: none !important;
}

/* --- меню: 7 пунктов в исходные 670px --- */
#navigationContainer {
    width: 670px;
    height: 26px;
    overflow: hidden;
}

#navigationContainer ul li a {
    width: auto !important;
    padding-right: 10px;
    box-sizing: border-box;
}

#navigationContainer ul li a span {
    margin-left: 8px;
    white-space: nowrap;
}

/* --- #page флоатится; всё после него уезжает вправо-вверх --- */
.fb-like-box {
    clear: both !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

#site-footer,
body > footer,
footer {
    clear: both !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

#site-footer > div,
body > footer > div,
footer > div {
    float: none !important;
    width: 100%;
    max-width: 986px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* --- showLinks() / showSitewide() --- */
.romlidata,
.romlifooter {
    float: none !important;
    width: 100%;
    clear: both;
}

.romlidata > div {
    float: none !important;
}

section.clearfix {
    float: none !important;
    width: 100%;
    clear: both;
}

/* --- блог: flex ломается от div { float:left } --- */
#blog-cards,
#blog-lm-wrap {
    float: none !important;
    width: 100%;
    clear: both;
}

#blog-cards > div {
    float: none !important;
}

#contentContainer.contentHome > div:not(#content1):not(#content2):not(.cleaner),
#contentContainer > section ~ div {
    float: none !important;
    width: 100%;
    clear: both;
}

#contentContainer.contentHome > div:not(#content1):not(#content2):not(.cleaner) > div,
#contentContainer.contentHome > div:not(#content1):not(#content2):not(.cleaner) > div > div,
#contentContainer > section ~ div > div,
#contentContainer > section ~ div > div > div {
    float: none !important;
}

aside {
    float: none;
    display: block;
}
