/* =========================
   СОВРЕМЕННЫЙ ДИЗАЙН 2025
   ========================= */
* {
  box-sizing: border-box;
}

/* ===== БАЗА ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
  color: #1f2937;
  min-height: 100vh;
}

/* ===== ШАПКА ===== */
header.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 48px 24px 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  position: relative;
}

header.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

header.header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header.header p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #6b7280;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
  max-width: 1400px;
  margin: 60px auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* ===== КАРТОЧКИ ===== */
.calculator {
  min-height: 180px;
  padding: 32px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.calculator:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* ===== ТЕКСТ ===== */
.calculator h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.calculator p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}

/* ===== ЦВЕТА КАРТОЧЕК ===== */

/* 1. Газель — серый */
.main .calculator:nth-child(1){
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

/* 2. Прицеп — тёмно-серый */
.main .calculator:nth-child(2){
  background: linear-gradient(135deg, #4b5563 0%, #111827 100%);
}

/* 3. Бассейны — голубой */
.main .calculator:nth-child(3){
  background: linear-gradient(135deg, #7dd3fc 0%, #0284c7 100%);
}

/* 4. Наши шторы брезент — болотный */
.main .calculator:nth-child(4){
  background: linear-gradient(135deg, #6b8e23 0%, #3f6212 100%);
}

/* 5. НЕ наши шторы брезент — болотный */
.main .calculator:nth-child(5){
  background: linear-gradient(135deg, #6b8e23 0%, #3f6212 100%);
}

/* 6. Шторы Oxford — бежевый */
.main .calculator:nth-child(6){
  background: linear-gradient(135deg, #f5f5dc 0%, #e5d3b3 100%);
}

/* 7. Батут — оранжевый */
.main .calculator:nth-child(7){
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

/* 8. Покрытие борцовское — жёлтый */
.main .calculator:nth-child(8){
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
}

/* 9. Сцены — фиолетовый */
.main .calculator:nth-child(9){
  background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%);
}


/* ===== ТЕКСТ ДЛЯ БЕЖЕВОЙ КАРТОЧКИ ===== */
.main .calculator:nth-child(6) h2,
.main .calculator:nth-child(6) p,
.main .calculator:nth-child(8) h2,
.main .calculator:nth-child(8) p{
  color: #1f2937;
  text-shadow: none;
}

/* ===== ДЕКОР ===== */
.calculator::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  header.header h1 { font-size: 2rem; }
  .main { grid-template-columns: 1fr; padding: 0 20px; }
  .calculator { min-height: 160px; }
}