/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    padding: 0;
    margin: 0;
}

/* ===== КОНТЕЙНЕР ДЛЯ ОГРАНИЧЕНИЯ ШИРИНЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== ХЕДЕР ===== */
header {
    background: #1a1a1a;
    color: white;
    padding: 15px 0;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #ff4d4d;
    line-height: 1.3;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
    background: #2c2c2c;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #ff4d4d;
    color: white;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    padding: 20px 0;
}

section {
    background: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    line-height: 1.7;
}

section h2 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

section h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 1.25rem;
}

section p, section ul, section ol {
    margin-bottom: 15px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* ===== ФУТЕР ===== */
footer {
    background: #1a1a1a;
    color: #ddd;
    text-align: center;
    padding: 25px 15px;
    margin-top: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== ЦИТАТЫ ===== */
blockquote {
    background: #fef9f9;
    border-left: 4px solid #d32f2f;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* ===== СПИСКИ ===== */
ul, ol {
    padding-left: 20px;
    margin: 15px 0;
}

li {
    margin-bottom: 8px;
}

/* ===== АДАПТИВ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА ===== */
@media (max-width: 768px) {

    header h1 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    nav {
        padding: 10px 5px;
        overflow-x: auto;
        white-space: nowrap;
    }

    nav a {
        display: inline-block;
        margin: 5px 4px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .container {
        padding: 0 10px;
    }

    section {
        padding: 20px 15px;
        margin: 15px 0;
    }

    section h2 {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.15rem;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 16px;
        font-size: 1.15rem;
        margin: 25px 0;
    }

    footer {
        padding: 20px 10px;
        font-size: 0.9rem;
    }

    blockquote {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ===== АДАПТИВ ПОД ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (iPhone SE, старые Android) ===== */
@media (max-width: 480px) {

    header h1 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    nav a {
        font-size: 0.85rem;
        padding: 6px 8px;
        margin: 3px 2px;
    }

    section {
        padding: 15px 10px;
    }

    section h2 {
        font-size: 1.2rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 18px;
        font-size: 1.2rem;
    }

    footer {
        padding: 15px 5px;
        font-size: 0.85rem;
    }

    blockquote {
        padding: 10px;
        font-size: 0.9rem;
    }
}

