/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #0A0A1A;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-ac: rgba(123, 90, 255, 0.28);
  --accent: #7B5AFF;
  --acc-dim: rgba(123, 90, 255, 0.12);
  --warning: #FFD166;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.38);
  --fh: 'Open Sans', 'Manrope', sans-serif;
  --fb: 'Manrope', 'Segoe UI', sans-serif;
  --gb: linear-gradient(135deg, #7B5AFF 0%, #5B3FD4 50%, #4A8CFF 100%);
  --gt: linear-gradient(135deg, #A78BFA 0%, #60A5FA 50%, #7B5AFF 100%);
}

html, body {
  background-color: #0A0A1A;
  background-image: radial-gradient(rgba(123, 90, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  color: #FFFFFF;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* ─── GRADIENT TEXT ─── */
.gw {
  background: var(--gt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CTA BUTTON ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7B5AFF, #5B3FD4, #4A8CFF);
  box-shadow: 0 4px 28px rgba(123, 90, 255, 0.45);
  transition: transform 0.22s, box-shadow 0.22s;
  animation: glow-pulse 2.4s ease-in-out infinite;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: btn-shine 2.8s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 48px rgba(123, 90, 255, 0.65);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 28px rgba(123, 90, 255, 0.45); }
  50%       { box-shadow: 0 4px 60px rgba(123, 90, 255, 0.75), 0 0 90px rgba(123, 90, 255, 0.2); }
}

@keyframes btn-shine {
  0%       { left: -100%; }
  60%, 100% { left: 160%; }
}

.btn-wrap {
  display: flex;
}

/* ═══════════════════════════════════════
   БЛОК 1 — HERO
═══════════════════════════════════════ */
#hero {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background: #0A0A1A;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(123, 90, 255, 0.14) 0%, rgba(74, 140, 255, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: var(--acc-dim);
  border: 1px solid var(--border-ac);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  padding: 7px 16px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

/* Hero photo */
.hero-photo {
  position: relative;
}

.hero-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 60px rgba(123, 90, 255, 0.2);
  border: 1px solid rgba(123, 90, 255, 0.12);
}

.hero-photo-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(10, 10, 26, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(123, 90, 255, 0.25);
}

.hero-photo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gb);
  flex-shrink: 0;
}

.hero-photo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.hero-photo-role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* ═══════════════════════════════════════
   БЛОК 2 — СЛАЙДЕР ПОСТОВ
═══════════════════════════════════════ */
#posts {
  padding: 48px 0 80px;
  background: #0A0A1A;
}

.slider-wrap {
  position: relative;
}

.sl-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(123, 90, 255, 0.18);
  border: 1px solid rgba(123, 90, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  animation: sl-pulse 2.2s ease-in-out infinite;
}

.sl-arr:hover {
  background: rgba(123, 90, 255, 0.38);
}

.sl-arr-l { left: 14px; }
.sl-arr-r { right: 14px; }

@keyframes sl-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.sl-track {
  display: flex;
  gap: 18px;
  padding: 8px 32px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.sl-track::-webkit-scrollbar {
  display: none;
}

.sl-track.grabbing {
  cursor: grabbing;
}

/* POST карточки */
.post-card {
  flex: 0 0 270px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  border-color: rgba(123, 90, 255, 0.35);
  box-shadow: 0 14px 44px rgba(123, 90, 255, 0.14);
}

.post-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1a1a3e, #0f0f28);
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.post-card:hover .post-img img {
  transform: scale(1.04);
}

.post-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-title {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.post-excerpt {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  max-height: 64px;
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.post-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--acc-dim);
  border: 1px solid var(--border-ac);
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.2s;
}

.post-read:hover {
  background: rgba(123, 90, 255, 0.22);
}

.mx-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gb);
  display: inline-block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   БЛОК 3 — ЭКСПЕРТ
═══════════════════════════════════════ */
#expert {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: #0A0A1A;
}

#expert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(123, 90, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.expert-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 32px;
}

.expert-photo {
  position: relative;
}

.expert-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 60px rgba(123, 90, 255, 0.2);
}

.expert-badge {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(123, 90, 255, 0.25);
}

.expert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gb);
  flex-shrink: 0;
}

.expert-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.expert-role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.expert-h2 {
  font-family: var(--fh);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
  text-wrap: balance;
}

.expert-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expert-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

.expert-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gb);
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   БЛОК 4 — ОТЗЫВЫ
═══════════════════════════════════════ */
#reviews {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.012);
}

.reviews-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.reviews-title {
  font-family: var(--fh);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-card:hover {
  border-color: rgba(123, 90, 255, 0.3);
  box-shadow: 0 8px 32px rgba(123, 90, 255, 0.1);
}

.rv-stars {
  display: flex;
  gap: 3px;
}

.rv-star {
  font-size: 13px;
  color: var(--warning);
  line-height: 1;
}

.rv-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.rv-text strong {
  color: var(--text);
  font-weight: 700;
}

.rv-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.rv-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.rv-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.rv-role {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Мобильный слайдер отзывов */
.reviews-slider-wrap {
  display: none;
  position: relative;
}

.reviews-sl-track {
  display: flex;
  gap: 16px;
  padding: 8px 20px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reviews-sl-track::-webkit-scrollbar {
  display: none;
}

.rv-card-slide {
  flex: 0 0 300px;
}

/* ═══════════════════════════════════════
   БЛОК 5 — ФИНАЛЬНЫЙ
═══════════════════════════════════════ */
#final {
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0A0A1A;
}

#final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123, 90, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.final-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.final-title {
  font-family: var(--fh);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.final-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.final-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* ═══════════════════════════════════════
   БЛОК 6 — FLOATING TAGS
═══════════════════════════════════════ */
#floating-tags {
  padding: 44px 32px 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #0A0A1A;
  position: relative;
  overflow: hidden;
}

#floating-tags::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 90, 255, 0.3), transparent);
}

.ftag {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  white-space: nowrap;
  animation: ftag-float var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  cursor: default;
}

.ftag:hover {
  border-color: rgba(123, 90, 255, 0.4);
  color: #fff;
  background: rgba(123, 90, 255, 0.12);
}

.ftag--accent {
  border-color: rgba(123, 90, 255, 0.22);
  color: rgba(167, 139, 250, 0.85);
  background: rgba(123, 90, 255, 0.07);
}

@keyframes ftag-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(var(--amp, -8px)); }
  100% { transform: translateY(0px); }
}

/* ═══════════════════════════════════════
   МОБАЙЛ (до 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero */
  #hero { padding: 70px 20px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-content { text-align: center; }
  .hero-h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero-sub { font-size: 14px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-tags { display: none; }
  .hero-photo { display: none; }

  /* Слайдер постов */
  #posts { padding: 32px 0 56px; }
  .sl-track { padding: 8px 20px 20px; gap: 14px; }
  .post-card { flex: 0 0 260px; }
  .sl-arr { display: none; }

  /* Эксперт */
  #expert { padding: 60px 0; }
  .expert-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .expert-photo { max-width: 300px; margin: 0 auto; order: 2; }
  .expert-content { order: 1; text-align: center; }
  .expert-h2 { font-size: clamp(20px, 6vw, 28px); text-align: center; }
  .expert-bullets { text-align: left; display: inline-flex; flex-direction: column; gap: 12px; }
  .expert-bullets li { font-size: 14px; }
  .btn-wrap { justify-content: center; }
  .expert-badge { white-space: normal; text-align: center; width: calc(100% - 24px); justify-content: center; }

  /* Отзывы */
  #reviews { padding: 60px 0; }
  .reviews-inner { padding: 0 20px; }
  .reviews-title { text-align: center; }
  .reviews-grid { display: none; }
  .reviews-slider-wrap { display: block; }
  .rv-card-slide { flex: 0 0 300px; }

  /* Финал */
  #final { padding: 60px 20px; }
  .final-title { font-size: clamp(22px, 6vw, 30px); }

  /* Теги */
  #floating-tags { padding: 28px 20px 36px; gap: 10px; }
  .ftag { font-size: 12px; padding: 8px 16px; }
}
