/* =========================================================
   АВОСЬ ПРИГОДИТСЯ — основной CSS
   ========================================================= */


/* =========================================================
   ОСНОВНОЙ КОНТЕЙНЕР ГЛАВНОЙ
   ========================================================= */

.home-modern {
    max-width: 1180px;
    margin: 0 auto;
    padding: 35px 20px 70px;
    color: #333333;
}


/* =========================================================
   ГЛАВНЫЙ HERO-БЛОК
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 55px;
    padding: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.07);
}

.home-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 0 22px;
    color: #171717;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
}

.home-hero-lead {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   СЕКЦИИ
   ========================================================= */

.home-section {
    margin-bottom: 55px;
}

.home-section-title {
    margin: 0 0 12px;
    color: #171717;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.home-section-intro {
    max-width: 800px;
    margin: 0 0 28px;
    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   КАРТОЧКИ ПРЕИМУЩЕСТВ
   ========================================================= */

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-feature {
    padding: 28px 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: #2563eb;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

.home-feature h3 {
    margin: 0 0 9px;
    color: #171717;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.home-feature p {
    margin: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   ИЗОБРАЖЕНИЯ
   ========================================================= */

.home-image {
    margin: 30px 0 0;
    overflow: hidden;
    border-radius: 16px;
}

.home-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 16px;
}


/* =========================================================
   КАТЕГОРИИ
   ========================================================= */

.home-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-category {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.home-category h3 {
    margin: 0 0 12px;
    color: #171717;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.home-category p {
    margin: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   ПОПУЛЯРНЫЕ МАТЕРИАЛЫ
   ========================================================= */

.home-popular {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.home-popular-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-popular-list li {
    margin: 0 0 10px;
}

.home-popular-list li:last-child {
    margin-bottom: 0;
}

.home-popular-list a {
    display: block;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #2563eb;
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-popular-list a:hover {
    background: #f3f7ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}


/* =========================================================
   ИНФОРМАЦИОННЫЕ БЛОКИ
   ========================================================= */

.home-info {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.home-info p {
    margin: 0 0 18px;
    color: #444444;
    font-size: 17px;
    line-height: 1.75;
}

.home-info p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   БЛОК ЦЕЛИ
   ========================================================= */

.home-tip {
    margin-top: 25px;
    padding: 28px 30px;
    background: #f3f7ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 14px 14px 0;
}

.home-tip p {
    margin: 0 0 12px;
    color: #333333;
    font-size: 17px;
    line-height: 1.7;
}

.home-tip p:last-child {
    margin-bottom: 0;
}

.home-tip strong {
    color: #171717;
}


/* =========================================================
   ФИНАЛЬНЫЙ БЛОК
   ========================================================= */

.home-welcome {
    padding: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 18px;
    color: #ffffff;
}

.home-welcome h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.home-welcome p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   РАЗДЕЛИТЕЛИ
   ========================================================= */

.home-divider {
    height: 1px;
    margin: 55px 0;
    background: #e5e7eb;
    border: 0;
}


/* =========================================================
   СКРЫВАЕМ СТАНДАРТНЫЙ ЗАГОЛОВОК ГЛАВНОЙ ASTRA
   ========================================================= */

body.home .entry-title {
    display: none !important;
}


/* =========================================================
   ОТСТУП СВЕРХУ ГЛАВНОЙ
   ========================================================= */

body.home .site-content {
    padding-top: 10px !important;
}

body.home .home-modern {
    padding-top: 0;
}


/* =========================================================
   УБИРАЕМ КНОПКУ SUBSCRIBE
   ========================================================= */

.ast-header-button-1 {
    display: none !important;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .home-hero {
        padding: 45px 35px;
    }

    .home-features,
    .home-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-popular {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 650px) {

    .home-modern {
        padding: 20px 15px 50px;
    }

    .home-hero {
        margin-bottom: 40px;
        padding: 35px 25px;
        border-radius: 15px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero-lead {
        font-size: 17px;
    }

    .home-section {
        margin-bottom: 40px;
    }

    .home-section-title {
        font-size: 27px;
    }

    .home-features,
    .home-categories {
        grid-template-columns: 1fr;
    }

    .home-feature,
    .home-category {
        padding: 23px;
    }

    .home-info {
        padding: 25px 20px;
    }

    .home-tip {
        padding: 23px 20px;
    }

    .home-welcome {
        padding: 30px 25px;
    }

    .home-welcome h2 {
        font-size: 26px;
    }

    .home-divider {
        margin: 40px 0;
    }
}


/* =========================================================
   МАЛЕНЬКИЙ ТЕЛЕФОН
   ========================================================= */

@media (max-width: 480px) {

    .home-hero h1 {
        font-size: 30px;
    }

    .home-section-title {
        font-size: 25px;
    }

    .home-popular-list a {
        font-size: 15px;
    }
}


/* =========================================================
   РУБРИКИ И АРХИВЫ — СОВРЕМЕННЫЙ ДИЗАЙН
   ========================================================= */

/* Общий фон страниц рубрик */
body.archive {
    background: #f5f7fa;
}

/* Основная область архива */
body.archive .site-content {
    padding-top: 35px;
    padding-bottom: 70px;
}

body.archive .site-main {
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   ЗАГОЛОВОК РУБРИКИ
   ========================================================= */

body.archive .ast-archive-description {
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 35px 40px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.archive .ast-archive-description .page-title {
    margin: 0;

    color: #171717;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

body.archive .ast-archive-description p {
    margin: 15px 0 0;

    color: #666666;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   СЕТКА СТАТЕЙ
   ========================================================= */

body.archive .ast-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}


/* =========================================================
   КАРТОЧКА СТАТЬИ
   ========================================================= */

body.archive .ast-article-post {
    display: flex;
    flex-direction: column;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* Эффект при наведении */
body.archive .ast-article-post:hover {
    transform: translateY(-4px);

    border-color: #dbe3f0;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ИЗОБРАЖЕНИЕ СТАТЬИ
   ========================================================= */

body.archive .ast-article-post .post-thumb {
    margin: 0;
    overflow: hidden;
}

body.archive .ast-article-post .post-thumb img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    object-fit: contain;

    transition: transform 0.3s ease;
}


/* Лёгкое увеличение картинки */
body.archive .ast-article-post:hover .post-thumb img {
    transform: scale(1.03);
}


/* =========================================================
   СОДЕРЖИМОЕ КАРТОЧКИ
   ========================================================= */

body.archive .ast-article-post .entry-header {
    padding: 22px 25px 0;
}

body.archive .ast-article-post .entry-content {
    padding: 15px 25px 25px;
}


/* =========================================================
   ЗАГОЛОВОК СТАТЬИ
   ========================================================= */

body.archive .ast-article-post .entry-title {
    margin: 0;

    color: #171717;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

body.archive .ast-article-post .entry-title a {
    color: #171717;
    text-decoration: none;
}

body.archive .ast-article-post .entry-title a:hover {
    color: #2563eb;
}


/* =========================================================
   МЕТА ИНФОРМАЦИЯ
   ========================================================= */

body.archive .ast-article-post .entry-meta {
    margin-top: 10px;

    color: #777777;

    font-size: 14px;
}

body.archive .ast-article-post .entry-meta a {
    color: #2563eb;
}


/* =========================================================
   КРАТКОЕ ОПИСАНИЕ
   ========================================================= */

body.archive .ast-article-post .entry-content p {
    margin: 0;

    color: #555555;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   КНОПКА «ЧИТАТЬ ДАЛЕЕ»
   ========================================================= */

body.archive .ast-article-post .read-more {
    display: inline-block;

    margin-top: 18px;

    color: #2563eb;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
}

body.archive .ast-article-post .read-more:hover {
    color: #1d4ed8;
}

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    body.archive .site-content {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    body.archive .site-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.archive .ast-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    body.archive .ast-article-post .post-thumb img {
        height: auto;
    }

    body.archive .ast-article-post .entry-title {
        font-size: 21px;
    }
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 650px) {

    body.archive .site-content {
        padding-top: 20px;
        padding-bottom: 50px;
    }

    body.archive .site-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    body.archive .ast-archive-description {
        margin-bottom: 30px;
        padding: 25px 22px;
        border-radius: 15px;
    }

    body.archive .ast-archive-description .page-title {
        font-size: 29px;
    }

    body.archive .ast-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.archive .ast-article-post .post-thumb img {
        height: auto;
        max-height: none;
    }

    body.archive .ast-article-post .entry-title {
        font-size: 22px;
    }

    body.archive .ast-article-post .entry-header {
        padding: 20px 20px 0;
    }

    body.archive .ast-article-post .entry-content {
        padding: 15px 20px 22px;
    }
}

/* =========================================================
   ПОХОЖИЕ СТАТЬИ — ASTRA RELATED POSTS
   ========================================================= */

.ast-single-related-posts-container {
    max-width: 1180px;
    margin: 55px auto 0;
    padding: 32px 40px 38px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.035);
}


/* Заголовок */

.ast-related-posts-title-section {
    margin: 0 0 25px;
}

.ast-related-posts-title {
    margin: 0 !important;

    color: #171717 !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}


/* Сетка */

.ast-related-posts-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    margin: 0 !important;
}


/* Карточка */

.ast-related-post {
    display: flex;
    flex-direction: column;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* Наведение */

.ast-related-post:hover {
    transform: translateY(-4px);

    border-color: #dbe3f0;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   КАРТИНКА ПОХОЖЕЙ СТАТЬИ
   ========================================================= */

.ast-related-post .ast-related-post-featured-section {
    margin: 0 !important;
    overflow: hidden;
}

.ast-related-post .ast-related-post-featured-section img {
    display: block;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.ast-related-post:hover
.ast-related-post-featured-section img {
    transform: scale(1.03);
}


/* =========================================================
   ЗАГОЛОВОК СТАТЬИ
   ========================================================= */

.ast-related-post .entry-header {
    margin: 0 !important;
    padding: 18px 20px 22px !important;
}

.ast-related-post .ast-related-post-title {
    margin: 0 !important;

    font-size: 19px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.ast-related-post .ast-related-post-title a {
    color: #171717 !important;
    text-decoration: none !important;
}

.ast-related-post .ast-related-post-title a:hover {
    color: #2563eb !important;
}


/* =========================================================
   УБИРАЕМ ЛИШНИЕ ЭЛЕМЕНТЫ ASTRA В КАРТОЧКАХ
   ========================================================= */

.ast-related-post .entry-meta,
.ast-related-post .entry-content {
    display: none;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 900px) {

    .ast-single-related-posts-container {
        margin-top: 45px;
        padding: 28px 25px 32px;
    }

    .ast-related-posts-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ast-related-post .ast-related-post-title {
        font-size: 18px !important;
    }
}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 650px) {

    .ast-single-related-posts-container {
        margin-top: 40px;
        padding: 25px 18px 28px;
        border-radius: 15px;
    }

    .ast-related-posts-title {
        font-size: 26px !important;
    }

    .ast-related-posts-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ast-related-post .entry-header {
        padding: 16px 18px 20px !important;
    }
}


/* =========================================================
   КОММЕНТАРИИ — СТИЛЬ АВОСЬ ПРИГОДИТСЯ
   ========================================================= */

/* Основной блок комментариев */
.comments-area {
    max-width: 1180px;
    margin: 40px auto 70px;
    padding: 35px 40px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.035);
}


/* Заголовок */
.comments-title,
.comment-reply-title {
    margin: 0 0 18px !important;

    color: #171717 !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}


/* Текст над формой */
.comment-form,
.logged-in-as {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}


/* Ссылки */
.comments-area a {
    color: #2563eb;
}

.comments-area a:hover {
    color: #1d4ed8;
}


/* Поля формы */
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 10px;

    color: #333333;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Высота поля комментария */
.comments-area textarea {
    min-height: 160px;
    resize: vertical;
}


/* Фокус */
.comments-area input[type="text"]:focus,
.comments-area input[type="email"]:focus,
.comments-area input[type="url"]:focus,
.comments-area textarea:focus {
    border-color: #2563eb;
    outline: none;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* Подписи полей */
.comments-area label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 15px;
    font-weight: 600;
}


/* Отступы между полями */
.comments-area .comment-form-comment,
.comments-area .comment-form-author,
.comments-area .comment-form-email,
.comments-area .comment-form-url {
    margin-bottom: 20px;
}


/* Кнопка отправки */
.comments-area input[type="submit"],
.comments-area button[type="submit"] {
    display: inline-block;

    padding: 12px 22px;

    background: #2563eb;
    border: 0;
    border-radius: 10px;

    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Наведение на кнопку */
.comments-area input[type="submit"]:hover,
.comments-area button[type="submit"]:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}


/* Убираем лишний стандартный фон Astra */
.comments-area .comment-form {
    background: transparent;
}


/* =========================================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================= */

@media (max-width: 650px) {

    .comments-area {
        margin: 35px 15px 50px;
        padding: 25px 20px;
        border-radius: 15px;
    }

    .comments-title,
    .comment-reply-title {
        font-size: 26px !important;
    }

    .comments-area textarea {
        min-height: 130px;
    }

    .comments-area input[type="submit"],
    .comments-area button[type="submit"] {
        width: 100%;
    }
}


/* =========================================================
   СКРЫВАЕМ МЕТА-ИНФОРМАЦИЮ В ЗАПИСЯХ
   ========================================================= */

.single-post .entry-meta {
    display: none !important;
}