body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    position: relative;
    max-width: 100%;
    overflow-x: hidden; /* Изменено с overflow: hidden; */
}

header {
    background-color: #a9c7c3;
    color: #703911;
    text-align: center;
    padding: 1% 0;
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logo {
    width: 10%;
    max-width: auto; /* Limit the max width of the logo */
    height: auto;
    margin-right: 10px;
}

.header-text {
    text-align: center;
}

.background-image {
    background-image: url('images/logoo.jpg'); 
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 10%;
    left: 0;
    height: 90%;
    width: 100%;
    z-index: -1;
    opacity: 0.5;
}

.container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 8px rgba(145, 38, 38, 0.1);
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    
}

.card h2 {
    color: #703912;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    margin-bottom: 20px;
}

.card ul {
    list-style-type: none;
    padding: 0;
    
}

.card li {
    color: #703912;
    margin-bottom: 5px;
    
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    color: #703912;
}

input, textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #703912;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #703911;
}

button:active {
    background-color: #643911;
}

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(150, 23, 23, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 3;
}

.message.success {
    background-color: #4CAF50;
}

.message.error {
    background-color: #f44336;
}

.about-section {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    
    margin-bottom: 20px;
    z-index: 2;
    width: 100%;
    flex-wrap: wrap;
    
    
    
    margin-top: 10px;
/*     position: relative; */
    z-index: 2;
    box-sizing: border-box;
    
    max-width: 100%;
    

   
}

.about-photo {
    width: 50%;
    max-width: 900px;
    height: auto;
    margin-right: 20px;
    border-radius: 10px;
    
}

.about-text {
    color: #703912;
    text-align: left;
}
footer {
    background-color: #abc7c4; /* Same background color as header */
    color: #703912; /* Same text color as header */
    padding: 20px;
    position: relative;
    text-align: center;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Column layout for footer items */
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 50%;
    max-width: 100px; /* Limit the max width of the logo */
    height: auto;
    margin-bottom: 10px;
}

.footer-text {
    text-align: center;
}

@media screen and (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    .about-section {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    
    margin-bottom: 20px;
    z-index: 2;
    width: 100%;
    flex-wrap: wrap;
    
    margin-top: 5px;
    z-index: 2;
    box-sizing: border-box;
    
    max-width: 100%;
    

   
}
    .about-text {
    color: #703912;
    text-align: left;
        margin-top: -10px;
        
}
    .about-photo {
         margin-top: -10px;
    width: 100%;
    max-width: max-content;
    height: auto;
/*     margin-right: 20px; */
    border-radius: 10px;
    
}
    
    .logo {
        margin-bottom: 200px;
        width: auto;
        height: 500px;
        max-height: 100px;
        margin-right: 0;
        margin-bottom: -20px;
    }
    .header-text {
        
        text-align: center;
    }
    .card{
        padding: 10px;
    }
    .footer-logo-img {
        width: 50%;
        max-width: 80px; /* Adjust as needed */
    }
}
