/* ======== 1. БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТА ======== */
:root {
    --bg-color: #0d0d0d;
    --bg-gradient: radial-gradient(circle at 50% 10%, #2a2a2a 0%, #0d0d0d 80%);
    
    --card-bg: rgba(30, 30, 30, 0.6);
    --card-border: rgba(255, 215, 0, 0.1);
    --card-hover-border: rgba(255, 215, 0, 0.5);
    
    --color-gold: #FFD700;
    --color-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    --color-red: #DC143C;
    --color-gold-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    
    --color-text: #F0F0F0;
    --color-text-muted: #aaaaaa;
    --z-overlay: 9990; 
    --z-header: 1000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стандартный фон для Главной страницы (Чистый) */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Специальный фон с решеточкой (сотами) для внутренних страниц */
body.with-pattern {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23FFD700' stroke-width='1' stroke-opacity='0.05'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23FFD700' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 10%, #2a2a2a 0%, #0d0d0d 80%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ======== 2. ТИПОГРАФИКА И СТИЛЬНЫЕ ЗАГОЛОВКИ ======== */
/* Добавили .logo-elite span в список градиентных надписей */
.section-title, 
.hero-content h1 span, 
.card h3, 
.overlay-link, 
.logo-elite span {
    background: var(--color-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    color: var(--color-gold); /* Fallback */
    display: inline-block; /* Необходимо для корректного отображения градиента */
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: block; /* Заголовок секции на всю ширину */
}

/* ======== 3. ПРЕЛОАДЕР ======== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-text {
    color: var(--color-gold);
    margin-top: 10px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ======== 4. ЭЛИТНАЯ ШАПКА ======== */
.elite-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: var(--z-header);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-elite {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-elite img {
    height: 45px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
    transition: transform 0.3s ease;
}

/* Специфичные настройки шрифта для логотипа (градиент наследуется выше) */
.logo-elite span {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-elite:hover img {
    transform: scale(1.1);
}

.desktop-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--color-gold);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gold-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.menu-burger-btn {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    padding: 5px;
}

.burger-line {
    display: block;
    height: 3px;
    background: var(--color-gold-gradient);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-line.top { width: 30px; }
.burger-line.bottom { width: 20px; }

.menu-burger-btn.active .burger-line.top {
    transform: translateY(4.5px) rotate(45deg);
    width: 30px;
}
.menu-burger-btn.active .burger-line.bottom {
    transform: translateY(-4.5px) rotate(-45deg);
    width: 30px;
}

/* ======== 5. ПОЛНОЭКРАННОЕ МЕНЮ (OVERLAY) ======== */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: var(--z-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.overlay-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.overlay-link {
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    display: block; /* На всю ширину в мобильном меню */
}

.overlay-link:hover {
    transform: scale(1.1);
}

/* ======== 6. ГЛАВНЫЙ ЭКРАН (HERO) ======== */
.hero {
    min-height: 100vh;
    display: flex; 
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    align-items: center;
    gap: 50px; 
}

.hero-content h1 {
    font-size: 3.8rem; 
    color: var(--color-text); 
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.text-gold {
    color: var(--color-gold);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted); 
    margin-bottom: 30px;
    max-width: 600px;
}

.experience-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--color-red);
}

.experience-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.experience-box ul li {
    list-style: none;
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    color: #ccc;
}
.experience-box ul li::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
    top: 5px;
}

.hero-image {
    text-align: center; 
    position: relative;
}

.hero-image img {
    max-width: 100%; 
    height: auto;
    border-radius: 20px; 
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    filter: blur(40px);
}

/* ======== 7. КАРТОЧКИ ======== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-10px); 
    border-color: var(--card-hover-border);
    box-shadow: var(--color-gold-glow), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.card-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    object-fit: contain;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: center; 
    width: 100%;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 25px;
    flex-grow: 1; 
}

/* ======== 8. КНОПКИ ======== */
.btn-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 130px;
}

.btn-primary {
    background: linear-gradient(135deg, #DC143C 0%, #b3002d 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.btn-outline-glow {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    width: 240px;
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    white-space: nowrap; 
}
.btn-outline-glow:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--color-gold-glow);
    background: rgba(255, 215, 0, 0.05);
}

/* ОГРОМНАЯ КНОПКА ДЛЯ СТАТЬИ */
.btn-huge {
    font-size: 1.2rem;
    padding: 20px 40px;
    border-radius: 50px;
    background: var(--color-gold-gradient);
    font-weight: 900;
    box-shadow: var(--color-gold-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}
.btn-huge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.article-content-wrapper a.btn-huge {
    color: #0d0d0d !important; 
    text-decoration: none !important;
}
.article-content-wrapper a.btn-huge:hover {
    color: #000 !important;
}

/* ======== 9. ФУТЕР И КНОПКА НАВЕРХ ======== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-gold-gradient);
    color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


.footer {
    text-align: center;
    padding: 40px 0;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

/* ======== 10. АНИМАЦИИ ======== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.card-grid .card:nth-child(1) { transition-delay: 0.1s; }
.card-grid .card:nth-child(2) { transition-delay: 0.2s; }
.card-grid .card:nth-child(3) { transition-delay: 0.3s; }
.card-grid .card:nth-child(4) { transition-delay: 0.4s; }

/* ======== 11. СТИЛИ ДЛЯ ТЕЛА СТАТЬИ ======== */
.article-content-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    max-width: 900px; 
    margin: 0 auto 60px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.article-header-in-box {
    font-size: 3rem; 
    color: var(--color-gold); 
    margin-bottom: 30px;
    line-height: 1.2; 
    padding-bottom: 20px;
    text-align: center; 
    border-bottom: 1px solid rgba(255,215,0,0.2); 
    background: var(--color-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-content-wrapper h2 {
    color: var(--color-gold); 
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.3; 
}

.article-content-wrapper h3 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.article-content-wrapper p {
    font-size: 1.15rem;
    color: #e0e0e0; 
    margin-bottom: 20px;
    line-height: 1.8; 
}

.article-content-wrapper a {
    color: var(--color-gold); 
    font-weight: bold;
    text-decoration: underline;
}
.article-content-wrapper a:hover {
    color: #fff;
}

.article-callout {
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--color-gold);
    padding: 25px;
    margin: 35px 0;
    border-radius: 0 10px 10px 0;
}
.article-callout.warning {
    background: rgba(220, 20, 60, 0.05);
    border-left-color: var(--color-red);
}
.article-callout.success {
    background: rgba(0, 192, 118, 0.05);
    border-left-color: #00C076;
}
.article-callout h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-gold);
}
.article-callout.warning h3 { color: var(--color-red); }
.article-callout.success h3 { color: #00C076; }
.article-callout p:last-child { margin-bottom: 0; }

.article-list {
    margin-bottom: 30px;
}
.article-list li {
    list-style: none;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: #e0e0e0;
}
.article-list li::before {
    content: '✔';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
}
.article-list.red-list li::before {
    content: '✖';
    color: var(--color-red);
}

.article-image-full {
    margin: 40px 0;
    text-align: center;
}
.article-image-full img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.image-caption {
    display: block;
    font-size: 0.95rem !important;
    color: var(--color-text-muted) !important;
    margin-top: 15px !important;
    font-style: italic;
}

.article-card-elite {
    padding: 0; 
    overflow: hidden;
    text-decoration: none;
    align-items: flex-start;
    cursor: pointer;
}

.article-card-elite:hover .article-image img {
    transform: scale(1.05) rotate(1deg);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1); 
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    flex-grow: 1;
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #DC143C 0%, #b3002d 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
    margin-bottom: 15px;
}

.article-card-elite h3 {
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-card-elite p {
    text-align: left;
    margin-bottom: 25px;
    color: var(--color-text-muted);
}

.article-card-elite .btn-wrapper {
    justify-content: flex-start; 
    margin-top: auto;
}

/* ======== 12. МОБИЛЬНАЯ АДАПТАЦИЯ ======== */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .menu-burger-btn { display: flex; }
    .hero { padding-top: 120px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-image { order: -1; }
    .hero-content h1 { font-size: 2.5rem; }
    .experience-box { text-align: left; display: inline-block; }
    
    .article-content-wrapper { padding: 25px; }
    .article-header-in-box { font-size: 2rem; }
}