@charset "UTF-8";

/* 1. Сброс стилей браузера и шрифты + КРАСИВЫЙ ФОН САЙТА */
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }

body {
    background-image: url('img/2.png'); 
    background-repeat: no-repeat;
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center center;
    color: #444;
    font-family: 'Lato', 'Arial', sans-serif;
    font-size: 18px;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* 2. Структура верхней текстовой плашки */
.big-wrapper { overflow: hidden; width: 100%; }
.header-cover { background-color: rgba(0,0,0,0); width: 100%; }

#header {
    margin-top: 0px;
    width: 100%;
    padding: 20px 10px;
    font-size: 36px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(200,200,200,.2);
    color: #2d2d2d;
}

/* 3. Кастомная интерактивная сетка Арт-Север */
#logo {
    background-image: url('img/logo0000.png');
    height: 280px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    text-align: center;
    background-size: auto 280px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo #grid {
    width: 900px;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#logo #grid .lgrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#logo #grid .lgrow.row-two,
#logo #grid .lgrow.row-three {
    padding: 0 135px;
}

/* Стили картинок-плиток */
#logo #grid .lgcell {
    width: 250px;
    height: 80px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    filter: grayscale(100%);
    opacity: .5;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

#logo:hover #grid:hover .lgcell:hover {
    opacity: 1;
    filter: none;
}

/* Стили текстового разделителя ;> */
#logo #grid .lgccell {
    width: 280px;
    color: #FFF;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

/* 4. Центрирование и правильное выравнивание колонок */
.section-inner {
    width: 1040px;
    max-width: 90%;
    margin: 0 auto;
}

.wrapper { 
    margin-top: 50px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    width: 1040px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;
}

.content { width: 30%; }

.post {
    background: #ffffff; 
    padding: 25px; 
    border-radius: 6px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.post h2 { font-size: 28px; color: #2d2d2d; font-weight: bold; margin-bottom: 15px; }
.post p { line-height: 170%; margin-bottom: 1.1em; font-size: 18px; }
.sidebar { width: 65%; }

.widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    color: #444;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    letter-spacing: 1px;
}

/* 5. ИДЕАЛЬНАЯ МОБИЛЬНАЯ АДАПТИВНОСТЬ */
@media only screen and (max-width: 900px) {
    body {
        background-attachment: scroll; 
        background-size: 100% auto;
        background-color: #f4f3ef;
    }

    #header { font-size: 24px; }
    .header-cover { padding: 0 !important; margin: 0 !important; }

    /* Заставляем картинку логотипа раскрыться на мобильном ПОЛНОСТЬЮ */
    #logo { 
        background-size: cover; /* Растягиваем изображение на весь блок */
        background-position: center center;
        height: auto;
        min-height: 240px; /* Принудительно задаем красивую высоту шапки на смартфонах */
        padding: 15px 10px; 
        margin: 0; 
        display: flex;
    }
    
    #logo #grid {
        width: 100%;
        gap: 8px;
    }

    #logo #grid .lgrow,
    #logo #grid .lgrow.row-two,
    #logo #grid .lgrow.row-three {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
        width: 100%;
        padding: 0 !important;
    }

    #logo #grid .lgccell {
        grid-column: span 2;
        order: -1; 
        width: 100%;
        padding: 3px 0;
        font-size: 22px;
    }
    
    #logo #grid .lgcell { 
        width: 100% !important;
        height: 75px; 
        opacity: 0.9; 
        filter: none; 
    }
    
    .wrapper { display: block; margin-top: 25px; }
    .content, .sidebar { width: 100%; float: none; margin-bottom: 20px; }
}