/* ========== GLOBAL ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: url("../images/hero-bg.png") center/cover no-repeat fixed;
    background-color: #000;
    text-align: center; /* 👈 центрируем весь текст по умолчанию */
}

/* Общие контейнеры */
header, main, section, footer {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px 30px;
}

/* ========== HEADER ========== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
}

header h1 {
    color: #d22;
    margin: 0;
    font-size: 1.5rem;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: #d22;
}

/* ========== HERO SECTION ========== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.4);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #d22;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #a00;
}

/* ========== MAIN CONTENT ========== */
main.content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

main.content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

main.content p,
main.content li {
    max-width: 700px;
    margin: 10px auto;
}

main.content ul {
    list-style-type: disc;
    padding-left: 40px;   /* отступ слева */
    text-align: left;     /* выравнивание списка влево */
    display: inline-block;/* центрирует блок списка */
}

main.content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ========== CONTACT FORM ========== */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin-top: 25px;
}

form input,
form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 1rem;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #d22;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #a00;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    color: #eee;
    margin-top: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    main.content {
        padding: 40px 20px;
    }
}
