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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 50%, #8b0000 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        .snowflake {
            position: fixed;
            top: -10px;
            color: white;
            font-size: 1em;
            pointer-events: none;
            z-index: 1000;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
            animation: fall linear infinite;
        }

        @keyframes fall {
            to {
                transform: translateY(100vh);
            }
        }

        .snow-ground {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 0;
            pointer-events: none;
            z-index: 999;
            overflow: hidden;
        }

        .snow-pile {
            position: absolute;
            bottom: 0;
            color: white;
            font-size: 1.2em;
            text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
            animation: pileUp 0.5s ease-out;
        }

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

        .container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 25px;
            padding: 40px;
            max-width: 690px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
            border: 5px solid #c41e3a;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            color: #c41e3a;
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .header p {
            color: #2d5f3f;
            font-size: 1.1em;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
        }

        .tab {
            flex: 1;
            padding: 15px;
            background: #f0f0f0;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1em;
            font-weight: bold;
            transition: all 0.3s;
            color: #666;
        }

        .tab.active {
            background: linear-gradient(135deg, #c41e3a, #8b0000);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

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

        label {
            display: block;
            margin-bottom: 8px;
            color: #2d5f3f;
            font-weight: bold;
        }

        input, textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #d4af37;
            border-radius: 10px;
            font-size: 1em;
            transition: all 0.3s;
        }

        input:focus, textarea:focus {
            outline: none;
            border-color: #c41e3a;
            box-shadow: 0 0 10px rgba(196, 30, 58, 0.2);
        }

        .btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #2d5f3f, #1a472a);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(45, 95, 63, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #c41e3a, #8b0000);
        }

        .participants-list {
            background: #f9f9f9;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .participant-item {
            background: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 4px solid #d4af37;
        }

        .participant-info {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .tree {
            font-size: 1.2em;
            line-height: 1;
        }

        .details {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            min-width: 0;
        }

        .name {
            font-weight: 500;
        }

        .email {
            color: #666;
            word-break: break-all;
        }

        .remove-btn {
            background: #c41e3a;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
        }

        .remove-btn:hover {
            background: #8b0000;
        }

        .message {
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            text-align: center;
            font-weight: bold;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            border: 2px solid #c3e6cb;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            border: 2px solid #f5c6cb;
        }

        .santa-icon {
            font-size: 3em;
            text-align: center;
            margin-bottom: 20px;
        }

        .result-box {
            background: linear-gradient(135deg, #fff5e6, #ffe6e6);
            border: 3px solid #d4af37;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            text-align: center;
        }

        .result-box h3 {
            color: #c41e3a;
            margin-bottom: 15px;
        }

        .result-box p {
            font-size: 1.2em;
            color: #2d5f3f;
            font-weight: bold;
        }

        /* Адаптивная верстка для мобильных устройств */
        @media screen and (max-width: 768px) {
            body {
                padding: 10px;
            }

            .container {
                padding: 25px 20px;
                border-radius: 20px;
                border-width: 3px;
            }

            .header h1 {
                font-size: 1.8em;
                line-height: 1.2;
            }

            .header p {
                font-size: 1em;
            }

            .santa-icon {
                font-size: 2.5em;
            }

            .tabs {
                flex-direction: column;
                gap: 8px;
            }

            .tab {
                padding: 12px;
                font-size: 0.95em;
            }

            input, textarea {
                padding: 10px;
                font-size: 16px; /* Предотвращает зум на iOS */
            }

            .btn {
                padding: 12px;
                font-size: 1em;
            }

            .participant-item {
                flex-wrap: wrap;
                gap: 10px;
            }

            .participant-info {
                align-items: flex-start;
            }

            .tree {
                font-size: 2.5em;
                line-height: 1;
            }

            .details {
                flex-direction: column;
                gap: 2px;
                font-size: 0.95em;
            }

            .email {
                font-size: 0.9em;
            }

            .remove-btn {
                width: 100%;
            }

            .result-box {
                padding: 20px;
            }

            .result-box p {
                font-size: 1.1em;
            }
        }

        @media screen and (max-width: 480px) {
            .container {
                padding: 20px 15px;
            }

            .header h1 {
                font-size: 1.5em;
            }

            .header p {
                font-size: 0.95em;
            }

            .santa-icon {
                font-size: 2em;
            }

            .tab {
                padding: 10px;
                font-size: 0.9em;
            }

            .result-box h3 {
                font-size: 1.2em;
            }

            .result-box p {
                font-size: 1em;
            }
        }
