/* Shared page sections extracted from UDP/directions.php. Reuse this file for repeated page-level blocks. */
/* ==================== GLOBAL STYLES ==================== */
        :root {
            --primary-dark: #1a2e20;
            --primary-darker: #121f17;
            --primary-bg: #14241a;
            --gold: #C8A366;
            --gold-light: #d4b47a;
            --gold-dark: #b08d55;
            --text-white: #ffffff;
            --text-light: #b8c5be;
            --text-muted: #8a9a90;
            --card-bg: #1c3326;
            --card-bg-light: #223d2e;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--primary-dark);
            color: var(--text-white);
            overflow-x: hidden;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--primary-darker); }
        ::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; border: 2px solid var(--primary-darker); }
        ::-webkit-scrollbar-thumb:hover { background: var(--gold); }
        html { scrollbar-width: thin; scrollbar-color: var(--gold-dark) var(--primary-darker); }

        a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
        a:hover { color: var(--gold); }

        /* ==================== HEADER ==================== */
        .header {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            background: rgba(20, 36, 26, 0.95); backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(200, 163, 102, 0.1);
            transition: all 0.3s ease;
        }
        .header.scrolled { background: rgba(18, 31, 23, 0.98); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
        .header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }

        .logo { display: flex; align-items: center; gap: 10px; }
        .logo-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary-dark); font-size: 18px; }
        .logo-text { display: flex; flex-direction: column; line-height: 1.2; }
        .logo-text .brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
        .logo-text .name { font-size: 16px; font-weight: 700; color: var(--text-white); }
        .logo-text .name span { color: var(--gold); }

        .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
        .nav-links li a { font-size: 13px; font-weight: 500; color: var(--text-light); position: relative; padding: 4px 0; text-transform: uppercase; letter-spacing: 0.3px; }
        .nav-links li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
        .nav-links li a:hover { color: var(--text-white); }
        .nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }
        .nav-links li a.active { color: var(--text-white); }

        .header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
        .btn-follow-news { padding: 8px 20px; border: 1px solid var(--gold); border-radius: 25px; background: transparent; color: var(--gold); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
        .btn-follow-news:hover { background: var(--gold); color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(200, 163, 102, 0.3); }

        .social-icons { display: flex; gap: 10px; align-items: center; }
        .social-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(200, 163, 102, 0.3); display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: all 0.3s ease; text-decoration: none; }
        .social-icon:hover { border-color: var(--gold); background: var(--gold); color: var(--primary-dark); transform: translateY(-2px); }
        .social-icon svg { width: 16px; height: 16px; fill: currentColor; }

        .burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; z-index: 1001; }
        .burger span { width: 25px; height: 2px; background: var(--text-white); transition: all 0.3s ease; border-radius: 2px; }
        .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
        .burger.active span:nth-child(2) { opacity: 0; }
        .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

        .mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(18, 31, 23, 0.98); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 30px; opacity: 0; transition: opacity 0.4s ease; }
        .mobile-menu.active { display: flex; opacity: 1; }
        .mobile-menu a { font-size: 20px; font-weight: 600; color: var(--text-white); text-transform: uppercase; letter-spacing: 2px; }

        /* ==================== PAGE HERO ==================== */
        .page-hero {
            padding-top: 140px;
            padding-bottom: 60px;
            background: radial-gradient(circle at 50% 0%, rgba(200, 163, 102, 0.08) 0%, transparent 70%);
            text-align: center;
        }
        .page-hero h1 {
            font-size: clamp(36px, 5vw, 56px);
            font-weight: 800;
            color: var(--text-white);
            text-transform: uppercase;
            letter-spacing: -1px;
            margin-bottom: 16px;
        }
        .page-hero h1 span { color: var(--gold); }
        .breadcrumb { justify-content: center; background: transparent; padding: 0; margin-bottom: 40px; font-size: 14px; }
        .breadcrumb-item a { color: var(--text-muted); }
        .breadcrumb-item a:hover { color: var(--gold); }
        .breadcrumb-item.active { color: var(--text-light); }
        .breadcrumb-item + .breadcrumb-item::before { color: var(--gold-dark); }

        /* ==================== SECTIONS ==================== */
        .section { padding: 80px 0; position: relative; }
        .section-title { font-size: 32px; font-weight: 700; color: var(--text-white); margin-bottom: 16px; text-transform: uppercase; }
        .section-title span { color: var(--gold); }
        .section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.6; margin-bottom: 40px; }
        .text-center-title { text-align: center; }
        .text-center-title .section-subtitle { margin-left: auto; margin-right: auto; }

        /* ==================== INTRO BLOCK ==================== */
        .intro-block {
            background: var(--card-bg);
            border: 1px solid rgba(200, 163, 102, 0.15);
            border-radius: 20px;
            padding: 48px;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .intro-block p { font-size: 16px; color: var(--text-light); line-height: 1.8; }
        .intro-block .highlight { color: var(--gold); font-weight: 600; }

        /* ==================== DIRECTION CARDS (Big) ==================== */
        .direction-card {
            background: var(--card-bg);
            border: 1px solid rgba(200, 163, 102, 0.12);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
            height: 100%;
            position: relative;
        }
        .direction-card:hover {
            transform: translateY(-8px);
            border-color: var(--gold);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        .direction-card-image {
            width: 100%;
            height: 220px;
            overflow: hidden;
            position: relative;
        }
        .direction-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        .direction-card:hover .direction-card-image img {
            transform: scale(1.08);
        }
        .direction-card-image .card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(26, 46, 32, 0.9) 0%, transparent 60%);
        }
        .direction-card-image .card-icon-badge {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 48px;
            height: 48px;
            background: rgba(200, 163, 102, 0.9);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: var(--primary-dark);
        }
        .direction-card-body {
            padding: 28px;
        }
        .direction-card-tag {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(200, 163, 102, 0.15);
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        .direction-card-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-white);
            margin-bottom: 12px;
        }
        .direction-card-desc {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 20px;
        }
        .direction-card-features {
            list-style: none;
            padding: 0;
            margin: 0 0 20px 0;
        }
        .direction-card-features li {
            font-size: 13px;
            color: var(--text-light);
            padding: 6px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .direction-card-features li i {
            color: var(--gold);
            font-size: 14px;
            flex-shrink: 0;
        }
        .direction-card-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--gold);
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .direction-card-link i { transition: transform 0.3s ease; }
        .direction-card-link:hover i { transform: translateX(4px); }

        /* ==================== STATS MINI ==================== */
        .stats-mini {
            background: var(--primary-darker);
            border-top: 1px solid rgba(200, 163, 102, 0.1);
            border-bottom: 1px solid rgba(200, 163, 102, 0.1);
            padding: 50px 0;
        }
        .stats-mini-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }
        .stats-mini-item {
            text-align: center;
            padding: 20px;
        }
        .stats-mini-number {
            font-size: 36px;
            font-weight: 800;
            color: var(--gold);
            line-height: 1;
            margin-bottom: 8px;
        }
        .stats-mini-label {
            font-size: 13px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ==================== CTA SECTION ==================== */
        .cta-section {
            background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
            border: 1px solid rgba(200, 163, 102, 0.2);
            border-radius: 24px;
            padding: 60px;
            text-align: center;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(200, 163, 102, 0.08) 0%, transparent 70%);
            border-radius: 50%;
        }
        .cta-section h2 {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-white);
            margin-bottom: 16px;
            position: relative;
        }
        .cta-section p {
            font-size: 16px;
            color: var(--text-light);
            margin-bottom: 32px;
            position: relative;
        }
        .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            position: relative;
        }
        .btn-primary-gold {
            padding: 14px 32px;
            background: var(--gold);
            color: var(--primary-dark);
            border: none;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .btn-primary-gold:hover {
            background: var(--gold-light);
            color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(200, 163, 102, 0.35);
        }
        .btn-outline-gold {
            padding: 14px 32px;
            background: transparent;
            color: var(--text-light);
            border: 1px solid rgba(200, 163, 102, 0.4);
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .btn-outline-gold:hover {
            border-color: var(--gold);
            color: var(--gold);
            background: rgba(200, 163, 102, 0.1);
            transform: translateY(-2px);
        }

        /* ==================== FOOTER ==================== */
        .footer { background: var(--primary-darker); border-top: 1px solid rgba(200, 163, 102, 0.1); padding: 36px 0; }
        .footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
        .footer-info { flex: 1; }
        .footer-info .org-name { font-size: 13px; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
        .footer-info .org-details { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
        .footer-email { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 14px; font-weight: 500; }
        .footer-email i { color: var(--gold); font-size: 18px; }
        .footer-subscribe { display: flex; align-items: center; gap: 12px; }
        .footer-subscribe input { padding: 10px 20px; border: 1px solid rgba(200, 163, 102, 0.2); border-radius: 25px; background: rgba(200, 163, 102, 0.05); color: var(--text-white); font-size: 13px; outline: none; width: 220px; transition: all 0.3s ease; }
        .footer-subscribe input::placeholder { color: var(--text-muted); }
        .footer-subscribe input:focus { border-color: var(--gold); background: rgba(200, 163, 102, 0.1); }
        .btn-subscribe { padding: 10px 28px; background: var(--gold); color: var(--primary-dark); border: none; border-radius: 25px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; }
        .btn-subscribe:hover { background: var(--gold-dark); transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); }

        /* ==================== ANIMATIONS ==================== */
        .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
        .fade-in.visible { opacity: 1; transform: translateY(0); }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 992px) {
            .nav-links { display: none; }
            .burger { display: flex; }
            .btn-follow-news { display: none; }
            .stats-mini-grid { grid-template-columns: repeat(2, 1fr); }
            .cta-section { padding: 40px 24px; }
        }

        @media (max-width: 768px) {
            .page-hero { padding-top: 120px; padding-bottom: 40px; }
            .section { padding: 50px 0; }
            .intro-block { padding: 28px 20px; }
            .direction-card-image { height: 180px; }
            .cta-section { padding: 32px 20px; }
            .cta-buttons { flex-direction: column; }
            .btn-primary-gold, .btn-outline-gold { width: 100%; justify-content: center; }
            .footer-content { flex-direction: column; text-align: center; }
            .footer-subscribe { flex-direction: column; width: 100%; }
            .footer-subscribe input { width: 100%; }
        }

        @media (max-width: 576px) {
            .stats-mini-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
            .stats-mini-number { font-size: 28px; }
            .direction-card-body { padding: 20px; }
            .direction-card-title { font-size: 18px; }
        }
		.footer__copyright-author {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* если тёмный футер */
    text-align: center;
    font-size: 14px;
    color: #666; /* подберите под дизайн */
}

.footer__copyright-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer__copyright-link:hover {
    color: #007bff; /* цвет при наведении */
    text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .footer__copyright-author {
        font-size: 13px;
        margin-top: 20px;
        padding-top: 12px;
    }
}
/* ==================== FIX: Убираем люфт ==================== */
/* Блокируем скролл на уровне html и body */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Дополнительно страхуем основные блоки, чтобы контент не вылезал */
.section, .container, .row, .stats-mini, .cta-section {
    overflow-x: hidden;
}

.direction-card-image.is-empty {
    background: linear-gradient(135deg, rgba(200, 163, 102, 0.12), rgba(28, 51, 38, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

.direction-card-image.is-empty .card-icon-badge {
    position: static;
    width: 76px;
    height: 76px;
    font-size: 34px;
}

.directions-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 36px 0;
}

.section-no-top { padding-top: 0; }
