/* ============================================================
   ШРИФТЫ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Merriweather:wght@400;700&family=Courier+Prime&display=swap');

/* ============================================================
   БАЗА
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4edd8;
    color: #2c2c2c;
    font-family: 'Merriweather', serif;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.newspaper-header {
    border-bottom: 3px double #6b5b4b;
    padding: 20px 0 10px;
    background: #f4edd8;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   ЛОГОТИП С ВИНЬЕТКОЙ
   ============================================================ */
.logo {
    width: 100%;
    text-align: center;
    padding: 9px 0 1px;
    background: url('../img/ornaments/header-vignette.png') no-repeat center center;
    background-size: 620px auto;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
}

.logo span {
    font-size: 14px;
    letter-spacing: 6px;
    color: #6b5b4b;
    margin-top: 2px;
}

/* ============================================================
   ПОДЗАГОЛОВОК ЛОГОТИПА (ОТДЕЛЬНЫЙ БЛОК)
   ============================================================ */
.logo-subtitle {
    text-align: center;
    margin-top: -6px;
    margin-bottom: 8px;
}

.logo-subtitle span {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #555;
    font-family: 'Merriweather', serif;
    line-height: 1.5;
    text-shadow: none;
}

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */
.ticker {
    background: #e8dfcc;
    padding: 8px 0;
    border-top: 1px solid #6b5b4b;
    border-bottom: 1px solid #6b5b4b;
    margin-top: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-block;
    animation: ticker-scroll 90s linear infinite;
}

.ticker-inner span {
    display: inline-block;
    padding: 0 30px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #2c2c2c;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   ПОИСК
   ============================================================ */
.search-bar {
    margin: 30px 0 20px;
    text-align: center;
}

.search-bar input {
    padding: 10px 16px;
    width: 60%;
    max-width: 400px;
    border: 1px solid #6b5b4b;
    background: #fcf8f0;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 24px;
    background: #8b0000;
    color: #f4edd8;
    border: 1px solid #8b0000;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
}

/* ============================================================
   СЕТКА НОВОСТЕЙ — 3 КОЛОНКИ
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    background: #fcf8f0;
    border: 1px solid #6b5b4b;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Merriweather', serif;
}

/* ============================================================
   ВИНЬЕТКА В КАРТОЧКЕ
   ============================================================ */
.news-body {
    position: relative;
    padding-right: 30px;
}

.vignette-symbol {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    opacity: 0.5;
}

.vignette-symbol.vip {
    color: #8b0000;
}

.vignette-symbol:not(.vip) {
    color: #d4880f;
}

/* ============================================================
   СТРАНИЦА НОВОСТИ
   ============================================================ */
.newspaper-article {
    background: #fcf8f0;
    border: 1px solid #6b5b4b;
    padding: 30px;
    margin: 20px 0;
}

.article-icon {
    font-size: 60px;
    margin-bottom: 8px;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a1a;
    margin: 6px 0;
}

.article-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    color: #6b5b4b;
    margin: 6px 0 16px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.9;
    color: #2c2c2c;
}

/* ============================================================
   КОММЕНТАРИИ
   ============================================================ */
.comments-section {
    margin-top: 40px;
    border-top: 2px solid #6b5b4b;
    padding-top: 20px;
}

.comments-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.comment {
    background: #fcf8f0;
    border: 1px solid #6b5b4b;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.comment strong {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #1a1a1a;
}

.comment-date {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: #6b5b4b;
    margin-bottom: 4px;
}

.comment p {
    font-size: 15px;
    color: #2c2c2c;
    margin: 4px 0 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    background: #fcf8f0;
    border: 1px solid #6b5b4b;
    border-radius: 0;
    color: #2c2c2c;
    box-sizing: border-box;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    background: #8b0000;
    color: #f4edd8;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.comment-form button:hover {
    background: #a00000;
}

/* ============================================================
   ПОСЛЕДНИЕ КОММЕНТАРИИ (на главной)
   ============================================================ */
.latest-comments {
    margin-top: 40px;
    border-top: 2px solid #6b5b4b;
    padding-top: 20px;
}

.latest-comments h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.newspaper-footer {
    border-top: 3px double #6b5b4b;
    padding: 20px 0;
    margin-top: 30px;
    background: #f4edd8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-links a {
    color: #6b5b4b;
    text-decoration: none;
    margin-left: 16px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo-subtitle span {
        font-size: 15px;
    }

    .search-bar input {
        width: 80%;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 8px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .news-body {
        position: relative;
        padding-left: 30px;
        padding-bottom: 10px;
        min-height: 50px;
    }

    .vignette-l {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 14px;
        height: auto;
        opacity: 0.6;
    }

    .vignette-l.vip {
        opacity: 1;
    }
}

/* ============================================================
   АДАПТИВ ДЛЯ ВИНЬЕТКИ (ТЕЛЕФОН)
   ============================================================ */
@media (max-width: 768px) {
    .vignette-l {
        width: 30px !important;
    }
    .news-body {
        padding-right: 40px !important;
    }
}

/* ============================================================
   АДАПТИВ ДЛЯ ВИНЬЕТКИ (МАЛЕНЬКИЙ ТЕЛЕФОН)
   ============================================================ */
@media (max-width: 480px) {
    .vignette-l {
        width: 20px !important;
    }
    .news-body {
        padding-right: 30px !important;
    }
}

/* ============================================================
   КАРТИНКА НОВОСТИ НА СТРАНИЦЕ
   ============================================================ */
.news-image-single {
    display: block;
    width: auto;
    max-width: 80%;
    height: auto;
    margin: 10px 0 24px 0;
    border: 1px solid #6b5b4b;
    border-radius: 0;
    background: #fcf8f0;
}