/* ===== ГЛОБАЛЬНЫЕ НАСТРОЙКИ (СВЕТЛАЯ ТЕМА) ===== */
:root {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-light: #e2e6ed;
  --text-primary: #1a1d23;
  --text-secondary: #5a6470;
  --text-muted: #8a94a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --green: #00b894;
  --green-glow: rgba(0, 184, 148, 0.15);
  --orange: #fdcb6e;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== ШАПКА (РАЗМЫТАЯ + ЗАКРУГЛЕННАЯ R=16) ===== */
.glass-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  margin: 12px 20px 24px 20px;
  transition: var(--transition);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

/* Логотип */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.header-logo .minecraft-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.header-logo span {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Навигация */
.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.header-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* КНОПКИ В ШАПКЕ (ШИРЕ) */
.header-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 25px var(--accent-glow);
  min-width: 120px;
}

.header-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px var(--accent-glow);
  background: #7c6df0;
}

.header-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 10px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
}

.header-btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== КОНТЕЙНЕР ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ===== ГЕРОЙ (ЗАКРУГЛЁННЫЙ) ===== */
.hero {
  background: linear-gradient(135deg, #ffffff, #f0f2f8);
  border-radius: var(--radius);
  padding: 48px 52px;
  margin-top: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.15;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 8px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== КНОПКИ (ШИРЕ) ===== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  min-width: 160px;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px var(--accent-glow);
  background: #7c6df0;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 25px var(--green-glow);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px var(--green-glow);
  background: #00d2a0;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ===== ЗАГОЛОВКИ ===== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ===== КАРТОЧКИ ТОВАРОВ (ЗАКРУГЛЁННЫЕ R=16) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
}

.product-card .badge-sale {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(108, 92, 231, 0.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-price .old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

.product-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 6px;
  box-shadow: 0 0 20px var(--accent-glow);
  min-width: 160px;
}

.product-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px var(--accent-glow);
  background: #7c6df0;
}

.product-btn-green {
  background: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

.product-btn-green:hover {
  background: #00d2a0;
  box-shadow: 0 0 35px var(--green-glow);
}

/* ===== EASYDONATE БЛОК (ЗАКРУГЛЁННЫЙ) ===== */
.easydonate-block {
  background: linear-gradient(135deg, #ffffff, #f8f9fc);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.easydonate-block .info h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.easydonate-block .info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.easydonate-block .badge-ed {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ===== КАРТОЧКИ СТАТИСТИКИ (ЗАКРУГЛЁННЫЕ) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-card .label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ===== КАРТОЧКИ (ЗАКРУГЛЁННЫЕ) ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 36px 24px 24px;
  margin-top: 48px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== БЛОК СОЦСЕТЕЙ (ЗАКРУГЛЁННЫЙ) ===== */
.social-block {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 24px 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-hover);
}

.social-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: var(--transition);
}

.social-item:hover .social-icon {
  background: var(--accent);
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
  transition: var(--transition);
}

.social-item:hover .social-icon svg {
  fill: #fff;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.social-handle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .glass-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    margin: 10px 12px 20px 12px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .header-btn,
  .header-btn-outline {
    padding: 8px 20px;
    min-width: 100px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 28px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 28px;
    min-width: 140px;
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-item {
    padding: 10px 16px 10px 14px;
    width: 100%;
    justify-content: center;
  }

  .social-block {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .easydonate-block {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .footer {
    padding: 24px 16px 20px;
  }
}

@media (max-width: 480px) {
  .glass-header {
    padding: 12px 14px;
    margin: 8px 8px 16px 8px;
  }

  .header-nav a {
    font-size: 0.8rem;
  }

  .header-btn,
  .header-btn-outline {
    padding: 6px 16px;
    min-width: 80px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 20px;
    min-width: 120px;
    font-size: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .stat-card .number {
    font-size: 1.5rem;
  }

  .social-item {
    padding: 8px 14px 8px 12px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    padding: 4px;
  }

  .product-btn {
    padding: 10px 20px;
    min-width: 120px;
    font-size: 0.8rem;
  }
}