/* Общие стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover {
    background-color: #0056b3;
}

h1, h2, h3 {
    color: #222;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1500x800/007bff/ffffff?text=Background+Image') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}
 
#hero .container {
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-alt {
    background-color: #e9ecef;
}

section h2 {
    margin-bottom: 50px;
}

/* Features Grid */
.features-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item, .benefit-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.feature-item h3, .benefit-item h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p, .benefit-item p {
    color: #666;
}

/* Contact Form */
#contact p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box; /* Важно для корректного отображения ширины */
}

#contact form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact form button {
    align-self: flex-start; /* Прижимаем кнопку к левому краю, если форма flex */
}

#formStatus {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px 10px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .features-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-item, .benefit-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    nav ul li {
        margin: 0 5px 10px 5px;
    }

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