/* ==========================================================================
   ObozrevatelNews - NEO-INDUSTRIAL STYLES (Bootstrap 5 Override & Custom)
   Palette: Space Navy, Imperial Red, Neon Mint, Soft Silver
   ========================================================================== */

@import url('https://fonts.googleapis.com../assets/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@500;700;800&display=swap');

:root {
    /* Цветовая палитра */
    --pn-bg-light: #F3F4F6;
    --pn-bg-white: #FFFFFF;
    --pn-space-navy: #1A1C29;
    --pn-space-light: #2D3142;
    --pn-imperial-red: #e6c139;
    --pn-red-hover: #bbc529;
    --pn-neon-mint: #e800a6;
    --pn-text-main: #2b3f42;
    --pn-text-muted: #706c7d;
    
    /* Типографика */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Отступы для Editorial-дизайна */
    --section-py: 12vh;
    --element-gap: 2rem;
}

/* -----------------------------------------
   1. GLOBAL & TYPOGRAPHY
   ----------------------------------------- */
body {
    background-color: var(--pn-bg-light);
    color: var(--pn-text-main);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--pn-space-navy);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

a {
    color: var(--pn-space-navy);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
    color: var(--pn-imperial-red);
}

/* Буквица для длинных текстов (Editorial vibe) */
.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--pn-imperial-red);
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
}

/* -----------------------------------------
   2. BOOTSTRAP OVERRIDES
   ----------------------------------------- */
/* Кнопки */
.btn-primary {
    background-color: var(--pn-imperial-red);
    border-color: var(--pn-imperial-red);
    color: var(--pn-bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Убираем скругления для индустриального стиля */
    padding: 1rem 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--pn-space-navy);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: transparent;
    border-color: var(--pn-space-navy);
    color: var(--pn-bg-white);
}

.btn-primary:hover::before {
    transform: scaleY(1);
}

/* Навигация */
.navbar {
    background-color: var(--pn-bg-white) !important;
    border-bottom: 2px solid var(--pn-space-navy);
    padding: 1.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--pn-space-navy) !important;
}

.navbar-brand span {
    color: var(--pn-imperial-red);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--pn-space-navy) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    margin-left: 1.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--pn-neon-mint);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* -----------------------------------------
   3. CUSTOM LAYOUTS & GRIDS (Non-Standard)
   ----------------------------------------- */
.section-padding {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

/* Смещение блоков (Offset Grid) */
.offset-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.offset-img {
    grid-column: 1 / 8;
    position: relative;
}

.offset-text {
    grid-column: 7 / 13;
    background: var(--pn-bg-white);
    padding: 4rem;
    border-left: 6px solid var(--pn-neon-mint);
    box-shadow: 20px 20px 0px rgba(26, 28, 41, 0.05);
    z-index: 2;
}

@media (max-width: 991px) {
    .offset-img, .offset-text {
        grid-column: 1 / -1;
    }
    .offset-text {
        margin-top: -3rem;
        padding: 2rem;
    }
}

/* Карточки-статьи (без обводок, акцент на типографику) */
.editorial-card {
    background: transparent;
    border: none;
    border-top: 3px solid var(--pn-space-navy);
    padding-top: 1.5rem;
    margin-bottom: 3rem;
}

.editorial-card .meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--pn-imperial-red);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.editorial-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* -----------------------------------------
   4. HERO SECTIONS (Multiple Variants)
   ----------------------------------------- */
.hero-split {
    min-height: 85vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(26, 28, 41, 0.1);
}

.hero-content {
    padding-right: 5vw;
}

.hero-image-wrapper {
    position: relative;
    height: 70vh;
    width: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
}

.hero-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--pn-neon-mint);
    z-index: -1;
}

/* -----------------------------------------
   5. SPECIAL ELEMENTS
   ----------------------------------------- */
/* Огромные цитаты */
.quote-block {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--pn-space-navy);
    line-height: 1.3;
    padding: 3rem 0;
    border-top: 1px solid var(--pn-text-muted);
    border-bottom: 1px solid var(--pn-text-muted);
    margin: 4rem 0;
    position: relative;
}

.quote-block::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: -40px;
    font-size: 6rem;
    color: var(--pn-imperial-red);
    opacity: 0.2;
    line-height: 1;
}

/* Информационные панели */
.info-panel {
    background-color: var(--pn-space-navy);
    color: var(--pn-bg-white);
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
}

.info-panel h2, .info-panel h3 {
    color: var(--pn-bg-white);
}

.info-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: var(--pn-imperial-red);
}

/* -----------------------------------------
   6. FOOTER
   ----------------------------------------- */
.site-footer {
    background-color: var(--pn-space-navy);
    color: var(--pn-bg-white);
    padding: 6rem 0 2rem;
    margin-top: auto;
}

.site-footer h4 {
    color: var(--pn-bg-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.site-footer p {
    color: #A0AAB2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #A0AAB2;
    font-family: var(--font-heading);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--pn-neon-mint);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A0AAB2;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #A0AAB2;
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: var(--pn-bg-white);
}

/* -----------------------------------------
   7. UTILITIES & ANIMATIONS (CSS Only)
   ----------------------------------------- */
.text-red { color: var(--pn-imperial-red) !important; }
.text-mint { color: var(--pn-neon-mint) !important; }
.bg-navy { background-color: var(--pn-space-navy) !important; }

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--pn-bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--pn-space-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pn-imperial-red);
}

/* Анимация появления контента при загрузке (чистый CSS) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Масштабирование изображений */
.img-fluid {
    height: auto;
    max-width: 100%;
}