
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
	
	.modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.4);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(4px);
    }

    .error-box {
      background: linear-gradient(145deg, #1a3a5f, #0d243d);
      border-radius: 16px;
      width: 90%;
      max-width: 400px;
      padding: 24px;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .error-box::before {
      content: '';
      position: absolute;
      top: -10px;
      left: -10px;
      right: -10px;
      bottom: -10px;
      background: radial-gradient(circle, #ffeb3b 0%, transparent 70%);
      opacity: 0.1;
      pointer-events: none;
    }

    .snow {
      position: absolute;
      color: #fff;
      font-size: 16px;
      animation: fall 5s linear infinite;
      opacity: 0.7;
    }

    @keyframes fall {
      0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: translateY(110%) rotate(360deg);
        opacity: 0;
      }
    }

    .error-icon {
      font-size: 48px;
      color: #ff5252;
      margin-bottom: 16px;
    }

    .error-title {
      color: #ff5252;
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 8px;
      text-shadow: 0 2px 4px rgba(255, 82, 82, 0.3);
    }

    .error-message {
      color: #ffffff;
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .close-btn {
      background-color: #ff5252;
      color: white;
      border: none;
      border-radius: 24px;
      padding: 12px 24px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      outline: none;
    }

    .close-btn:hover {
      background-color: #d50000;
    }
	
	body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(to bottom, #003366, #001a33);
            color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            /*overflow: hidden;/**/
			overflow: auto;/**/
        }

        .top-controls {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 10px 20px;
            text-align: right;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.3);
        }

        .music-btn {
            background: #00aaff;
            color: white;
            border: none;
            padding: 8px 16px;
            font-size: 1rem;
            border-radius: 20px;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .music-btn:hover {
            background: #0088cc;
            transform: scale(1.05);
        }

        .container {
            text-align: center;
            padding: 20px;
            z-index: 1;
            width: 90%;
            max-width: 500px;
            margin-top: 60px;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        p {
			font-size: 0.9rem;
            line-height: 1.6;
            margin: 0 auto 20px;
        }
		
		.prt {
            font-size: 1.2rem;
            line-height: 1.6;
            margin: 0 auto 20px;
        }
		
		.response {
			text-align: center;
            font-size: 1.2rem;
            line-height: 1.6;
            margin: 0 auto 20px;
        }

        .form-group {
            margin-bottom: 15px;
            text-align: left;
            width: 100%;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-size: 1rem;
            opacity: 0.9;
        }

        input[type="text"],
        input[type="tel"] {
            width: 100%;
            padding: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        input[type="text"]:focus,
        input[type="tel"]:focus {
            outline: none;
            border-color: #00aaff;
            background: rgba(0, 170, 255, 0.2);
        }

        button {
            background: #00aaff;
            color: white;
            border: none;
            padding: 14px 28px;
            font-size: 1.1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s ease;
            margin-top: 10px;
            width: 100%;
        }
		
		.butt1 {
            background: #00aaff;
            color: white;
            border: none;
            padding: 14px 28px;
            font-size: 1.1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s ease;
            margin-top: 10px;
            width: 100%;
        }

        button:hover {
            background: #0088cc;
        }

        .snowflake {
            position: absolute;
            color: white;
            font-size: 1rem;
            opacity: 0.8;
            pointer-events: none;
            user-select: none;
            top: -10px;
            animation: fall-slow 10s linear infinite;
        }

        @keyframes fall-slow {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            100% {
                transform: translateY(110vh) rotate(360deg);
            }
        }

        audio {
            display: none;
        }
		
		/*===================*/
		.gifts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            max-width: 400px;
            margin: 0 auto;
        }

        .gift-item {
            background: linear-gradient(145deg, #8b4513, #d2691e);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .gift-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .gift-item.selected {
            border-color: #ffd700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
            transform: scale(1.05);
        }

        .gift-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
        }

        .gift-name {
            font-weight: bold;
            font-size: 0.9rem;
            color: #fff;
        }

        /* Кнопка */
        .submit-btn {
            display: block;
            width: 80%;
            max-width: 300px;
            margin: 30px auto 0;
            padding: 15px;
            background: linear-gradient(45deg, #ff6b6b, #ee5253);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
        }



        /* Адаптивность */
        @media (max-width: 480px) {
            h1 { font-size: 1.7rem; }
            p { font-size: 0.9rem; }
			.prt { font-size: 0.9rem; }
            /*.gifts-grid { grid-template-columns: 1fr; }*/
			.gifts-grid { 
				grid-template-columns: 1fr 1fr; 
				gap: 10px;
				}
			.gift-item {
				padding: 12px; 
			}
			
			.error-box {padding: 20px;}
			.error-title {font-size: 18px;}
			.error-message {font-size: 14px;}
			.emoji {font-size: 2rem;}
			.ename {font-size: 0.7rem;}
        }
		
		
		/*Адаптивность по 2 подарка в линию на мобильном
		/*@media (max-width: 480px) {
			h1 { 
				font-size: 1.7rem; 
			}
			p { 
				font-size: 0.9rem; 
			}
			
			.gifts-grid { 
				grid-template-columns: 1fr 1fr; 
				gap: 10px;
				}
			
			
			.gift-item {
				padding: 12px; 
			}
		}*/
		
		
		
		/*================================*/
		

		
		
		
   .loader-overlay {
      position: fixed; 
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .loader {
      text-align: center;
    }

    .loader__text {
      color: #fff;
      font-family: Arial, sans-serif;
      font-size: 20px;
      margin-bottom: 20px;
    }

    .loader__snow {
      display: inline-block;
      width: 10px;
      height: 10px;
      background-color: #fff;
      border-radius: 50%;
      animation: falll 2s linear infinite;
      opacity: 0;
    }

    /* Создаём несколько снежинок с разными задержками */
    .loader__snow:nth-child(1) { animation-delay: 0s; }
    .loader__snow:nth-child(2) { animation-delay: 0.2s; }
    .loader__snow:nth-child(3) { animation-delay: 0.4s; }
    .loader__snow:nth-child(4) { animation-delay: 0.6s; }
    .loader__snow:nth-child(5) { animation-delay: 0.8s; }

    @keyframes falll {
      0% {
        transform: translateY(-20px);
        opacity: 1;
      }
      100% {
        transform: translateY(100px);
        opacity: 0;
      }
    }
	
	
	
	/*==========================*/
	
	
	.emoji-container {
      position: relative;
      width: 100vw;
      height: 100vh;
    }

    .emoji-item {
      position: absolute;
      text-align: center;
      user-select: none;
      touch-action: none;
      /* Добавляем небольшую тень для визуального отделения */
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .emoji {
      font-size: 2.5rem;
      display: block;
    }

    .ename {
      font-size: 0.8rem;
      color: #444;
      margin-top: 0.3rem;
      white-space: nowrap;
    }
	
	
	
	/*==============================================*/

	
	
	.h1-christmas {
  display: inline-block;
  font-family: 'Comic Sans MS', Dancing Script, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #e74c3c; /* насыщенный красный */
  text-shadow: 
    0 0 5px #f1c40f,           /* золотистое свечение */
    0 0 10px #f39c12,      /* оранжевое свечение */
    2px 2px 8px rgba(0, 0, 0, 0.3); /* мягкая тень */
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  animation: christmasGlow 2s ease-in-out infinite alternate;
}

/* Анимация мягкого мерцания */
@keyframes christmasGlow {
  0% {
    text-shadow:
      0 0 5px #f1c40f,
      0 0 10px #f39c12,
      2px 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  100% {
    text-shadow:
      0 0 15px #f1c40f,
      0 0 25px #f39c12,
      3px 3px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
  }
}

/* Добавление новогодних элементов по бокам */
.h1-christmas::before,
.h1-christmas::after {
  content: '🎄';
  display: inline-block;
  margin: 0 10px;
  font-size: 2rem;
  animation: snowfall 3s linear infinite;
}

.h1-christmas::after {
  animation-delay: 1.5s;
}



/*===================================*/


.p-vintage-typewriter {
  font-family: 'Lucida Console', Monaco, monospace;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  background-color: #fdf5e6; /* кремовый, как старая бумага */
  padding: 12px;
  border: 1px solid #cda;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}