/* ==========================================
   0. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ (ДИЗАЙН-СИСТЕМА)
   ========================================== */
:root {
    --primary-blue: #0284c7;
    --primary-dark: #0a235f;
    --action-green: #10b981;
    --action-green-active: #059669;
    --accent-gold: #f59e0b;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
}

/* ==========================================
   1. БАЗОВЫЕ НАСТРОЙКИ (СБРОС)
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-heading);
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    padding-bottom: 90px; 
    -webkit-overflow-scrolling: touch;
}

/* ==========================================
   ИДЕАЛЬНЫЙ V-CLOAK (Скелетон загрузки)
   ========================================== */
#catalog-app[v-cloak], #tour-app[v-cloak], #smart-ships-app[v-cloak], #ship-app[v-cloak], #cabinet-app[v-cloak], #checkout-app[v-cloak], #cart-app[v-cloak], #login-page-app[v-cloak], #register-app[v-cloak], #forgot-app[v-cloak] {
    display: block !important;
    position: relative;
    min-height: 60vh;
    background: var(--bg-body);
}

#catalog-app[v-cloak] > *, #tour-app[v-cloak] > *, #smart-ships-app[v-cloak] > *, #ship-app[v-cloak] > *, #cabinet-app[v-cloak] > *, #checkout-app[v-cloak] > *, #cart-app[v-cloak] > *, #login-page-app[v-cloak] > *, #register-app[v-cloak] > *, #forgot-app[v-cloak] > * {
    display: none !important;
    opacity: 0;
}

#catalog-app[v-cloak]::before, #tour-app[v-cloak]::before, #smart-ships-app[v-cloak]::before, #ship-app[v-cloak]::before, #cabinet-app[v-cloak]::before, #checkout-app[v-cloak]::before, #cart-app[v-cloak]::before, #login-page-app[v-cloak]::before, #register-app[v-cloak]::before, #forgot-app[v-cloak]::before {
    content: "";
    position: absolute;
    top: 100px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#catalog-app[v-cloak]::after, #tour-app[v-cloak]::after, #smart-ships-app[v-cloak]::after, #ship-app[v-cloak]::after, #cabinet-app[v-cloak]::after, #checkout-app[v-cloak]::after, #cart-app[v-cloak]::after, #login-page-app[v-cloak]::after, #register-app[v-cloak]::after, #forgot-app[v-cloak]::after {
    content: "Загрузка приложения...";
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

#catalog-app, #tour-app, #smart-ships-app, #ship-app, #cabinet-app, #checkout-app, #cart-app, #login-page-app, #register-app, #forgot-app {
    animation: fadeInApp 0.4s ease-out forwards;
}

@keyframes fadeInApp {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ==========================================
   2. ШАПКА И ПОИСК (ГЛАВНАЯ СТРАНИЦА)
   ========================================== */
.search-header-container {
    background: var(--primary-dark);
    padding: 20px 15px 15px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    color: #fff;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.app-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}
.app-logo-img {
    max-height: 32px;
    max-width: 120px;
    object-fit: contain;
    background: white;
    padding: 2px 6px;
    border-radius: 6px;
}
.app-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.app-phone-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}
.app-phone-link:active { background: rgba(255, 255, 255, 0.3); }

.search-input, .search-input-fake {
    width: 100%;
    flex-grow: 1; 
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    outline: none;
    background-color: var(--bg-surface);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    color: var(--text-dark);
}
.search-input-fake {
    display: flex; align-items: center;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    cursor: pointer; border: 1px solid #e2e8f0;
}
.search-input-fake:active { background: #f8fafc; border-color: #cbd5e1; }
.search-input-fake.is-empty { color: #94a3b8; }
.search-input:focus { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* ==========================================
   3. ГОРИЗОНТАЛЬНЫЕ ФИЛЬТРЫ (CHIPS)
   ========================================== */
.filter-chips, .quick-chips {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0 5px 0;
    scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar, .quick-chips::-webkit-scrollbar { display: none; }
.quick-chips { padding: 0; margin-top: 10px; flex-wrap: wrap; }

.chip, .chip-sm {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    cursor: pointer;
}
.chip-sm {
    background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0;
}
.chip.active { background: white; color: var(--primary-dark); font-weight: 700; }
.chip-sm.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3); }

/* ==========================================
   4. КОНТЕНТНАЯ ЧАСТЬ (КАРТОЧКИ ТУРОВ)
   ========================================== */
.results-container {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tour-card {
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tour-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #e2e8f0;
    overflow: hidden;
}
.tour-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.ship-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tour-content { padding: 16px; }

.tour-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 8px;
}

.tour-route { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.tour-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.meta-tag {
    background: #f1f5f9; color: var(--text-muted);
    padding: 4px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
}

.tour-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f1f5f9; padding-top: 12px;
}
.tour-price-block { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.price-val { font-size: 18px; font-weight: 800; color: var(--primary-blue); }

.live-indicator {
    width: 8px; height: 8px; background: var(--action-green);
    border-radius: 50%; display: inline-block;
    margin-right: 4px; box-shadow: 0 0 6px var(--action-green);
}

.btn-book {
    background: var(--action-green); color: white;
    padding: 10px 16px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-size: 14px;
    transition: background 0.2s;
}
.btn-book:active { background: var(--action-green-active); }

/* ==========================================
   5. СОСТОЯНИЯ ЗАГРУЗКИ / ПУСТОТЫ
   ========================================== */
.loading-state, .loading, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================
   6. НИЖНЕЕ МЕНЮ (SMART BOTTOM NAV)
   ========================================== */
.smart-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-surface);
    display: flex; justify-content: space-around;
    padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 900; border-top: 1px solid var(--border-color);
}

.smart-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text-muted);
    font-size: 10px; font-weight: 600; width: 25%; transition: 0.2s;
}

.smart-bottom-nav .nav-icon { font-size: 22px; margin-bottom: 2px; filter: grayscale(100%) opacity(0.6); transition: 0.2s; }
.smart-bottom-nav .nav-item.active { color: var(--primary-blue); }
.smart-bottom-nav .nav-item.active .nav-icon { filter: grayscale(0%) opacity(1); transform: translateY(-2px); }

.cart-badge-mobile {
    position: absolute; top: -4px; right: 20%;
    background: #ef4444; color: white;
    font-size: 10px; font-weight: bold;
    padding: 2px 6px; border-radius: 10px;
}

/* ==========================================
   7. ВНУТРЕННИЕ СТРАНИЦЫ (ГЕРОЙ-БЛОКИ)
   ========================================== */
.app-hero { position: relative; width: 100%; height: 300px; background: #e2e8f0; }
.app-hero img { width: 100%; height: 100%; object-fit: cover; }

.app-details-card {
    background: var(--bg-surface);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
    padding: 24px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.page-title { font-size: 24px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.3; }

/* ==========================================
   8. ПАНЕЛЬ БРОНИРОВАНИЯ (ДЛЯ СТРАНИЦЫ ТУРА)
   ========================================== */
.booking-bottom-bar {
    position: fixed;
    bottom: 65px; 
    left: 0; width: 100%;
    background: var(--bg-surface);
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 850; 
    border-top: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--primary-blue); color: white;
    padding: 14px 28px; border-radius: 12px;
    text-decoration: none; font-weight: 700; font-size: 16px;
    transition: background 0.2s; border: none; cursor: pointer;
}
.btn-primary:active { background: #0369a1; }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }

.btn-outline {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-dark); padding: 14px; border-radius: 12px;
    font-weight: 600; font-size: 16px; text-align: center; cursor: pointer;
}

/* ==========================================
   9. МОДАЛЬНОЕ ОКНО ФИЛЬТРОВ (BOTTOM SHEET)
   ========================================== */
.btn-filter-icon {
    background: var(--primary-blue); border: none; border-radius: 12px;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white;
}

.filter-modal-overlay, .smart-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9999;
    display: flex; align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.filter-modal-content, .smart-modal-content {
    background: var(--bg-surface); width: 100%; max-height: 90vh;
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    display: flex; flex-direction: column;
    animation: slideUp 0.3s ease-out;
    margin-bottom: calc(65px + env(safe-area-inset-bottom));
}

.filter-modal-header, .smart-modal-header {
    padding: 20px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.filter-modal-header h3, .smart-modal-header h3 { font-size: 20px; font-weight: 800; color: var(--primary-dark); margin: 0; }

.close-modal-btn {
    background: #f1f5f9; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 20px; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}

.filter-modal-body, .smart-modal-body {
    padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1;
}

.filter-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color); display: flex; gap: 10px; background: var(--bg-surface);
    flex-shrink: 0;
    padding-bottom: calc(15px + env(safe-area-inset-bottom)); 
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 12px;
    font-size: 16px; outline: none; background: var(--bg-body); color: var(--text-dark);
    appearance: none; box-sizing: border-box;
}
.form-control:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); background: #fff;}

select.form-control {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
}

/* Переключатель Toggle */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text-dark); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 26px; }
.slider-toggle:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider-toggle { background-color: var(--action-green); }
input:checked + .slider-toggle:before { transform: translateX(20px); }

/* ==========================================
   10. ИНФО-БЛОКИ (РАСПИСАНИЕ ТЕПЛОХОДА)
   ========================================== */
.schedule-item, .schedule-card {
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 15px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px;
    text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; box-shadow: var(--shadow-sm);
}
.schedule-item:active, .schedule-card:active { background: #f8fafc; transform: scale(0.98); }
.schedule-date, .sch-date { font-weight: 700; color: #d97706; font-size: 12px; margin-bottom: 5px;}
.schedule-route, .sch-title { font-size: 15px; color: var(--text-dark); font-weight: 800; line-height: 1.3; margin-bottom: 8px;}
.schedule-footer, .sch-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); border-top: 1px solid #f1f5f9; padding-top: 10px; margin-top: 10px; }
.schedule-price, .sch-price { font-weight: 800; color: var(--primary-blue); font-size: 16px; }

/* ==========================================
   11. МОБИЛЬНЫЙ ПОДВАЛ (АВТОРСКИЕ ПРАВА И ССЫЛКИ)
   ========================================== */
.mobile-footer {
    background: var(--primary-dark);
    padding: 40px 20px calc(40px + env(safe-area-inset-bottom) + 70px); 
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    margin-top: 40px; text-align: center;
}
.mf-logo { filter: brightness(0) invert(1); height: 35px; margin-bottom: 20px; }
.mf-phone { display: block; color: #ffffff; font-size: 24px; font-weight: 800; text-decoration: none; margin-bottom: 25px; }
.mf-socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.mf-social-btn { background: rgba(255,255,255,0.1); color: #ffffff; padding: 10px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.mf-social-btn:active { background: rgba(255,255,255,0.2); }
.mf-links { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.mf-links a { color: #38bdf8; text-decoration: none; font-size: 14px; }
.mf-copyright { color: rgba(255,255,255,0.4); font-size: 12px; line-height: 1.5; }

/* ==========================================
   12. ГЛОБАЛЬНАЯ ШАПКА (HEADER)
   ========================================== */
.smart-header {
    position: sticky; top: 0; z-index: 900; background: var(--bg-surface); height: 56px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 15px;
    box-shadow: var(--shadow-sm); padding-top: env(safe-area-inset-top); 
}
.smart-header-logo { font-size: 20px; font-weight: 800; color: var(--primary-dark); text-decoration: none; letter-spacing: -0.5px; }
.smart-header-logo span { color: var(--primary-blue); }
.burger-btn { font-size: 24px; color: var(--primary-dark); cursor: pointer; }

/* Шапка внутренней страницы (С кнопкой НАЗАД) */
.smart-page-header {
    position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 890;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; background: var(--bg-surface); border-bottom: 1px solid var(--border-color);
}
.smart-page-header .page-title { margin: 0; font-size: 16px; font-weight: 800; text-align: center; color: var(--primary-dark); flex: 1; }
.smart-page-header div[style*="width"] { display: block !important; }
.smart-page-header .back-btn {
    position: static !important; background: #f1f5f9 !important;
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 20px; color: var(--primary-dark);
    box-shadow: none !important; backdrop-filter: none !important; transition: background 0.2s; flex-shrink: 0;
}
.smart-page-header .back-btn:active { background: #e2e8f0 !important; }

/* ==========================================
   13. БОКОВОЕ МЕНЮ (OFFCANVAS)
   ========================================== */
.offcanvas-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); z-index: 1000; opacity: 0; visibility: hidden;
    transition: 0.3s ease; backdrop-filter: blur(2px);
}
.offcanvas-overlay.active { opacity: 1; visibility: visible; }
.offcanvas-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: var(--bg-surface); z-index: 1001; box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease; display: flex; flex-direction: column;
}
.offcanvas-menu.active { right: 0; }
.offcanvas-header {
    padding: 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    padding-top: max(20px, env(safe-area-inset-top)); 
}
.offcanvas-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.offcanvas-link {
    text-decoration: none; color: var(--text-dark); font-size: 16px; font-weight: 600;
    padding: 12px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px;
}

/* ==========================================
   14. ФИКСЫ ДЛЯ IOS И ВЕРСТКИ (HACKS)
   ========================================== */
.info-section a, .mcc-details a {
    position: relative; z-index: 10; pointer-events: auto !important;
    text-decoration: underline; color: var(--primary-blue); -webkit-tap-highlight-color: rgba(2, 132, 199, 0.2);
}

/* ==========================================
   15. АВТОРИЗАЦИЯ И РЕГИСТРАЦИЯ (AUTH)
   ========================================== */
.auth-page-wrapper { min-height: calc(100vh - 150px); background: var(--bg-body); padding-bottom: 40px; }
.auth-container { padding: 20px 15px; }
.auth-card, .auth-box {
    background: var(--bg-surface); border-radius: 20px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color); padding: 30px 20px; max-width: 400px; margin: 20px auto 0;
}
.auth-tab-btn { background: none; border: none; font-size: 16px; font-weight: 700; padding: 8px 12px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.auth-tab-btn.active { color: var(--primary-blue); border-bottom: 2px solid var(--primary-blue); margin-bottom: -12px; }
.form-title { font-size: 22px; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; text-align: center; }

/* ==========================================
   16. ЛИЧНЫЙ КАБИНЕТ И ЧАТ (CABINET)
   ========================================== */
.cabinet-header { background: var(--primary-blue); color: #fff; padding: 25px 20px 30px; border-radius: 0 0 20px 20px; text-align: center; margin-bottom: -20px; position: relative; z-index: 10; }
.user-greeting { font-size: 22px; font-weight: 800; margin: 0 0 5px 0; }
.user-status { font-size: 13px; opacity: 0.8; margin-bottom: 15px; }
.bonus-card { background: linear-gradient(135deg, #f59e0b, #ea580c); border-radius: 12px; padding: 15px; display: inline-block; min-width: 200px; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3); }
.bonus-title { font-size: 12px; font-weight: 600; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }
.bonus-amount { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }

.cabinet-tabs { display: flex; overflow-x: auto; gap: 10px; padding: 40px 15px 15px; background: #fff; border-bottom: 1px solid var(--border-color); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cabinet-tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: #f1f5f9; border: none; padding: 10px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: 0.2s; cursor: pointer; }
.tab-btn.active { background: var(--primary-blue); color: #fff; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3); }
.tab-content { padding: 20px 15px; }

.booking-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.booking-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #cbd5e1; }
.status-badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.status-pending { background: #fef08a; color: #854d0e; }
.status-paid { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.booking-price { font-size: 16px; font-weight: 800; color: var(--primary-blue); }
.booking-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0 0 5px 0; line-height: 1.3; }
.booking-ship { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.booking-footer { background: #f8fafc; padding: 10px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.booking-date { font-weight: 700; color: var(--text-dark); }
.btn-save { background: var(--action-green); color: #fff; border: none; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 16px; width: 100%; display: block; text-align: center; cursor: pointer;}

.chat-container { display: flex; flex-direction: column; gap: 12px; padding-bottom: 80px; }
.message { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; word-wrap: break-word; }
.msg-manager { align-self: flex-start; background: #fff; color: #0f172a; border-bottom-left-radius: 4px; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.msg-client { align-self: flex-end; background: #0ea5e9; color: white; border-bottom-right-radius: 4px; box-shadow: 0 2px 5px rgba(14,165,233,0.2); }
.msg-time { display: block; font-size: 11px; margin-top: 6px; opacity: 0.7; text-align: right; }
.chat-input-wrapper { position: fixed; bottom: calc(65px + env(safe-area-inset-bottom)); left: 0; right: 0; background: #ffffff; padding: 10px 15px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); display: flex; gap: 10px; align-items: center; z-index: 90; border-top: 1px solid #e2e8f0; }
.chat-input { flex-grow: 1; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 24px; padding: 12px 16px; font-size: 15px; outline: none; }
.chat-send-btn { background: #0ea5e9; color: white; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 5px rgba(14, 165, 233, 0.3); transition: 0.2s; cursor: pointer; }
.chat-send-btn:active { transform: scale(0.95); background: #0284c7; }

/* ==========================================
   17. КОРЗИНА И ОФОРМЛЕНИЕ (CART & CHECKOUT)
   ========================================== */
#cart-app { min-height: calc(100vh - 150px); background: var(--bg-body); padding-bottom: 20px; }
.remove-btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.95); color: #ef4444; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 10; cursor: pointer; }
.empty-cart-icon { font-size: 70px; margin-bottom: 20px; filter: grayscale(100%) opacity(0.5); }
.price-row-container { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; border-top: 1px solid #f1f5f9; padding-top: 15px; gap: 10px; }
.price-value { font-size: 20px; font-weight: 800; color: var(--primary-blue); white-space: nowrap; }

.checkout-step { padding: 15px; }
.checkout-card { background: var(--bg-surface); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.checkout-card-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 0 0 15px 0; }
.provide-later-box { display: flex; align-items: center; justify-content: space-between; background: #fff7ed; border: 1px solid #fed7aa; padding: 15px; border-radius: 12px; margin-bottom: 15px; }
.provide-later-box label { font-size: 14px; color: #9a3412; font-weight: 600; margin: 0; }
.passenger-block { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.passenger-header { background: #f8fafc; padding: 15px; font-size: 15px; font-weight: 700; color: var(--primary-dark); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s; }
.passenger-header:active { background: #e2e8f0; }
.passenger-body { padding: 15px; background: #fff; border-top: 1px solid var(--border-color); }
.sticky-checkout-footer { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 15px 20px calc(15px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; z-index: 1000; border-top: 1px solid var(--border-color); }
.sticky-price-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.sticky-price { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.sticky-btn { background: var(--action-green); color: #fff; border: none; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; min-width: 140px; text-align: center; transition: 0.2s; cursor: pointer; text-decoration: none;}
.sticky-btn:active { transform: scale(0.96); }
.sticky-btn:disabled { background: #94a3b8; transform: none; cursor: not-allowed;}

/* 🔥 ФИКС: Надежно скрываем глобальный подвал и нижнее меню на странице оформления заказа (кросс-браузерно) 🔥 */
#checkout-app ~ .mobile-footer,
#checkout-app ~ .smart-bottom-nav {
    display: none !important;
}

/* ==========================================
   18. ВНУТРЕННИЕ СТРАНИЦЫ (ТУР, ТЕПЛОХОД, КАЮТЫ)
   ========================================== */
#smart-ships-app, #ship-app { padding-bottom: 20px; }
.ships-search-block { background: var(--primary-dark); padding: 20px 15px; border-radius: 0 0 20px 20px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Splide Overrides */
.app-hero.splide { height: 260px; display: block; }
.app-hero.splide .splide__track { height: 100%; }
.app-hero.splide .splide__list { height: 100%; }
.splide__slide { height: 100%; }
.splide__slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.splide__pagination { bottom: 40px !important; z-index: 10; padding: 0 10px; }
.splide__pagination__page { background: rgba(255, 255, 255, 0.6) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.splide__pagination__page.is-active { background: #fff !important; transform: scale(1.3); }

/* Ship Details */
.characteristics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; margin-bottom: 20px; }
.char-item { background: #f8fafc; border: 1px solid var(--border-color); padding: 10px; border-radius: 12px; text-align: center; }
.char-value { font-size: 16px; font-weight: 800; color: var(--primary-blue); }
.char-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.svg-scheme-container { width: 100%; overflow-x: auto; background: #fff; padding: 20px 0; border-radius: 12px; border: 1px solid #e2e8f0; }
.svg-scheme-container svg { min-width: 800px; max-width: 1200px; height: auto; }

/* Tabs (Ship & Tour) */
.tab-nav, .tour-tabs-container { display: flex; overflow-x: auto; scrollbar-width: none; background: #fff; }
.tab-nav { margin: 0 -20px; padding: 0 20px; border-bottom: 1px solid var(--border-color); position: sticky; top: 56px; z-index: 50; }
.tour-tabs-container { gap: 8px; padding: 5px 15px 15px 15px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.tab-nav::-webkit-scrollbar, .tour-tabs-container::-webkit-scrollbar { display: none; }
.tab-btn { padding: 15px 15px; background: none; border: none; font-size: 14px; font-weight: 700; color: var(--text-muted); white-space: nowrap; border-bottom: 3px solid transparent; cursor: pointer; }
.tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.tour-tab-btn { background: #f1f5f9; border: none; padding: 10px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: 0.2s; }
.tour-tab-btn.active { background: var(--primary-blue); color: #fff; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3); }

/* Cabins Accordion */
.cabin-acc-container { padding: 20px 0; }
.cabin-card, .mobile-cabin-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cabin-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; cursor: pointer; }
.cabin-header-title { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.cabin-toggle-icon, .mcc-toggle-icon { font-size: 12px; color: var(--text-muted); transition: 0.2s; }
.cabin-body { padding: 15px; border-top: 1px solid var(--border-color); }
.cabin-photos-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cabin-photos-grid::-webkit-scrollbar { display: none; }
.cabin-photo { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid #e2e8f0; cursor: pointer; }

/* Tour specific elements */
.info-section { padding: 0 15px; margin-bottom: 30px; }
.mobile-promo-box { background: #fff7ed; border: 1px solid #ffedd5; border-radius: 12px; padding: 15px; margin: 15px; box-shadow: var(--shadow-sm); }
.mobile-promo-title { margin: 0 0 10px 0; color: #ea580c; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mobile-promo-list { margin: 0; padding-left: 20px; color: #9a3412; font-size: 13px; line-height: 1.5; }
.mcc-main-row { display: flex; gap: 15px; padding: 12px; align-items: center; cursor: pointer; }
.mcc-image { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e2e8f0; }
.mcc-placeholder { width: 80px; height: 80px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mcc-body { flex: 1; }
.mcc-title { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin: 0 0 8px 0; }
.mcc-price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mcc-price { font-size: 16px; font-weight: 800; color: var(--primary-blue); white-space: nowrap; flex-shrink: 0; }
.mcc-details { padding: 0 15px 15px 15px; border-top: 1px solid #f1f5f9; }
.mcc-gallery { display: flex; gap: 10px; overflow-x: auto; margin-top: 15px; padding-bottom: 5px; scrollbar-width: none; }
.mcc-gallery::-webkit-scrollbar { display: none; }
.mcc-gallery-img { width: 130px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; }
.mcc-description { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 15px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item { border-radius: 8px; overflow: hidden; height: 120px; background: #e2e8f0; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.scheme-btn { width: 100%; background: #f8fafc; border: 1px solid var(--primary-blue); color: var(--primary-dark); padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.city-badge-link { color: var(--primary-blue); text-decoration: underline; cursor: pointer; font-weight: 700; }
.spinner-loader { border: 3px solid #f3f3f3; border-top: 3px solid var(--primary-blue); border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; margin: 0 auto; }

/* Image Modals */
.image-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    padding: 20px; 
}
.image-modal-content { 
    position: relative; max-width: 100%; max-height: 100%; 
    margin-bottom: calc(65px + env(safe-area-inset-bottom));
}
.image-modal-content img { max-width: 100%; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.close-image-btn { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 20px; color: white; font-size: 35px; background: none; border: none; cursor: pointer; padding: 5px; line-height: 1; }

#custom-lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.95); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding-bottom: calc(65px + env(safe-area-inset-bottom)); 
}
#lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; padding: 10px; }
.lightbox-close { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 20px; color: #fff; font-size: 35px; line-height: 1; cursor: pointer; }

/* ==========================================
   19. НОВОСТИ И АКЦИИ (NEWS & PROMOS)
   ========================================== */
.news-container, .promo-container { padding: 20px 15px; }
.news-card, .promo-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 20px; overflow: hidden; display: block; text-decoration: none; color: var(--text-dark); transition: 0.2s; }
.news-card-link:active, .promo-card:active { background: #f8fafc; transform: scale(0.98); }
.news-image-wrap, .promo-img-wrap { position: relative; height: 160px; background: #f1f5f9; }
.news-image, .promo-img { width: 100%; height: 100%; object-fit: cover; }

.badge-discount { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.badge-type { position: absolute; top: 10px; left: 10px; background: var(--primary-blue); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 11px; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.news-body, .promo-body { padding: 15px; }
.news-date, .promo-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.news-title, .promo-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.news-excerpt, .promo-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-read-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary-blue); }

.news-details-card, .promo-details-card { background: var(--bg-surface); border-top-left-radius: 24px; border-top-right-radius: 24px; margin-top: -30px; position: relative; z-index: 5; padding: 24px 20px; box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05); min-height: 500px; }
.nd-date { display: inline-block; background: #f1f5f9; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.nd-title, .promo-title { font-size: 22px; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; line-height: 1.3; }
.nd-content, .promo-content { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.nd-content img, .promo-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.nd-content p { margin-bottom: 15px; }

.info-box { background: #f8fafc; border-radius: 12px; padding: 15px; border: 1px solid var(--border-color); margin-bottom: 20px; }
.info-row { margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.info-val { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.ships-list { margin: 5px 0 0 0; padding-left: 18px; font-size: 13px; color: var(--text-dark); }
.ships-list li { margin-bottom: 4px; }

.promo-code-box { background: #fff7ed; border: 2px dashed #f59e0b; border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 25px; position: relative; cursor: pointer; transition: background 0.2s; }
.promo-code-box:active { background: #ffedd5; }
.code-label { font-size: 13px; color: #9a3412; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.code-value { font-size: 28px; font-weight: 900; color: #ea580c; letter-spacing: 2px; margin: 10px 0; }
.copy-hint { font-size: 13px; color: #ea580c; font-weight: 700; }
.promo-code-box.copied .copy-hint { color: #16a34a; }

/* ==========================================
   20. ИНФО-СТРАНИЦЫ И ОШИБКИ (PRIVACY, 404)
   ========================================== */
.privacy-container { padding: 20px 15px 40px; }
.info-card { background: var(--bg-surface); border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); padding: 20px; margin-bottom: 20px; }
.info-card h2 { font-size: 18px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.3; }
.info-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-top: 20px; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 15px; }
.info-card p:last-child { margin-bottom: 0; }
.feature-list { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon { font-size: 24px; flex-shrink: 0; }
.feature-text h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0 0 4px 0; }
.feature-text p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.contact-block { background: #f8fafc; border-radius: 12px; padding: 15px; margin-top: 20px; border: 1px solid #e2e8f0; }
.contact-row { display: flex; flex-direction: column; margin-bottom: 12px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.contact-val { font-size: 15px; font-weight: 700; color: var(--primary-blue); text-decoration: none; }

.error-404-container { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 250px); background: var(--bg-body); }
.error-icon { font-size: 80px; margin-bottom: 20px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.05)); }
.error-title { font-size: 26px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.2; }
.error-text { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.5; }
.btn-group { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* ==========================================
   21. ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ И КУКИ (TOASTS, COOKIE)
   ========================================== */
.toast-message { position: fixed; bottom: 90px; left: 15px; right: 15px; padding: 12px 15px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; text-align: center; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.15); animation: slideUpToast 0.3s ease-out; }
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }

@keyframes slideUpToast { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cookie-banner { position: fixed; bottom: -150%; left: 0; right: 0; background: var(--bg-surface, #fff); box-shadow: 0 -10px 40px rgba(0,0,0,0.15); padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); z-index: 999999; display: flex; flex-direction: column; gap: 15px; transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); border-top-left-radius: 24px; border-top-right-radius: 24px; border: 1px solid var(--border-color, #e2e8f0); }
.cookie-banner.show { bottom: 0; }
.cookie-text { font-size: 13px; color: var(--text-muted, #64748b); line-height: 1.5; }
.cookie-text strong { display: block; color: var(--text-dark, #0f172a); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.cookie-btn-accept { background: var(--primary-blue, #0284c7); color: #fff; border: none; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; transition: background 0.2s; }
.cookie-btn-accept:active { background: #0369a1; }

@media (min-width: 768px) {
    .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; border-radius: 0; padding: 20px 40px; }
    .cookie-btn-accept { min-width: 200px; }
}
/* ==========================================
   19. МОБИЛЬНАЯ КОРЗИНА И ОФОРМЛЕНИЕ (компактно, всё под большим пальцем)
   ========================================== */
/* На странице корзины вместо нижнего меню — закреплённая панель оформления */
body.cart-has-bar .smart-bottom-nav { display: none; }
body.cart-has-bar #cart-app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

.cart-head-line { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.cart-clear-link { background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 8px 4px; cursor: pointer; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }

.cart-card {
    display: grid; grid-template-columns: 88px 1fr; gap: 10px 12px; align-items: start;
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 12px; box-shadow: var(--shadow-sm);
}
.cart-card-img { display: block; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #e2e8f0; }
.cart-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-card-body { min-width: 0; }
.cart-card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text-dark); text-decoration: none;
}
.cart-card-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cart-card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cart-card-cabin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cart-cabin-name, .cart-cabin-comp { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.cart-cabin-name { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.cart-cabin-comp { background: #f8fafc; color: #475569; border: 1px solid var(--border-color); }

.cart-card-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #f1f5f9; padding-top: 8px; }
.cart-card-price { font-size: 20px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.cart-card-price small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.cart-remove {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    background: #fef2f2; color: #dc2626; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cart-remove:active { background: #fee2e2; }
.cart-more-link { display: block; text-align: center; margin: 14px 0 6px; padding: 14px; border: 1.5px dashed #cbd5e1; border-radius: 14px; color: var(--primary-blue); font-weight: 700; font-size: 14px; text-decoration: none; }

.cart-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--border-color); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cart-bar-sum { min-width: 0; }
.cart-bar-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cart-bar-value { font-size: 20px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
    background: var(--action-green); color: #fff; border-radius: 14px; font-size: 16px; font-weight: 800; text-decoration: none;
}
.cart-bar-btn:active { background: var(--action-green-active); transform: scale(0.98); }

.cart-toast {
    position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 1100;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #1e293b; color: #fff; padding: 6px 8px 6px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.cart-toast button { background: none; border: none; color: #7dd3fc; font-weight: 800; font-size: 14px; min-height: 44px; padding: 0 14px; cursor: pointer; }

/* --- Оформление --- */
.co-form { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
#checkout-app .checkout-step { padding: 12px; }
#checkout-app .checkout-card { padding: 16px; margin-bottom: 12px; }
#checkout-app .checkout-card-title { font-size: 16px; margin-bottom: 12px; }
#checkout-app .form-group { margin-bottom: 12px; }
#checkout-app .form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; }
#checkout-app .form-control { min-height: 48px; padding: 12px 14px; }
.co-order-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.co-order-name { font-weight: 600; color: var(--text-dark); min-width: 0; }
.co-order-price { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.co-order-edit { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-blue); text-decoration: none; }
.provide-later-box { padding: 12px 14px; cursor: pointer; }
.passenger-header { min-height: 48px; }
.passenger-name { font-weight: 600; color: var(--text-muted); }
.co-later-hint { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.form-group.has-error .form-control { border-color: #ef4444; background: #fef2f2; }
.field-error { margin-top: 5px; font-size: 12px; font-weight: 700; color: #dc2626; }
.co-error { background: #fee2e2; color: #b91c1c; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 700; border: 1px solid #fca5a5; }
.co-legal { font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; margin: 4px 8px 0; }
.co-legal a { color: var(--primary-blue); }
.sticky-btn { min-height: 52px; border-radius: 14px; font-weight: 800; }

/* ==========================================
   20. УДОБСТВО ПАЛЬЦА: зоны нажатия ≥ 44px, поля ≥ 16px, подтверждения
   ========================================== */
.smart-page-header .back-btn { width: 44px !important; height: 44px !important; }
.close-modal-btn, .remove-btn { width: 44px; height: 44px; }
.chat-input { font-size: 16px; }
.chat-send-btn { width: 48px; height: 48px; }
/* Переключатель остаётся прежним по виду, но нажимается по увеличенной области */
.switch { position: relative; }
.switch::before { content: ""; position: absolute; inset: -9px -6px; }
.smart-bottom-nav .nav-item { min-height: 48px; }
.form-control, select.form-control { min-height: 48px; }
.offcanvas-link { min-height: 48px; display: flex; align-items: center; }

/* Кнопка «В корзину» у номера каюты */
.cabin-add-btn { min-height: 40px; padding: 0 16px; font-size: 13px; margin-top: 6px; border-radius: 10px; white-space: nowrap; }
.cabin-add-btn.is-in-cart { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Всплывающее подтверждение на странице круиза (выше нижней панели бронирования) */
.tour-toast {
    position: fixed; left: 12px; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 1100;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #1e293b; color: #fff; padding: 6px 8px 6px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.tour-toast a { color: #7dd3fc; font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; white-space: nowrap; }
