/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    min-height: 100vh;
    background: #0b1a2f;
    color: #e0e8f0;
    overflow-x: hidden;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 26, 47, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #7abfff;
    text-decoration: none;
    background: linear-gradient(135deg, #6a9acf, #b4a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu li a {
    color: rgba(160, 190, 220, 0.7);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-menu li a.active {
    color: #fff;
    background: rgba(100, 180, 255, 0.15);
    box-shadow: 0 0 20px rgba(100, 180, 255, 0.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #7abfff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== СТРАНИЦЫ (общий контейнер) ===== */
.page-section {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(170deg, #0a1e33 0%, #0f2a44 40%, #1a4b6e 75%, #2a6a8f 100%);
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
}

.page-title {
    font-size: 44px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #7abfff, #b4a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: rgba(160, 190, 220, 0.6);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
}

/* ===== РАСПИСАНИЕ ===== */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(160, 190, 220, 0.6);
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.tab-btn.active {
    background: rgba(100, 180, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 30px rgba(100, 180, 255, 0.05);
}

.tab-content {
    display: none;
    animation: fadeSlideUp 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-table-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 580px;
}

.schedule-table thead th {
    padding: 16px 20px;
    text-align: left;
    color: rgba(160, 190, 220, 0.5);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(200, 215, 235, 0.8);
}

.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.schedule-table tbody tr.highlight-row {
    background: rgba(100, 180, 255, 0.05);
}

.schedule-table tbody tr.highlight-row:hover {
    background: rgba(100, 180, 255, 0.08);
}

.time {
    font-weight: 600;
    color: #b0ceec;
    font-size: 16px;
}

.time.highlight {
    color: #7abfff;
}

.bus-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #b0ceec;
}

.bus-number.highlight {
    background: rgba(100, 180, 255, 0.15);
    color: #7abfff;
}

.highlight {
    color: #7abfff;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(160, 190, 220, 0.7);
}

.badge-express {
    background: rgba(255, 200, 50, 0.15);
    color: #f5d742;
}

.badge-fast {
    background: rgba(100, 200, 255, 0.12);
    color: #6ac8ff;
}

.badge-all {
    background: rgba(100, 255, 180, 0.08);
    color: #6ae8b0;
}

.schedule-legend {
    margin-top: 30px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-legend h3 {
    font-size: 16px;
    font-weight: 500;
    color: rgba(160, 190, 220, 0.6);
    margin-bottom: 12px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.highlight-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(100, 180, 255, 0.1);
    border: 1px solid rgba(100, 180, 255, 0.2);
    color: #7abfff;
}

/* ===== СТРАНИЦЫ-ЗАГЛУШКИ ===== */
.placeholder-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: linear-gradient(170deg, #0a1e33 0%, #0f2a44 40%, #1a4b6e 75%, #2a6a8f 100%);
}

.placeholder-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.placeholder-content h2 {
    font-size: 32px;
    font-weight: 300;
    color: rgba(160, 190, 220, 0.8);
    margin-bottom: 16px;
}

.placeholder-content p {
    color: rgba(160, 190, 220, 0.5);
    font-size: 18px;
    line-height: 1.7;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.placeholder-card {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.placeholder-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.placeholder-card h3 {
    font-size: 16px;
    color: rgba(160, 190, 220, 0.9);
    margin-bottom: 6px;
}

.placeholder-card p {
    font-size: 14px;
    color: rgba(160, 190, 220, 0.4);
}

.about-placeholder {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-placeholder p {
    font-size: 18px;
    color: rgba(160, 190, 220, 0.6);
    line-height: 1.8;
}

.contacts-placeholder {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 18px;
    color: rgba(160, 190, 220, 0.7);
}

.contact-icon {
    font-size: 22px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(11, 26, 47, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu li a {
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .page-title {
        font-size: 32px;
    }

    .schedule-table {
        font-size: 13px;
        min-width: 480px;
    }

    .schedule-table thead th,
    .schedule-table tbody td {
        padding: 10px 14px;
    }

    .placeholder-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }
    .schedule-table {
        font-size: 12px;
        min-width: 380px;
    }
    .schedule-table thead th,
    .schedule-table tbody td {
        padding: 8px 10px;
    }
    .badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .placeholder-grid {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== ГЛАВНАЯ СТРАНИЦА (стили из index.html) ===== */
.main-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- океан фон --- */
.ocean-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(170deg, #0a1e33 0%, #0f2a44 40%, #1a4b6e 75%, #2a6a8f 100%);
    overflow: hidden;
}

.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    pointer-events: none;
    overflow: hidden;
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    animation: waveLoop 14s ease-in-out infinite alternate;
}

.wave-layer:nth-child(1) {
    background: rgba(30, 100, 160, 0.3);
    height: 45%;
    animation-duration: 12s;
    animation-delay: -2s;
    bottom: -5%;
}

.wave-layer:nth-child(2) {
    background: rgba(50, 150, 210, 0.2);
    height: 35%;
    animation-duration: 18s;
    animation-delay: -6s;
    bottom: 0%;
}

.wave-layer:nth-child(3) {
    background: rgba(80, 180, 230, 0.15);
    height: 25%;
    animation-duration: 22s;
    animation-delay: -10s;
    bottom: 5%;
}

@keyframes waveLoop {
    0% { transform: translateX(0) scaleY(0.9); }
    50% { transform: translateX(15%) scaleY(1.2); }
    100% { transform: translateX(30%) scaleY(0.8); }
}

.sun-reflection {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseSun 6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulseSun {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.4); }
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 240, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(200, 230, 255, 0.3);
    animation: floatUp 18s infinite linear;
}

@keyframes floatUp {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translate(50px, -180px) scale(1.6); opacity: 0; }
}

.ship-scene {
    position: absolute;
    bottom: 6%;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.ship {
    position: absolute;
    bottom: 10px;
    left: -20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: sailShip 40s linear infinite;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transform: scale(0.7);
}

@keyframes sailShip {
    0% { transform: translateX(0) translateY(0) scale(0.7); }
    25% { transform: translateX(30vw) translateY(-6px) scale(0.75); }
    50% { transform: translateX(60vw) translateY(4px) scale(0.7); }
    75% { transform: translateX(90vw) translateY(-4px) scale(0.75); }
    100% { transform: translateX(120vw) translateY(0) scale(0.7); }
}

.ship-body {
    position: relative;
    width: 140px;
    height: 32px;
    background: linear-gradient(160deg, #1e3347, #0f1e2e);
    border-radius: 4px 24px 8px 8px;
    box-shadow: inset 0 -4px 0 #0a141f, 0 8px 20px rgba(0,0,0,0.6);
}

.ship-body::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 18px;
    width: 50px;
    height: 18px;
    background: #2d4b62;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 -2px 0 #1a2f40;
}

.containers {
    position: absolute;
    top: -34px;
    left: 14px;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    width: 100px;
}

.container {
    width: 14px;
    height: 11px;
    background: #c7452b;
    border-radius: 1px;
    box-shadow: inset 0 -2px 0 #8a2f1e, 0 2px 4px rgba(0,0,0,0.3);
}

.container:nth-child(2) { background: #2a7a5a; }
.container:nth-child(3) { background: #c9a83a; }
.container:nth-child(4) { background: #3a6a9a; }
.container:nth-child(5) { background: #b54a6a; }
.container:nth-child(6) { background: #4a8a7a; }
.container:nth-child(7) { background: #c97a3a; }
.container:nth-child(8) { background: #5a5a8a; }
.container:nth-child(9) { background: #8a4a3a; }

.smoke {
    position: absolute;
    top: -40px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: rgba(200, 210, 220, 0.2);
    border-radius: 50%;
    filter: blur(6px);
    animation: smokePuff 4.5s ease-in-out infinite;
}

@keyframes smokePuff {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0.2; }
    50% { transform: translate(-20px, -30px) scale(2); opacity: 0.5; }
    100% { transform: translate(-40px, -60px) scale(0.5); opacity: 0; }
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.02); }
}

.logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 8px 40px rgba(70, 150, 255, 0.25));
    animation: logoGlow 3.5s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 8px 30px rgba(70, 150, 255, 0.2)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 8px 50px rgba(150, 120, 255, 0.5)) brightness(1.08);
    }
    100% {
        filter: drop-shadow(0 8px 40px rgba(70, 180, 255, 0.4)) brightness(1.05);
    }
}

.logo-rings {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(100, 180, 255, 0.08);
    animation: ringPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.logo-rings::before {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 2px solid rgba(150, 120, 255, 0.06);
    animation: ringPulse 4s ease-in-out infinite 0.8s;
}

.logo-rings::after {
    content: '';
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    border: 2px solid rgba(100, 200, 255, 0.04);
    animation: ringPulse 4s ease-in-out infinite 1.6s;
}

@keyframes ringPulse {
    0% { transform: scale(0.8); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.logo-text {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #6a9acf, #b4a0ff, #7abfff, #6a9acf);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 5s ease-in-out infinite alternate;
    line-height: 1.1;
    margin-top: 4px;
}

@keyframes logoShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sub-logo {
    font-size: 14px;
    font-weight: 300;
    color: rgba(160, 190, 220, 0.4);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: -2px;
}

.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    font-size: 13px;
    color: rgba(100, 140, 180, 0.35);
    letter-spacing: 2px;
    font-weight: 300;
    pointer-events: none;
}

/* ===== ИНТРО ===== */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0b1a2f;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== АДАПТИВ ГЛАВНОЙ ===== */
@media (max-width: 600px) {
    .logo-wrapper { width: 150px; height: 150px; }
    .logo-image { width: 130px; height: 130px; }
    .logo-text { font-size: 36px; letter-spacing: 4px; }
    .sub-logo { font-size: 11px; letter-spacing: 5px; }
    .ship { transform: scale(0.45); }
    .footer { font-size: 11px; bottom: 16px; }
    .logo-rings { inset: -6px; }
    .logo-rings::before { inset: 10px; }
    .logo-rings::after { inset: 22px; }
}

@media (max-width: 400px) {
    .logo-wrapper { width: 120px; height: 120px; }
    .logo-image { width: 100px; height: 100px; }
    .logo-text { font-size: 28px; letter-spacing: 3px; }
}

/* Яндекс Расписания */

.schedule-table tr.yandex-past {
    opacity: 0.45;
}

.schedule-table tr.yandex-next {
    background: rgba(34, 197, 94, 0.14);
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

.schedule-table tr.yandex-next td {
    font-weight: 600;
}

.schedule-table tr.yandex-next strong {
    color: #16a34a;
    white-space: nowrap;
}

#scheduleStatus {
    margin: 12px 0;
}

.yandex-date-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 25px 0 20px;
}

.yandex-date-controls button,
.yandex-date-controls input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(130, 175, 255, 0.25);
    color: #a9caff;
    border-radius: 12px;
    padding: 11px 16px;
    font: inherit;
    cursor: pointer;
}

.yandex-date-controls button:hover {
    background: rgba(130, 175, 255, 0.18);
}

.yandex-date-controls input {
    color-scheme: dark;
}

@media (max-width: 600px) {
    .yandex-date-controls {
        gap: 8px;
    }

    .yandex-date-controls button {
        padding: 9px 12px;
    }
}
