﻿        :root {
            /* Цвета. Бренд — бирюзово-зелёный градиент.
               --accent-info: основной "акцентный" цвет (ссылки, иконки, кнопки-аутлайны).
               --accent-success: статусный зелёный (передано / всё в порядке) — НЕ ТРОГАТЬ. */
            --brand:        #2cb67d;
            --brand-hex:    #2cb67d;
            --brand-dark:   #1f9069;
            --brand-bs:     #2ec4b6;
            --brand-grad:   linear-gradient(90deg, #2cb67d 0%, #2ec4b6 100%);
            --brand-grad-hover: linear-gradient(90deg, #28a872 0%, #29b3a7 100%);
            --surface: #ffffff;
            --bg: #eef1f6;
            --canvas: #f3f5f9;
            --text: #1f3540;
            --text-muted: #6f7e8a;
            --text-on-brand: #ffffff;
            --border: #dde3e9;
            --danger-bg: #f8d7da;
            --danger-border: #f5c6cb;
            --overlay: rgba(15, 25, 40, 0.55);
            --accent-success: #1f9d5d;
            --accent-info: #2cb67d;
            --accent-info-hover: #28a872;
            --accent-warning: #d28a1f;
            --accent-danger: #c23645;

            /* Радиусы */
            --radius-sm: 5px;
            --radius: 10px;
            --radius-pill: 15px;

            /* Тени */
            --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.1);
            --shadow-container: 0 0 20px rgba(0, 0, 0, 0.2);

            /* Отступы */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 24px;
            --space-6: 32px;

            /* Touch target */
            --touch-target: 44px;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            background-color: var(--bg);
            color: var(--text-on-brand);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        main {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 24px;
            padding-bottom: 24px;
        }

        .container {
            width: 90%;
            max-width: 600px;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(20, 60, 100, 0.08);
            background-color: var(--canvas);
            padding: 22px;
            color: var(--text);
        }
        
        @media (min-width: 768px) { .container.wide { max-width: 1000px; } }

        h2 {
            font-size: 1.5em;
            margin-bottom: 20px;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 15px;
        }

        h1 {
            font-size: 2.5em;
            margin-bottom: 30px;
            color: var(--text);
        }

        label {
            display: block;
            margin-bottom: 5px;
            color: var(--text);
        }

        input[type="text"] {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            background-color: rgb(255, 250, 250);
            color: #333;
        }

        input[type="tel"] {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            background-color: rgb(255, 250, 250);
            color: #333;
        }
        
        input[type="email"] {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            background-color: rgb(255, 250, 250);
            color: #333;
        }
        
        input[type="password"] {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            background-color: rgb(255, 250, 250);
            color: #333;
        }
        
        button {
            padding: 12px 20px;
            background-color: var(--surface);
            color: var(--accent-info);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.18s ease, color 0.18s ease;
        }

        button:hover {
            background-color: #e8f7f0;
            color: var(--accent-info-hover);
        }

        .error {
            color: #ff4d4f;
            margin-top: 10px;
            text-shadow: none;
        }

        .cooldown-notice {
            margin: 0 0 12px;
            padding: 10px 12px;
            background: #fff3e6;
            border: 1px solid #ffd9a8;
            color: #8a4b00;
            border-radius: 8px;
            font-size: 0.9rem;
            line-height: 1.35;
        }

        .hidden {
            display: none;
        }

        /* === Полноэкранная заглушка «Сайт на обслуживании» (503) ===
           Создаётся динамически из app.js → showMaintenancePage().
           Поверх всего: fixed + z-index выше любого модального окна. */
        #maintenance-overlay {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, #f3f5f9 0%, #e8f7f0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 99999;
            overflow: hidden;
            animation: maintFadeIn .25s ease both;
        }
        /* Пока overlay активен — гасим прокрутку страницы под ним,
           иначе остаётся скролл от исходного контента (в т.ч. body height). */
        html.is-maintenance,
        html.is-maintenance body { overflow: hidden !important; height: 100%; }
        .maintenance-card {
            max-width: 480px;
            width: 100%;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 18px;
            padding: 32px 28px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(20, 60, 100, 0.12);
        }
        .maintenance-icon {
            width: 80px;
            height: 80px;
            border-radius: 20px;
            background: #fff4d6;
            color: #b06f00;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 18px;
        }
        .maintenance-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f3540;
            margin: 0 0 12px;
        }
        .maintenance-text {
            font-size: 1rem;
            color: var(--text);
            line-height: 1.45;
            margin: 0 0 8px;
        }
        .maintenance-sub {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin: 0 0 20px;
        }
        .maintenance-btn {
            background: var(--brand-grad);
            color: #fff;
            border: none;
            padding: 12px 22px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 6px 16px rgba(44, 182, 125, 0.28);
            transition: transform .18s, box-shadow .18s;
        }
        .maintenance-btn:hover {
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(44, 182, 125, 0.38);
        }
        .maintenance-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 10px rgba(44, 182, 125, 0.28);
        }
        @keyframes maintFadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
