/* ============================================
   MAPEI.PRO — СТИЛЬ КАК НА aomapei.ru
   Минимализм, корпоративность, чистота
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 1. База — белый фон, чёрный текст, Inter */
html, body {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* 2. Шапка — как на aomapei.ru: белая, логотип слева, контакты справа */
.site-header,
#main-header,
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Логотип */
.site-logo,
.custom-logo {
    height: 50px;
    width: auto;
}

/* Контакты в шапке — серый текст */
.header-contacts {
    text-align: right;
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
}

.header-contacts a {
    color: #005EB8;
    text-decoration: none;
    font-weight: 500;
}

.header-contacts a:hover {
    text-decoration: underline;
}

/* 3. Контент — узкая колонка по центру */
.entry-content,
.post-content,
.page-content,
.site-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* 4. Заголовки — чёрные, жирные, без лишнего */
h1, h2, h3, h4, h5, h6,
.entry-content > strong,
.entry-content > b,
div > strong,
div > b {
    font-family: 'Inter', Arial, sans-serif;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
    display: block;
    clear: both;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

/* 5. Обычное выделение в тексте — просто жирным */
p strong,
p b,
li strong,
li b {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: 600;
    display: inline;
    margin: 0;
}

/* 6. Абзацы — чёткие, с отступами */
p {
    margin-bottom: 20px;
    text-align: left;
    color: #333333;
}

/* 7. Ссылки — синие, подчёркивание при наведении */
a {
    color: #005EB8;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* 8. Изображения — без теней, без скругления, чистые */
img,
.alignleft,
.alignright,
.alignnone,
.aligncenter,
.wp-caption img,
img[class*="wp-image-"] {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    float: none;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
}

/* 9. Блоки-цитаты — серый фон, без левой полосы */
blockquote,
[class*="wpremark"],
div[class*="wpremark"] {
    max-width: 100%;
    background-color: #f5f5f5;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0;
    border: none;
    border-left: none;
    box-sizing: border-box;
    color: #333333;
    font-style: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Текст в цитатах — тёмно-серый */
blockquote p,
blockquote div,
[class*="wpremark"] p,
[class*="wpremark"] div,
[class*="wpremark"] span {
    color: #333333 !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* 10. Контактная панель в стиле aomapei.ru */
.contact-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 40px;
    text-align: center;
    font-size: 14px;
    color: #666666;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-bar a {
    color: #005EB8;
    text-decoration: none;
    margin: 0 10px;
}

.contact-bar a:hover {
    text-decoration: underline;
}

/* 11. Футер — минимальный, серый */
.site-footer,
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 40px;
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-top: 80px;
}

/* ============================================
   МОБИЛЬНЫЕ (до 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .site-header,
    .header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .header-contacts {
        text-align: center;
        margin-top: 10px;
    }
    
    .entry-content,
    .post-content,
    .page-content {
        margin: 30px auto;
        padding: 0 20px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    
    img,
    .alignleft,
    .alignright,
    .alignnone {
        max-width: 100%;
        height: auto;
        margin: 20px auto;
        float: none;
        display: block;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    blockquote,
    [class*="wpremark"] {
        padding: 20px;
        margin: 20px 0;
    }
    
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 14px;
    }
}

/* ============================================
   МАЛЕНЬКИЕ ЭКРАНЫ (до 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    
    body {
        font-size: 14px;
    }
    
    .entry-content,
    .post-content {
        padding: 0 15px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    
    img {
        margin: 15px auto;
    }
}