/* Базовые стили */
:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary: #c62828;
    --secondary-light: #ff5f52;
    --secondary-dark: #8e0000;
    --accent: #ff8f00;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --light-gray: #eeeeee;
}

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

body {
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

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

.section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}

h2 {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

h2 i {
    margin-right: 10px;
    color: var(--secondary);
}

/* Баннер */
.ribbon-banner {
    height: 10px;
    display: flex;
}

.ribbon-stripe {
    flex: 1;
    height: 100%;
}

.ribbon-stripe.orange {
    background: var(--accent);
}

.ribbon-stripe.black {
    background: var(--dark);
}

/* Шапка */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--accent);
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Карта */
#map {
    height: 400px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid var(--primary);
}

.marker {
    color: var(--secondary);
    font-size: 24px;
}

.current-marker {
    color: #4CAF50;
    font-size: 24px;
}

/* Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.card li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Таймлайн */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
    padding: 0 20px;
}

.timeline-content {
    flex: 2;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--primary);
}

.timeline-item.current .timeline-content {
    border-color: #4CAF50;
    background: #f1f8e9;
}

/* Галерея фото */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.photo-item {
    text-align: center;
    width: 150px;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--light-gray), #e0e0e0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid var(--primary);
}

.photo-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.photo-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Цитата */
.quote {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border-radius: 10px;
    border-left: 5px solid var(--secondary);
}

.quote i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

.quote p {
    display: inline;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-dark);
}

/* Контакты */
.contact-section {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-link:hover {
    background: var(--primary-dark);
}

/* Подвал */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

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

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

.footer-quote {
    text-align: right;
    font-style: italic;
    color: rgba(255,255,255,0.8);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .info-row {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 50px;
    }
    
    .timeline-year {
        flex: none;
        width: 80px;
        text-align: left;
        position: absolute;
        left: -80px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-quote {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}
/* Добавьте в конец style.css */
.leaflet-control-attribution {
    display: none !important;
}
