/* Общие стили для всех страниц */
:root {
    --red: #cc0000;
    --dark-red: #990000;
    --light-red: #ffebee;
    --light-gray: #f5f5f5;
}

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

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Шапка сайта */
header {
    background: var(--red);
    padding: 15px 0;
    position: relative;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    margin-left: 15px;
    text-transform: uppercase;
}

/* Навигация */
nav {
    background: var(--dark-red);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 3px;
    font-size: 1.1rem;
    transition: background 0.3s;
    border-radius: 3px;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Основной контент */
.page {
    background: white;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--red);
}

h1, h2, h3 {
    color: var(--red);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 2px solid var(--red);
    padding-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    margin-top: 30px;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Сетка фото */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.photo-placeholder {
    height: 250px;
    background: #eee;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: bold;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Видео */
.video-container {
    position: relative;
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
}

/* Стили для вертикального видео */
.video-container video {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #000;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.video-container p {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

@media (max-width: 400px) {
    .video-container {
        max-width: 320px !important;
    }
    
    .video-container video {
        max-width: 100%;
    }
}

/* Кнопки */
.join-button {
    display: block;
    width: 250px;
    margin: 40px auto;
    padding: 15px;
    background: var(--red);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.join-button:hover {
    background: var(--dark-red);
}

/* Бейдж должности */
.position-badge {
    background: var(--dark-red);
    color: white;
    padding: 8px 15px;
    display: inline-block;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

/* Подвал */
footer {
    background: var(--dark-red);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-contacts {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contacts a {
    color: white;
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright a {
    color: white;
    text-decoration: underline;
}

/* Скрытый SEO-текст */
.hidden-seo {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .logo-text {
        margin-left: 0;
        margin-top: 10px;
        font-size: 1.2rem;
    }
    
    nav a {
        padding: 8px 10px;
        font-size: 0.95rem;
        margin: 2px;
    }
    
    .page {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .join-button {
        width: 100%;
        max-width: 250px;
    }
    
    .video-container {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .video-container video {
        max-width: 95%;
    }
}