/* ===== Базовые сбросы и переменные ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e1e2f;
    line-height: 1.6;
    scroll-behavior: smooth;
}

:root {
    --accent: #f97316;
    --accent-light: #ffedd5;
    --dark: #1e293b;
    --gray: #f8fafc;
    --text-light: #64748b;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Шапка ===== */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #eef2f6;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

.btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white !important;
}

/* ===== Главная секция ===== */
.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
}

.hero-title span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    margin: 24px 0 28px;
    color: var(--text-light);
}

.hero-image {
    background: var(--accent-light);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Секции ===== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin-top: 12px;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 48px;
}

/* ===== Карточки статей ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 600;
}

.article-content {
    padding: 24px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-title a {
    text-decoration: none;
    color: var(--dark);
}

.article-title a:hover {
    color: var(--accent);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.pagination a.active,
.pagination a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===== Одна статья ===== */
.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-header .meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 1rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    background: var(--accent-light);
    border-radius: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
}

.article-body {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

/* ===== О журнале / Контакты ===== */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
}

.map-placeholder {
    background: var(--accent-light);
    border-radius: 32px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 60px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    border-radius: 30px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
}

/* ===== Футер ===== */
footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 1;
}

footer h4 {
    color: white;
    margin-bottom: 16px;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .section {
        text-align: center;
    }
    .section-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}