﻿/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-image: url('fon14.jpg');
    background-repeat: repeat;
    background-position: top left;
    color: #1a1a1a;
    line-height: 1.3;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ БЛОКОВ-КАРТОЧЕК ===== */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    padding: 16px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ===== ВЕРХНЯЯ СТРОКА (3 колонки) ===== */
.top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-row-left {
    font-size: 0.85rem;
    color: #1a1a1a;
    text-align: left;
    min-width: 120px;
}

.top-row-left .phone {
    font-weight: 600;
}

.top-row-center {
    text-align: center;
    flex: 1;
}

.top-row-center h1 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

.top-row-right {
    text-align: right;
    min-width: 80px;
}

.top-row-right img {
    max-height: 50px;
    width: auto;
    display: inline-block;
}

/* ===== КАРТИНКИ ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-full {
    width: 100%;
    border-radius: 6px;
}

/* ===== ЗАГОЛОВКИ ===== */
h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

/* ===== ТЕКСТ ===== */
p {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #1a1a1a;
}

ul, ol {
    font-size: 0.9rem;
    padding-left: 22px;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

li {
    margin-bottom: 3px;
    color: #1a1a1a;
}

/* ===== СПЕЦИАЛЬНО ДЛЯ БЛОКА ВЫСТАВОК ===== */
.exhibitions li {
    font-weight: 400;
}

/* ===== ДВЕ КОЛОНКИ (адрес + время) ===== */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.two-col-left {
    flex: 1 1 45%;
    min-width: 200px;
}

.two-col-right {
    flex: 1 1 45%;
    min-width: 200px;
}

.two-col-left p,
.two-col-right p {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

/* ===== КАРТА ===== */
.map-container {
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    display: block;
    border: 0;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background-color: #1e4a2b;
    color: #d9e6d3;
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    border: none;
}

.footer a {
    color: #d9e6d3;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    .card {
        padding: 14px 16px;
    }
    .top-row {
        flex-direction: column;
        text-align: center;
    }
    .top-row-left {
        text-align: center;
    }
    .top-row-right {
        text-align: center;
    }
    .top-row-center h1 {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 0.95rem;
    }
    .two-col {
        flex-direction: column;
        gap: 10px;
    }
    .map-container iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 6px;
    }
    .container {
        gap: 6px;
    }
    .card {
        padding: 10px 10px;
        border-radius: 8px;
    }
    .top-row-center h1 {
        font-size: 0.95rem;
    }
    .top-row-left {
        font-size: 0.75rem;
    }
    .top-row-right img {
        max-height: 35px;
    }
    h2 {
        font-size: 0.85rem;
    }
    h3 {
        font-size: 0.85rem;
    }
    p, ul, ol {
        font-size: 0.8rem;
    }
    .map-container iframe {
        height: 200px;
    }
    .footer {
        font-size: 0.75rem;
        padding: 10px 10px;
    }
}