/* Десктопная версия */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 97vh;
    background-color: #34A475;
}

/* Стили для header */
.header {
    display: flex;
    justify-content: center; /* Центрируем контент по горизонтали */
    align-items: center; /* Центрируем контент по вертикали */
    background-color: #34A475;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    width: 80%;
    max-width: 1200px;
}

.header img {
    width: 400px; /* Размер логотипа */
    height: auto;
    margin-right: 20px; /* Добавляем отступ между логотипом и текстом */
    flex-shrink: 0; /* Запрещаем уменьшение логотипа */
}

.working-hours {
    text-align: left; /* Текст выравнивается по левому краю */
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.4;
    white-space: normal; /* Запрещаем перенос строк */
}

.working-hours p {
    margin: 0;
    display: inline-block; /* Размещаем параграфы в одну строку */
    margin-right: 10px; /* Добавляем отступ между параграфами */
}

.working-hours strong {
    font-size: 1.5rem;
}


h1 {
    font-size: 4rem;
    color: #fff;
    margin: 10px 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 10px;
}

/* Слайдер */
.slider {
    width: 80%; /* Занимает 80% ширины родительского контейнера */
    max-width: 1100px; /* Максимальная ширина */
    min-width: 900px; /* Минимальная ширина для десктопной версии */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    aspect-ratio: 16 / 9; /* Сохраняем соотношение сторон */
    margin-left: auto; /* Центрирование */
    margin-right: auto; /* Центрирование */
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Индикаторы */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #000;
}

.dot.active {
    background-color: #fff;
    color: #34A475;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-blocks {
    padding-top: 20px;
    width: 50%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.footer-block {
    line-height: 1.3;
}

.footer-block.left {
    text-align: left;
}

.footer-block.center {
    text-align: center;
}

.footer-block.right {
    text-align: right;
}

.copyright {
    font-size: 0.8rem;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px 10px 0 0;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}

/* Стили для ссылок в футере */
.footer-block.right a,
.copyright a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-block.right a:hover,
.copyright a:hover {
    color: #fff;
}

/* Медиазапросы для мобильной версии */
@media (max-width: 768px) {
    .header img {
        width: 100%; /* Логотип занимает всю ширину на мобильных устройствах */
        max-width: 300px; /* Ограничение максимальной ширины */
    }

    h1 {
        font-size: 3rem; /* Уменьшаем заголовок */
    }

    .subtitle {
        font-size: 1.2rem; /* Уменьшаем подзаголовок */
    }

    .slider {
        width: 95%; /* Увеличиваем ширину слайдера */
        min-width: auto; /* Отключаем минимальную ширину */
        max-width: none; /* Отключаем максимальную ширину */
    }

    .dot {
        width: 25px; /* Уменьшаем размер индикаторов */
        height: 25px;
        font-size: 14px; /* Уменьшаем размер цифр */
    }

    .footer-blocks {
        width: 90%; /* Увеличиваем ширину футера */
        max-width: none; /* Снимаем ограничение по ширине */
        justify-content: center; /* Выравниваем блоки по центру */
    }

    .footer-block {
        text-align: left; /* Текст в блоках выравнивается по левому краю */
        flex-basis: 100%; /* Каждый блок занимает всю ширину */
    }

    .copyright {
        max-width: 90%; /* Увеличиваем ширину копирайта */
        font-size: 0.7rem; /* Уменьшаем текст в копирайте */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem; /* Ещё больше уменьшаем заголовок */
    }

    .subtitle {
        font-size: 1rem; /* Уменьшаем подзаголовок */
    }

    .dot {
        width: 20px; /* Ещё больше уменьшаем индикаторы */
        height: 20px;
        font-size: 12px; /* Уменьшаем цифры */
    }

    .footer-block {
        font-size: 0.8rem; /* Уменьшаем текст в футере */
    }

    .copyright {
        font-size: 0.6rem; /* Уменьшаем текст в копирайте */
    }
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Элементы располагаются вертикально */
        align-items: center; /* Выравнивание по центру */
        text-align: center;
    }

    .header img {
        width: 80%; /* Уменьшаем размер логотипа для мобильных устройств */
        max-width: 400px; /* Ограничение максимальной ширины */
        margin-right: 0; /* Убираем отступ справа */
        margin-bottom: 20px; /* Добавляем отступ снизу */
    }

    .working-hours {
        white-space: normal; /* Разрешаем перенос строк */
        font-size: 1rem; /* Уменьшаем размер текста */
        margin-top: 10px; /* Добавляем отступ сверху */
    }

    .working-hours p {
        display: block; /* Параграфы размещаются каждый на новой строке */
        margin-right: 0; /* Убираем отступ между параграфами */
    }
}