:root {
    --color-green: #28a745;
    --color-orange: #fd9d5d;
    --color-gray: #6c757d;
}

h2 {
    margin-bottom: 20px;
}

.flight__board {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow-x: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 18px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

td {
    line-height: 25px;
    font-size: 18px;
}

th {
    /*background-color: var(--color-blue-1);*/
    color: var(--color-blue-1);
    font-size: 20px;
    font-weight: 700;
}

.td__day {
    font-size: 16px;
}

.status {
    display: inline-block;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    min-width: 90px;
    font-size: 16px;
}

.status-arrived {
    background-color: #e6f9ed;
    color: var(--color-green);
}

.status-departure {
    background-color: #e6f0ff;
    color: var(--color-blue-1);
}

.status-delayed {
    background-color: #fff4e6;
    color: var(--color-orange);
}

.date-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
    width: 50%;
}

.td__name {
    font-weight: 700;
    font-size: 18px;
}

small {
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

.flight__board-time {
    font-size: 18px;
    font-weight: 700;
}

@media(max-width: 1000px) {
    table {
        font-size: 16px;
    }

    .td__name {
        font-size: 18px;
    }

    small {
        font-size: 16px;
    }

    th, td {
        padding: 8px;
        border-bottom: 1px solid #ddd;
    }

    .flight__board-time {
        font-size: 18px;
    }
}


.flight__adaptive {
    display: none;
}

/*@media (max-width: 768px) {*/
/*    .flight__board {*/
/*        display: none;*/
/*    }*/

/*    .flight__adaptive {*/
/*        display: table;*/
/*        width: 100%;*/
/*        border-collapse: collapse;*/
/*        font-size: 14px;*/
/*    }*/

/*    .flight__adaptive thead {*/
/*        display: none;*/
/*    }*/

/*    .flight__adaptive tr {*/
/*        display: block;*/
/*        margin-bottom: 15px;*/
/*        !*border: 1px solid #ddd;*!*/
/*        border-radius: 6px;*/
/*        background-color: #fff;*/
/*        padding: 10px;*/
/*        box-shadow: 0 0 5px 0 #bababa;*/
/*    }*/

/*    .flight__adaptive td {*/
/*        display: flex;*/
/*        justify-content: space-between;*/
/*        padding: 6px 10px;*/
/*        border-bottom: 1px solid #eee;*/
/*        align-items: center;*/
/*    }*/

/*    .flight__adaptive td:last-child {*/
/*        border-bottom: none;*/
/*    }*/

/*    .flight__adaptive td::before {*/
/*        content: attr(data-label);*/
/*        font-weight: bold;*/
/*        color: #333;*/
/*        font-size: 14px;*/
/*    }*/

/*    .flight__number {*/
/*        font-weight: bold;*/
/*        font-size: 14px;*/
/*        color: #222;*/
/*    }*/

/*    .flight__route {*/
/*        display: flex;*/
/*        !*align-items: center;*!*/
/*        gap: 2px;*/
/*        flex-wrap: wrap;*/
/*        flex-direction: column;*/
/*        line-height: 20px;*/
/*        text-align: end;*/
/*    }*/

/*    .flight__route strong {*/
/*        font-weight: 600;*/
/*        font-size: 14px;*/
/*    }*/

/*    .flight__route small {*/
/*        color: #666;*/
/*        font-size: 12px;*/
/*    }*/

/*    .arrow {*/
/*        margin: 0 4px;*/
/*        font-size: 16px;*/
/*        color: #888;*/
/*    }*/

/*    .flight__time {*/
/*        display: flex;*/
/*        flex-direction: column;*/
/*        align-items: flex-end;*/
/*        line-height: 22px;*/
/*    }*/

/*    .flight__time .label {*/
/*        font-size: 12px;*/
/*        color: #666;*/
/*    }*/

/*    .flight__time .value {*/
/*        font-weight: bold;*/
/*        color: #333;*/
/*        font-size: 14px;*/
/*    }*/

/*    .status {*/
/*        padding: 2px 6px;*/
/*        !*border-radius: 4px;*!*/
/*        font-weight: bold;*/
/*        !*color: #fff;*!*/
/*        font-size: 14px;*/
/*        text-align: center;*/
/*    }*/
/*}*/

@media (max-width: 768px) {
    .flight__board {
        display: none;
    }

    .flight__adaptive {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .flight__card {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        border: 1px solid #eee;
        font-size: 13px;
    }

    .flight__top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    .flight__number {
        color: #0052cc;
        font-weight: 700;
    }

    .flight__route {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: #444;
    }

    .flight__route .city {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 2px;
        font-weight: 700;
        font-size: 13px;
    }

    .flight__route .city:nth-child(1) {
        align-items: start;
    }

    .flight__route small {
        font-size: 10px;
        color: #888;
    }

    .arrow {
        font-size: 16px;
        color: #aaa;
        margin: 0 6px;
    }

    .flight__time {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #666;
        font-weight: bold;
    }

    .status {
        padding: 2px 6px;
        font-size: 12px;
        min-width: auto;
    }
}
