/* ============================================
   КОМПОНЕНТЫ
   ============================================ */

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-4px);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.stat-card {
  background: white;
  padding: 40px 24px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 12px;
  color: var(--dark-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== ACTIVITY CARDS ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.activity-card {
  background: white;
  padding: 36px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.1);
}

.activity-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.activity-card:hover .activity-icon {
  transform: rotate(-8deg) scale(1.1);
}

.activity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.activity-card p {
  color: var(--dark-light);
  font-size: 0.95rem;
}

/* ===== TEAM CARDS ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  text-align: center;
  padding-bottom: 30px;
}

.team-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  height: 200px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: white;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.15));
}

.team-card:nth-child(2) .team-avatar { background: var(--gradient-2); }
.team-card:nth-child(3) .team-avatar { background: var(--gradient-3); }
.team-card:nth-child(4) .team-avatar { background: var(--gradient-4); }

.team-card h3 {
  margin-top: 24px;
  font-size: 1.15rem;
  font-weight: 700;
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}

.team-desc {
  color: var(--dark-light);
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 0 24px;
  line-height: 1.6;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
  border-radius: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.step:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: var(--primary);
  transform: translateY(-8px);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: white;
}

.step h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: white;
}

.step p {
  color: #b2bec3;
  font-size: 0.9rem;
}

/* ===== CONDITIONS ===== */
.conditions-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.condition {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: background var(--transition);
}

.condition:hover {
  background: rgba(255, 255, 255, 0.08);
}

.check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--secondary);
  display: grid;
  place-items: center;
  color: var(--dark);
  font-weight: 800;
  font-size: 0.8rem;
}

.condition p {
  font-size: 0.95rem;
  color: #dfe6e9;
}

/* ===== MEMBERSHIP BLOCK ===== */
.membership-block {
  background: var(--dark);
  color: white;
  border-radius: 40px;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
  margin: 0 5%;
}

.membership-block::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4), transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.membership-block .section-title h2 {
  color: white;
}

.membership-block .section-title .label {
  color: var(--secondary);
}

.membership-block .section-title p {
  color: #b2bec3;
}

/* ===== FORM ===== */
.cta-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--light);
  transition: all var(--transition);
  outline: none;
  color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--accent);
  background: #fff5f8;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-error {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.form-group.has-error .form-error {
  display: block;
}

.cta-form .btn-primary {
  width: 100%;
  margin-top: 10px;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(0, 206, 201, 0.1);
  color: #00b894;
  border-radius: 14px;
  font-weight: 600;
  margin-top: 20px;
  animation: fadeInUp 0.4s ease;
}

.success-msg.show {
  display: block;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
}

.faq-question {
  padding: 22px 28px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
  color: var(--dark-light);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gradient);
  border-radius: 32px;
  padding: 60px 5%;
  text-align: center;
  color: white;
  margin: 0 5%;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

/* ===== INFO BLOCKS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.info-card {
  background: white;
  padding: 32px 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}

.info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p {
  color: var(--dark-light);
  font-size: 0.95rem;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.value-card {
  padding: 36px 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--dark-light);
  font-size: 0.9rem;
}

/* ===== CONTACT CARDS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.contact-card {
  background: white;
  padding: 36px 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  color: white;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-card a,
.contact-card p {
  color: var(--dark-light);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cta-form {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .membership-block {
    border-radius: 24px;
    padding: 60px 6%;
    margin: 0 4%;
  }

  .cta-banner {
    border-radius: 24px;
    padding: 50px 6%;
    margin: 0 4%;
  }

  .btn {
    padding: 13px 28px;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
  }

  .activity-card,
  .stat-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .info-card,
  .value-card,
  .contact-card {
    padding: 28px 22px;
  }
}