/* ============================================================
   FLOWO ACADEMY — landing
   Стиль перекликается с платформой: тёмная база, blue/purple
   акцент, мягкие радиусы, плоские карточки.
   ============================================================ */

:root {
  --bg: #08080b;
  --bg-card: #111114;
  --bg-card-2: #15151a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text-1: #f4f4f7;
  --text-2: #c8c8d0;
  --text-3: #8e8ea0;
  --text-4: #5d5d6a;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --green: #10b981;
  --orange: #f59e0b;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --red: #ef4444;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ────── NAV ────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8,8,11,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; font-size: 14px; }
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-3); }
.nav-links a:hover { color: var(--text-1); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 14px 16px; }
}

/* ────── Buttons ────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.15s ease;
  text-align: center;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); background: #2f74ee; box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-card); }

/* ────── HERO ────── */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-orb {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-blue   { background: var(--accent);   top: -180px; left: -120px; opacity: 0.28; }
.hero-orb-purple { background: var(--accent-2); bottom: -180px; right: -100px; opacity: 0.22; }

/* ── Floating YouTube thumbnails ── */
.hero-thumbs {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.thumb {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  display: grid; grid-template-rows: 1fr auto;
  animation: floatY 6s ease-in-out infinite;
  opacity: 0.85;
}
.thumb-bg {
  width: 100%; height: 100%;
  position: relative;
}
.thumb .play-btn {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
  transition: transform 0.2s ease;
}
.thumb-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: rgba(8,8,11,0.85);
  backdrop-filter: blur(8px);
  font-size: 11px; color: var(--text-2); font-weight: 600;
  letter-spacing: 0.02em;
}
.thumb-time {
  background: rgba(0,0,0,0.7);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-display);
  color: #fff;
}
.thumb-1 { top: 80px;  left: 8%;  width: 200px; height: 130px; transform: rotate(-6deg); animation-delay: 0s;   }
.thumb-2 { top: 240px; left: 4%;  width: 170px; height: 110px; transform: rotate(4deg);  animation-delay: 1.2s; }
.thumb-3 { top: 100px; right: 6%; width: 220px; height: 140px; transform: rotate(5deg);  animation-delay: 0.6s; }
.thumb-4 { top: 280px; right: 3%; width: 180px; height: 115px; transform: rotate(-4deg); animation-delay: 1.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
/* Поскольку у каждой свой rotate, сохраняем его через CSS-var для keyframes */
.thumb-1 { --rot: -6deg; transform: rotate(-6deg); }
.thumb-2 { --rot:  4deg; transform: rotate(4deg); }
.thumb-3 { --rot:  5deg; transform: rotate(5deg); }
.thumb-4 { --rot: -4deg; transform: rotate(-4deg); }

@media (max-width: 1024px) {
  .thumb-2, .thumb-4 { display: none; }
  .thumb-1 { left: 2%; width: 160px; height: 100px; }
  .thumb-3 { right: 2%; width: 160px; height: 100px; }
}
@media (max-width: 720px) {
  .hero-thumbs { display: none; }
}

/* ===== MOBILE-ONLY tweaks ===== */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav { padding: 12px 16px; }
  .logo-text { font-size: 13px; }

  .hero { padding: 64px 18px 72px; }
  .hero-content { max-width: 100%; }
  .hero-eyebrow {
    display: flex; flex-wrap: wrap;
    gap: 6px; padding: 6px 12px;
    font-size: 10px;
    margin-bottom: 22px;
    text-align: center;
  }
  .hero-title { font-size: clamp(28px, 10vw, 40px); margin-bottom: 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-cta { gap: 10px; margin-bottom: 36px; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-meta {
    flex-direction: column; gap: 10px;
    font-size: 13px; text-align: center;
  }

  section { padding: 56px 0; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .section-sub { font-size: 14.5px; margin-bottom: 36px; }

  .get-grid { gap: 14px; margin-top: 28px; }
  .get-card { padding: 22px; }

  .modules-grid { gap: 8px; }
  .mod-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon h3   num"
      "icon p    p"
      "icon meta meta";
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 16px;
    align-items: center;
  }
  .mod-card::before { width: 3px; }
  .mod-num {
    grid-area: num; margin: 0;
    font-size: 11px; align-self: start;
  }
  .mod-icon {
    grid-area: icon; align-self: center;
    width: 38px; height: 38px; margin: 0;
  }
  .mod-icon svg { width: 19px; height: 19px; }
  .mod-card h3 {
    grid-area: h3; align-self: end;
    font-size: 15.5px; margin: 0;
  }
  .mod-card p {
    grid-area: p;
    font-size: 13px; margin: 0;
    line-height: 1.4;
  }
  .mod-meta {
    grid-area: meta;
    padding-top: 0; border-top: 0; margin-top: 2px;
    font-size: 10.5px;
  }

  .author-grid { gap: 22px; }
  .author-photo { max-width: 140px; margin: 0 auto; }
  .author-text { text-align: center; }
  .author-text p { font-size: 15px; line-height: 1.6; }

  .price-card { padding: 32px 24px; margin-top: 32px; }
  .price-num { font-size: 56px; }
  .price-currency { font-size: 22px; }
  .price-features li { font-size: 14px; }

  .cta-title { font-size: clamp(24px, 7vw, 36px); }
  .cta-sub { font-size: 15px; }
  .final-cta { padding: 72px 0; }
  .final-cta .btn { width: 100%; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-direction: column; gap: 10px; }

  .hero-meta { gap: 14px; }
  .meta-item { line-height: 1.2; }
}
.hero-content {
  position: relative; z-index: 3;
  max-width: 760px; margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-3); text-transform: uppercase;
}
.eyebrow-tag {
  background: var(--bg-card);
  padding: 4px 10px; border-radius: 6px;
  color: var(--text-1); font-weight: 700;
  letter-spacing: 0.1em;
}
.eyebrow-dot { color: var(--text-4); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.grad-text {
  color: var(--accent);
}
.title-nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  .title-nowrap { white-space: normal; }
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px;
  color: var(--text-3); font-size: 14px;
}
.meta-item b { color: var(--text-1); font-weight: 700; }

/* ────── Section common ────── */
section { padding: 100px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; color: var(--accent);
  margin-bottom: 14px; font-weight: 700;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 800;
}
.section-sub {
  color: var(--text-3);
  font-size: 16px;
  max-width: 580px;
  margin-bottom: 60px;
}

/* ────── What you get ────── */
.get { background: var(--bg-card-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.get-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 40px;
}
.get-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.get-card:hover { border-color: var(--border-strong); }
.get-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.get-icon svg { width: 22px; height: 22px; display: block; }
.get-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.get-card p { color: var(--text-3); font-size: 14.5px; line-height: 1.55; }

/* ────── Modules ────── */
.modules .section-title { text-align: left; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
@media (min-width: 900px) {
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
.mod-card {
  position: relative;
  padding: 28px 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.mod-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--mod-color, var(--accent));
  opacity: 0.7;
}
.mod-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.mod-num {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--text-4); font-weight: 700;
  margin-bottom: 12px;
}
.mod-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 14px;
  color: var(--mod-color, var(--accent));
}
.mod-icon svg { width: 20px; height: 20px; display: block; }
.mod-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.mod-card p { color: var(--text-3); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.mod-meta {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-4); font-weight: 700;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.mod-violet { --mod-color: var(--violet); }
.mod-blue   { --mod-color: var(--accent); }
.mod-green  { --mod-color: var(--green); }
.mod-orange { --mod-color: var(--orange); }
.mod-pink   { --mod-color: var(--pink); }
.mod-cyan   { --mod-color: var(--cyan); }
.mod-red    { --mod-color: var(--red); }
.mod-amber  { --mod-color: var(--amber); }

/* ────── Author ────── */
.author {
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 720px) {
  .author-grid { grid-template-columns: 1fr; gap: 32px; }
}
.author-photo { position: relative; }
.photo-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.photo-svg { width: 100%; height: 100%; display: block; }
.author-text p { color: var(--text-2); font-size: 16px; line-height: 1.65; margin-bottom: 16px; }

/* ────── Pricing ────── */
.pricing .section-title { text-align: center; }
.price-card {
  max-width: 480px; margin: 50px auto 0;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.price-amount {
  text-align: center;
  margin-bottom: 8px;
  display: flex; justify-content: center; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
}
.price-currency { font-size: 28px; color: var(--text-2); margin-right: 4px; }
.price-num { font-size: 72px; letter-spacing: -0.04em; color: var(--text-1); }
.price-period { font-size: 16px; color: var(--text-3); margin-left: 8px; font-weight: 500; }
.price-trial { text-align: center; color: var(--text-4); font-size: 12px; margin-bottom: 32px; font-style: italic; }
.price-features { margin: 0 0 32px; }
.price-features li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 14.5px; color: var(--text-2);
  border-top: 1px solid var(--border);
}
.price-features li::before {
  content: "✓"; position: absolute; left: 0;
  width: 18px; height: 18px;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: 11px;
  display: grid; place-items: center;
  top: 13px; font-weight: 700;
}
.price-features li:last-child { border-bottom: 1px solid var(--border); }
.price-fine { text-align: center; font-size: 12px; color: var(--text-4); margin-top: 16px; }

/* ────── Final CTA ────── */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-card-2);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-2), transparent 60%);
  opacity: 0.10;
  pointer-events: none;
}
.final-cta > * { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
}
.cta-sub {
  color: var(--text-3);
  font-size: 17px;
  margin-bottom: 32px;
  position: relative;
}
.final-cta .btn { position: relative; }

/* ────── Footer ────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-card-2);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--text-3);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-1); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text-1); }

/* SUPPORT WIDGET — плавающая кнопка справа снизу, ведёт в TG-поддержку */
.support-widget {
  position: fixed; right: 24px; bottom: 24px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 14px;
  border-radius: 26px;
  background: #229ED9; color: #fff;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: 13.5px; line-height: 1.3;
  box-shadow: 0 6px 22px rgba(34, 158, 217, 0.42);
  transition: transform 200ms ease, box-shadow 200ms ease, max-width 320ms ease;
  max-width: 52px; overflow: hidden;
}
.support-widget b { font-weight: 700; }
.support-widget__icon { width: 24px; height: 24px; flex: 0 0 24px; transform: translateX(-1px); }
.support-widget__text { opacity: 0; transition: opacity 200ms ease 80ms; padding-right: 6px; white-space: nowrap; }
.support-widget:hover, .support-widget:focus-visible {
  max-width: 300px; transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.55);
}
.support-widget:hover .support-widget__text,
.support-widget:focus-visible .support-widget__text { opacity: 1; white-space: normal; }
.support-widget:active { transform: translateY(0); }
@media (max-width: 600px) {
  .support-widget { right: 16px; bottom: 16px; min-height: 48px; max-width: 48px; }
  .support-widget:hover, .support-widget:focus-visible { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-widget, .support-widget__text { transition: none; }
}
