/* ===== VARIABLES ===== */
:root {
    --red-primary: #ff0000;
    --red-dark: #cc0000;
    --red-light: #ff3333;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #adb5bd;
    --dark-gray: #495057;
    --black: #212529;
    --steel: #6c757d;
    --steel-light: #868e96;
    --gold: #ffd700;
    --spark: #ff8c00;
    --blue: #0066cc;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-strong: 0 8px 30px rgba(255,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--red-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hammer-sickle-large {
    position: absolute;
    top: 20%;
    left: 15%;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.white-panels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.white-panel {
    flex: 1;
    background-color: var(--white);
    transform: scaleY(0);
    transform-origin: top;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.loader-text span {
    display: block;
    margin-top: 10px;
    font-size: 5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    color: var(--red-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), transparent);
}

h2 {
    font-size: 3.2rem;
    color: var(--black);
    margin-bottom: 40px;
    position: relative;
}

h2::before {
    content: '⚙';
    position: absolute;
    left: -40px;
    top: 0;
    color: var(--red-primary);
    font-size: 2.5rem;
}

h3 {
    font-size: 2.4rem;
    color: var(--red-primary);
    margin-bottom: 25px;
}

.mayakovsky-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2rem;
    color: var(--black);
    line-height: 1.4;
    padding: 30px 40px;
    margin: 40px 0;
    border-left: 4px solid var(--red-primary);
    background: linear-gradient(90deg, rgba(255,0,0,0.05), transparent);
    position: relative;
    overflow: hidden;
}

.mayakovsky-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 8rem;
    color: rgba(255,0,0,0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.quote-author {
    text-align: right;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2rem;
    color: var(--black);
    margin-top: 20px;
    padding-right: 20px;
}

.industrial-heading {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.sharp-slogan {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--black);
    text-transform: uppercase;
    padding: 15px 25px;
    margin: 20px 0;
    border-left: 3px solid var(--red-primary);
    background-color: rgba(255,0,0,0.03);
    position: relative;
}

.sharp-slogan::before {
    content: '▶';
    position: absolute;
    left: -15px;
    color: var(--red-primary);
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--dark-gray);
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,0,0,0.1);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateX(5px);
}

.logo__symbol {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__symbol svg {
    width: 100%;
    height: 100%;
    fill: var(--red-primary);
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red-primary);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo__subtitle {
    font-size: 0.8rem;
    color: var(--steel);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kprf-logo {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.kprf-logo:hover {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-primary);
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: var(--red-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--red-primary);
    cursor: pointer;
    z-index: 1001;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn--red {
    background-color: var(--red-primary);
    color: var(--white);
    border-color: var(--red-primary);
}

.btn--red:hover {
    background-color: var(--red-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.btn--outline {
    background-color: transparent;
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.btn--outline:hover {
    background-color: rgba(255,0,0,0.05);
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.btn--white {
    background-color: var(--white);
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.btn--white:hover {
    background-color: var(--off-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.btn__icon {
    font-size: 1.3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    h1 { font-size: 3.8rem; }
    h2 { font-size: 2.8rem; }
    
    .hammer-sickle-large {
        font-size: 10rem;
        left: 10%;
    }
    
    .loader-text {
        font-size: 3rem;
    }
    
    .loader-text span {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-strong);
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    .nav__list.active {
        right: 0;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .container {
        padding: 0 20px;
    }
    
    .hammer-sickle-large {
        font-size: 8rem;
        left: 5%;
        top: 15%;
    }
    
    .loader-text {
        font-size: 2.5rem;
    }
    
    .loader-text span {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hammer-sickle-large {
        font-size: 6rem;
        left: 5%;
        top: 10%;
    }
    
    .loader-text {
        font-size: 2rem;
    }
    
    .loader-text span {
        font-size: 2.5rem;
    }
}
/* Стили для нового логотипа с изображением */
.logo-image {
    height: 50px; /* Высота такая же как у символа */
    width: auto;
    border-radius: 2px; /* Легкое скругление углов */
    object-fit: cover; /* Сохраняет пропорции изображения */
    display: block;
    border: none; /* Убираем все рамки */
    box-shadow: none; /* Убираем тени если были */
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .logo-image {
        height: 40px; /* Немного меньше на мобильных */
    }
}
/* Стили для логотипа КПРФ Самара */
.logo-image {
    height: 55px; /* Немного больше для флага */
    width: auto;
    object-fit: contain; /* Сохраняет пропорции, весь флаг виден */
    display: block;
    border: none;
    box-shadow: none;
    margin-right: 10px; /* Отступ от текста */
}

/* Убираем стандартные стили для .logo__symbol */
.logo__symbol {
    display: flex;
    align-items: center;
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .logo-image {
        height: 45px;
    }
    
    .logo__name {
        font-size: 1.5rem; /* Уменьшаем текст на мобильных */
    }
    
    .logo__subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 40px;
    }
    
    .logo__name {
        font-size: 1.3rem;
    }
}