.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eceff6;
}

/* Шапка */
.header {
    padding: 20px 0;
}

.navbar-class {
    margin-left: 20%;
}

.logo {
    max-height: 100px;
}


.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: row;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
}

.nav-list a:hover {
    color: #e78f47;
}


/* Экран приветствия */
.page {
    position: relative;
    height: 100vh; /* 100% высоты экрана */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black; /* Цвет текста */
}

.welcome-screen {
    position: relative;
    z-index: 1; /* Чтобы текст сверху изображений */
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    top: 0;
    height: 80%;
    background-size: cover; /* Чтобы фон заполнял всю область */
    z-index: 0; /* Чтобы изображения были под текстом */
}

.page::before {
    background-image: url('../img/welcome_screen.png'); /* Левое изображение */
    left: 0; /* Отступ слева */
    width: 30%; /* Начальная ширина */
}

.page::after {
    background-image: url('../img/welcome_screen2.jpg'); /* Правое изображение */
    right: 0; /* Без отступа справа */
    width: 30%; /* Начальная ширина */
}

@media screen and (max-width: 768px) {
    .page {
        height: auto; /* Позволяет секции адаптироваться по высоте */
    }

    .page::before,
    .page::after {
        display: none;
    }

    .welcome-screen h1 {
        font-size: 16px; /* Уменьшаем размер заголовка */
    }

    .welcome-screen p {
        font-size: 10px; /* Уменьшаем размер текста */
    }

    .welcome-screen a.button {
        font-size: 10px; /* Уменьшаем размер кнопки */
    }
}

.button { 
    background-color:#ea9a59; 
    border: none; 
    padding: 10px 20px; 
    margin-top: 20px; 
    font-size: 16px; 
    cursor: pointer;
    border-radius: 10px;
    text-decoration: none;
    color: white;
}

.button:hover {
    background-color: #e78f47;
    color: white;
}


/*Дополниетельное*/
hr {
    width: 40%;
    height: 10px;
    background-color: #2e3347;
    margin: 0 auto;
    margin-bottom: 2%;
}

h1 {
    text-align: center;
    font-size: 40px;
}

/*Каталог*/
.card {
    margin-bottom: 20px;
}
.card-header {
    background-color: #ffffff;
    font-size: 1.5em;
    text-align: center;
}
.card-body {
    background-color: #ffffff;
}
.btn-color {
    background-color: #e79c5c;
    color: white;
}

.icons img {
    width: 60px;
}

/*Блок обо мне*/
.about {
    padding: 20px;
    margin-left: 10%;
}

.about_text {
    font-size: 1rem; /* Основной размер текста */
}

.about_text h3 {
    font-size: 1.5rem; /* Размер заголовка */
}

.about_text p,
.about_text ul {
    font-size: 0.9rem; /* Размер параграфов и списка */
}

.about_image img {
    width: 100%; /* Устанавливаем максимальную ширину, чтобы изображение было адаптивным */
    height: auto; /* Поддерживаем соотношение сторон */
    max-width: 300px; /* Ограничиваем максимальную ширину для больших экранов */
}

@media (max-width: 768px) {
    .about {
        margin-left: 0;
    }
    .about_text {
        font-size: 0.6rem; /* Уменьшаем текст для мобильных */
    }

    .about_text h3 {
        font-size: 1.25rem; /* Уменьшаем заголовок для мобильных */
    }

    .about_text p,
    .about_text ul {
        font-size: 0.6rem; /* Уменьшаем текст параграфов для мобильных */
    }
}



/*Блок с сертификатами*/ 
.text-block {
    padding: 20px;
    font-size: 1.2rem; /* Увеличение размера шрифта */
}

.certificate-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.certificate {
    flex: 1 1 400px;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certificate img {
    width: 100%;
    height: auto;
    display: block;
}

.certificate:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .certificate {
        flex: 0 1 45%; /* Каждое изображение занимает 45%, чтобы вмещалось два в ряд с отступами */
        max-width: 45%; /* Максимальная ширина 45% */
    }
}


/*Отзывы*/
.main-content h1 {
    text-align: center;
}

.review-form-section, .reviews-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.review-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 5px;
    display: block;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}



.btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1%;
    margin-top: 15px;
    background-color: #2e3347;
    border: none;
    color: white;
}

.card-body .btn:hover{
    background-color: #272b41;
    color: white;
}



.reviews-section {
    display: flex;
    flex-direction: column;
}

.review-date {
    font-size: 0.9rem; /* Размер даты */
    color: gray; /* Цвет даты */
    margin: 5px 0; /* Отступы между элементами */
}

.review-card .review-message {
    font-size: 1rem; /* Размер текста отзыва */
    line-height: 1.5; /* Высота строки */
    margin: 10px 0; /* Отступы */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .review-card .review-date,
    .review-card .review-message {
        font-size: 0.9rem; /* Уменьшаем размер текста для даты и сообщения */
    }
}

.review-date {
    font-size: 0.9em;
    color: #666;
}


/*Контакты*/
.container {
    padding: 20px;
}

.card {
    margin-bottom: 20px; /* Отступ между картами */
}

.card-header {
    background-color: #f8f9fa; /* Цвет фона заголовка */
    padding: 0;
    border-radius: 5px; /* Закругление углов карточки */
}

.text-block {
    padding: 20px; /* Отступ внутри текстового блока */
    font-size: 1.1rem; /* Размер шрифта */
}

.icons {
    display: flex; /* Используем flexbox для иконок */
    flex-wrap: wrap; /* Позволяем переносить иконки на новую строку */
}

.icons a {
    margin: 5px; /* Отступы между иконками */
}

.icons img {
    width: 30px; /* Регулируем размер иконок */
    height: auto; /* Автоматическая высота */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {  
    .text-block {
        padding: 0;
        font-size: 1rem; /* Уменьшаем размер шрифта на мобильных */
    }

    .icons {
        justify-content: center; /* Центрируем иконки на мобильных */
    }

    .icons img {
        width: 25px; /* Изменяем размер иконок на мобильных */
    }
}

/*Видео блок*/
.video-section {
    display: flex;                  /* Используем flexbox для расположения видео */
    justify-content: center;        /* Центрируем видео внутри секции */
    gap: 20px;                     /* Отступы между видео */
} 
.video-wrapper {
        max-width: 800px; /* Примерное ограничение по ширине */
        margin: 0 auto; /* Центровка контейнера */
        position: relative;
        overflow: hidden;
    }


video {
   width: 100%;  
    height: 500px;                  
    overflow: hidden;              /* Скрываем переполнение */
    border-radius: 8px;           /* Закругленные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень для видео */
}
/*Подвал*/
.footer {
        background-color: #333;
        color: #fff;
        padding: 40px 0;
    }
    .footer h4 {
        color: #fff;
        margin-bottom: 20px;
    }
    .footer p, .footer a {
        color: #bbb;
    }
    .footer a {
        text-decoration: none;
    }
    .footer a:hover {
        text-decoration: underline;
    }
    .social-list, .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .social-list li, .footer-links li {
        margin-bottom: 10px;
    }


    .card {
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        overflow: hidden;
    }
    .card-header {
        background-color: #ea9b59;
        color: white;
        text-align: center;
        border-bottom: none;
        padding: 15px;
    }
    .card-body {
        padding: 30px;
    }
    .img-fluid {
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 15px;
    }
    .form-group {
        margin-bottom: 15px;
    }

    .img_master {
        width: 33.33%; /* Забираем 1/3 ширины */
        height: auto; /* Заполняем всю высоту карточки */
        object-fit: cover; /* Сохраняем пропорции изображения */
    }

    .row1 {
        display: flex;
        flex-wrap: wrap;
    }

    @media screen and (max-width: 768px) {
        
        .nav-list {
            flex-direction: column;
        }
        hr {
            width: 40%;
            height: 5px;
        }
        h1 {
            font-size: 1rem;
        }
        h2 {
            font-size: 1.2rem;
        }
        .footer h4 {
            font-size: 1.2rem; /* Уменьшаем размер заголовка для мобильных */
        }
    
        .footer p,
        .footer .footer-links li {
            font-size: 0.9rem; /* Уменьшаем размер текста для мобильных */
        }
    
        .footer .social-list li {
            font-size: 0.9rem; /* Уменьшаем размер текста для соцсетей */
        }
        .img_master {
            width: 33.33%; /* Забираем 1/3 ширины */
            height: 100%; /* Заполняем всю высоту карточки */
        }
        .card-body {
            padding: 5px;
        }
        .card-text {
            font-size: 0.4rem;
        }
        .card-title {
            font-size: 0.9rem;
        }
        .text-block {
            font-size: 0.5rem;
        }
        h4 {
            font-size: 0.8rem;
        }
        nav img {
            width: 50%;
        }
        .header-nav{
            display: flex;
            padding: 10px;
            justify-content: space-around;
        }
        .navbar-class {
            margin-left: 0;
        }
        .col-md-6 {
            width: 100%; /* Полная ширина для мобильных */
        }
    
        iframe {
            border-radius: 15px; /* Вы можете изменить радиус для мобильных */
        }
        
        .video-section {
                flex-wrap: wrap;
        }
    }


    