* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== КНОПКА "ПОСМОТРЕТЬ ВСЕ БЛОГИ" ==================== */

.blog-nav-button {
    position: fixed;
    top: 200px;
    left: 20px;
    z-index: 1000;
    animation: slideInLeft 0.6s ease-out;
}

.blog-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); */
    transition: left 0.3s ease;
    z-index: 0;
}

.blog-back-button:hover::before {
    left: 0;
}

.blog-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.blog-back-button svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.blog-back-button:hover svg {
    transform: translateX(-2px);
}

.blog-back-button span {
    position: relative;
    z-index: 1;
}

/* Анимация появления кнопки */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .blog-nav-button {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        z-index: 1000;
    }

    .blog-back-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .blog-nav-button {
        top: 70px;
        left: 5px;
        right: 5px;
    }

    .blog-back-button {
        padding: 12px 16px;
        font-size: 14px;
        gap: 6px;
    }

    .blog-back-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 810px) {
    .blog-nav-button {
        display: none;
    }
}


/* News Header */
.news-page__header {
    padding-top: 130px;
    margin-bottom: 30px;
}

.news-card__title {
    text-align: center;
    font-size: 36px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 50px;
}

/* News Card */
.news-page {
    background: #fff;
    border-radius: 12px;
    /* padding-top: 130px 30px 30px 30px; */
    padding: 30px;
    padding-top:130px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E5E7EB;
    margin-bottom: 40px;
}

.news-card__image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.news-card__wrapper {
    padding: 0px;
}

.news-card__text {
    font-size: 18px;
    font-weight: 400;             /* переносы слов */
    line-height: 2.0;
    color: #000000;
    margin-bottom: 30px;
    text-align: justify;
    text-align-last: left;     /* последняя строка */
    hyphens: auto;
    font-family: 'Rubik', sans-serif;
}

.news-card__text b {
    color: #F97316;
    font-weight: 600;
}

/* ==================== QUESTION BLOCK ==================== */
.question-block {
    margin: 40px 0;
}

.question-block__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    background: linear-gradient(135deg, #fdf8ff 0%, #f4f0ff 55%, #ece8ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: #1f1f1f;
    box-shadow: 0 25px 60px rgba(93, 62, 188, 0.18);
    position: relative;
    overflow: hidden;
}

.question-block__inner::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    pointer-events: none;
}

.question-block__icon {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C3AED;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.question-block__icon svg {
    width: 48px;
    height: 48px;
    color: currentColor;
}

.question-block__content {
    flex: 1;
    text-align: left;
}

.question-block__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f1f1f;
}

.question-block__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(31, 31, 31, 0.85);
}

.question-block__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid #7C3AED;
    font-weight: 600;
    font-size: 1rem;
    color: #7C3AED;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.question-block__button:hover {
    transform: translateY(-2px);
    background: #7C3AED;
    color: #fff;
    border-color: #7C3AED;
    box-shadow: 0 15px 35px rgba(93, 62, 188, 0.28);
}

.question-block__button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(93, 62, 188, 0.2);
}

@media (max-width: 768px) {
    .question-block__inner {
        flex-direction: column;
        text-align: center;
    }

    .question-block__icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .question-block__content {
        text-align: center;
    }

    .question-block__button {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .question-block {
        margin: 32px 0;
    }

    .question-block__inner {
        padding: 24px;
        border-radius: 22px;
    }

    .question-block__inner::after {
        border-radius: 18px;
    }
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.news-card__date {
    color: #666;
    font-size: 14px;
}

.action-views {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.action-views i {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.share {
    background: #6B46C1;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share:hover {
    background: #5B37B8;
    color: white;
}

/* Products Section */
.news-page__products {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.action-products__head {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.action-products__head-title {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.action-products__head-count {
    background: #F97316;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.action-product {
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.action-product__image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.action-product__content {
    flex: 1;
}

.action-product__name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    line-height: 1.4;
}

.action-product__name:hover {
    color: #F97316;
}

.action-product__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #666;
    text-decoration: none;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    background: #ddd;
    border-radius: 2px;
    position: relative;
}

.star.filled {
    background: #F97316;
}

.product-buy {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-buy__price {
    font-size: 24px;
    font-weight: 700;
    color: #F97316;
}

.product-buy__sub {
    font-size: 14px;
    color: #666;
}

.buy-btn {
    background: #F97316;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background: #EA580C;
}

/* Comments */
.news-page__comments {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.news-page__comments-title {
    background: #f8f9fa;
    padding: 20px 30px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.news-page__comments-count {
    background: #F97316;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.comment {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
}

.comment__user-info {
    flex: 1;
}

.comment__username {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.comment__date {
    font-size: 12px;
    color: #666;
}

.comment__message {
    margin-bottom: 10px;
    color: #444;
}

.comment__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment__vote {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.vote-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px;
}

.vote-btn:hover {
    color: #F97316;
}

.reply-btn {
    color: #F97316;
    text-decoration: none;
    font-size: 14px;
}

.reply-btn:hover {
    text-decoration: underline;
}

/* Related News */
.related-news {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

.related-news__title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 50px;
}

.related-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #E5E7EB;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-item__content {
    padding: 0;
}

.news-item__title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item__title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.news-item__title a:hover {
    color: #6B46C1;
}

.news-item__excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-item__date {
    font-weight: 500;
}

.news-item__views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Styles - теперь подключаются из modal/modal.css */

/* Responsive */
@media (max-width: 810px) {
    .container {
        padding: 0 18px;
    }

    .news-page {
        padding: 26px 20px 30px;
        padding-top: 90px;
        text-align: left;
        border-radius: 14px;
    }

    .news-card__title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .news-card__image {
        max-height: 360px;
        border-radius: 16px;
    }

    .news-card__text {
        font-size: 17px;
        line-height: 1.9;
        text-align: left;
        text-align-last: auto;
    }

    .news-card__footer {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .share {
        width: 100%;
        text-align: center;
    }

    .related-news__grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .news-item {
        padding: 18px;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 0 14px;
    }

    .news-page {
        padding: 18px 14px 26px;
        padding-top: 70px;
        border-radius: 12px;
    }

    .news-card__title {
        font-size: 22px;
        line-height: 1.3;
    }

    .news-card__wrapper {
        padding: 0;
    }

    .news-card__image {
        max-height: 260px;
    }

    .news-card__text {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-card__footer {
        gap: 10px;
    }

    .share {
        padding: 14px;
        font-size: 15px;
    }

    .related-news__grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        padding: 14px;
        text-align: center;
    }

    .news-item__image {
        height: 140px;
    }

    /* Modal Responsive стили теперь в modal/modal.css */
}

@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .news-page {
        padding: 16px 12px 22px;
        padding-top: 60px;
    }

    .news-card__title {
        font-size: 20px;
    }

    .news-card__image {
        max-height: 220px;
        border-radius: 12px;
    }

    .news-card__text {
        font-size: 14px;
    }

    .share {
        font-size: 14px;
    }
}
