/* index.css — стили только для главной страницы */
/* Цветовая палитра: фиолетово-розовая магия + восточная нежность */
:root {
  --primary: #a78bfa;          /* основной фиолетовый */
  --primary-dark: #7c3aed;     /* насыщенный фиолетовый */
  --accent: #FF8bfa;           /* розово-сакуровый акцент */
  --secondary: #2563eb;        /* голубой-синий (как ивенты и VK) */
  --text-dark: #22222a;
  --text-light: #e0e7ff;
  --bg-light: #fbfcfe;
  --shadow-light: rgba(44,62,80,0.08);
  --shadow-mid: rgba(44,62,80,0.13);
  --shadow-deep: rgba(0,0,0,0.15);
}

/* ——— ОБЩИЕ СТИЛИ ——— */
body {
  background-color: #fafbff;
  color: var(--text-dark);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ——— ГЛАВНЫЙ БАННЕР ——— */
.main-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px var(--shadow-mid);
  isolation: isolate;
}

/* Фон с текстурой и слоем сакуры */
.main-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    url('/static/img/sakura-top-left.svg') no-repeat 5% 10%,
    url('/static/img/sakura-bottom-right.svg') no-repeat 90% 85%,
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent),
    url('/static/img/les.jpg') center/cover;
  filter: brightness(0.65) contrast(1.1);
  z-index: -1;
}

.main-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 56px 48px;
  max-width: 560px;
  backdrop-filter: blur(4px);
  background: rgba(10, 5, 20, 0.32);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.main-banner h1 {
  font-size: 2.6em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.yokai-accent {
  color: var(--accent);
  background: linear-gradient(90deg, #FF8bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 139, 250, 0.3);
}

.main-banner p {
  font-size: 1.2em;
  margin-bottom: 28px;
  color: var(--text-light);
  opacity: 0.95;
  line-height: 1.5;
}

.main-banner-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ——— КНОПКИ ——— */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.05em;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-main::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-main:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-main:hover::after {
  opacity: 1;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  font-weight: 700;
}

.btn-light:hover {
  background: white;
  color: #4c1d95;
  border-color: var(--primary-dark);
}

/* ——— СЕКЦИЯ: ПОЧЕМУ ПРИСОЕДИНИТЬСЯ? ——— */
.features h2,
.events h2,
.cta h2,
.vk-block-title {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 24px;
  font-size: 2.2em;
  text-align: center;
  position: relative;
}

.features h2::after,
.events h2::after,
.cta h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 12px auto 0;
  border-radius: 2px;
}

.features-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.feature-tile {
  background: white;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(167,139,250,0.06);
}

.feature-tile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px var(--shadow-mid);
  border-color: rgba(167,139,250,0.2);
}

.tile-icon {
  font-size: 2.4em;
  margin-bottom: 14px;
  color: var(--accent);
  display: block;
  transition: transform 0.4s;
}

.feature-tile:hover .tile-icon {
  transform: scale(1.2) rotate(5deg);
}

.tile-title {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tile-desc {
  font-size: 1.02em;
  color: #5a616d;
  line-height: 1.5;
}

/* ——— VK БЛОК ——— */
.vk-community-block {
  background: linear-gradient(145deg, #f8f9ff, #f0f4ff);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
  padding: 48px 32px;
  margin: 48px auto;
  max-width: 960px;
  position: relative;
  overflow: hidden;
}

.vk-community-block::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.04;
  z-index: 0;
}

.vk-block-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.vk-block-left h3,
.vk-block-right h3 {
  font-size: 1.4em;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: 700;
}

.vk-features-list li {
  font-size: 1.08em;
  margin-bottom: 12px;
  color: #333;
  display: flex;
  align-items: flex-start;
}

.vk-icon {
  font-size: 1.3em;
  margin-right: 10px;
  color: var(--secondary);
  min-width: 24px;
}

.vk-block-right {
  background: white;
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(37,99,235,0.1);
  transition: transform 0.3s;
}

.vk-block-right:hover {
  transform: scale(1.02);
}

.vk-logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.vk-logo-img {
  width: 48px;
  filter: invert(1) brightness(1.1);
}

.vk-btn {
  background: var(--secondary);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05em;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
  transition: all 0.3s;
}

.vk-btn:hover {
  background: #1d4ed8;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* ——— ОТЗЫВЫ (Яндекс) ——— */
.yandex-reviews-widget {
  width: 100%;
  max-width: 660px;
  height: 560px;
  margin: 0 auto 48px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44,62,80,0.18);
  position: relative;
}

.yandex-reviews-widget::before {
  content: '💬 Отзывы покупателей';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  padding: 4px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #555;
  font-size: 0.95em;
  z-index: 2;
}

.yandex-reviews-widget iframe {
  border: none;
  border-radius: 20px;
}

/* ——— АДАПТИВНОСТЬ ——— */
@media (max-width: 768px) {
  .main-banner {
    min-height: 300px;
  }
  .main-banner-content {
    padding: 36px 24px;
    max-width: 100%;
  }
  .main-banner h1 {
    font-size: 2.1em;
  }

  .features-tiles {
    grid-template-columns: 1fr;
  }

  .vk-block-content {
    flex-direction: column;
    gap: 24px;
  }

  .yandex-reviews-widget {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .main-banner {
    min-height: 260px;
  }
  .main-banner h1 {
    font-size: 1.8em;
  }
  .main-banner p {
    font-size: 1.05em;
  }
  .main-banner-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .btn-main {
    width: 100%;
    justify-content: center;
  }
  .yandex-reviews-widget {
    height: 420px;
  }
}
