:root {
    --primary-color: #1c6ae4;
    --bg-light-blue: #eef7ff;
    --primary-pink-color: #e81932;
}

/* Large screens */
.container {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 1180px) {
    .container {
        max-width: 797px;
    }

    .header {
        top: 30px;
    }
    .logo h1 {
        font-size: 28px;
    }
    .nav-toggle {
        display: block;
    }
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        padding: 40px 20px;
        background-color: rgba(217, 182, 182, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 0;
        transition: right 0.3s ease;
    }
    .nav.show-menu {
        right: 0;
    }
    .nav__close {
        display: block;
        margin-top: 30px;
    }
    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-top: 80px;
    }
    .menu-item a {
        font-size: 18px;
    }
    .menu-item::after {
        display: none;
    }

    .container-hero__data {
        background-color: #fff;
        position: absolute;
        bottom: -340px;
        padding: 20px 30px;
        border-radius: 10px;
        display: flex;
        justify-content: space-between;
        gap: 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .section-title {
        font-size: 38px;
        font-weight: 700;
        letter-spacing: 0%;
        position: relative;
    }

    .section-info {
        margin-top: 120px;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .container-info__data {
        margin-top: 50px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .section-history {
        margin: 80px 0 80px 0;
        padding-bottom: 40px;
    }

    .history__content {
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .history__text {
        max-width: 532px;
        font-size: 18px;
        color: #555555;
        font-weight: 400;
        order: 1;
    }

    .section-fleet {
        margin-top: 40px;
        padding-bottom: 40px;
    }

    .fleet__content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-top: 20px;
    }

    .section-directions {
        padding: 40px 0 40px 0;
    }

    .directions__content {
        margin-top: 20px;
        display: flex;
        justify-content: space-between;
        gap: 60px;
    }
    .directions__content {
        flex-direction: column;
    }
    .directions__img img {
        max-width: 100%;
    }
    .info__section-text {
        font-size: 18px;
        line-height: 22px;
        color: #555555;
        font-weight: 400;
        margin-top: 40px;
    }

    .section-services {
        padding: 40px 0 40px 0;
    }

    .section-luggage {
        padding: 40px 0 40px 0;
    }

    .luggage__content-data {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }
    .luggage__content {
        flex-direction: column;
    }
    .luggage__image img {
        max-width: 100%;
    }
    .luggage__image {
        width: 100%;
        max-width: 100%;
    }

    .section-registration {
        padding: 40px 0 40px 0;
        margin-top: 20px;
    }

    .registration__content {
        flex-direction: column;
    }
    .info__section-text {
margin-right: 0;
    }

    .registration__img img {
        max-width: 100%;
    }

    .registration__link {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .footer__content h1 {
        color: #373737;
        font-size: 38px;
        font-weight: 700;
        margin-bottom: 35px;
    }

    .footer__social-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 606px;
    }

    .hero-vidget {
        width: 100%;
        background-color: #fff;
        border-radius: 10px;
        margin: 0 auto 0 auto;
    }

    .container-hero__data {
        background-color: #fff;
        position: absolute;
        bottom: -400px;
        padding: 40px 50px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .red-line {
        height: 2px;
        width: 98px;
        background-color: var(--primary-color);
    }

    .section-info {
        margin-top: 60px !important;
        padding-top: 40px !important;
        padding-bottom: 40px;
    }

    .section-history {
        margin: 40px 0 40px 0;
        padding-bottom: 20px;
    }

    .fleet__content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
    }

    .container__fleet-table {
        display: block;
        border: 0;
    }

    .container__fleet-table thead,
    .container__fleet-table tbody,
    .container__fleet-table tr,
    .container__fleet-table th,
    .container__fleet-table td {
        display: block;
        width: 100%;
    }

    .container__fleet-table td:nth-of-type(1) {
        font-weight: bold;
        text-align: center;
        grid-column: 1 / -1;
        border-bottom: 1px solid #ddd;
        padding-top: 15px;
        background-color: #f9f9f9;
    }

    .container__fleet-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .container__fleet-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .container__fleet-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        gap: 10px;
        font-size: 14px;
    }

    .container__fleet-table td:last-child {
        border-bottom: 0;
    }

    .container__fleet-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
    }

    /* Добавляем метки для каждой ячейки */
    .container__fleet-table td:nth-of-type(1):before {
        content: "Название";
    }
    .container__fleet-table td:nth-of-type(2):before {
        content: "Тип";
    }
    .container__fleet-table td:nth-of-type(3):before {
        content: "Вместимость";
    }
    .container__fleet-table td:nth-of-type(4):before {
        content: "Наличие бизнес-класса";
    }

    .tariff-table.table-adaptive {
        display: block;
        border: 0;
    }

    .tariff-table.table-adaptive thead,
    .tariff-table.table-adaptive tbody,
    .tariff-table.table-adaptive tr,
    .tariff-table.table-adaptive th,
    .tariff-table.table-adaptive td {
        display: block;
        width: 100%;
    }

    /* Первая ячейка - заголовок строки */
    .tariff-table.table-adaptive td:nth-of-type(1) {
        font-weight: bold;
        text-align: center;
        grid-column: 1 / -1;
        border-bottom: 1px solid #ddd;
        padding: 15px 10px;
        background-color: #f9f9f9;
    }

    .tariff-table.table-adaptive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .tariff-table.table-adaptive tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .tariff-table.table-adaptive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }

    .tariff-table.table-adaptive td:last-child {
        border-bottom: 0;
    }

    .tariff-table.table-adaptive td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 16px;
        position: absolute;
        left: 10px;
        width: 45%;
        text-align: left;
    }

    .tariff-table.table-adaptive td:nth-of-type(1)::before {
        content: none;
    }

    .tariff-table.table-adaptive td:nth-of-type(2):before {
        content: attr(data-before);
    }
    .tariff-table.table-adaptive td:nth-of-type(3):before {
        content: attr(data-before);
    }
    .tariff-table.table-adaptive td:nth-of-type(4):before {
        content: attr(data-before);
    }

    .luggage__content {
        margin-top: 0;
        display: flex;
        justify-content: space-between;
    }

    .warning-1 {
        display: flex;

        gap: 30px;
        background: #fff6fa;
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }

    .header {
        width: 100%;
        height: min-content;
        position: fixed;
        top: 10px;
        z-index: 10;
    }

    .section-title {
        font-size: 28px;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-top: 20px;
    }

    .info__section-text {
        font-size: 16px;
        line-height: 22px;
        color: #555555;
        font-weight: 400;
        margin-top: 30px;
    }

    .info-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .info-link {
        color: #222222;
        font-size: 18px;
        position: relative;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .section-info {
        margin-top: 50px !important;
        padding-top: 40px !important;
        padding-bottom: 40px;
    }

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 32px;
        height: 3px;
        background-color: var(--primary-color);
    }

    .history__text {
        font-size: 16px;
    }

    .content__data__block div {
        margin-top: 15px;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .tariff-table.table-adaptive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }

    .directions-icon {
        width: 48px;
        height: 48px;
    }

    .luggage-warning-img {
        width: 48px !important;
        height: 48px !important;
    }

    .warning_icons {
        max-height: 48px;
    }

    .warning_icons img {
        width: 48px;
        height: 48px;
    }

    .section-registration {
        padding: 20px 0 40px 0;
        margin-top: 10px;
    }

    .registration__content {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }

    .footer__content h1 {
        color: #373737;
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 35px;
    }

    .footer-p {
        color: #373737;
        font-size: 14px;
    }
}
