/* ─── FAQ ───────────────────────────────────────────────── */
.section-faq { padding-top: 80px; padding-bottom: 80px; }

.section-faq__title { margin-top: 8px; margin-bottom: 40px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 0.5px solid var(--color-border); }

.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.faq-item__btn:hover { color: var(--color-accent-lt); }

.faq-item__icon { flex-shrink: 0; color: var(--color-accent-lt); }
.faq-item__icon, .faq-item__btn svg { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.is-open .faq-item__icon, .faq-item.is-open .faq-item__btn svg { transform: rotate(45deg); }

.faq-item__answer,
.faq-item__body {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.faq-item.is-open .faq-item__answer,
.faq-item.is-open .faq-item__body { opacity: 1; padding-bottom: 20px; }

.faq-item__body p { font-size: 14px; color: var(--color-text-muted); }


/* ─── BOT WIDGET ────────────────────────────────────────── */
.bot-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.bot-widget__toggle { width:52px; height:52px; border-radius:50%; cursor:pointer; position:relative; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 35% 35%, #9B6FFF 0%, #6B35CC 35%, #3D1585 65%, #1A0840 100%); border:1px solid rgba(155,127,232,0.4); box-shadow:0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 20px rgba(91,45,142,0.6), 0 0 40px rgba(91,45,142,0.3), 0 4px 24px rgba(0,0,0,0.5); transition:transform 0.3s ease, box-shadow 0.3s ease; }
.bot-widget__toggle::before { content:''; position:absolute; top:8px; left:10px; width:14px; height:8px; background:rgba(255,255,255,0.25); border-radius:50%; filter:blur(3px); transform:rotate(-30deg); pointer-events:none; }
.bot-widget__toggle::after { content:''; position:absolute; inset:-4px; border-radius:50%; background:transparent; border:1px solid rgba(155,127,232,0.2); animation:ring-pulse 3s ease-in-out infinite; pointer-events:none; }
@keyframes ring-pulse { 0%, 100% { transform:scale(1); opacity:0.6; } 50% { transform:scale(1.12); opacity:0; } }
.bot-widget__toggle:hover { transform:scale(1.08) translateY(-2px); box-shadow:0 0 0 1px rgba(255,255,255,0.12) inset, 0 0 30px rgba(91,45,142,0.8), 0 0 60px rgba(91,45,142,0.4), 0 8px 32px rgba(0,0,0,0.6); }
.bot-widget__avatar { font-family:var(--font-display); font-size:18px; font-weight:700; color:#F0ECFF; letter-spacing:0; text-shadow:0 1px 3px rgba(0,0,0,0.5), 0 0 12px rgba(155,127,232,0.6); position:relative; z-index:1; }

.bot-widget__bubble {
  max-width: 240px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  background: rgba(26, 10, 58, 0.95);
  border: 0.5px solid rgba(155, 127, 232, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bot-widget__bubble.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }

.contact-form__hint { font-size: 11px; color: rgba(255,120,120,0.9); margin-top: 4px; }


/* ─── TG FLOAT ───────────────────────────────────────────── */
.tg-float {
  display: none;
}

@media (max-width: 767px) {
  .tg-float {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-blue-tg);
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    box-shadow:
      0 4px 20px rgba(34,158,217,0.4),
      0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: transform 0.35s ease, opacity 0.35s ease,
                box-shadow 0.3s ease;
    animation: tg-appear 0.5s ease 2s both;
  }

  .tg-float:hover {
    transform: translateY(-2px);
    box-shadow:
      0 8px 30px rgba(34,158,217,0.5),
      0 0 0 1px rgba(255,255,255,0.15) inset;
  }
}

@keyframes tg-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── HERO ACTIVITY ──────────────────────────────────────── */
.hero-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.hero-activity__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(74,222,128,0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(74,222,128,0.9);
    transform: scale(1.2);
  }
}

.hero-activity__text {
  font-size: 13px;
  color: rgba(232,228,240,0.5);
  font-family: var(--font-body);
  transition: opacity 0.5s ease;
}

.hero-activity__text.is-fading {
  opacity: 0;
}

@media (max-width: 767px) {
  .tg-float-wrap {
    display: none !important;
  }

  .tg-float-close {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
  }

  .tg-float-close:hover {
    background: rgba(255,255,255,0.2);
  }

  .tg-float-wrap.is-collapsed {
    transform: translateX(calc(-100% + 8px));
  }

  .tg-float-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: var(--color-accent-lt);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .tg-float-wrap.is-collapsed::before {
    opacity: 1;
  }
}
