body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    width: 100%; /* Make header full width */
    box-sizing: border-box; /* Include padding in width */
}

header img {
    height: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.main-content {
    width: 80%;
    max-width: 800px; /* Adjust max-width as needed */
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px; /* Slightly rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    box-sizing: border-box;
}

.card {
    width: 100%;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 1em;
    line-height: 1.5;
    color: #555;
}

.card-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.card-content li {
    margin-bottom: 5px;
}

/* Contact Form Styles (Crucial Part) */
.card-content form {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Make form elements fill the width */
}

.card-content label {
    margin-top: 10px;
    font-weight: bold;
    display: block; /* Ensure label takes full width */
}

.card-content input[type="text"],
.card-content input[type="email"],
.card-content textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    width: 100%; /* Important: Make input fields full width */
    box-sizing: border-box; /* Include padding in width */
}

.card-content textarea {
    resize: vertical;
    min-height: 100px; /* Give textarea a reasonable height */
}

.card-content input[type="submit"] {
    background-color: #eee; /* Light gray background */
    color: #333;
    padding: 8px 15px;
    border: 1px solid #ddd; /* Add a border */
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    align-self: flex-start; /* Align to the start (left) - adjust if needed */
}

.card-content input[type="submit"]:hover {
    background-color: #ddd; /* Slightly darker gray on hover */
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #555; /* Add a subtle top border */
}


@media (max-width: 768px) {
    .main-content {
        width: 95%;
        padding: 15px;
    }

.menu-toggle {
        display: block;
        z-index: 1001; 
        position: relative;
    }

    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000; /* Поднимаем меню выше всех */
    }

    nav ul {
        list-style: none;
        padding: 10px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        display: block;
        padding: 10px;
    }

    nav.active {
        display: block;
    }
}
