/* =========================================================================
   Sochi Lastochki Trains Styles (mos77.ru)
   ========================================================================= */

.sochi-lastochki-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 60px !important;
    box-sizing: border-box !important;
}

.sl-hero {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.25);
    position: relative;
    overflow: hidden;
}

.sl-hero::after {
    content: "🚆";
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 110px;
    opacity: 0.14;
    pointer-events: none;
}

.sl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.sl-badge-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.4);
    animation: slPulse 1.8s infinite;
}

@keyframes slPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.sl-hero__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sl-hero__ico {
    font-size: 28px;
}

.sl-hero__desc {
    font-size: 15px;
    line-height: 1.55;
    color: #e0f2fe;
    margin: 0;
    max-width: none !important;
}

/* Toolbar Selectors */
.sl-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sl-selector-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sl-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sl-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 0;
    transition: all 0.2s;
}

.sl-select-wrap:focus-within {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.sl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sl-dot--from { background: #10b981; }
.sl-dot--to { background: #0284c7; }

.sl-select {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    text-overflow: ellipsis;
}

.sl-swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sl-swap-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: rotate(180deg);
}

/* Live Nearest Train Banner */
.sl-live-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1.5px solid #86efac;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1);
}

.sl-live-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sl-live-badge {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.sl-live-timer {
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
}

.sl-live-time-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.sl-live-dep,
.sl-live-arr {
    font-size: 34px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sl-live-arrow {
    color: #0284c7;
    font-size: 20px;
    font-weight: 900;
}

.sl-live-meta {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-tag-fast {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* Quick Route Buttons */
.sl-quick-routes {
    margin-bottom: 24px;
}

.sl-qr-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.sl-qr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sl-qr-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.sl-qr-pill:hover,
.sl-qr-pill.is-active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Timetable List */
.sl-timetable-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sl-tt-head {
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.sl-tt-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.sl-tt-subtitle {
    font-size: 13px;
    color: #64748b;
}

.sl-trains-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sl-train-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.15s ease;
    gap: 12px;
}

.sl-train-row:hover {
    background: #f0f7ff;
    border-color: #bae6fd;
}

.sl-train-row.is-nearest {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.sl-tr-time-col {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 140px;
}

.sl-tr-dep {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.sl-tr-arr {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.sl-tr-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sl-tr-num {
    font-size: 13px;
    font-weight: 700;
    color: #0284c7;
}

.sl-tr-dur {
    font-size: 12px;
    color: #64748b;
}

.sl-tr-price-col {
    text-align: right;
}

.sl-tr-price {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.sl-tr-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.sl-tr-status--soon {
    background: #dcfce7;
    color: #15803d;
}

.sl-tr-status--regular {
    background: #f1f5f9;
    color: #64748b;
}

/* Map Scheme */
.sl-map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.sl-map-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}

.sl-branch-scheme {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sl-branch {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
}

.sl-branch__title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.sl-branch__stations {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 700;
}

.sl-st-node {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 12px;
    color: #0f172a;
}

.sl-st-node--hub {
    border-color: #0284c7;
    background: #eff6ff;
    color: #0284c7;
}

.sl-st-node--term {
    border-color: #10b981;
    background: #f0fdf4;
    color: #16a34a;
}

.sl-st-line {
    color: #94a3b8;
}

/* Tips Grid */
.sl-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sl-tip-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
}

.sl-tip-ico {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.sl-tip-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.sl-tip-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.sl-faq-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
}

.sl-faq-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}

.sl-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.sl-faq-item:last-child {
    border-bottom: none;
}

.sl-faq-item summary {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    outline: none;
}

.sl-faq-item summary:hover {
    color: #0284c7;
}

.sl-faq-item p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 8px 0 0;
}

/* Quick Answer / Featured Snippet Box */
.sl-quick-answer {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.08);
}
.sl-qa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #15803d;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.sl-qa-lead {
    font-size: 15.5px;
    font-weight: 500;
    color: #14532d;
    line-height: 1.6;
    margin: 0 0 16px;
}
.sl-qa-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 18px;
}
.sl-qa-fact-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sl-qa-fact-label {
    font-size: 11.5px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.sl-qa-fact-val {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}

/* Route Grid */
.sl-route-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .sl-route-grid {
        grid-template-columns: 1fr;
    }
}
.sl-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.sl-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.sl-card-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px;
}
.sl-single-trains-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sl-st-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr 80px;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
}
.sl-st-row--head {
    background: #f1f5f9;
    font-weight: 800;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}
.sl-st-num {
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px;
}
.sl-st-time {
    color: #0284c7;
    font-size: 15px;
    font-weight: 800;
}
.sl-st-time--arr {
    color: #0f172a;
}
.sl-st-dur {
    color: #64748b;
    font-size: 12.5px;
}
.sl-st-price {
    font-weight: 800;
    color: #16a34a;
    text-align: right;
}

/* Stops Timeline */
.sl-stops-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}
.sl-stops-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #cbd5e1;
}
.sl-stl-node {
    position: relative;
    padding-bottom: 16px;
}
.sl-stl-node:last-child {
    padding-bottom: 0;
}
.sl-stl-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0284c7;
}
.sl-stl-dot--dest {
    border-color: #16a34a;
    background: #16a34a;
}
.sl-stl-content strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
}
.sl-stl-content small {
    font-size: 12px;
    color: #64748b;
}

/* Reverse Button */
.sl-reverse-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
.sl-rb-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.sl-rb-btn {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.sl-rb-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Related Routes */
.sl-related-routes {
    margin-top: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
}
.sl-related-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
}
.sl-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sl-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 7px 12px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    transition: all 0.2s;
}
.sl-related-chip:hover {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
}
.sl-rc-price {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.sl-related-chip:hover .sl-rc-price {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.sl-qr-pill-link {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s;
}
.sl-qr-pill-link:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}

/* Mobile */
@media (max-width: 650px) {
    .sl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .sl-swap-btn {
        align-self: center;
        transform: rotate(90deg);
    }
    .sl-swap-btn:hover {
        transform: rotate(270deg);
    }
    .sl-tips-grid {
        grid-template-columns: 1fr;
    }
    .sl-live-dep,
    .sl-live-arr {
        font-size: 26px;
    }
    .sl-st-row {
        grid-template-columns: 35px 1fr 1fr 1fr;
    }
    .sl-st-row .sl-st-dur {
        display: none;
    }
}
