body #allrecords > div:not(:has(#tilda-calculator-wrapper)) {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
        }


        body #allrecords > div:has(#tilda-calculator-wrapper) {
            display: block !important;
            visibility: visible !important;
            min-height: 100vh !important;
            position: relative !important;
        }


        #footer,
        .t-footer,
        .t-form,
        .t-popup,
        .t-rec:not(:has(#tilda-calculator-wrapper)) {
            display: none !important;
            visibility: hidden !important;
        }


        .t-rec {
            padding: 0 !important;
            margin: 0 !important;
        }

        .t123 {
            padding: 0 !important;
            margin: 0 !important;
        }


        #tilda-calculator-wrapper {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            min-height: 100vh;
            background: radial-gradient(circle at top, #2a2d35 0, #1f2229 42%, #181b20 100%);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            color: #f5f5f7;
            position: relative;
            width: 100%;
            transition: background 0.3s ease, color 0.3s ease;
        }

        #tilda-calculator-wrapper * {
            box-sizing: border-box;
        }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --topbar-height: 72px;
            --topbar-gap: 12px;

            --panel-width: 420px;
            --panel-left-gap: 16px;
            --panel-vertical-gap: 12px;
            /* Расстояние между основной панелью и плашкой телефона (desktop) */
            --panel-phone-gap: 8px;

            /* Темная тема (СЕРАЯ) */
            --bg-main: #1f2229;
            --bg-surface: #2a2d35;
            --bg-card: #33373f;
            --accent-primary: #ffd84d;
            --accent-primary-soft: rgba(255, 216, 77, 0.15);
            --accent-secondary: #c8a251;
            --text-primary: #f5f5f7;
            --text-muted: rgba(255, 255, 255, 0.6);
            --border-subtle: rgba(255, 255, 255, 0.06);

            --panel-bg: var(--bg-surface);
            --card-bg: var(--bg-card);
            --card-radius: 22px;
            --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
            --cta-bg: var(--accent-primary);
            --cta-text: #141414;
            --panel-inset: 12px;
            --panel-top-h: 140px;
            --panel-bottom-h: 76px;
        }

        /* Светлая тема - Яндекс Go стиль */
        body.light-theme {
            --bg-main: #ffffff;
            --bg-surface: #ffffff;
            --bg-card: #ffffff;
            --accent-primary: #ffc800;
            --accent-primary-soft: rgba(255, 200, 0, 0.1);
            --accent-secondary: #e6b400;
            --text-primary: #000000;
            --text-muted: rgba(0, 0, 0, 0.5);
            --border-subtle: rgba(0, 0, 0, 0.06);
            --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        body.light-theme #tilda-calculator-wrapper {
            background: #ffffff;
            color: #000000;
        }

        body.light-theme #map {
            /* В светлой теме карта отображается в стандартных светлых цветах */
            filter: none;
        }


        html, body {
            height: 100%;
        }

        #calculator {
            position: relative;
            width: 100%;
            height: 100vh;
        }

        #map {
            width: 100%;
            height: 100%;
        }

        /* Темная карта как в Яндекс Такси - серый фон, белый текст, цветные элементы */
        body:not(.light-theme) #map {
            filter: invert(0.9) hue-rotate(180deg) brightness(1.1) contrast(0.9);
        }

        /* Светлая тема карты */
        body.light-theme #map {
            filter: none;
        }


        .topbar-wrap {
            position: fixed;
            top: var(--topbar-gap);
            left: var(--panel-left-gap);
            right: var(--panel-left-gap);
            z-index: 30;
        }

        .topbar {
            height: var(--topbar-height);
            /* Более тёмный, ближе к общему фону панели */
            background:
                radial-gradient(circle at top left, rgba(255, 216, 77, 0.22), transparent 55%),
                linear-gradient(135deg, #151821, #0e1017);
            backdrop-filter: blur(18px);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
            border: 1px solid var(--border-subtle);
            display: flex;
            align-items: center;
            padding: 0 20px;
            gap: 22px;
            color: var(--text-primary);
        }

        /* Светлый стиль топбара — полупрозрачный с градиентом (как в тёмной, но светлые цвета) */
        body.light-theme .topbar {
            background: radial-gradient(circle at top left, rgba(255, 216, 77, 0.15), transparent 55%),
                        rgba(255, 255, 255, 0.96) !important;
            backdrop-filter: blur(14px) !important;
            -webkit-backdrop-filter: blur(14px) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .topbar-logo {
            color: #000000 !important;
        }

        body.light-theme .topbar-link {
            color: rgba(0, 0, 0, 0.6) !important;
        }

        body.light-theme .topbar-link:hover {
            background: rgba(255, 200, 0, 0.08) !important;
            color: #000000 !important;
        }

        .topbar-logo {
            font-weight: 800;
            font-size: 24px;
            letter-spacing: -0.02em;
            white-space: nowrap;
            color: var(--accent-primary);
        }

        .topbar-logo .go {
            font-style: italic;
            font-weight: 800;
            color: #ffffff;
        }

        .topbar-nav {
            display: flex;
            align-items: center;
            gap: 26px;
            flex: 1;
            justify-content: center;
            min-width: 0;
        }

        .topbar-link {
            font-size: 14px;
            color: var(--text-muted);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 10px;
            border-radius: 12px;
            white-space: nowrap;
            transition: background 0.18s ease, color 0.18s ease;
        }

        .topbar-link:hover {
            background: rgba(255, 216, 77, 0.08);
            color: #ffffff;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            min-width: 160px;
        }

        @media (max-width: 768px) {
            .topbar-actions {
                flex: 1;
                justify-content: flex-end;
            }
        }

        .topbar-login {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 14px;
            border: 1px solid var(--border-subtle);
            background: #11131b;
            color: var(--text-primary);
            font-size: 14px;
            text-decoration: none;
            transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
        }

        .topbar-login:hover {
            background: #1b1f2a;
            box-shadow: 0 0 18px rgba(255, 216, 77, 0.35);
            transform: translateY(-1px);
        }

        body.light-theme .topbar-login {
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.1);
        }

        body.light-theme .topbar-login:hover {
            background: rgba(0, 0, 0, 0.08);
            box-shadow: 0 0 12px rgba(255, 200, 0, 0.25);
        }

        /* Панель телефона в светлой теме — как в тёмной, но светлые цвета */
        body.light-theme .phone-panel {
            background: radial-gradient(circle at top left, rgba(255, 220, 100, 0.4), rgba(255, 255, 255, 0.95)) !important;
            border-radius: 16px !important;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15) !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .phone-number {
            color: #000000 !important;
        }

        body.light-theme .phone-label {
            color: rgba(0, 0, 0, 0.7) !important;
        }

        body.light-theme .phone-icon {
            color: #000000 !important;
        }

        body.light-theme .panel {
            background: #ffffff !important;
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .panel-content {
            background: #ffffff !important;
        }

        body.light-theme .panel-top {
            background: #ffffff !important;
        }

        body.light-theme .panel-bottom {
            background: #ffffff !important;
        }

        body.light-theme .address-selector {
            background: #ffffff !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .transport-class-section {
            background: #ffffff !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .transport-class-options {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .transport-class-option + .transport-class-option::before {
            background: rgba(0, 0, 0, 0.1) !important;
        }

        body.light-theme .map-zoom-capsule,
        body.light-theme .map-geo-btn {
            background: #ffffff !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .map-zoom-capsule button:hover {
            background: rgba(255, 200, 0, 0.08) !important;
        }

        body.light-theme .map-geo-btn:hover {
            background: #fafafa !important;
            border-color: rgba(255, 200, 0, 0.4) !important;
            box-shadow: 0 2px 12px rgba(255, 200, 0, 0.2) !important;
        }

        body.light-theme .tariff-card {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            border-radius: 12px !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .tariff-card:hover {
            background: #ffffff !important;
            border-color: rgba(255, 200, 0, 0.4) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        }

        body.light-theme .tariff-card.active {
            background: rgba(255, 200, 0, 0.08) !important;
            border-color: #ffc800 !important;
            box-shadow: 0 2px 12px rgba(255, 200, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .transport-class-option {
            background: transparent !important;
        }

        body.light-theme .transport-class-option:hover {
            background: rgba(255, 200, 0, 0.08) !important;
        }

        body.light-theme .transport-class-option.active {
            background: #ffc800 !important;
            color: #000000 !important;
        }

        body.light-theme .order-button {
            background: #ffc800 !important;
            color: #000000 !important;
            box-shadow: 0 4px 16px rgba(255, 200, 0, 0.3) !important;
        }

        body.light-theme .order-button:hover {
            background: #e6b400 !important;
            box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4) !important;
        }

        /* SVG индикатор точки А (from-icon) */
        .from-icon-circle {
            fill: #fc3f1e;
        }

        body.light-theme .from-icon-circle {
            fill: #ffc800 !important;
        }

        body.light-theme .payment-button {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .option-item {
            background: #ffffff !important;
            border: none !important;
        }

        body.light-theme .payment-overlay {
            background: rgba(0, 0, 0, 0.5) !important;
        }

        body.light-theme .payment-modal {
            background: #ffffff !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        }

        body.light-theme .payment-method {
            background: #ffffff !important;
            border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .payment-method.active {
            background: rgba(255, 200, 0, 0.08) !important;
            border-color: #ffc800 !important;
        }

        body.light-theme .add-card-form {
            background: #ffffff !important;
        }

        body.light-theme .form-input {
            background: #ffffff !important;
            border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
            color: #000000 !important;
        }

        body.light-theme .form-button.primary {
            background: #ffc800 !important;
            color: #000000 !important;
        }

        body.light-theme .form-button.secondary {
            background: #f0f0f0 !important;
            color: #000000 !important;
        }

        body.light-theme .map-select-mode {
            background: #ffffff !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
        }

        body.light-theme .location-loading {
            background: #ffffff !important;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .price-section {
            background: #ffffff !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .options-section {
            background: #ffffff !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .payment-section {
            background: #ffffff !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .phone-input-section {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            border-radius: 16px !important;
            padding: 16px !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
        }

        body.light-theme .phone-input-wrapper {
            background: #f5f5f5 !important;
            border: none !important;
            border-radius: 12px !important;
            padding: 14px 16px !important;
            box-shadow: none !important;
        }

        body.light-theme .phone-input-wrapper:focus-within {
            background: #f5f5f5 !important;
            box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.25) !important;
        }

        body.light-theme .payment-button {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .payment-button:hover {
            background: #f5f5f5 !important;
            border-color: rgba(255, 200, 0, 0.3) !important;
            box-shadow: 0 2px 8px rgba(255, 200, 0, 0.15) !important;
        }

        body.light-theme .option-item:not(:last-child) {
            border-bottom: none !important;
        }

        body.light-theme .yandex-toggle-slider {
            background-color: rgba(0, 0, 0, 0.12) !important;
        }

        body.light-theme .yandex-toggle input:checked + .yandex-toggle-slider::before {
            background: #ffffff !important;
        }

        body.light-theme .phone-input::placeholder {
            color: rgba(0, 0, 0, 0.3) !important;
        }

        /* Модальные окна - полная перекраска */
        body.light-theme .payment-modal {
            background: #ffffff !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
        }

        body.light-theme .payment-modal-header {
            background: #ffffff !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .payment-modal-close {
            background: #f5f5f5 !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            color: #000000 !important;
        }

        body.light-theme .payment-modal-close:hover {
            background: #e8e8e8 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        }

        body.light-theme .payment-methods {
            background: #ffffff !important;
        }

        body.light-theme .payment-method-item {
            background: #ffffff !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .payment-method-item:hover {
            background: #fafafa !important;
        }

        body.light-theme .payment-method-item.active {
            background: rgba(255, 200, 0, 0.06) !important;
            border-left-color: #ffc800 !important;
        }

        body.light-theme .payment-method-icon {
            background: rgba(255, 200, 0, 0.12) !important;
            color: #ffc800 !important;
        }

        body.light-theme .payment-method-icon.card {
            background: #f5f5f5 !important;
            color: #000000 !important;
        }

        body.light-theme .add-card-button {
            background: #ffffff !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .add-card-button:hover {
            background: #fafafa !important;
        }

        body.light-theme .add-card-icon {
            background: rgba(255, 200, 0, 0.12) !important;
            color: #ffc800 !important;
        }

        body.light-theme .add-card-text {
            color: #ffc800 !important;
        }

        body.light-theme .payment-method-details {
            color: rgba(0, 0, 0, 0.5) !important;
        }

        body.light-theme .card-delete {
            color: #ffc800 !important;
        }

        body.light-theme .card-delete:hover {
            background: rgba(255, 200, 0, 0.1) !important;
        }

        /* Дополнительные стили для элементов панели */
        body.light-theme .address-field:not(:last-child) {
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        body.light-theme .address-input {
            color: #000000;
        }

        body.light-theme .address-input::placeholder {
            color: rgba(0, 0, 0, 0.3);
        }

        body.light-theme .address-hint {
            color: rgba(0, 0, 0, 0.5);
            background: #ffffff;
        }

        body.light-theme .add-stop-icon {
            border-color: rgba(0, 0, 0, 0.2);
        }

        body.light-theme .add-stop-text {
            color: #000000;
        }

        body.light-theme .address-field.add-stop:hover .add-stop-icon {
            background: rgba(255, 200, 0, 0.1);
            border-color: rgba(255, 200, 0, 0.6);
        }

        body.light-theme .clear-button {
            color: rgba(0, 0, 0, 0.4);
        }

        body.light-theme .clear-button:hover {
            background: rgba(0, 0, 0, 0.08);
            color: rgba(0, 0, 0, 0.7);
        }

        body.light-theme .map-select-button {
            background: #f5f5f5 !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
        }

        body.light-theme .map-select-button:hover {
            background: #eeeeee !important;
            border-color: rgba(255, 200, 0, 0.3) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        }

        body.light-theme .tariff-section {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            border-radius: 22px !important;
        }

        body.light-theme .tariff-name {
            color: #000000;
        }

        body.light-theme .tariff-price {
            color: #000000;
        }

        body.light-theme .transport-class-title {
            color: #000000;
        }

        body.light-theme .transport-class-label {
            color: #000000;
        }

        body.light-theme .price-amount {
            color: #000000;
        }

        body.light-theme .price-currency {
            color: rgba(0, 0, 0, 0.6);
        }

        body.light-theme .option-name {
            color: #000000;
        }

        body.light-theme .option-description {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-theme .yandex-toggle-slider {
            background: rgba(0, 0, 0, 0.1);
        }

        body.light-theme .yandex-toggle input:checked + .yandex-toggle-slider {
            background: #ffc800;
        }

        body.light-theme .payment-label {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-theme .payment-value {
            color: #000000;
        }

        body.light-theme .phone-label {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-theme .phone-input {
            background: transparent !important;
            border: none !important;
            color: #1a1a1a;
        }

        body.light-theme .phone-input::placeholder {
            color: rgba(0, 0, 0, 0.35);
        }

        body.light-theme .phone-input:focus {
            outline: none;
        }

        body.light-theme .phone-input-icon {
            color: #ffc800 !important;
        }

        body.light-theme .panel-header-title {
            color: rgba(0, 0, 0, 0.6);
        }

        body.light-theme .panel-handle {
            background: rgba(0, 0, 0, 0.15);
        }

        body.light-theme .payment-modal-title {
            color: #000000;
        }

        body.light-theme .payment-modal-close {
            color: rgba(0, 0, 0, 0.5);
        }

        body.light-theme .payment-modal-close:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #000000;
        }

        body.light-theme .payment-method-name {
            color: #000000;
        }

        body.light-theme .payment-method-icon:not(.card) {
            color: #ffc800 !important;
        }

        body.light-theme .form-label {
            color: rgba(0, 0, 0, 0.6);
        }

        body.light-theme .form-title {
            color: #000000;
        }

        body.light-theme .map-select-mode .title {
            color: #000000;
        }

        body.light-theme .map-select-mode .hint {
            color: rgba(0, 0, 0, 0.6);
        }

        body.light-theme .loading-text {
            color: #000000;
        }

        body.light-theme .loading-subtext {
            color: rgba(0, 0, 0, 0.5);
        }



        /* Кнопка переключения темы — в стиле кнопок карты */
        .theme-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            padding: 0;
            border-radius: 12px;
            border: 1px solid var(--border-subtle);
            background: #11131b;
            color: var(--accent-primary);
            font-size: 16px;
            cursor: pointer;
            transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
            margin-right: 10px;
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
        }

        .theme-toggle:hover {
            background: #181b27;
            border-color: rgba(255, 216, 77, 0.45);
            box-shadow: 0 0 20px rgba(255, 216, 77, 0.55);
        }

        .theme-toggle:active {
            background: #151822;
            box-shadow: 0 0 14px rgba(255, 216, 77, 0.4);
        }

        .theme-icon {
            font-size: 18px;
            line-height: 1;
        }

        body.light-theme .theme-toggle {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
            color: #ffc800;
        }

        body.light-theme .theme-toggle:hover {
            background: #fafafa !important;
            border-color: rgba(255, 200, 0, 0.4) !important;
            box-shadow: 0 2px 12px rgba(255, 200, 0, 0.2) !important;
        }

        body.light-theme .theme-toggle:active {
            background: #f5f5f5 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        }


        /* Панель телефона — как в test.html: градиент + полупрозрачный тёмный фон */
        .phone-panel {
            position: fixed;
            top: calc(var(--topbar-gap) + var(--topbar-height) + var(--panel-vertical-gap));
            left: calc(var(--panel-left-gap) + var(--panel-width) + var(--panel-phone-gap));
            background: radial-gradient(circle at top left, rgba(255, 216, 77, 0.2), rgba(10, 10, 16, 0.98));
            border-radius: 16px;
            padding: 12px 20px;
            /* Поверх панели заказа и жёлтой кнопки в обеих темах */
            z-index: 150;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 0;
            color: var(--text-primary);
        }

        .phone-icon {
            color: var(--accent-primary);
            font-size: 18px;
        }

        .phone-number {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-primary);
        }

        .phone-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }


        .panel {
            position: fixed;
            top: calc(var(--topbar-gap) + var(--topbar-height) + var(--panel-vertical-gap));
            left: var(--panel-left-gap);
            bottom: var(--panel-vertical-gap);
            width: var(--panel-width);
            height: auto;
            background: var(--panel-bg);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            /* Панель ниже плашки телефона и оверлеев */
            z-index: 50;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            max-height: none;
            color: var(--text-primary);
        }

        .panel-header {
            display: none;
        }

        .panel-top {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: var(--panel-inset);
            z-index: 12;
            background: var(--panel-bg);
        }

        .panel-bottom {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 0 var(--panel-inset) var(--panel-inset);
            z-index: 12;
            background: var(--panel-bg);
        }


        .address-selector {
            padding: 0;
            position: relative;
            background: var(--card-bg);
            border-radius: var(--card-radius);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
            border: 1px solid var(--border-subtle);
            overflow: hidden;
        }

        .address-field {
            display: flex;
            align-items: center;
            padding: 16px 18px;
            min-height: 64px;
            cursor: text;
            position: relative;
        }

        .address-field:not(:last-child) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }


        .address-field.add-stop {
            align-items: center;
            cursor: pointer;
        }

        .add-stop-icon {
            width: 24px;
            height: 24px;
            margin-right: 12px;
            flex-shrink: 0;
            border-radius: 999px;
            border: 1px dashed rgba(255, 255, 255, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-primary);
            font-size: 14px;
        }

        .add-stop-text {
            font-size: 14px;
            color: var(--text-primary);
        }

        .address-field.add-stop:hover .add-stop-icon {
            background: rgba(255, 216, 77, 0.12);
            border-color: rgba(255, 216, 77, 0.6);
        }

        .address-field.add-stop:hover .add-stop-text {
            color: var(--accent-primary);
        }

        .address-icon {
            width: 24px;
            height: 24px;
            margin-right: 12px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .from-icon {
            color: var(--accent-primary);
        }

        .to-icon {
            color: var(--accent-secondary);
        }

        .address-input-container {
            flex: 1;
            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 40px;
        }

        .address-input {
            width: 100%;
            border: none;
            background: transparent;
            font-size: 16px;
            color: var(--text-primary);
            outline: none;
            font-weight: 400;
            padding: 8px 0 0 0;
            font-family: inherit;
            height: 40px;
        }

        .address-input::placeholder {
            color: rgba(255, 255, 255, 0.35);
        }

        .address-hint {
            position: absolute;
            top: 0;
            left: 0;
            font-size: 12px;
            color: var(--text-muted);
            pointer-events: none;
            transition: all 0.2s;
            z-index: 1;
            background: var(--card-bg);
            padding: 0 2px;
            margin-left: -2px;
        }

        .address-input:focus + .address-hint,
        .address-input:not(:placeholder-shown) + .address-hint {
            top: -6px;
            font-size: 11px;
        }

        .clear-button {
            width: 24px;
            height: 24px;
            background: transparent;
            border: none;
            border-radius: 50%;
            color: rgba(0, 0, 0, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .clear-button:hover {
            background: rgba(0, 0, 0, 0.05);
            color: rgba(0, 0, 0, 0.6);
        }


        .map-select-button {
            width: 32px;
            height: 32px;
            background: #11131b;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            color: var(--accent-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
            flex-shrink: 0;
            transition: all 0.2s;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
        }

        .map-select-button:hover {
            background: #181b27;
            border-color: rgba(255, 216, 77, 0.5);
            box-shadow: 0 0 18px rgba(255, 216, 77, 0.5);
            transform: translateY(-1px);
        }

        .map-select-button i {
            font-size: 14px;
        }


        .tariff-section {
            padding: 12px 14px;
            background: transparent !important;
        }

        .section-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
        }

        .tariff-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(100px, 1fr));
            gap: 10px;
        }

        .tariff-card {
            background: transparent !important;
            border: none !important;
            border-radius: 12px;
            padding: 10px 8px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            box-shadow: none !important;
            min-width: 0;
        }

        .tariff-card:hover {
            background: rgba(255, 255, 255, 0.04) !important;
        }

        .tariff-card.active {
            background: rgba(255, 216, 77, 0.1) !important;
            box-shadow: none !important;
        }

        .tariff-image-box {
            width: 100%;
            height: 56px;
            min-height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: transparent !important;
        }

        .tariff-image {
            height: 56px;
            width: auto;
            max-width: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
        }

        /* Увеличенный вертолёт, чтобы по визуальному размеру был как остальные */
        .tariff-card-helicopter .tariff-image {
            transform: scale(1.9);
            transform-origin: center;
        }

        /* Лимузин визуально выше, чтобы не казался мелким из‑за длины */
        .tariff-card-limousine .tariff-image {
            transform: scale(1.9);
            transform-origin: center;
        }

        /* Ключи для тарифа "Перегон авто" делаем чуть меньше */
        .tariff-card-trailer .tariff-image {
            transform: scale(0.7);
            transform-origin: center;
        }

        .tariff-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            text-align: center;
            line-height: 1.2;
        }

        .tariff-price {
            font-size: 12px;
            font-weight: 600;
            color: var(--accent-primary);
            margin: 0;
        }

        .tariff-hint {
            display: none;
        }

        .tariff-price::before {
            content: "от ";
            font-size: 13px;
            font-weight: 400;
            color: var(--text-muted);
        }

        /* Когда цена рассчитана — убираем "от" и меняем стиль */
        .tariff-price.calculated::before {
            content: "";
        }

        .tariff-price.calculated {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-primary);
            animation: price-pop 0.3s ease;
        }

        /* Анимация счётчика — плавный переход цвета пока идёт подсчёт */
        .tariff-price.price-counting {
            color: #f5c518;
            transition: color 0.15s ease;
        }

        .tariff-price.price-counting-done {
            animation: price-settle 0.25s ease forwards;
        }

        @keyframes price-settle {
            0% { color: #f5c518; transform: scale(1.05); }
            100% { color: var(--accent-primary); transform: scale(1); }
        }

        @keyframes price-pop {
            0% { transform: scale(0.85); opacity: 0.5; }
            60% { transform: scale(1.08); }
            100% { transform: scale(1); opacity: 1; }
        }

        .tariff-badge {
            display: none;
            position: absolute;
            top: -8px;
            right: 8px;
            background: var(--accent-primary);
            color: #141414;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
        }


        .price-section {
            padding: 14px;
            background: var(--card-bg);
            border-radius: var(--card-radius);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
            border: 1px solid var(--border-subtle);
            text-align: center;
        }


        .transport-class-section {
            padding: 14px;
            background: var(--card-bg);
            border-radius: var(--card-radius);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
            border: 1px solid var(--border-subtle);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .transport-class-title {
            font-size: 14px;
            color: var(--text-muted);
            text-transform: none;
            letter-spacing: 0.06em;
        }

        .transport-class-options {
            display: flex;
            align-items: stretch;
            justify-content: center;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: #080a12;
            position: relative;
        }
        .transport-class-option {
            flex: 1;
            padding: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 13px;
            color: var(--text-primary);
            cursor: pointer;
            text-transform: lowercase;
            position: relative;
            transition: background 0.18s ease, color 0.18s ease;
        }
        .transport-class-label {
            letter-spacing: 0.08em;
            text-transform: lowercase;
        }
        .transport-class-option:hover {
            background: rgba(255, 216, 77, 0.08);
        }
        .transport-class-option.active {
            background: var(--accent-primary);
            color: #111111;
        }
        .transport-class-option + .transport-class-option::before {
            content: "";
            position: absolute;
            left: 0;
            top: 20%;
            bottom: 20%;
            width: 1px;
            background: rgba(255, 255, 255, 0.2);
        }
        .price-label {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }
        .price-amount {
            font-size: 26px;
            font-weight: 700;
            color: var(--accent-primary);
            line-height: 1.1;        }
        .price-currency {
            font-size: 20px;
            color: var(--text-muted);
            margin-left: 4px;
        }
        .options-section {
            padding: 14px;
            background: var(--card-bg);
            border-radius: var(--card-radius);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
            border: 1px solid var(--border-subtle);
        }
        .option-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
        }
        .option-item:not(:last-child) {
            /* Убираем разделители по умолчанию, чтобы в светлой теме не было серых линий */
            border-bottom: none;
        }
        .option-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .option-icon {
            width: 20px;
            color: var(--text-muted);
            text-align: center;
        }
        .option-text {
            display: flex;
            flex-direction: column;
        }
        .option-name {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-primary);
        }

        .option-price {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }


        .yandex-toggle {
            position: relative;
            width: 44px;
            height: 24px;
        }

        .yandex-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .yandex-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.12);
            transition: .2s;
            border-radius: 34px;
        }

        .yandex-toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: #ffffff;
            transition: .2s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        input:checked + .yandex-toggle-slider {
            background-color: var(--accent-primary);
        }

        input:checked + .yandex-toggle-slider:before {
            transform: translateX(20px);
        }


        .payment-section {
            padding: 14px;
            background: var(--card-bg);
            border-radius: var(--card-radius);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
            border: 1px solid var(--border-subtle);
        }

        .phone-input-section {
            margin-top: 16px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .phone-input-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            padding: 14px 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
        }

        .phone-input-wrapper:focus-within {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.1);
        }

        .phone-input-icon {
            color: var(--accent-primary);
            font-size: 18px;
        }

        .phone-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 15px;
            font-family: inherit;
            /* Делаем поле (placeholder) визуально округлым */
            border-radius: 999px;
        }

        .phone-input::placeholder {
            color: rgba(255, 255, 255, 0.55);
        }

        .phone-label {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 8px;
            font-weight: 500;
        }

        .payment-button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            background: #141722;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        .payment-button:hover {
            background: #181b27;
            border-color: rgba(255, 216, 77, 0.4);
            box-shadow: 0 0 18px rgba(255, 216, 77, 0.4);
        }

        .payment-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .payment-icon {
            width: 32px;
            height: 32px;
            background: rgba(252, 63, 30, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fc3f1e;
            font-size: 14px;
        }

        body.light-theme .payment-icon {
            background: rgba(255, 200, 0, 0.1) !important;
            color: #ffc800 !important;
        }

        .payment-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .payment-label {
            font-size: 12px;
            color: var(--text-muted);
        }

        .payment-value {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .payment-arrow {
            color: var(--text-muted);
            font-size: 12px;
        }


        .order-section {
            padding: 0;
            background: transparent;
            border-top: none;
        }

        .order-button {
            width: 100%;
            padding: 18px 18px;
            background: radial-gradient(circle at top, rgba(255, 216, 77, 0.95), #f5c743);
            color: var(--cta-text);
            border: none;
            border-radius: 18px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 0 26px rgba(255, 216, 77, 0.75);
            text-transform: none;
        }

        .order-button i {
            display: none;
        }

        .order-button:hover {
            filter: brightness(1.02);
            transform: translateY(-1px);
            box-shadow: 0 0 32px rgba(255, 216, 77, 0.95);
        }

        .order-button:active {
            transform: translateY(0);
            box-shadow: 0 0 18px rgba(255, 216, 77, 0.7);
        }

        /* Нижняя плашка с выбором класса и кнопкой "Заказать" (desktop + mobile).
           Делаем её такой же цельной, как в мобильной версии. */
        .panel-bottom {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .panel-bottom .order-stack {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-top: 0;
            background: #f5c743;
            border-radius: 22px;
            overflow: hidden;
            border: none;
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
        }

        .panel-bottom .transport-class-section {
            padding: 6px;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            display: block;
        }

        .panel-bottom .transport-class-title {
            display: none;
        }

        .panel-bottom .transport-class-options {
            background: transparent !important;
            border-radius: 999px;
            border: none !important;
            padding: 3px;
            justify-content: stretch;
            box-shadow: none !important;
        }

        .panel-bottom .transport-class-option {
            padding: 8px 0;
            font-size: 13px;
            color: #3b2a00;
            border-radius: 999px;
        }

        .panel-bottom .transport-class-option + .transport-class-option::before {
            display: none;
        }

        /* На десктопе убираем дубликат плашки у нижней кнопки —
           оставляем выбор класса только в основной карточке над кнопкой */
        @media (min-width: 769px) {
            .panel-bottom .transport-class-section {
                display: none;
            }
        }

        .panel-bottom .transport-class-option.active {
            background: rgba(0, 0, 0, 0.16);
            color: #111111;
        }

        .panel-bottom .order-section {
            margin-top: 0;
        }

        .panel-bottom .order-button {
            border-radius: 0;
            box-shadow: none;
            background: #f5c743;
        }

        body.light-theme .panel-bottom .order-stack {
            /* Вся нижняя плашка (капсула + кнопка) единым жёлтым блоком */
            background: #ffc800;
        }

        /* В светлой теме внутри нижнего блока убираем отдельную белую "капсулу" */
        body.light-theme .panel-bottom .transport-class-section {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        body.light-theme .panel-bottom .transport-class-options {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        /* Светлая тема: переключатель классов как в тёмной теме:
           активный таб тёмно‑жёлтый, остальные просто текст на жёлтом фоне */
        body.light-theme .panel-bottom .transport-class-option {
            color: rgba(0, 0, 0, 0.7);
        }
        
        body.light-theme .panel-bottom .transport-class-option.active {
            background: #e6b400 !important;
            color: #000000 !important;
        }

        body.light-theme .panel-bottom .order-button {
            background: #ffc800 !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            color: #000000 !important;
        }


        .location-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #10131d;
            padding: 32px;
            border-radius: 16px;
            z-index: 1000;
            text-align: center;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
            min-width: 280px;
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
        }

        .location-loading i {
            font-size: 32px;
            color: var(--accent-primary);
            margin-bottom: 16px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            font-size: 16px;
            font-weight: 500;
            color: #ffffff;
            margin-bottom: 8px;
        }

        .loading-subtext {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
        }


        #map .ymaps-2-1-79-zoom,
        #map .ymaps-2-1-79-geolocation {
            display: none !important;
        }


        .map-select-mode {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            backdrop-filter: blur(10px);
            padding: 14px 24px;
            border-radius: 16px;
            z-index: 100;
            display: none;
            border: 1px solid rgba(0, 0, 0, 0.06);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
            text-align: center;
            max-width: 340px;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .map-select-mode.active {
            display: flex;
        }

        .map-select-mode .title {
            color: #fc3f1e;
            font-weight: 700;
            font-size: 15px;
            margin-bottom: 6px;
        }

        body.light-theme .map-select-mode .title {
            color: #ffc800 !important;
        }

        .map-select-mode .hint {
            display: none;
        }


        .payment-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .payment-overlay.active {
            display: flex;
        }

        .payment-modal {
            width: 90%;
            max-width: 400px;
            background: var(--card-bg);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
            animation: modalSlideIn 0.3s ease-out;
            border: 1px solid var(--border-subtle);
            color: var(--text-primary);
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .payment-modal-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: radial-gradient(circle at top left, rgba(255, 216, 77, 0.12), transparent 60%);
        }

        .payment-modal-title {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .payment-modal-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(15, 18, 30, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .payment-modal-close:hover {
            background: rgba(20, 24, 40, 1);
            box-shadow: 0 0 14px rgba(255, 216, 77, 0.4);
            color: #fff;
        }

        .payment-methods {
            padding: 0;
            max-height: 400px;
            overflow-y: auto;
        }

        .payment-method-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(8, 10, 18, 0.95);
        }

        .payment-method-item:hover {
            background: #181b27;
        }

        .payment-method-item.active {
            background: rgba(255, 255, 255, 0.06);
            border-left: 3px solid var(--accent-primary);
        }

        .payment-method-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .payment-method-icon {
            width: 32px;
            height: 32px;
            background: rgba(252, 63, 30, 0.16);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff5b47;
            font-size: 14px;
        }

        .payment-method-icon.card {
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.8);
        }

        .payment-method-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .payment-method-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .payment-method-details {
            font-size: 12px;
            color: var(--text-muted);
        }

        .payment-method-check {
            color: var(--accent-primary);
            font-size: 14px;
        }

        .add-card-button {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px;
            color: #ff5b47;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(8, 10, 18, 0.95);
        }

        .add-card-button:hover {
            background: #181b27;
        }

        .add-card-icon {
            width: 32px;
            height: 32px;
            background: rgba(252, 63, 30, 0.16);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff5b47;
            font-size: 14px;
        }

        body.light-theme .add-card-icon {
            background: rgba(255, 200, 0, 0.12) !important;
            color: #ffc800 !important;
        }

        .add-card-text {
            font-size: 14px;
            font-weight: 500;
            color: #ff5b47;
        }

        body.light-theme .add-card-text {
            color: #ffc800 !important;
        }


        .add-card-form {
            padding: 20px;
        }

        .form-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 20px;
            color: #000;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            color: rgba(0, 0, 0, 0.6);
            margin-bottom: 6px;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e6e6e6;
            border-radius: 8px;
            font-size: 16px;
            font-family: inherit;
            transition: all 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: #fc3f1e;
        }

        .form-row {
            display: flex;
            gap: 16px;
        }

        .form-col {
            flex: 1;
        }

        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .form-button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .form-button.primary {
            background: #fc3f1e;
            color: white;
        }

        .form-button.primary:hover {
            background: #e0381b;
        }

        body.light-theme .form-button.primary {
            background: #ffc800 !important;
            color: #000000 !important;
        }

        body.light-theme .form-button.primary:hover {
            background: #e6b400 !important;
        }

        .form-button.secondary {
            background: #f2f2f2;
            color: #000;
        }

        .form-button.secondary:hover {
            background: #e6e6e6;
        }

        .card-delete {
            color: #fc3f1e;
            background: none;
            border: none;
            font-size: 12px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .card-delete:hover {
            background: rgba(252, 63, 30, 0.1);
        }


        @media (max-width: 768px) {
            :root {
                --topbar-height: 56px;
                --topbar-gap: 10px;
                --panel-left-gap: 0px;
                --panel-vertical-gap: 0px;
            }

            .topbar-wrap {
                left: 10px;
                right: 10px;
            }

            .topbar-nav {
                display: none;
            }

            .panel {
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                /* Держим небольшой зазор (16px) до верхней панели */
                height: var(
                    --panel-expanded-height,
                    calc(100vh - var(--topbar-height) - var(--topbar-gap) - 16px)
                );
                border-radius: 24px 24px 0 0;
                max-height: var(
                    --panel-expanded-height,
                    calc(100vh - var(--topbar-height) - var(--topbar-gap) - 16px)
                );
                box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
                transition: height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
                /* На мобилке панель тоже ниже плашки телефона */
                z-index: 50;
            }

            .panel.collapsed {
                height: var(--panel-collapsed-height, 420px);
                max-height: var(--panel-collapsed-height, 420px);
            }


            .panel.collapsed .options-section,
            .panel.collapsed .price-section,
            .panel.collapsed .add-stop,
            .panel.collapsed .transport-class-section,
            .panel.collapsed .payment-section,
            .panel.collapsed .phone-input-section {
                display: none;
            }


            .options-section,
            .price-section {
                transition: opacity 0.25s ease, transform 0.25s ease;
            }


            .panel.collapsed .panel-header,
            .panel.collapsed .address-selector,
            .panel.collapsed .order-section {
                display: block;
            }

            .phone-panel {
                top: calc(var(--topbar-gap) + var(--topbar-height) + 18px);
                left: 10px;
                right: auto;
                padding: 10px 16px;
                margin-left: 0;
                /* На мобильных тоже держим телефон поверх панели и кнопки */
                z-index: 150;
                transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
            }

            .panel-header {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 8px 0 4px;
                cursor: pointer;
                user-select: none;
                margin: 0 auto;
                width: 100%;
            }


            .panel-top {
                padding: 0 0 var(--panel-inset) 0;
                display: flex;
                flex-direction: column;
                align-items: center;
            }


            .panel.collapsed .panel-top {
                align-items: center;
                padding-bottom: 6px;
            }


            .address-selector {
                margin: 0 var(--panel-inset);
                width: calc(100% - 2 * var(--panel-inset));
                max-width: 100%;
            }

            .panel-handle {
                width: 40px;
                height: 4px;
                border-radius: 999px;
                background: linear-gradient(90deg, rgba(255, 216, 77, 0.9), rgba(255, 255, 255, 0.95));
                box-shadow: 0 0 12px rgba(255, 216, 77, 0.8);
                margin-bottom: 6px;
            }

            body.light-theme .panel-handle {
                background: rgba(0, 0, 0, 0.15);
                box-shadow: none;
            }

            .panel.collapsed .panel-header {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 100%;
                padding: 12px 0 8px;
            }

            .panel.collapsed .panel-handle {
                margin-left: auto;
                margin-right: auto;
            }

            .panel-header-title {
                font-size: 12px;
                font-weight: 500;
                color: rgba(0, 0, 0, 0.55);
                display: none;
            }


            .tariff-grid {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                gap: 10px;
                padding-bottom: 4px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }


            .tariff-section {
                padding: 8px 14px 10px;
                margin-top: 8px;
            }

            .panel.collapsed .tariff-section {
                padding: 6px 14px 4px;
                margin-top: 0;
            }

            .tariff-grid::-webkit-scrollbar {
                display: none;
            }

            .tariff-card {
                min-width: 110px;
                flex-shrink: 0;
            }

            .panel-content {
                gap: 4px;
            }


            .panel.collapsed .panel-content {
                display: flex;
                flex-direction: column;
                overflow: visible;
                flex-shrink: 0;
                padding-top: calc(var(--panel-top-h) + 4px);
                padding-bottom: 0;
            }

            .panel.collapsed .panel-content .address-field.add-stop,
            .panel.collapsed .panel-content .transport-class-section,
            .panel.collapsed .panel-content .options-section,
            .panel.collapsed .panel-content .payment-section,
            .panel.collapsed .panel-content .phone-input-section {
                display: none !important;
            }

            .panel.collapsed .panel-content .tariff-section {
                display: block;
            }

            /* Плашка выбора класса транспорта над кнопкой «Заказать» — мобильный вид */

            .panel-bottom {
                display: flex;
                flex-direction: column;
                gap: 0;
            }

            .panel-bottom .order-stack {
                display: flex;
                flex-direction: column;
                width: 100%;
                margin-top: 0;
                background: #f5c743;
                border-radius: 22px;
                overflow: hidden;
                border: none;
                box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
            }

            /* Небольшой отступ сверху только в развернутом состоянии */
            .panel:not(.collapsed) .panel-bottom .order-stack {
                margin-top: 10px;
            }

            .panel-bottom .transport-class-section {
                padding: 6px;
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                display: block;
            }
            
            .panel-bottom .transport-class-title {
                display: none;
            }
            
            .panel-bottom .transport-class-options {
                background: transparent !important;
                border-radius: 999px;
                border: none !important;
                padding: 3px;
                justify-content: stretch;
                box-shadow: none !important;
            }
            
            .panel-bottom .transport-class-option {
                padding: 8px 0;
                font-size: 13px;
                color: #3b2a00;
                border-radius: 999px;
            }
            
            .panel-bottom .transport-class-option + .transport-class-option::before {
                display: none;
            }
            
            .panel-bottom .transport-class-option.active {
                background: rgba(0, 0, 0, 0.16);
                color: #111111;
            }
            
            .panel-bottom .order-section {
                margin-top: 0;
            }
            
            .panel-bottom .order-button {
                border-radius: 0;
                box-shadow: none;
                background: #f5c743;
            }
            
            /* В светлой теме делаем мобильную плашку и кнопку единым жёлтым блоком,
               как в тёмной теме (без белой карточки вокруг переключателя классов). */
            body.light-theme .panel-bottom .order-stack {
                background: #ffc800;
            }
            
            body.light-theme .panel-bottom .transport-class-section {
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
            }
            
            body.light-theme .panel-bottom .transport-class-options {
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
            }
            
            body.light-theme .panel-bottom .transport-class-option {
                color: #3b2a00;
            }
            
            body.light-theme .panel-bottom .transport-class-option.active {
                background: rgba(0, 0, 0, 0.16) !important;
                color: #111111 !important;
            }
            
            body.light-theme .panel-bottom .order-button {
                background: #ffc800 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                color: #000000 !important;
            }


            .map-select-mode {
                width: 88%;
                max-width: 360px;
            }

            .map-controls {
                position: fixed !important;
                right: 12px !important;
                top: auto !important;
                bottom: 440px !important;
                transform: none !important;
                z-index: 50 !important;
                transition: bottom 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
            }
        }

        @media (max-width: 480px) {
            .phone-panel {
                left: 10px;

                top: calc(var(--topbar-gap) + var(--topbar-height) + 10px);
            }

            .form-row {
                flex-direction: column;
                gap: 12px;
            }
        }


        .ymaps-2-1-79-map-copyrights-promo,
        .ymaps-2-1-79-copyright__wrap {
            display: none !important;
        }


        .map-controls {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 15;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .map-zoom-capsule {
            display: flex;
            flex-direction: column;
            width: 44px;
            background: #11131b;
            border-radius: 22px;
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
            overflow: hidden;
            border: 1px solid var(--border-subtle);
        }

        .map-zoom-capsule button {
            width: 44px;
            height: 40px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-primary);
            padding: 0;
            transition: background 0.15s, color 0.15s;
        }

        .map-zoom-capsule button svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .map-zoom-capsule button:hover {
            background: rgba(255, 216, 77, 0.08);
        }

        .map-zoom-capsule button:active {
            background: rgba(255, 216, 77, 0.16);
        }

        .map-zoom-capsule .zoom-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.08);
        }

        .map-geo-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #11131b;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-primary);
            transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
        }

        .map-geo-btn:hover {
            background: #181b27;
            border-color: rgba(255, 216, 77, 0.45);
            box-shadow: 0 0 20px rgba(255, 216, 77, 0.55);
        }

        .map-geo-btn:active {
            background: #151822;
            box-shadow: 0 0 14px rgba(255, 216, 77, 0.4);
        }

        .map-geo-btn svg {
            width: 20px;
            height: 20px;
        }


        .panel-content {
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: absolute;
            inset: 0;
            background: var(--panel-bg);
            padding:
                calc(var(--panel-inset) + var(--panel-top-h) + 10px)
                var(--panel-inset)
                /* Увеличенный запас под высоту жёлтой панели
                   по умолчанию (для мобильной панели) */
                calc(var(--panel-inset) + var(--panel-bottom-h) + 60px)
                var(--panel-inset);
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        /* На десктопе делаем запас снизу меньше,
           чтобы блок с телефоном был ближе к жёлтой кнопке */
        @media (min-width: 769px) {
            .panel-content {
                padding:
                    calc(var(--panel-inset) + var(--panel-top-h) + 10px)
                    var(--panel-inset)
                    calc(var(--panel-inset) + var(--panel-bottom-h) + 16px)
                    var(--panel-inset);
            }
        }

        .panel-content::-webkit-scrollbar {
            width: 0;
            height: 0;
            display: none;
        }

        .panel-content::-webkit-scrollbar-track {
            background: transparent;
        }

        .panel-content::-webkit-scrollbar-thumb {
            background: transparent;
        }


        .map-marker {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -100%);
            z-index: 5;
            pointer-events: none;
            transition: all 0.3s ease;
        }


        .map-marker.moving {
            transform: translate(-50%, -120%);
        }

        .marker-pin {
            width: 48px;
            height: 48px;
            background: #fc3f1e;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            position: relative;
            box-shadow: 0 4px 16px rgba(252, 63, 30, 0.4);
            animation: markerBounce 0.5s ease-out;
        }

        body.light-theme .marker-pin {
            background: #fc3f1e !important;
            box-shadow: 0 4px 16px rgba(252, 63, 30, 0.4) !important;
        }

        @keyframes markerBounce {
            0% {
                transform: rotate(-45deg) translateY(-20px);
                opacity: 0;
            }
            50% {
                transform: rotate(-45deg) translateY(5px);
            }
            100% {
                transform: rotate(-45deg) translateY(0);
                opacity: 1;
            }
        }

        .marker-pin::before {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            background: #fff;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .marker-shadow {
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 32px;
            height: 8px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 50%;
            filter: blur(6px);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .map-marker.moving .marker-shadow {
            transform: translateX(-50%) scale(0.7);
            opacity: 0.6;
        }


        .map-marker.hidden {
            opacity: 0;
            pointer-events: none;
        }