* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a:-webkit-any-link {
    text-decoration: none; /* Убираем подчеркивание для мобильных устройств */
    outline: none;    
}
@font-face {
    font-family: 'MyFont'; /* Название шрифта */
    src: url('../fonts/rawline-400.ttf') format('truetype'); /* Путь к вашему файлу .ttf */
    font-weight: normal;
    font-style: normal;
}
body {
    padding-top: 50px;
    font-family: 'MyFont', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 15px 20px;
    z-index: 1000;
}

.fixed-header nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.fixed-header nav a:hover {
    text-decoration: underline;
}

.section {
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.section.light {
    background: #fffbfa;
    color: #333;
}

.section.dark {
    background: #a5977dea;
    color: #fff;
}

.content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.content .text, .content .image {
    flex: 1;
    padding: 20px;
}

.content .text h2 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: #333;
}

.content .text p {
    font-size: 1.3rem;
}
.content .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.centered {
    text-align: center;
}

form input, form textarea, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

form button:hover {
    background: #555;
}
html {
    scroll-behavior: smooth;
}
/* Стили для заголовка */
#work h2 {
    margin-bottom: 150px;
    font-size: 3rem;
}
#pricing h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}
/* Контейнер для подблоков */
.subblocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Центрирование блока */
}

/* Каждый подблок */
.subblock {
    display: flex;
    align-items: center;
    width: calc(50% - 20px); /* Ширина подблоков: 50% от родителя минус отступ */
    max-width: 650px; /* Ограничение ширины для больших экранов */
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Картинка слева */
.subblock-image img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
}

/* Текст подблоков */
.subblock-text h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #fff;
}

.subblock-text p {
    font-size: 1rem;
    color: #333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    
    .subblock {
        width: 100%; /* Полная ширина на маленьких экранах */
    }
}
table {
    
    width: 100%;
    border-collapse: collapse; /* Для удаления промежутков между ячейками */
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для таблицы */
}

th, td {
    padding: 12px 15px; /* Отступы внутри ячеек */
    text-align: left; /* Выравнивание текста по левому краю */
    border: 1px solid #ddd; /* Границы ячеек */
}

th {
    background-color: #f4f4f4; /* Цвет фона для шапки */
    font-weight: bold; /* Жирный шрифт для шапки */
}

td {
    background-color: #fafafa; /* Цвет фона для ячеек */
}

tr:nth-child(even) td {
    background-color: #f1f1f1; /* Чередование фона строк */
}

tr:hover {
    background-color: #e0e0e0; /* Подсветка строки при наведении */
}
/* Примечание под звездочкой */
.content .text .note {    
    color: #333; /* Цвет текста примечания */
    margin-top: 10px;
    font-size: 1rem;
}

/* Условия */
.terms {
    margin-top: 30px;
}

.terms h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.terms ul {
    list-style-type: disc; /* Диск, или можете изменить на другие типы (circle, square) */
    margin-left: 20px; /* Отступ для списка */
}

.terms li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}
.btn {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 150px;
    background-color: #a5977dea; /* Цвет кнопки */
    color: white;
    text-align: center;
    text-decoration: none; /* Убирает подчеркивание */
    border-radius: 5px; /* Скругленные углы */
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7e725cea; /* Темнее при наведении */
}

.btn-primary {
    background-color: #a5977dea; /* Основной цвет */
}

.btn-primary:hover {
    background-color: #7e725cea; /* Тот же цвет, но темнее при наведении */
}
.education-list {
    list-style-type: none; /* Убирает стандартные маркеры */
    padding-left: 0; /* Убирает отступы слева */
}
#education h2 {
    color: #fff;
    margin-bottom: 120px;
    font-size: 3rem;
}
#education li {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.education-list li strong {
    font-weight: bold;
}

/* Стили для карусели */
/* Контейнер карусели */
.carousel-container {
    margin-top: 30px;
    width: 100%; /* Ширина контейнера */
    max-width: 100%; /* Максимальная ширина 100% */
    overflow: hidden; /* Обрезаем изображения, выходящие за пределы */
    position: relative;
}

/* Стили для карусели (горизонтальный скролл) */
.carousel {
    display: flex;
    overflow-x: auto; /* Разрешаем горизонтальную прокрутку */
    gap: 10px; /* Расстояние между элементами */
    scroll-snap-type: x mandatory; /* Обеспечиваем "прилипание" элементов при прокрутке */
    scroll-behavior: smooth; /* Плавная прокрутка */
    scroll-padding: 10px; /* Отступы при прокрутке */
    width: 100%; /* Карусель будет занимать всю ширину */
}

/* Стили для каждого элемента карусели */
.carousel-item {
    flex: 0 0 auto; /* Элементы не сжимаются и не растягиваются */
    width: 25%; /* Четыре изображения на экране - каждое будет занимать 25% */
    height: 250px; /* Фиксированная высота для элементов */
    object-fit: cover; /* Изображения не искажаются */
    scroll-snap-align: start; /* Элементы прилипают к началу контейнера */
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
}

/* Стили для изображений внутри элементов */
.carousel-item img {
    width: 100%; /* Изображение заполняет весь элемент */
    height: 100%; /* Изображение не выходит за пределы */
    border-radius: 8px; /* Скругление углов изображения */
}

/* Увеличение изображения при наведении */
.carousel:hover .carousel-item {
    transform: scale(1.05); /* Увеличение изображения */
}
/* Стили для модального окна */
.modal {
    display: none; /* Изначально скрыто */
    position: fixed;
    z-index: 1; /* Модальное окно сверху */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.caption {
    margin: 10px 0;
    color: #fff;
    text-align: center;
}
/* Чтобы на экранах маленькой ширины отображать 2 или 1 изображение */
@media (max-width: 1024px) {
    .carousel-item {
        width: 50%; /* На экранах до 1024px будут видны 2 изображения */
    }
}

@media (max-width: 768px) {
    a {
        text-decoration: none; /* Убираем подчеркивание */
    }

    a:active,
    a:focus {
        outline: none; /* Убираем обводку */
        text-decoration: none; /* Убираем подчеркивание при нажатии */
    }
    /* Общие стили для секций */
    .section {
        padding: 20px;
    }

    /* Контейнер контента */
    .content {
        margin-top: 42px;
        flex-direction: column; /* Вертикальная компоновка */
        align-items: center;
        text-align: center; /* Центрирование текста */
    }

    /* Текстовый блок */
    .content .image {
        order: -1; /* Помещает изображение выше текста */
        margin-bottom: 20px; /* Добавляем отступ после изображения */
    }

    .content .image img {
        max-width: 100%; /* Ограничение ширины изображения */
        height: auto; /* Сохранение пропорций */
        border-radius: 10px; /* Скругленные углы */
    }

    .content .text {
        width: 100%; /* Текст на всю ширину */
        text-align: left;
    }
    #work h2 {
         /* Текст на всю ширину */
        text-align: left;
    }
    /* Заголовки */
    h1, h2, h3 {
        font-size: 1.5rem; /* Уменьшаем размер текста */
    }

    /* Таблицы */
    table {
        width: 100%; /* На всю ширину экрана */
        border-collapse: collapse;
    }

    table th, table td {
        padding: 10px;
        font-size: 0.9rem; /* Уменьшаем текст */
    }

    /* Кнопки */
    .button {
        width: 100%; /* Растянуть кнопку */
        padding: 15px 0;
        font-size: 1rem;
    }

    /* Карусель */
    .carousel-container {
        width: 100%; /* На всю ширину */
    }

    .carousel-item {
        width: 90%; /* Уменьшаем ширину карусельных элементов */
        height: auto; /* Автоматическая высота */
    }

    /* Меню навигации */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #333;
        z-index: 999;
    }

    .navbar ul {
        display: flex;
        flex-direction: column; /* Вертикальное меню */
        align-items: center;
        padding: 10px 0;
    }

    .navbar li {
        margin: 5px 0;
    }

    .navbar a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}
.social-links {
    display: flex;
    gap: 10px; /* Расстояние между значками */
    
}
.social-links svg {
    width: 40px; /* Ширина иконки */
    height: 40px; /* Высота иконки */
    fill: currentColor; /* Для изменения цвета с помощью текста */
    transition: transform 0.3s ease; /* Анимация */
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

.social-links .icon {
    margin-top: 15px;
    width: 40px; /* Ширина иконки */
    height: 40px;
    display: block;
}






