body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font: 400 14px "Open Sans", Arial, sans-serif;
    color: #000;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    width: 100%;
    z-index: 100;
    background-color: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-container img {
    display: block;
    max-width: 300px;
    height: 105px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-info a {
    margin-left: 0;
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 17px;
    font-family: "Open Sans", sans-serif;
    color: #000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: none;
}

nav {
    background-color: #444954;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav li {
    flex: 1;
    text-align: center;
    line-height: 50px;
    padding: 0;
    transition: background-color 0.3s, border-bottom 0.3s;
}

nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0 10px;
    text-transform: uppercase;
}

nav li.active {
    background-color: #6B8703;
}

nav li:hover {
    background-color: #555c69; /* Slightly darker hover color */
    border-bottom: 4px solid red;
}

nav li:hover a {
    color: red;
    text-decoration: none;
}

main {
    flex: 1 0 auto;
    padding-top: 150px; /* Adjust padding to match header height */
    max-width: 1250px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.content-block {
    padding: 50px 0;
    border-bottom: 1px solid #ccc;
    scroll-margin-top: 150px; /* Important for smooth scrolling with fixed header */
}

.content-block h2 {
    margin-bottom: 20px;
}

.content-block p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-block ul {
    list-style: disc;
    padding-left: 20px;
}
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Включает padding в общую ширину */
}

#contactForm label {
    font-weight: bold;
}

#contactForm input, 
#contactForm textarea, 
#contactForm button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Устанавливаем ширину на 100% */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

#contactForm button {
    background-color: #E22626;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contactForm button:hover {
    background-color: #c91e1e;
}

#captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#captcha-container img {
    height: 50px;
}

#refresh-captcha {
    background-color: #E22626;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

#refresh-captcha:hover {
    background-color: #c91e1e;
}

#form-response {

    font-size: 16px;
}


a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background-color: #444954;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-column {
    width: 23%;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.footer-column a:hover {
    text-decoration: underline;
}

.social {
    display: flex;
}

.social a {
    font-size: 2em;
    color: white;
    margin-right: 10px;
    transition: transform 0.2s;
}

.social a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    main {
        padding-top: 0; 
    }
}

button, .btn {
    width: 100%;
}
