/* --- Переменные и сброс --- */
:root {
    --primary-blue: #0A1B3F;
    --accent-red: #C1121F;
    --accent-red-hover: #9A0E18;
    --bg-light: #F4F6F9;
    --text-dark: #2D3748;
    --text-light: #FFFFFF;
    --text-gray: #718096;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Типографика --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 10px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.text-center { text-align: center; }

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(193, 18, 31, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

/* --- Шапка --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

header.scrolled {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-red);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.logo-text strong {
    font-size: 1.2rem;
    font-weight: 800;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-red);
}

.btn-nav {
    background-color: var(--accent-red);
    padding: 10px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    background-color: var(--accent-red-hover);
    color: var(--text-light) !important;
}

.burger {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Главный экран --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1526975753126-3589a23b587c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 27, 63, 0.9) 0%, rgba(10, 27, 63, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- Секции --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--text-light);
}

.bg-dark .divider {
    background-color: var(--accent-red);
}

/* --- О нас --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- Кому помогаем --- */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.card-help {
    background: var(--text-light);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card-help:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-red);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-help i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.card-help h4 {
    font-size: 1rem;
    color: var(--primary-blue);
}

/* --- Школа Настоящих --- */
.school-header {
    margin-bottom: 30px;
}

.school-title h2 {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 600;
}

.school-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.school-goal {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid var(--accent-red);
}

.school-goal h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.goal-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.goal-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 120px;
}

.goal-step i {
    font-size: 1.8rem;
    color: var(--accent-red);
}

.goal-step span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.goal-flow > .fa-arrow-right {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.principle-card {
    background: var(--text-light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.principle-card .num {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(193, 18, 31, 0.1);
    line-height: 1;
}

.principle-card h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.principle-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

/* --- Проекты --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.action-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.action-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.action-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* --- Ценности --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.value-item:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

.value-item:hover i {
    color: var(--text-light);
}

.value-item:hover p {
    color: rgba(255,255,255,0.8);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-item h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    transition: var(--transition);
}

.value-item:hover h4 {
    color: var(--text-light);
}

.value-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* --- Партнеры --- */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.partner-item {
    background: var(--text-light);
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

/* --- Футер --- */
footer {
    background: var(--primary-blue);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-cta h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-cta p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.footer-buttons {
    display: flex;
    gap: 15px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-info i {
    color: var(--accent-red);
    width: 20px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .footer-content { grid-template-columns: 1fr; }
    .goal-flow { justify-content: center; }
    .goal-flow > .fa-arrow-right { display: none; }
    .goal-step { flex: 0 0 45%; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; width: 100%; }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }
    
    nav.active { right: 0; }
    
    nav ul {
        flex-direction: column;
        gap: 30px;
    }
    
    nav a { font-size: 1.2rem; }
    
    .burger { display: block; z-index: 1001; }
    
    .goal-step { flex: 0 0 100%; }
    .footer-buttons { flex-direction: column; }
}