/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== ЗАДАНИЕ 1: ФИКСИРОВАННЫЙ БАННЕР (ДОПОЛНИТЕЛЬНОЕ) ===== */
.banner {
    /* Студент должен сделать баннер фиксированным */
    /* position: ?; */
    
    /* Расположение в левом верхнем углу */
    top: 0;
    left: 0;
    
    /* Внешний вид */
    background: linear-gradient(90deg, #ff4757, #ff3838);
    color: white;
    padding: 12px 20px;
    width: 100%;
    
    /* Центрирование содержимого */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Тень для выделения */
    /* box-shadow: ?; */
    
    /* z-index должен быть высоким, чтобы баннер был поверх других элементов */
    /* z-index: ?; */
}

.banner-text {
    font-weight: bold;
    font-size: 1.1rem;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== ЗАДАНИЕ 2: ФИКСИРОВАННЫЙ ХЕДЕР ===== */
.header {
    background-color: #2c3e50;
    color: white;
    
    /* Студент должен сделать хедер фиксированным */
    /* position: ?; */
    
    /* Расположение вверху страницы */
    /* top: ?; */
    
    /* Ширина на всю страницу */
    width: 100%;
    
    /* Тень для визуального отделения */
    /* box-shadow: ?; */
    
    /* z-index должен быть ниже баннера, но выше основного контента */
    /* z-index: ?; */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #3498db;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #3498db;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
/* Студент должен добавить отступ сверху, чтобы контент не скрывался под фиксированным хедером */
main {
    /* padding-top: ?; */
}

.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.card h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.card ul {
    padding-left: 20px;
    margin: 15px 0;
}

.card li {
    margin-bottom: 8px;
}

code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #e74c3c;
}

.note {
    background: #fff9e6;
    border-left: 4px solid #f1c40f;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

.post {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.example {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 20px;
    overflow: hidden;
}

.example-header {
    background: #f8f9fa;
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.example-content {
    padding: 20px;
    min-height: 100px;
}

.contact-info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: #3498db;
    width: 25px;
}

.scroll-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.placeholder-item {
    flex: 1 1 200px;
    height: 150px;
    background: linear-gradient(45deg, #f1f1f1, #e1e1e1);
    border-radius: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* ===== ЗАДАНИЕ 3: ФИКСИРОВАННАЯ БОКОВАЯ НАВИГАЦИЯ ===== */
.side-nav {
    /* Студент должен сделать боковую навигацию фиксированной */
    /* position: ?; */
    
    /* Расположение в правом нижнем углу, но выше футера */
    /* bottom: ?; */
    /* right: ?; */
    
    /* Отступы и внешний вид */
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    
    /* z-index должен быть ниже хедера, но выше основного контента */
    /* z-index: ?; */
}

.side-nav-item {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
}

.side-nav-item:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.back-to-top {
    background: #2c3e50;
}

.back-to-top:hover {
    background: #1a252f;
}

/* ===== ЗАДАНИЕ 4: ФИКСИРОВАННЫЙ ФУТЕР ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    
    /* Студент должен сделать футер фиксированным */
    /* position: ?; */
    
    /* Расположение внизу страницы */
    /* bottom: ?; */
    
    /* Ширина на всю страницу */
    width: 100%;
    
    /* z-index должен быть ниже боковой навигации */
    /* z-index: ?; */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 30px 0;
}

.footer-section {
    flex: 1 1 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .side-nav {
        /* На мобильных устройствах боковая навигация должна быть меньше */
        padding: 10px;
        gap: 10px;
    }
    
    .side-nav-item {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 
   ===== КОММЕНТАРИИ ДЛЯ СТУДЕНТА =====
   Замените все комментарии с "?" на соответствующие значения.
   Не изменяйте HTML-разметку.
   Проверьте свою работу при прокрутке страницы.
*/