body {
    font-family: 'Calibri', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
}

.logo {
    color: #002aff;
    font-size: 24px;
    font-weight: bold;
    margin-right: 1rem;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

header nav ul.nav-left {
    flex-grow: 1;
    display: flex;
    gap: 15px;
}

header nav ul.nav-right {
    margin-left: auto;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
}



main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f8f8;
    padding: 20px;
    height: 30rem;
}

.main-content {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 40px 100px;
    border-radius: 20px; /* Обновлено: увеличен радиус закругления */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Обновлено: более выраженная тень */
    width: 80%;
    max-width: 800px;
    margin: 40px 0;
}

.ticket-section, .schedule-section {
    width: 100%;
}

.ticket-section h2, .schedule-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 150px;
}


.ticket-section input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.ticket-section button {
    width: 49%;
    padding: 10px;
    background-color: #002aff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.schedule-section .schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0; /* Уменьшен отступ */
}

.schedule-section .city, .schedule-section .time {
    flex-basis: 5%; /* Установлена фиксированная ширина */
}

.schedule-section .city {
    text-align: left;
    margin-left: 30%;
}

.schedule-section .time {
    text-align: right;
    margin-right: 30%;
}

footer {
    background-color: #f8f8f8;
    padding: 10px 20px;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 30px;
}

footer ul li a {
    text-decoration: none;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        width: 100%;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    header nav ul.nav-left, header nav ul.nav-right {
        width: 100%;
        margin: 0;
    }

    header nav ul.nav-right {
        display: flex;
        justify-content: flex-end;
    }

    header nav ul li {
        width: 100%;
        text-align: left;
    }

    main .main-content {
        flex-direction: column;
        align-items: center;
    }

    .ticket-section, .schedule-section {
        width: 100%;
        margin-bottom: 20px;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    footer ul {
        flex-direction: column;
        align-items: center;
    }

    .input-container {
        flex-direction: column;
        gap: 10px;
    }

    .ticket-section button {
        width: 100%;
    }
    .rounded-image {
        border-radius: 15px; /* Закругление краев */
        width: 100%; /* Ширина изображения */
        height: auto; /* Автоматическая высота для сохранения пропорций */
    }
    
}