/* ==================== ФОНОВЫЕ КАРТИНКИ И БАЗА ==================== */
body {
    background: url(../img/fon-center.gif),
                url(../img/elka13.jpg) 1% 98% no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.center {
    background: #FFF; 
    max-width: 900px; /* Ширина */
    box-shadow: 0px 10px 15px #555555; /* Полоски по краям */
    margin: 0px auto; /* Блок по центру */
    height: auto;
    padding: 1px 0px 20px 0px; /* Чуть увеличил нижний отступ */
}

.baner {
    background: url(../img/baner.png); /* Цвет фона левой колонки */
    height: 249px; /* Высота блока */
    width: 900px; /* Ширина блока */
    margin: 0px auto;
}

h2 {
    color: red;
    font: bold italic 20pt Times New Roman;
    text-align: center;   
}

p {
    text-indent: 25px; /* Отступ первой строки */
    line-height: 1.5; /* Расстояние между строк */
}

.footer {
    background: url(../img/footer.png); /* Цвет фона подвала */
    color: #fff; /* Цвет текста */
    padding: 5px; /* Отступы вокруг текста */
    clear: left; /* Отменяем действие float */
    height: 50px;
}

/* ==================== БЛОКИ С ТЕКСТОМ ==================== */
.radius {
    background: #f0f0f0; /* Цвет фона */
    padding: 15px; /* Поля вокруг текста */
    margin: 0px auto 30px;
    font: 14pt 'Times New Roman', Times;
    text-align: justify;
    text-indent: 25px; /* Отступ первой строки */
    line-height: 1.5; /* Расстояние между строк */
    width: 680px;
    border-radius: 20px 20px;
    box-shadow: 0px 10px 15px rgba(111, 145, 241, 0.54); /* Полоски по краям */
    box-sizing: border-box;
}

.reklama {
    background: #f0f0f0; /* Цвет фона */
    padding: 15px; /* Поля вокруг текста */
    margin: 0px auto 30px;
    font: 14pt 'Times New Roman', Times;
    text-align: justify;
    text-indent: 25px; /* Отступ первой строки */
    width: 680px;
    border-radius: 20px 20px;
    box-shadow: 0px 10px 15px rgba(111, 145, 241, 0.54); /* Полоски по краям */
    box-sizing: border-box;
}

.name-pismo {
    font: bold italic 110% serif;
    color: red; /* Цвет текста */
    text-indent: 0; /* Убираем отступ, так как это заголовок */
}

.opublikovano {
    font: bold italic 80% serif;
    color: #705335; /* Цвет текста */
    text-indent: 0;
}

/* ==================== ФОРМА (ПИСЬМО) ==================== */
.forma-pismo {
    background: url(../img/pismo.jpg) no-repeat;
    height: 695px; /* Высота блока */
    padding: 105px 0px 0px 0px;
    margin: 0px auto 30px;
    font: 14pt 'Times New Roman', Times;
    text-indent: 25px; /* Отступ первой строки */
    line-height: 1.5; /* Расстояние между строк */
    width: 700px;
    border-radius: 20px 20px;
    box-shadow: 0px 10px 15px rgba(111, 145, 241, 0.54); /* Полоски по краям */
    text-align: center;
    box-sizing: border-box;
}

.forma-pismo p {
    text-indent: 0; /* Внутри формы выравниваем по центру без отступов */
}

.forma-pismo input[type="text"],
.forma-pismo textarea {
    border: 1px solid #b8cfe4;
    border-radius: 6px;
    padding: 8px 10px;
    font: 12pt 'Times New Roman', Times;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    text-indent: 0;
    width: 400px;
    max-width: 100%;
}

.forma-pismo input[type="text"]:focus,
.forma-pismo textarea:focus {
    outline: none;
    border-color: #1c4e80;
    box-shadow: 0 0 0 3px rgba(28, 78, 128, .15);
}

.forma-pismo textarea {
    resize: vertical;
    min-height: 120px;
}

.forma-pismo input[type="image"] {
    margin-top: 10px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    max-width: 100%;
}

/* Скрываем поле для спам-ботов */
.spam {
    display: none !important;
}

/* ==================== ОТВЕТ ДЕДА МОРОЗА ==================== */
.reply-box {
    background: #f5ffe5;
    border-left: 4px solid #0a7d32;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 12px 0 6px;
    text-indent: 0;
    text-align: left;
}

.reply-who {
    color: #0a7d32;
    font: bold italic 110% serif;
    margin-bottom: 6px;
}

.reply-date {
    color: #888;
    font: normal normal 12px Arial, sans-serif;
}

.reply-text {
    white-space: pre-wrap;
    color: #234;
    font: 14pt 'Times New Roman', Times;
    text-indent: 0;
}

/* ==================== ПАГИНАЦИЯ ==================== */
.radius-nomer {
    background: #f0f0f0;
    padding: 20px;
    padding-bottom: 40px; /* Уменьшил отступ снизу, так как теперь есть flex */
    margin: 0px auto 30px;
    width: 680px;
    border-radius: 20px 20px;
    box-shadow: 0px 10px 15px rgba(111, 145, 241, 0.54);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nomer {
    font: bold italic 100% serif;
    color: #705335;
    margin: auto 7px;
    line-height: 1.5;
}

.radius-nomer a.nomer,
.radius-nomer b.nomer {
    display: inline-block;
    text-decoration: none;
    color: #705335;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.radius-nomer a.nomer:hover {
    background: #e0e0e0;
}

.radius-nomer b.nomer.active {
    background: #c8102e;
    color: #fff;
}

.radius-nomer .nomer.nav {
    background: #c8102e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
}

.radius-nomer .nomer.nav:hover {
    background: #a00d25;
}

.radius-nomer .dots {
    color: #705335;
    font-weight: bold;
}

/* Кнопка «Показать ещё» */
a.nomer.nav {
    display: inline-block;
    padding: 8px 14px;
    background: #c8102e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font: bold italic 100% serif;
}
a.nomer.nav:hover {
    background: #a00d25;
}

/* ==================== АДАПТИВ (ТЕЛЕФОНЫ) ==================== */
@media (max-width: 720px) {
    .center {
        width: 100%;
    }
    .baner {
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    .radius, 
    .reklama,
    .radius-nomer {
        width: 95%;
    }
    .forma-pismo {
        width: 95%;
        background-size: cover;
        background-position: center;
        height: auto;
        padding-bottom: 50px;
    }
    iframe {
        width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}