﻿* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #f5f7fa;
            --bg-secondary: #ffffff;
            --border-light: #dbe4ee;
            --border-hover: #a0c4e2;
            --accent-blue: #5b9bd5;
            --accent-light: #e8f0fe;
            --text-primary: #2c3e50;
            --text-secondary: #6b7b8b;
            --text-light: #95a5a6;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
            --header-height: 64px;
            --bottom-nav-height: 72px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            font-weight: 400;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        h1, h2, h3 {
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        /* ===== HEADER ===== */
        .header {
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-light);
            padding: 0 20px;
            height: var(--header-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.92);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            font-size: 26px;
            color: var(--accent-blue);
        }

        .logo-text {
            font-size: 20px;
            font-weight: 400;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .logo-text span {
            font-weight: 300;
            color: var(--text-light);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .header-actions a {
            color: var(--text-secondary);
            font-size: 20px;
            transition: all 0.2s ease;
            text-decoration: none;
            position: relative;
        }

        .header-actions a:hover {
            color: var(--accent-blue);
        }

        .cart-badge {
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -6px;
            right: -8px;
            background: var(--accent-blue);
            color: white;
            font-size: 11px;
            font-weight: 400;
            width: 18px;
            height: 18px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid white;
        }

        .desktop-nav {
            display: flex;
            gap: 32px;
            margin-left: 40px;
        }

        .desktop-nav a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 400;
            font-size: 16px;
            transition: all 0.2s ease;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
        }

        .desktop-nav a:hover,
        .desktop-nav a.active {
            color: var(--accent-blue);
            border-bottom-color: var(--accent-blue);
        }

        .header-left {
            display: flex;
            align-items: center;
        }

        /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
        .main-content {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .auth-container {
            width: 100%;
            max-width: 440px;
        }

        .auth-card {
            background: var(--bg-secondary);
            border-radius: 24px;
            border: 1px solid var(--border-light);
            padding: 32px;
            box-shadow: var(--shadow-sm);
        }

        /* Переключатель форм */
        .auth-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 28px;
            background: var(--bg-primary);
            padding: 4px;
            border-radius: 16px;
            border: 1px solid var(--border-light);
        }

        .auth-tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.2s;
            border: none;
            background: transparent;
        }

        .auth-tab:hover {
            color: var(--accent-blue);
        }

        .auth-tab.active {
            background: white;
            color: var(--accent-blue);
            box-shadow: var(--shadow-sm);
        }

        /* Формы */
        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .form-input-wrapper {
            position: relative;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            padding-left: 44px;
            border: 1px solid var(--border-light);
            border-radius: 14px;
            font-size: 15px;
            background: var(--bg-primary);
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s;
        }

        .form-input:focus {
            border-color: var(--accent-blue);
            background: white;
            box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
        }

        .form-input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 16px;
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            cursor: pointer;
            font-size: 16px;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: var(--accent-blue);
        }

        .form-hint {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 4px;
        }

        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            font-size: 14px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            cursor: pointer;
        }

        .checkbox-label input {
            width: 18px;
            height: 18px;
            accent-color: var(--accent-blue);
            cursor: pointer;
        }

        .forgot-link {
            color: var(--accent-blue);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        .btn {
            width: 100%;
            padding: 14px;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--accent-blue);
            color: white;
        }

        .btn-primary:hover {
            background: #4a8bc7;
            box-shadow: var(--shadow-md);
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid var(--border-light);
            color: var(--text-secondary);
        }

        .btn-secondary:hover {
            border-color: var(--accent-blue);
            color: var(--accent-blue);
            background: var(--accent-light);
        }

        /* Социальные кнопки */
        .social-section {
            margin-top: 24px;
            text-align: center;
        }

        .social-text {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 16px;
            position: relative;
        }

        .social-text::before,
        .social-text::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30%;
            height: 1px;
            background: var(--border-light);
        }

        .social-text::before {
            left: 0;
        }

        .social-text::after {
            right: 0;
        }

        .social-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border: 1px solid var(--border-light);
            border-radius: 14px;
            background: white;
            color: var(--text-secondary);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .social-btn:hover {
            border-color: var(--accent-blue);
            color: var(--accent-blue);
            background: var(--accent-light);
        }

        .social-btn i {
            font-size: 18px;
        }

        /* Согласие */
        .agree-text {
            margin-top: 20px;
            font-size: 12px;
            color: var(--text-light);
            text-align: center;
        }

        .agree-text a {
            color: var(--accent-blue);
            text-decoration: none;
        }

        .agree-text a:hover {
            text-decoration: underline;
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-light);
            padding: 28px 20px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }

        .footer-copyright {
            color: var(--text-light);
            font-size: 14px;
            font-weight: 400;
        }

        .footer-links {
            display: flex;
            gap: 28px;
            flex-wrap: wrap;
        }

        .footer-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 400;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--accent-blue);
        }

        .payment-icons {
            display: flex;
            gap: 16px;
            color: var(--text-light);
            font-size: 22px;
        }

        /* ===== НИЖНЕЕ МЕНЮ (МОБИЛЬНОЕ) ===== */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border-light);
            padding: 8px 16px;
            z-index: 99;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
        }

        .bottom-nav-inner {
            display: flex;
            align-items: center;
            justify-content: space-around;
            max-width: 500px;
            margin: 0 auto;
            height: 100%;
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--text-light);
            font-size: 12px;
            transition: color 0.2s;
            gap: 4px;
            position: relative;
        }

        .bottom-nav-item i {
            font-size: 22px;
        }

        .bottom-nav-item.active {
            color: var(--accent-blue);
        }

        .bottom-nav-item span {
            font-weight: 400;
            font-size: 11px;
        }

        .bottom-nav-badge {
            position: absolute;
            top: -2px;
            right: -8px;
            background: var(--danger);
            color: white;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border: 1px solid white;
        }

        /* Модальное окно восстановления пароля */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 24px;
            max-width: 400px;
            width: 90%;
            padding: 28px;
            position: relative;
            border: 1px solid var(--border-light);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-light);
            cursor: pointer;
        }

        .modal-title {
            font-size: 20px;
            margin-bottom: 16px;
            font-weight: 500;
        }

        .modal-text {
            color: var(--text-secondary);
            margin-bottom: 20px;
            font-size: 14px;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: calc(var(--bottom-nav-height) + 20px);
            left: 50%;
            transform: translateX(-50%);
            background: var(--text-primary);
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 14px;
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.3s;
            box-shadow: var(--shadow-lg);
            white-space: nowrap;
        }

        .toast.show {
            opacity: 1;
        }

        /* Адаптивность */
        @media (max-width: 767px) {
            .header {
                padding: 0 12px;
            }
            
            .desktop-nav {
                display: none;
            }
            
            .main-content {
                padding: 16px;
                align-items: flex-start;
            }
            
            .auth-card {
                padding: 24px 20px;
            }
            
            .footer {
                padding-bottom: calc(var(--bottom-nav-height) + 20px);
            }
            
            .bottom-nav {
                display: block;
            }
            
            .footer-links {
                margin-top: 16px;
                width: 100%;
            }
            
            .social-text::before,
            .social-text::after {
                width: 25%;
            }
        }

        @media (max-width: 380px) {
            .auth-card {
                padding: 20px 16px;
            }
            
            .social-buttons {
                flex-direction: column;
            }
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .auth-form.active {
            animation: fadeIn 0.3s ease;
        }
