.mobile-device {
    max-width: 100%;
}
.wrapper {
    background-image: url('../img/schedule/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(53, 55, 69, 0.75);
}
.btn-link {
    white-space: nowrap;
    height: 40px;
    font-size: 13px;
    margin: 0 30px;
    padding: 0 10px;
}
.btn-link::after, .btn-link::before {
    height: 40px;
    width: 33px;
    background-size: auto;
}
b {
    font-weight: bold;
}
/*
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
    box-sizing: border-box;
    accent-color: #72C166;
}
*/
input[type="checkbox"].addon-checkbox {
    appearance: none;
    box-shadow: 0px 0px 6px -1px rgba(67, 70, 83, .7);
    background-color: transparent;
    width: 13px;
    height: 13px;
    margin-bottom: -2px;
    border-radius: 2px;
    border: 0.7px solid #cbced7;
}

input[type="checkbox"].addon-checkbox:checked::after {
    content: '';
    width: 17px;
    height: 14px;
    display: inline-block;
    background: url(/img/icons/checkbox.svg) no-repeat center;
    background-size: contain;
    position: absolute;
}

.hide {
    display: none;
}

.icon-bus {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../img/bus.svg) no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    margin-bottom: 3px;
}

.color-secondary {
    color: #ACB0C5;
}
a.color-secondary:hover {
    color: #434653;
}
.fz-14 {
    font-size: 14px;
}
.fz-12 {
    font-size: 12px;
}

.schedule {
    position: relative;
    margin: 25px;
    color: #fff;
}
.schedule img {
    vertical-align: middle;
}
.schedule .hr {
    border: 0;
    border-top: 1px solid #C4C6D0;
}
.schedule-title {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 32px;
    margin: 20px 0;
    font-family: Roboto Condensed, sans-serif;
    display: flex;
    justify-content: space-between;
}
.schedule-title a {
    color: #fff;
}
.schedule-filters-toggle {
    display: none;
}
.schedule-filters-toggle.active {
    color: #FF7F39;
}
.schedule-date {
    padding-top: 10px;
    font-size: 32px;
    font-weight: 700;
    text-transform: capitalize;
}
.schedule-filters {
    display: flex;
    align-items: end;
}
.schedule-filters .field {
    margin-left: 20px;
}
.schedule-filters .label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
}
.schedule-filters select {
    padding-right: 50px;
}

.schedule-filters select, .select-date {
    padding: 8px 12px;
    border: 1px solid #D1D4E4;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: 14px Roboto Condensed, sans-serif;
}

.schedule-filters .filter-days {
    margin-bottom: 7px;
}

.schedule-filters-reset {
    margin-left: 20px;
    padding: 9px 16px;
    border: 1px solid;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: 14px Roboto Condensed, sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.schedule-filters-reset:hover {
    background: rgba(255, 127, 57, 0.1);
    box-shadow: 0 2px 8px rgba(255, 127, 57, 0.2);
}

.schedule-filters-reset:active {
    transform: scale(0.98);
}

.schedule-filters-reset--hidden {
    display: none;
}

.select-date {
    width: 200px;
    background: url(../img/calendar.svg) no-repeat 5px center;
    padding-left: 25px;
    position: relative;
}

.select-date-close {
    position: absolute;
    right: 10px;
    color: #fff;
    text-decoration: none;
    display: none;
    cursor: pointer;
}

#select-date-range {
    background: transparent;
    color: #fff;
    border: 0;
    font: 14px Roboto Condensed, sans-serif;
    width: 100%;
}

.class img {
    vertical-align: middle;
    margin-right: 6px;
}
.transport .fa {
    font-size: 24px;
    color: #01529B;
    margin: 0 6px;
}
.schedule-filters select option {
    color: #000;
}

.schedule-list-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity .2s ease;
}

.schedule-empty {
    margin: 20px 0;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 18px;
}

.schedule-noroom {
    border: 0;
    opacity: 0.6;
    font-size: 38px;
    line-height: 1.2;
}

.schedule-noroom h6 {
    font-weight: 500;
}

.schedule-noroom h5 {
    font-weight: 800;
}

.filter-type-switcher {
    display: flex;
    margin-left: 10px;
}

.filter-type-switcher a {
    background: none;
    color: #fff;
    border: 1px solid #D1D4E4;
    border-radius: 4px;
    line-height: 36px;
    margin-left: 10px;
    cursor: pointer;
    padding: 0 15px;
    font-size: 14px;
    text-decoration: none;
}

.filter-type-switcher a.active {
    border-color: #DE0333;
}

.card {
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: #1C1E26;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.2);
    font-family: 'Roboto', sans-serif;
}

.card-header {
    background: linear-gradient(90deg, #D52B43 0%, #F03C4A 100%);
    padding: 5px;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
}

.card-header b {
    flex: 1;
    text-align: center;
    padding-right: 10px;
    text-align: right;
}

.card-header.card-header-yellow {
    background: linear-gradient(90deg, #FFD700 0%, #FFC700 100%);
}

.card-header.card-header-orange {
    background: linear-gradient(90deg, #FF9500 0%, #FF7F39 100%);
}

.card-header.card-header-green {
    background: linear-gradient(90deg, #72C166 0%, #5AB347 100%);
}

.card-header.card-header-gold {
    background: #A88F63;
}

.card-header.card-header-silver {
    background: #75899E;
}

.card-header-dates {
    width: 220px;
    font-size: 16px;
    padding-left: 10px;
}

.card-body {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.card-column {
    padding: 20px 16px;
    border-right: 1px solid #E6E8F1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    justify-content: space-between;
    width: 25%;
}

.card-column-hotel {
    width: 30%;
}

.card-column:last-child {
    border-right: none;
}

.card-column-program {
    min-width: 195px;
    width: 15%;
    min-height: 165px;
}

.card-economy, .sdm-economy {
    background: radial-gradient(
        circle at 0% 0%,
        rgba(255, 227, 114, 1),
        rgba(255, 255, 255, 1) 60%
    );
    background-size: 200px 200px;
    background-position: top left;
    background-repeat: no-repeat;
}
.card-standard, .sdm-standard {
    background: radial-gradient(
        circle at 0% 0%,
        rgba(114, 193, 102, 1),
        rgba(255, 255, 255, 1) 60%
    );
    background-size: 200px 200px;
    background-position: top left;
    background-repeat: no-repeat;
}

.card-premium, .sdm-premium {
    background: radial-gradient(
        circle at 0% 0%,
        rgba(255, 224, 180, 1),
        rgba(255, 255, 255, 1) 60%
    );
    background-size: 200px 200px;
    background-position: top left;
    background-repeat: no-repeat;
}

.card-column-hotel {
    min-width: 280px;
}

.card-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #7B7F8E;
    letter-spacing: 0.08em;
}

.card-value {
    font-size: 16px;
    font-weight: 600;
    color: #2B2E3A;
}

.card-value-accent {
    font-size: 21px;
    margin-top: 5px;
}

.card-dates {
    display: flex;
    align-items: end;
    gap: 5px;
}

.card-nights {
    margin-top: auto;
    font-size: 14px;
    color: #2B2E3A;
    margin-top: 10px;
}

.card-caption {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-hotel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #2B2E3A;
}

.card-hotel-name {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-hotel-name .fa-star {
    color: #FF7F39;
    font-size: 21px;
}

.card-hotel-star-icon {
    position: relative;
}

.card-hotel-star {
    color: #fff;
    font: 12px Roboto Condensed, sans-serif;
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 21px;
}

.card-hotel-distance {
    font-size: 14px;
    color: #4C5162;
    padding-top: 5px;
}

.card-column-leaders {
    min-width: 140px;
    justify-content: flex-start;
}

.card-addons div {
    margin-top: 5px;
    font-size: 14px;
}

.card-leaders {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
}

.card-column-header {
    display: flex;
    justify-content: space-between;
}

.card-column-price {
    justify-content: space-between;
    gap: 12px;
    min-width: 320px;
}

.card-column-price:hover {
    background: linear-gradient(to top, #f2f3f7 0%, #f2f3f7 1%, #d9dce3 100%);
}

.card-deadline {
    font-size: 12px;
    text-transform: uppercase;
    color: #7B7F8E;
}

.card-price-block {
    display: flex;
    gap: 13px;
    align-items: baseline;
    margin-bottom: 5px;
}

.card-price {
    font-size: 32px;
    font-weight: 700;
    color: #434653;
}

.card-price-rub {
    font-size: 14px;
    color: #434653;
}
.price-add {
    color: #434653;
}

.card-cta-block {
    display: flex;
    align-items: center;
    min-width: 80%;
    gap: 5px;
}

.card-cta {
    padding: 14px 20px;
    border: none;
    border-radius: 0;
    background: linear-gradient(90deg, #D52B43 0%, #F03C4A 100%);
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 15px;
    margin-right: 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(213, 43, 67, 0.35);
}

.card-cta::before,
.card-cta::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    z-index: 1;
}

.card-cta::before {
    left: -16px;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-right: 16px solid #D52B43;
}

.card-cta::after {
    right: -16px;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 16px solid #F03C4A;
}

.card-cta.card-cta-orange {
    background: #FF7F39;
}

.card-cta.card-cta-orange::before {
    border-right-color: #FF7F39;
}

.card-cta.card-cta-orange::after {
    border-left-color: #FF7F39;
}

@media (max-width: 1270px) {
    .card-column-leaders {
        display: none;
    }
}

@media (max-width: 1200px) {
    .card-body {
        flex-wrap: wrap;
    }

    .card-column {
        width: 50%;
        border-right: none;
        border-bottom: 1px solid #E6E8F1;
    }

    .card-column-program {
        max-width: none;
    }

    .card-column-hotel {
        order: 1;
    }

    .card-column-price {
        align-items: flex-start;
        text-align: left;
    }
}

/* Schedule details modal styles */
#schedule-details-modal,
.schedule-details-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    font-size: 16px;
    font-family: Roboto Condensed, sans-serif;
    /* font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; */
}
.sdm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 21, 34, 0.65);
}
.sdm-content {
    position: relative;
    max-width: 640px;
    margin: 25px auto;
    max-height: calc(100vh - 40px);
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 28, 45, 0.25);
    color: #1f2235;
    overflow: auto;
    display: flex;
    flex-direction: column;
}
.sdm-close {
    position: absolute;
    right: 18px;
    top: 18px;
    border: none;
    background: rgba(31, 34, 53, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #1f2235;
}
.sdm-card {
    padding: 32px 36px 0 36px;
    flex: 1 1 auto;
    overflow-y: auto;
}
.sdm-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    margin-bottom: 28px;
}
.sdm-dates {
    gap: 12px;
}
.sdm-plan-label {
    color: #7c819e;
}
.sdm-plan-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #202339;
}
.sdm-flight-panel {
    background: #f4f6ff;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 28px;
    display: none;
}
.sdm-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.sdm-flight-carrier {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 600;
}
.sdm-flight-logo {
    width: 46px;
    height: 46px;
    background: #3d4ec6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}
.sdm-flight-tag {
    padding: 8px 16px;
    background: #D84F4F;
    color: #fff;
    font-size: 14px;
}
.sdm-flight-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.sdm-flight-label {
    color: #7e8199;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.sdm-flight-code {
    font-size: 30px;
    font-weight: 700;
    color: #1f2235;
}
.sdm-flight-time {
    font-size: 18px;
    font-weight: 600;
    color: #1f2235;
}
.sdm-flight-segments-wrapper {
    border-top: 1px solid #dfe4ff;
    margin-top: 16px;
}
.sdm-flight-segments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sdm-flight-segments li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 16px;
    color: #49506a;
    position: relative;
    margin: 0;
}
.sdm-flight-segments li:last-child {
    border-bottom: none;
}
.sdm-segment-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sdm-flight-segments li:not(:last-child) .sdm-segment-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 18px;
    border-left: 2px dotted #FF7F39;
}
.sdm-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}
.sdm-meta-label {
    color: #7e8199;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.sdm-meta-value {
    font-size: 16px;
    color: #1f2235;
    line-height: 1.6;
}
.sdm-form {
    display: none;
    padding-bottom: 32px;
}
.sdm-form hr {
    margin: 0;
    border: 0;
    border-top: 1px solid #EBEBEB;
}
.sdm-form h6 {
    font-size: 14px;
    color: #B5B5B5;
    margin: 25px 0;
}
.sdm-field {
    margin-top: 8px;
    display: block;
}
.sdm-input {
    border: 1px solid #F4F5FA;
    background: #F4F5FA;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
}
.sdm-input:focus {
    outline: none;
    border-color: #FF7F39;
    box-shadow: 0 0 0 3px rgba(255, 127, 57, 0.15);
}
.sdm-addons-panel {
    border-top: 1px solid #eceff8;
    padding: 24px 0 32px 0;
}
.sdm-addons-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2235;
}
.sdm-addons {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sdm-addon-section {
    padding: 16px 0;
    border-bottom: 1px solid #f2f4fb;
}
.sdm-addon-section:last-child {
    border-bottom: none;
}
.sdm-addon-section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7c819e;
}
.sdm-addon-section-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.sdm-addon-section-list .sdm-addon-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e3e6f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sdm-addon-section-list .sdm-addon-item:last-child {
    border-bottom: none;
}
.sdm-addon-static {
    font-weight: 500;
}
.sdm-addon-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}
.sdm-addon-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4d4f65;
}
.sdm-addon-left span {
    color: #6a6e86;
}
.sdm-addon-left span.sdm-selected {
    color: #1f2235;
    font-weight: 600;
}
.sdm-submit {
    padding: 14px 28px;
}
.sdm-total {
    font-weight: 700;
    font-size: 32px;
}
.sdm-footer {
    padding: 26px 36px;
    color: #fff;
    background-color: #3a3c4c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}
.sdm-footer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}
.sdm-content .sdm-submit.card-cta {
    margin-right: 0;
    background: #FF7F39;
}
.card-dates-nights {
    display: none;
}

@media (max-width: 760px) {
    .sdm-content {
        margin: 20px 12px;
        width: auto;
        max-height: calc(100vh - 24px);
    }
    .sdm-card {
        padding: 24px 20px 0 20px;
    }
    .sdm-flight-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .sdm-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-column {
        border-bottom: 0;
    }
    .card-column-hotel, .card-column-leaders, .card-header {
        display: none;
    }
    .card-column-program, .card-column-price {
        width: 100%;
    }
    .card-dates-nights{
        display: block;
        position: absolute;
        right: 16px;
        top: 16px;
    }
    .card-dates {
        gap: 25px;
    }
    .card-body {
        position: relative;
        flex-direction: column;
    }
    .schedule-header {
        flex-direction: column;
    }
    .schedule-filters {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .schedule-filters .field {
        margin-left: 0;
    }
    .schedule-filters .filter-days {
        margin-bottom: 0;
    }
    .schedule-filters-toggle {
        display: block;
    }
    .sdm-route-segments {
        margin-top: 20px;
    }
}
@media (max-width: 450px) {
    .card-dates {
        gap: 5px;
    }
    .card-dates .card-value {
        font-size: 14px;
        font-weight: 500;
    }
    .card-price {
        font-size: 42px;
    }
    .card-price-rub {
        font-size: 18px;
    }
    .btn-link {
        padding: 0 20px;
    }
}

.sdm-content.sdm-mode-apply .sdm-flight-segments-wrapper {
    display: none;
}
.sdm-content.sdm-mode-apply .sdm-form {
    display: block;
}
.sdm-content.sdm-mode-apply .sdm-addons-panel {
    opacity: 0.6;
    pointer-events: none;
}
.sdm-success-overlay {
    position: fixed;
    inset: 0;
    background: url(../img/modal-success.png) rgba(58, 60, 76, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.sdm-success-overlay.sdm-success-visible {
    opacity: 1;
    pointer-events: auto;
}
.sdm-success-content {
    background: #3a3c4c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px 40px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.sdm-success-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}
.sdm-success-content .card-cta {
    margin: 0;
}
.sdm-card-hotel {
    padding: 10px 12px;
    background: #F7F7FB;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}
.sdm-btn-show-details {
    margin-top: 12px;
    background: #EEEFF6;
    color: #92949F;
    border: 0;
    display: block;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
}
.sdm-leaders {
    border-top: 1px solid #EEEFF6;
    border-bottom: 1px solid #EEEFF6;
    padding: 12px 8px;
}
.sdm-leaders h3 {
    color: #434552;
    font: 18px Roboto Condensed, sans-serif;
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.sdm-leaders h3 a {
    cursor: pointer;
    text-decoration: none;
}

.sdm-leaders ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ACB0C5;
}

.sdm-leaders ul b {
    display: block;
    color: #434552;
    margin-bottom: 2px;
}
.sdm-route-segment {
    margin: 7px 0;
}
.route-icon {
    margin: 5px;
    color: #ACB0C5;
}

.card-privacy-notice {
    max-width: 300px;
    color: #ACB0C5;
    font-size: 12px;
    margin-top: 8px;
}

.wrapper:after {
    display: none;
}