body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f8f8f8;
    background-image: url('letnijfon3.jpg'); /* Путь к изображению */
    background-size: cover; /* Растягиваем изображение, чтобы покрыть всю область */
    background-attachment: fixed;
    /*background-position: center; /* Позиционируем изображение по центру */
    /*background-repeat: no-repeat; /* Запрещаем повторение изображения */
}


#content-container {
    position: relative;
    z-index: 1;
    background-color: #f8f8f8;
    padding-top: 50px; /* Поднимаем контент, чтобы он не перекрывался видео */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #33333300; /* Цвет фона шапки */
    padding: 10px 20px; /* Внутренние отступы для лучшего визуального разделения элементов */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    height: 80px;
}

#logo {
    width: 200px; /* Размер логотипа */
    height: auto;
}

nav {
    flex: 1; /* Занимает доступное пространство, чтобы выровнять ссылки по центру */
    text-align: center; /* Центрирование текста внутри навигационной области */
    margin-left: 150px; /* Увеличение расстояния между иконками и навигацией */
}

nav a {
    margin: 1 18px; /* Отступ между ссылками */
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #9c6a27;
}


/* инста, фейсбук */

.social-links {
    margin-left: auto; /* Перемещение иконок вправо */
    margin-right: 28px; /* Увеличение расстояния между иконками и навигацией */
    display: flex;
    align-items: center;
}

.social-link {
    margin-right: 8px; /* Расстояние между иконками */
}

.social-icon {
    width: 25px; /* Ширина иконки */
    height: 25px; /* Высота иконки */
    border-radius: 30%; /* Делаем иконки круглыми */
    transition: transform 0.3s ease; /* Анимация при наведении */
}



/* flag */
.language-link {
    margin: 0 8px; /* Отступ флажков от ссылок */
    display: flex;
    
}



.flashing {
    animation: flashing 1s infinite alternate; /* Анимация для мигания */
}

@keyframes flashing {
    from {
        opacity: 1; /* Начальная прозрачность */
    }
    to {
        opacity: 0.5; /* Прозрачность при мигании */
    }
}

.flag-icon {
    width: 35px; /* Размер флага, можно настроить под ваши требования */
    height: auto;
}

#contact-button {
    margin-right: 25px; /* Отступ кнопки справа */
    padding: 10px 20px; /* Внутренние отступы кнопки */
    font-size: 16px;
    background-color: #9c6a27; /* Цвет фона кнопки */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

#contact-button:hover {
    background-color: #8B4513; /* Изменяем цвет при наведении */
}

nav a:not(:last-child) {
    margin-right: 35px;
}

body.scrolled header {
    background-color: #604335;
}
/*////\\\*/


/*1 variant*/
/* Добавьте эти стили в ваш уже существующий CSS или в тот файл, который подключен к вашей странице */
.services-container {
    margin: 50px;
    margin-top: 150px;
    text-align: center;
    border-radius: 10px;

}

.services-table {
    width: 50%;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 16px;
    border: 0px solid #ddd;
    text-align: center;
    
}

.services-table th, .services-table td {
     border: 1px solid #ddd; 
    padding: 25px;
    text-align: left;
    border-radius: 10px;
    text-align: center;
}

.services-table th {
    background-color: #38100475; 
    color: antiquewhite;
}

.services-table td {
    background-color: #38100473;
    color: antiquewhite;
}

/* .services-table tbody tr:hover { */
    /* background-color: #f5f5f5; */
/* } */

.services-table tbody tr {
    display: none;
}

#page1:checked ~ .services-table tbody tr:nth-child(n+1):nth-child(-n+7) {
    display: table-row;
}

#page2:checked ~ .services-table tbody tr:nth-child(n+8):nth-child(-n+21) {
    display: table-row;
}

#page3:checked ~ .services-table tbody tr:nth-child(n+22):nth-child(-n+28) {
    display: table-row;
}
#page4:checked ~ .services-table tbody tr:nth-child(n+29):nth-child(-n+40) {
    display: table-row;
}
#page5:checked ~ .services-table tbody tr:nth-child(n+41):nth-child(-n+55) {
    display: table-row;
}
#page6:checked ~ .services-table tbody tr:nth-child(n+56):nth-child(-n+64) {
    display: table-row;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-input {
    display: none;
}

.page-link {
    display: inline-block;
    padding: 8px;
    margin: 0 5px;
    background-color: #9c6a27;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border-radius: 10px;
}

.page-input:checked + .page-link {
    background-color: #604335;
}



/*////\\\*/
/* Ваш стиль для footer */
footer {
    background-color: #f8f8f800; /* Цвет фона футера */
    padding: 80px 100px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    max-width: 30vw;
}

.footer-data {
    text-align: right;
}

.footer-data p {
    margin: 0;
    font-size: 24px;
    color: #ffffff; /* Цвет текста футера */
}

.textavatud {
    font-size: 1.3vw;
    color:aliceblue;
}

footer p:last-child {
    margin-top: 20px; /* Добавляет отступ между блоками */
}

.text-center {
    text-align: center;
    margin-top: 20px; /* Если нужен отступ сверху */
    color:aliceblue;
}

/* tlf */
/* Медиа-запрос для мобильных устройств с максимальной шириной экрана 768px */
@media screen and (max-width: 1024px)  {
  header {
        padding: 8px; /* Уменьшим внутренние отступы шапки */
        height: 60px; /* Уменьшим высоту шапки */
    }

    #logo {
        width: 50px; /* Уменьшим размер логотипа */
    }

    nav {
        margin: 0;
        text-align: center;
    }

    nav a {
        margin: 0 -15px; /* Уменьшим отступы между ссылками */
        font-size: 10px; /* Уменьшим размер шрифта */
    }

    .social-links {
        margin: 0;
        justify-content: center;
    }

    .social-icon {
        width: 10px; /* Уменьшим размер иконок социальных сетей */
        height: 10px;
    }
    
    .flag-icon {
    width: 15px; /* Размер флага, можно настроить под ваши требования */
    height: auto;
}

    #contact-button {
        display: none; /* Скроем кнопку контактов на мобильных устройствах */
    }

    /* Стили для блока с услугами */
    .services-container {
        margin: 10px; /* Уменьшаем внешние отступы */
        margin-top: 100px; /* Увеличиваем отступ сверху */
        font-size: 8px;
        /*margin-left: 80px;*/
        
    }

    .pagination {
    font-size: 8px;
    }

    .services-table {
        width: 90%; /* Увеличиваем ширину таблицы */
        margin: 0 auto; /* Центрируем таблицу по горизонтали */
    }
    
     .services-table th,.services-table td {
        padding: 15px; /* Уменьшаем внутренние отступы ячеек */
        font-size: 16px;
    }

    /* Стили для пагинации */
    .pagination {
        margin-top: 20px; /* Увеличиваем отступ сверху */
    }

    .page-link {
        padding: 5px; /* Уменьшаем размер кнопок пагинации */
        margin: 0 3px; /* Уменьшаем отступ между кнопками */
    }

    /* Стили для футера */
    footer {
        padding: 10vw 4vw; /* Увеличиваем внутренние отступы */
    }

    .footer-logo img {
        
        display: none;
    }

    .textavatud {
    font-size: 3vw; /* Уменьшаем размер шрифта текста в футере */
    }

    .footer-data p {
        font-size: 3vw; /* Уменьшаем размер шрифта текста в футере */
    }
}
