 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Oswald', sans-serif;
            background-color: #f4f4f4;
            color: #1a1a1a;
            line-height: 1.4;
        }

        /* Цветовая схема: красный + светло-серые оттенки */
        :root {
            --red-main: #d32f2f;
            --red-dark: #b71c1c;
            --red-soft: #ef5350;
            --gray-lightest: #f8f8f8;
            --gray-light: #e0e0e0;
            --gray-card-bg: #ffffff;
            --gray-meta: #f0f0f0;
            --text-dark: #2d2d2d;
            --shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 28px 36px rgba(0, 0, 0, 0.18);
        }

        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 24px;
        }
.gallery-title {
            text-align: center;
            font-size: 2.5rem;
            margin: 30px 0;
           text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
        }


        /* ========== ВЕРХНЕЕ МЕНЮ (КРАСНОЕ, АДАПТИВ, ГАМБУРГЕР) ========= */
        .top-nav {
            background-color: var(--red-main);
            border-bottom: 3px solid #fff0e0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            gap: 20px;
        }

        .logo {
            font-size: 1.9rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: white;
            text-shadow: 2px 2px 3px rgba(0,0,0,0.2);
            line-height: 1;
            flex-shrink: 0;
        }
        .logo span {
            color: #ffcdb0;
        }

        .nav-links {
            display: flex;
            gap: 28px;
            list-style: none;
            transition: all 0.3s ease;
        }
        .nav-links a {
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: white;
            transition: 0.2s;
            padding: 6px 0;
            border-bottom: 2px solid transparent;
        }
        .nav-links a:hover {
            color: #ffecb3;
            border-bottom-color: #ffecb3;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            background: transparent;
            border: none;
            z-index: 1001;
            padding: 8px;
        }
        .hamburger span {
            width: 28px;
            height: 3px;
            background-color: white;
            margin: 4px 0;
            transition: 0.3s;
            border-radius: 4px;
        }

        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 75%;
                max-width: 300px;
                height: 100vh;
                background-color: var(--red-dark);
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                padding: 100px 32px 32px;
                gap: 28px;
                box-shadow: -5px 0 25px rgba(0,0,0,0.3);
                transition: right 0.3s ease;
                z-index: 999;
                border-left: 4px solid #ffd8b5;
            }
            .nav-links.active {
                right: 0;
            }
            .nav-links li {
                width: 100%;
            }
            .nav-links a {
                font-size: 1.3rem;
                display: block;
                padding: 8px 0;
                border-bottom: none;
            }
            .nav-links a:hover {
                transform: translateX(6px);
                color: #ffeaac;
            }
            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0,0,0,0.6);
                backdrop-filter: blur(3px);
                z-index: 998;
                opacity: 0;
                visibility: hidden;
                transition: 0.25s;
            }
            .overlay.active {
                opacity: 1;
                visibility: visible;
            }
            body.menu-open {
                overflow: hidden;
            }
        }

        /* ========== ОСНОВНАЯ СЕТКА: ОБЛОЖКИ 3 В РЯД ========= */
        .magazine-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            margin: 60px 0 70px;
        }

        .cover {
            background-color: var(--gray-card-bg);
            border-radius: 28px;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            border: 1px solid var(--gray-light);
        }

        .cover:hover {
            transform: translateY(-12px);
            box-shadow: var(--shadow-hover);
        }

        .cover-img-link {
            display: block;
            position: relative;
            overflow: hidden;
            background-color: #2c2c2c;
        }
        .cover-img {
            width: 100%;
            aspect-ratio: 3 / 4;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .cover:hover .cover-img {
            transform: scale(1.05);
        }

        .cover-content {
            padding: 22px 20px 24px;
            background: var(--gray-card-bg);
            border-top: 1px solid var(--gray-light);
        }
        .cover-category {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--red-main);
            margin-bottom: 8px;
            display: inline-block;
        }
        .cover-title {
            font-size: 1.7rem;
            font-weight: 700;
            line-height: 1.25;
            margin-bottom: 12px;
            color: var(--text-dark);
            text-transform: uppercase;
            transition: color 0.2s;
        }
        .cover:hover .cover-title {
            color: var(--red-main);
        }
        .cover-description {
            font-size: 0.95rem;
            font-weight: 300;
            color: #5a5a5a;
            line-height: 1.45;
            margin-bottom: 16px;
        }
        .read-link {
            font-weight: 500;
            font-size: 0.85rem;
            text-transform: uppercase;
            color: var(--red-main);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            border-bottom: 1.5px solid var(--red-main);
            transition: gap 0.2s;
        }
        .cover:hover .read-link {
            gap: 8px;
        }

        /* ========== НИЖНИЙ ФУТЕР - КОМПАКТНЫЙ, МЕНЬШЕ ШРИФТ, ПЛОТНЕЕ ========= */
        .footer-nav {
            background-color: #2b2b2b;
            color: #cccccc;
            margin-top: 40px;
            padding: 28px 0 24px;
            border-top: 4px solid var(--red-main);
        }
        .footer-container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 24px;
        }
        /* Уменьшаем межколоночный отступ и делаем блоки уже */
        .footer-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 20px;
        }
        .footer-logo-block {
            flex: 1;
            min-width: 160px;
        }
        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            background: linear-gradient(135deg, var(--red-main) 30%, #ff8a7a 90%);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 6px;
            display: inline-block;
        }
        .footer-tagline {
            font-size: 0.7rem;
            color: #999;
            font-weight: 300;
            letter-spacing: 0.5px;
            max-width: 200px;
        }
        .footer-col {
            flex: 0 1 auto;
            min-width: 100px;
        }
        .footer-col h4 {
            color: var(--red-soft);
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 12px;
            letter-spacing: 0.8px;
        }
        .footer-col ul {
            list-style: none;
        }
        .footer-col li {
            margin-bottom: 8px;
        }
        .footer-col a {
            text-decoration: none;
            color: #b0b0b0;
            font-weight: 300;
            transition: 0.2s;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.4px;
 padding: 8px 5px;

        }
        .footer-col a:hover {
            color: var(--red-main);
            padding-left: 3px;
        }
        .copyright {
            text-align: center;
            padding-top: 18px;
            border-top: 1px solid #3e3e3e;
            font-size: 0.85rem;
            font-weight: 300;
            letter-spacing: 0.8px;
            color: #8e8e8e;
        }

        /* Кнопка Back to top (желтая стрелка) */
        .back-to-top {
            position: fixed;
            bottom: 28px;
            right: 28px;
            width: 52px;
            height: 52px;
            background: linear-gradient(145deg, #ffc107, #ffb300);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 18px rgba(0,0,0,0.25);
            transition: all 0.25s ease;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.7);
        }
        .back-to-top::before {
            content: "↑";
            font-size: 2rem;
            font-weight: 700;
            color: #1f1f1f;
            transition: transform 0.2s;
        }
        .back-to-top:hover {
            background: #ffca28;
            transform: translateY(-6px) scale(1.03);
        }
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }

        /* Адаптивность сетки и футера */
        @media (max-width: 950px) {
            .magazine-grid {
                gap: 24px;
            }
            .cover-title {
                font-size: 1.4rem;
            }
        }
        @media (max-width: 768px) {
.gallery-title {
            text-align: center;
            font-size: 2.0rem;
            margin: 30px 0;
           text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
        }

            .magazine-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 28px;
            }
            .footer-grid {
                flex-direction: column;
                text-align: center;
                gap: 18px;
            }
            .footer-logo-block {
                text-align: center;
                margin-bottom: 5px;
            }
            .footer-tagline {
                margin: 0 auto;
            }
            .footer-col {
                text-align: center;
            }
            .footer-col ul li a {
                display: inline-block;
            }
        }
        @media (max-width: 550px) {
            .magazine-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .container {
                padding: 0 18px;
            }
            .cover-title {
                font-size: 1.6rem;
            }
            .back-to-top {
                bottom: 18px;
                right: 18px;
                width: 46px;
                height: 46px;
            }
            .back-to-top::before {
                font-size: 1.7rem;
            }
            .footer-nav {
                padding: 22px 0 18px;
            }
            .footer-logo {
                font-size: 1.3rem;
            }
        }