﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/*Содержимое body*/ 
body {
    line-height: 1.6;
    background-color: #f4f4f4;
    line-height: 1.6;
}

#contact {
    background-color: lightblue;
    border-radius: 10px;
}

#services {
    background-color: lightblue;
    border-radius: 10px;
}

#about {
    background-color: lightblue;
    border-radius: 10px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-image: url('/img/FotoKostroma.jpg');
    padding: 20px 0;
    height: 400px;
    margin: 25px;
    background-size: cover; /* Заполнение контейнера, сохраняя пропорции */
    background-position: left bottom; /* Всегда показывать левую нижнюю часть изображения */
    background-repeat: no-repeat; /* Не повторять изображение */
    transition: background-position 0.5s ease; /* Плавный переход для изменения позиции */
}

    .header h1 {
        font-size: 60px;
        color: blue;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.5);
        border-top-left-radius: 10%;
        border-top-right-radius: 10%;
        width: 600px;
    }

    .header nav {
        width: 600px;
        border-bottom-left-radius: 10%;
        border-bottom-right-radius: 10%;
    }

    .header nav ul {
        list-style: none;
        padding: 0;
    }

    .header nav a {
        color: #fff;
        font-size: 40px;
        text-decoration: none;
    }

        .header nav a:hover {
            text-decoration: underline;
        }

    .main-content {
        padding: 20px 0;
        background-color: #fff;
    }

        .main-content section {
            margin-bottom: 20px;
        }

    /*Это логотипы*/
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative; /* Это позволит находиться логотипам в пределах контейнера */
}

    .logo-container img {
        /*width: 200px;*/ /* Убедитесь, что ширина логотипа установлена */
        width: 40%; /* Вместо фиксированной ширины используем проценты */
        max-width: 200px; /* Ограничение максимальной ширины логотипа */
        height: auto; /* Сохраняем пропорции изображения */
    }



@media (max-width: 768px) {

    .header {
        width: auto;
    }

    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }


    .footer p {
        font-size: 0.9em;
        text-align: center;
    }

    .header nav ul {
        flex-direction: column; /*Выстраиваем элементы в столбик*/
        align-items: flex-start; /*Центрируем элементы */
    }

    .header nav {
        width: 250px;
        text-align: left;
        padding-left:0px;
    }


    .header h1 {
        width: 250px;
        text-align: center;
    }
}
