:root {
    --primary: #8b5cf6;
    --primary-dark: #5b21b6;
    --secondary: #22d3ee;
    --accent: #f472b6;
    --dark: #0b1224;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --light: #0f172a;
    --gray: #cbd5e1;
    --light-gray: rgba(255, 255, 255, 0.12);
    --border-radius: 14px;
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    --glow: 0 15px 40px rgba(139, 92, 246, 0.35);
    --transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 28%),
                radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.08), transparent 28%),
                #050915;
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header styles */
header {
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.logo-icon-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 35px rgba(139, 92, 246, 0.45);
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

nav a {
    font-weight: 600;
    text-decoration: none;
    color: #e2e8f0;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    border-radius: 999px;
    box-shadow: var(--glow);
}

nav a:hover, nav a.active {
    color: #f8fafc;
}

nav a:hover:after, nav a.active:after {
    transform: scaleX(1);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: var(--glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1224;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--light-gray);
    color: #e2e8f0;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Кнопка в карточках - выравнивание вправо */
.card-content .btn,
.news-content .btn {
    margin-top: 1rem;
    margin-left: auto;
    display: block;
    width: fit-content;
}

/* Mobile navigation - Featured menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 100;
    position: relative;
    margin-left: auto;
    order: 3;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero section */
.hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.25), transparent 30%),
                radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 32%),
                linear-gradient(135deg, #0b1224 0%, #0f172a 50%, #0b1224 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--light-gray);
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 45%);
    filter: blur(40px);
    opacity: 0.8;
    pointer-events: none;
}

.placeholder-text {
    text-align: center;
    color: #cbd5e1;
    padding: 2rem;
}

.footer-logo-block {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 1.5rem;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 900;
    color: #f8fafc;
    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.15));
    color: #e0f2fe;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--glow);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1224;
    transform: translateY(-2px) scale(1.02);
}

/* Featured news */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.4px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(34, 211, 238, 0.35);
}

.section-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), var(--glow);
}

.card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(5, 9, 21, 0.7) 100%);
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-tag {
    background: rgba(34, 211, 238, 0.15);
    color: #a5f3fc;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    display: inline-block;
    margin-bottom: 0.8rem;
    width: fit-content;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-title {
    font-size: 1.32rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.35;
    color: #f8fafc;
}

.card-excerpt {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.88rem;
    gap: 0.8rem;
}

.date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Categories section */
.categories {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45), var(--glow);
}

.category-icon {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 25px rgba(139, 92, 246, 0.45));
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #f8fafc;
}

.category-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

/* Latest news */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), var(--glow);
}

.news-image {
    height: 210px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 9, 21, 0.75) 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.07);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #cbd5e1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    width: 100%;
    grid-column: 1 / -1;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    min-width: 42px;
    text-align: center;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    flex-shrink: 0;
}

.pagination a:hover {
    border-color: var(--secondary);
    color: #0b1224;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--glow);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1224;
    border-color: transparent;
    box-shadow: var(--glow);
}

.pagination .disabled {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.pagination-dots {
    padding: 0.6rem 0.5rem;
    color: #94a3b8;
    user-select: none;
}

/* Дисклеймер - уменьшенный размер */
.disclaimer,
p.disclaimer {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    color: #94a3b8 !important;
    opacity: 0.8 !important;
}

/* Newsletter (updated button only) */
.newsletter {
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.35), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.32), transparent 45%),
                linear-gradient(135deg, #0b1224, #0f172a 60%, #0b1224);
    padding: 4.5rem 0;
    color: white;
    text-align: center;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    box-shadow: inset 0 20px 60px rgba(0, 0, 0, 0.25);
}

.newsletter .container {
    max-width: 640px;
}

.newsletter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.newsletter-btn {
    padding: 1rem 2.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1224;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 60px rgba(34, 211, 238, 0.35);
}

/* Footer */
footer {
    background: #050915;
    color: white;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 20px 60px rgba(0, 0, 0, 0.35);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: #f8fafc;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(6px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0b1224;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--glow);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.35);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Menu (Enhanced) */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 90;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu a:hover, .mobile-menu a.active {
    color: var(--primary);
}

.mobile-user-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive design */
@media (max-width: 1024px) {
    .featured-grid, .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Пагинация для планшетов */
    .pagination {
        gap: 0.5rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.6rem 0.95rem;
        font-size: 0.95rem;
        min-width: 40px;
    }
    
    .pagination-dots {
        padding: 0.6rem 0.4rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Пагинация для планшетов */
    .pagination {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
        min-width: 38px;
    }
    
    .pagination-dots {
        padding: 0.55rem 0.4rem;
    }

    /* Hide desktop navigation */
    nav ul {
        display: none;
    }

    /* Hide desktop user actions */
    .user-actions {
        display: none;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
        margin-left: auto;
        order: 3;
    }
    
    .header-content {
        position: relative;
    }
}

@media (max-width: 576px) {
    .featured-grid, .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .news-grid {
        gap: 1.25rem;
    }

    .news-image {
        height: 190px;
    }
    
    /* Пагинация для мобильных */
    .pagination {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        min-width: 34px;
    }
    
    .pagination-dots {
        padding: 0.5rem 0.3rem;
        font-size: 0.85rem;
    }
    
    /* Скрываем текст на кнопках "Предыдущая" и "Следующая" на очень маленьких экранах */
    .pagination a:first-child,
    .pagination span:first-child,
    .pagination a:last-child,
    .pagination span:last-child {
        padding: 0.5rem 0.6rem;
    }
    
    .newsletter-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .menu-toggle span {
        width: 24px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        height: 65px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
    }
    
    .menu-toggle {
        width: 42px;
        height: 42px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .card-content,
    .news-content {
        padding: 1.25rem;
    }
    
    .card-title,
    .news-content .card-title {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    
    .card-excerpt {
        font-size: 0.9rem;
    }
    
    .card-meta {
        font-size: 0.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .footer-links {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .newsletter-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Пагинация для очень маленьких экранов */
    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .pagination-dots {
        padding: 0.4rem 0.25rem;
        font-size: 0.8rem;
    }
    
    /* Уменьшаем размер текста на кнопках навигации */
    .pagination a:first-child,
    .pagination span:first-child,
    .pagination a:last-child,
    .pagination span:last-child {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-content {
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .card-content,
    .news-content {
        padding: 1rem;
    }
    
    .card-title,
    .news-content .card-title {
        font-size: 1.1rem;
    }
    
    .card-excerpt {
        font-size: 0.85rem;
    }
    
    .card-meta {
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .social-icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.75rem;
        padding: 1rem 0;
        text-align: center;
    }
    
    .newsletter-buttons {
        gap: 0.75rem;
    }
    
    .newsletter-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

