body {
    font-family: "Roboto", sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;  
    height: 100vh;
    overflow-x: hidden;
}


header {
    position: relative;
    z-index: 1000;
    top: 0;
    padding: 20px;
    text-align: center;
    width: 100%;
}

main {
    width: 100%;
    display: flex;       
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}


form {
    max-width: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 50px;
    background-color: #ffffff;
    box-sizing: border-box; 
}


textarea, input {
    display: block;
    width: calc(100% - 20px); 
    padding: 10px;
    margin: 0 auto 15px auto; /* Упрощенная запись для центрирования */
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    min-height: 200px;
    resize: none;
}

#complaint {
    height: 200px; 
}

#contactBack {
    height: 100px; 
}

button {
    display: block;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    border-radius: 5px;
}

footer {
    width: 100%;
    padding: 20px;
    text-align: center;
}


footer p, footer a {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

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

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

/* Стили для больших мониторов */
@media screen and (min-width: 1024px) {
    header img {
        width: 300px;
        height: auto;
        margin-bottom: 20px;
    }
}

/* Стили для планшетов */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    header img {
        width: 250px;
        height: auto;
        margin-bottom: 15px;
    }

    textarea, input {
        max-width: 450px;
    }
}

/* Стили для мобильных телефонов */
@media screen and (max-width: 767px) {
    header img {
        width: 150px;
        height: auto;
        margin-bottom: 10px;
    }

    form {
        padding: 20px; 
    }

    textarea, input {
        width: 100%;
        max-width: none; 
    }
}
