body {
    background: #e7e8eb; /* мягкий светлый фон страницы */
    font-family: Inter, system-ui, Arial;
    margin: 0px;
}

/* Общие стили контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Заголовок страницы */
.tools-hero h1 {
    margin: 90px 0 16px;
    text-align: center;
    color: #ffffff;
}

.tools-hero p {
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 20px;
}

/* Сетка карточек статей */
.articles-grid {
    display: flex;
    position: relative;
    gap: 25px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;

}

/* Карточка статьи */
.article-card {
    max-width: 370px;
    min-width: 340px;

    background: linear-gradient(145deg, #f9fafb, #eef1f5);
    color: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) rotate(-1deg);
}

/* Появление карточки при скролле */
.article-card.visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Эффект наведения */
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Обложка статьи */
.article-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e5e7eb; /* светлый фон если изображение есть */
}

/* Если нет обложки */
.article-card.no-cover .article-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d0d1d3, #bfc0c1);
    color: #70747c;
    font-size: 24px;
    font-weight: 600;
    height: 180px;
    text-align: center;
}

/* Блок информации */
.article-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Заголовок статьи */
.article-title {
    font-size: 20px;       /* чуть больше для вау-эффекта */
    font-weight: 600;      /* насыщенный */
    line-height: 1.25;
    color: #0f1724;
    transition: color 0.3s ease, transform 0.3s ease;
    margin: 0px;
}

.article-title a {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

/* Подчеркивание при наведении через анимацию */
.article-title a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #3399ff;
    transition: width 0.3s ease;
}

.article-title a:hover::after {
    width: 100%;
}

/* Легкий lift при hover */
.article-title a:hover {
    color: #0077e6;
    transform: translateY(-2px);
}

/* Дата публикации */
.article-desc {
    height: 100%;
    margin: 15px 0px 0px 0;
    font-size: 15px;
    line-height: 1.65;
    color: #1f2937; /* насыщенный темный для контраста */
}

.article-date {
    height: 100%;
    text-align: start;
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    color: #6b7280; /* светлый серый для даты */
    margin-bottom: 12px;
    align-items: flex-end;
}

.article-card, .article-info {
    font-family: 'Inter', sans-serif;
}

.article-title, .article-desc {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

.article-card.visible .article-title,
.article-card.visible .article-desc {
    animation-delay: 0.2s;
}

.article-meta{
    display: flex;
    justify-content: space-between;
    align-content: flex-end;
    flex-wrap: wrap;
    margin: 15px 0 0 0;
}

.article-views-meta{
    font-size: 12px;
}

.article-date-meta{
    font-size: 12px;
}



@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.tools-hero {
    background: linear-gradient(135deg, #0f1724, #1e293b);
    color: #fff;
    padding: 0px 16px 30px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.tools-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(51,153,255,0.15) 0%, transparent 70%);
    /* анимация теперь один раз и останавливается в конце */
    animation: rotateBGOnce 5s ease forwards;
}

@keyframes rotateBGOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(45deg); } /* конечный угол */
}

.tools-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.tools-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
}

.tools-hero p {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

.tools-hero .btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #3399ff;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    animation-fill-mode: forwards;
}

.tools-hero .btn:hover {
    background: #66c0ff;
    transform: translateY(-2px);
}

.tools-title {
    font-size: 30px;
    color: #eeeeee;
}

/* ====== ПАГИНАЦИЯ ====== */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.page-link {
    padding: 4px 10px;
    border: 1px solid #444;
    background-color: #222;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.page-link.active {
    background-color: #3c5374;
    color: #ffffff;
    font-weight: bold;
}


.page-link.placeholder {
    background-color: #1a2434;
    color: #888888;
    cursor: default;
}

/* === ФАГ === */

.faq-section {
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
	margin-bottom: 20px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #0f1c3f;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #1a2b5c;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #0066ff;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: #3b3b3b;
    line-height: 1.5;
}




@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 1190) {
    .article-card {
        max-width: 450px;
    }
    .article-cover {
        height: 300px;
    }
}

@media (max-width: 956) {
    .article-card {
        max-width: 400px;
    }
    .article-cover {
        height: 250px;
    }
}

@media (max-width: 856) {
    .article-card {
        max-width: 350px;
    }
    .article-cover {
        height: 200px;
    }
}

@media (min-width: 769px) {
    .ad-banner-articles {
        margin: 90px 0px 30px;
        
    }

}

/* Адаптив */
@media (max-width: 768px) {

    .ad-banner-articles {
        margin: 20px 0px 20px
    }

    .articles-grid {
        justify-content: center;
    }

    .tools-hero {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .tools-hero h1 {
        margin: 16px 0 16px;
        font-size: 0px;
    }

    .tools-title {
        font-size: 0px;
    }
    .tools-title::after { 
        content: "Наши инструкции и статьи ";
        font-size: 30px;
        color: #eeeeee;
    }

    .tools-hero p {
        font-size: 14px;
    }

    .article-desc {
        font-size: 14px;
    }

    .faq-section {
		margin: 30px 10px;
		padding: 20px;
		width: auto;
	}
	.faq-title {
		font-size: 1.5rem;
		margin-bottom: 15px;
	}
	.faq-answer p {
		text-align: left;
	}

}
