/* === Новогодняя карточка Дед Мороз и Снегурочка === */

.ny-hero {
  margin: 40px 0;
  position: relative;
}

.ny-card {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1f5fe 50%, #fff 100%);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Снежинки фон */
.ny-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  opacity: 0.4;
  pointer-events: none;
  animation: snowfall 20s linear infinite;
}

@keyframes snowfall {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* Контент карточки */
.ny-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.ny-image-section {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.ny-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Легкое сияние на фото */
.ny-image-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
  pointer-events: none;
}

.ny-text-section {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.ny-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ny-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2;
}

.ny-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.ny-price {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin: 8px 0;
}

.ny-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ny-btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.ny-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ny-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.ny-btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

.ny-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 87, 108, 0.4);
}

/* Декоративная снежинка над "Популярными программами" */
.ny-section-decoration {
  text-align: center;
  margin: 50px 0 20px 0;
  font-size: 32px;
  opacity: 0.6;
  animation: rotate-snowflake 10s linear infinite;
}

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

/* Модальное окно */
.ny-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.ny-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ny-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ny-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.ny-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.ny-modal-header {
  padding: 40px 40px 20px;
  background: linear-gradient(135deg, #f3e5f5 0%, #e1f5fe 100%);
}

.ny-modal-body {
  padding: 30px 40px 40px;
}

.ny-modal-title {
  font-size: 32px;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ny-modal-text {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin: 20px 0;
}

.ny-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
}

.ny-package {
  background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%);
  padding: 24px;
  border-radius: 16px;
  border: 2px solid #e1bee7;
}

.ny-package-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #667eea;
}

.ny-package-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.ny-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.ny-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ny-gallery img:hover {
  transform: scale(1.05);
}

/* Адаптив */
@media (max-width: 900px) {
  .ny-content {
    grid-template-columns: 1fr;
  }
  
  .ny-image-section {
    min-height: 300px;
  }
  
  .ny-text-section {
    padding: 32px 24px;
  }
  
  .ny-packages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ny-card {
    border-radius: 16px;
  }
  
  .ny-text-section {
    padding: 24px 20px;
  }
  
  .ny-title {
    font-size: 24px;
  }
  
  .ny-actions {
    flex-direction: column;
  }
  
  .ny-btn {
    width: 100%;
    text-align: center;
  }
  
  .ny-modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .ny-modal-header,
  .ny-modal-body {
    padding: 24px 20px;
  }
  
  .ny-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .ny-gallery img {
    height: 150px;
  }
}

