/* =============================================
   ШАБЛОН ТЕМЫ 1 – page-theme1.css
============================================= */

/* ---- Обёртка ---- */
.theme1-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ---- Заголовок страницы ---- */
.theme1-page-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 30px 0;
    text-align: center;
    color: #1a1a1a;
}

/* ---- Контент (текст) ---- */
.theme1-page-content {
    font-weight: 200;
    line-height: 1.8;
    color: #1a1a1a;
}

.theme1-page-content p {
    margin-bottom: 1.2em;
}

/* ---- Изображения ---- */
.theme1-page-content img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
}

/* ---- Ссылки ---- */
.theme1-page-content a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.theme1-page-content a:hover {
    color: #818181;
    border-bottom-color: #818181;
}

/* ---- Заголовки H2-H4 ---- */
.theme1-page-content h2,
.theme1-page-content h3,
.theme1-page-content h4 {
    font-weight: 300;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #1a1a1a;
}

/* ---- Списки ---- */
.theme1-page-content ul,
.theme1-page-content ol {
    padding-left: 1.8em;
    margin-bottom: 1.2em;
}
.theme1-page-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* ---- Таблицы (если будут) ---- */
.theme1-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.theme1-page-content table th,
.theme1-page-content table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.theme1-page-content table th {
    background: #f5f5f5;
    font-weight: 400;
}

/* ---- Цитаты ---- */
.theme1-page-content blockquote {
    margin: 1.5em 0;
    padding: 15px 25px;
    border-left: 4px solid #ccc;
    background: #f8f8f8;
    font-style: italic;
    color: #555;
}
.theme1-page-content blockquote p:last-child {
    margin-bottom: 0;
}

/* ---- Код и преформатированный текст ---- */
.theme1-page-content pre,
.theme1-page-content code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #333;
}
.theme1-page-content pre {
    padding: 15px;
    overflow-x: auto;
}

/* ---- Горизонтальная линия ---- */
.theme1-page-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

/* ---- Видео/iframe (адаптив) ---- */
.theme1-page-content iframe,
.theme1-page-content video {
    max-width: 100%;
    border-radius: 10px;
}

/* ---- Галлерея (если используется) ---- */
.theme1-page-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 1.5em 0;
}
.theme1-page-content .gallery-item {
    margin: 0;
}
.theme1-page-content .gallery-item img {
    border-radius: 10px;
    margin: 0;
}

/* ---- Адаптив для мобильных ---- */
@media (max-width: 768px) {
    .theme1-page-wrapper {
        padding: 25px 15px;
    }
    .theme1-page-title {
        font-size: 24px;
    }
    .theme1-page-content {
        font-size: 15px;
    }
    .theme1-page-content ul,
    .theme1-page-content ol {
        padding-left: 1.2em;
    }
}

@media (max-width: 480px) {
    .theme1-page-wrapper {
        padding: 20px 10px;
    }
    .theme1-page-title {
        font-size: 20px;
    }
    .theme1-page-content {
        font-size: 14px;
    }
    .theme1-page-content .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}