/* ========================================
   RATLIK.ORG — ARTICLE.CSS
   Стили для страниц статей
   ======================================== */

/* Заголовки */
.article-h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #f9b400;
    margin: 48px 0 20px;
}

.article-h2:first-of-type {
    margin-top: 20px;
}

.article-h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #e0c878;
    margin: 32px 0 14px;
}

/* Блок с изображением (Траволта) */
.article-img-block {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    margin: 40px 0;
}

.article-img-right {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(191, 164, 102, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-img-right:hover {
    transform: scale(1.04);
    border-color: rgba(191, 164, 102, 0.7);
}

.article-img-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* Блок с картинкой по центру */
.article-img-center {
    margin: 40px 0;
    text-align: center;
}

.article-img-center img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(191, 164, 102, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-img-center img:hover {
    transform: scale(1.02);
    border-color: rgba(191, 164, 102, 0.7);
}

/* Таблица сравнения */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
}

.compare-table thead th {
    background: rgba(191, 164, 102, 0.15);
    color: #f9b400;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #bfa466;
}

.compare-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.compare-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.compare-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(191, 164, 102, 0.15);
    color: #d0d0d0;
    vertical-align: top;
}

.compare-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.1);
}

.compare-table tbody tr:hover {
    background: rgba(191, 164, 102, 0.05);
}

.compare-table tbody td:first-child {
    font-weight: 600;
    color: #e0c878;
    white-space: nowrap;
}

/* Сетка выбора (две колонки) */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

.choice-card {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(191, 164, 102, 0.2);
}

.choice-card h4 {
    color: #f9b400;
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-align: center;
}

.choice-card ul {
    list-style: none;
    padding: 0;
    color: #d0d0d0;
    line-height: 1.9;
}

.choice-card ul li::before {
    content: '✦';
    color: #bfa466;
    margin-right: 10px;
    font-size: 0.7rem;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    border: 1px solid rgba(191, 164, 102, 0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Списки внутри текстовых блоков */
.text-block ul {
    color: #d0d0d0;
    line-height: 2;
    margin: 16px 0;
    padding-left: 24px;
}

.text-block ul li strong {
    color: #e8e8e8;
}

/* ========================================
   СТРАНИЦА ОКРАСОВ
   ======================================== */

/* Цветовые маркеры */
.color-marker {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.marker-black-tan { background: linear-gradient(135deg, #1a1a1a 60%, #c48b3c 60%); }
.marker-brown-tan { background: linear-gradient(135deg, #4a2c1a 60%, #c48b3c 60%); }
.marker-red { background: #b3472a; }
.marker-red-dom { background: #8b1a1a; }
.marker-blue { background: #5b7a9a; }
.marker-lilac { background: #b8a0c8; }
.marker-merle { background: linear-gradient(135deg, #3a3a3a 30%, #8a8a8a 50%, #3a3a3a 70%); }

/* Блок окраса */
.color-block {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 36px 40px;
    border: 1px solid rgba(191, 164, 102, 0.2);
    border-left: 4px solid #bfa466;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.color-block h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f9b400;
    margin-bottom: 20px;
}

/* Сетка три колонки: фото — текст — фото */
.color-row {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 28px;
    align-items: start;
}

.color-row.one-left {
    grid-template-columns: 300px 1fr;
}

.color-row.one-right {
    grid-template-columns: 1fr 300px;
}

.color-row.no-photo {
    grid-template-columns: 1fr;
}

.color-row img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(191, 164, 102, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.color-row img:hover {
    transform: scale(1.04);
    border-color: rgba(191, 164, 102, 0.7);
}

.color-text {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.color-text p {
    margin-bottom: 16px;
}

.color-text p:last-child {
    margin-bottom: 0;
}

/* Подписи к фото */
.gallery-caption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

.gallery-caption a {
    color: #888;
    text-decoration: none;
}

.gallery-caption a:hover {
    color: #bfa466;
}

/* Заглушка "нет фото" */
.no-photo-placeholder {
    width: 100%;
    min-height: 200px;
    background: rgba(0,0,0,0.25);
    border: 2px dashed rgba(191, 164, 102, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Вступление */
.intro-text {
    margin-bottom: 48px;
}

.intro-text p {
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Адаптация */
@media (max-width: 768px) {
    .article-img-block {
        grid-template-columns: 1fr;
    }
    .article-img-block .article-img-wrap {
        max-width: 300px;
        margin: 0 auto;
    }
    .choice-grid {
        grid-template-columns: 1fr;
    }
    .compare-table {
        font-size: 0.8rem;
    }
    .compare-table thead th,
    .compare-table tbody td {
        padding: 10px 12px;
    }
    .article-h2 {
        font-size: 1.5rem;
    }
    .article-h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 1000px) {
    .color-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }
    .color-row.one-left,
    .color-row.one-right {
        grid-template-columns: 1fr 1fr !important;
    }
    .color-text {
        grid-column: 1 / -1;
        order: 3;
    }
    .color-block {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .color-row,
    .color-row.one-left,
    .color-row.one-right {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .color-row img {
        max-width: 300px;
        margin: 0 auto;
    }
    .color-block {
        padding: 20px 18px;
    }
    .color-block h3 {
        font-size: 1.3rem;
    }
    .no-photo-placeholder {
        min-height: 150px;
    }
}