/* ═══════════════════════════════════════════════════════
   start.css — GYMS Start · соціальна програма
   Підключати ПІСЛЯ style.css:
   <link rel="stylesheet" href="/style/start.css?v=1">
   ═══════════════════════════════════════════════════════ */

:root {
  --st-green: #4ADE80;
  --st-green-dim: rgba(74, 222, 128, 0.12);
  --st-green-border: rgba(74, 222, 128, 0.35);
  --st-grad: linear-gradient(135deg, #4ADE80 0%, #A78BFA 55%, #EC4899 100%);
}

/* ───────────────────────────────
   REVEAL ON SCROLL (js: IntersectionObserver)
─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
              transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────────────────
   HERO
─────────────────────────────── */
.start-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5vw 60px;
  position: relative;
  overflow: hidden;
}

/* два живі blob-фони — фіолетовий і зелений, повільно дихають */
.start-hero::before,
.start-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.start-hero::before {
  width: 700px;
  height: 700px;
  top: -260px;
  left: 8%;
  background: radial-gradient(circle, rgba(108, 62, 244, 0.16) 0%, transparent 68%);
  animation: st-blob-a 14s ease-in-out infinite;
}

.start-hero::after {
  width: 620px;
  height: 620px;
  bottom: -280px;
  right: 4%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.10) 0%, transparent 68%);
  animation: st-blob-b 18s ease-in-out infinite;
}

@keyframes st-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes st-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -24px) scale(1.1); }
}

/* ── бейдж з обертовим conic-бордером (без мигаючих крапок) ── */
.start-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #C6F6D5;
  background: var(--bg2);
  margin-bottom: 32px;
  isolation: isolate;
  z-index: 1;
}

.start-badge::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 26px;
  padding: 1.5px;
  background: conic-gradient(from var(--st-angle, 0deg),
      #4ADE80, #A78BFA, #EC4899, #4ADE80);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: st-border-spin 4s linear infinite;
  z-index: -1;
}

@property --st-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes st-border-spin {
  to { --st-angle: 360deg; }
}

/* fallback якщо @property не підтримується */
@supports not (background: conic-gradient(from var(--st-angle), red, blue)) {
  .start-badge::before {
    background: conic-gradient(#4ADE80, #A78BFA, #EC4899, #4ADE80);
    animation: st-border-rotate 4s linear infinite;
  }
  @keyframes st-border-rotate {
    to { transform: rotate(360deg); }
  }
}

/* ── градієнтний заголовок з живим переливом ── */
.grad-start {
  background: var(--st-grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: st-grad-shift 7s ease-in-out infinite;
}

@keyframes st-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.start-hero h1 {
  max-width: 900px;
}

.start-hero .hero-sub {
  max-width: 720px;
  margin-bottom: 40px;
}

/* ── стат-картки hero ── */
.start-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  margin-top: 56px;
}

@media (max-width: 820px) { .start-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .start-stats { grid-template-columns: 1fr; } }

.st-stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 18px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}

.st-stat:hover {
  transform: translateY(-5px);
  border-color: var(--st-green-border);
}

/* shine-смуга при hover */
.st-stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}

.st-stat:hover::after { left: 130%; }

.st-stat-num {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.st-stat-num.n-green  { color: var(--st-green); }
.st-stat-num.n-violet { color: #A78BFA; }
.st-stat-num.n-pink   { color: #F472B6; }
.st-stat-num.n-white  { color: #fff; }

.st-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ───────────────────────────────
   MARQUEE типів бізнесів
─────────────────────────────── */
.biz-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}

.biz-marquee::before,
.biz-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.biz-marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg2), transparent); }
.biz-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }

.biz-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: st-marquee 34s linear infinite;
}

.biz-marquee:hover .biz-track { animation-play-state: paused; }

@keyframes st-marquee {
  to { transform: translateX(-50%); }
}

.biz-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 26px;
  white-space: nowrap;
}

.biz-item .biz-emoji { font-size: 17px; }

.biz-sep {
  color: rgba(74, 222, 128, 0.4);
  font-size: 10px;
  align-self: center;
}

/* ───────────────────────────────
   ЛІЧИЛЬНИК МІСЦЬ (50)
─────────────────────────────── */
.seats-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 5vw 10px;
  text-align: center;
}

.seats-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--st-green);
  margin-bottom: 20px;
}

.seats-bar {
  position: relative;
  height: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  overflow: hidden;
}

.seats-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #4ADE80, #A78BFA);
  transition: width 1.6s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

/* shimmer що біжить по заповненню */
.seats-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: st-shimmer 2.6s ease-in-out infinite;
}

@keyframes st-shimmer {
  60%, 100% { transform: translateX(100%); }
}

.seats-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.seats-labels strong {
  color: var(--text);
  font-weight: 800;
}

/* ───────────────────────────────
   СЕКЦІЯ «НАВІЩО»
─────────────────────────────── */
.start-why {
  max-width: 860px;
  margin: 0 auto;
}

.start-why p {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
}

.start-why p strong {
  color: var(--text);
  font-weight: 700;
}

.why-highlight {
  position: relative;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.07), rgba(108, 62, 244, 0.07));
  border: 1px solid var(--st-green-border);
  border-radius: 18px;
  padding: 26px 30px;
  margin-top: 32px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
}

.why-highlight::before {
  content: '💡';
  position: absolute;
  top: -16px;
  left: 26px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--st-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ───────────────────────────────
   МОДУЛІ СИСТЕМИ
─────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1),
              border-color .3s, box-shadow .3s;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 12px 34px rgba(74, 222, 128, 0.08);
}

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 14px;
  background: rgba(74, 222, 128, 0.1);
  transition: transform .3s;
}

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

.module-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 7px;
}

.module-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* особлива картка «всі оновлення» */
.module-card.mc-updates {
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.08), rgba(108, 62, 244, 0.08));
  border-color: var(--st-green-border);
}

/* ───────────────────────────────
   ТАРИФИ
─────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 780px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
}

.plan-card:hover { transform: translateY(-6px); }

/* рекомендована картка — обертовий conic-бордер */
.plan-card.featured {
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.06), rgba(108, 62, 244, 0.08));
}

.plan-card.featured::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(from var(--st-angle, 0deg),
      #4ADE80, #A78BFA, #EC4899, #4ADE80);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: st-border-spin 5s linear infinite;
  z-index: -1;
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #4ADE80, #22C55E);
  color: #052e13;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 14px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.plan-price .pp-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
}

.plan-price .pp-per {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.plan-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 44px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}

.plan-list .pl-check {
  color: var(--st-green);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-total {
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.plan-total small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.plans-footnote {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ───────────────────────────────
   ДЛЯ КОГО (болі)
─────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.pain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .3s, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.pain-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-4px);
}

.pain-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pain-emoji {
  font-size: 26px;
  flex-shrink: 0;
}

.pain-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.pain-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.pain-card p strong {
  display: block;
  color: var(--st-green);
  font-weight: 700;
  margin-top: 10px;
}

/* ───────────────────────────────
   УМОВИ
─────────────────────────────── */
.terms-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.term-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  transition: border-color .3s, transform .25s;
}

.term-item:hover {
  border-color: rgba(74, 222, 128, 0.35);
  transform: translateX(4px);
}

.term-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--st-green-dim);
}

.term-item.warn .term-icon {
  background: rgba(234, 179, 8, 0.12);
}

.term-item.warn {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), transparent);
}

.term-body h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.term-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.term-body p strong { color: var(--text); }

/* ───────────────────────────────
   КРОКИ ПІДКЛЮЧЕННЯ
─────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 780px) { .steps-row { grid-template-columns: 1fr; } }

/* анімована пунктирна лінія між кроками (desktop) */
.steps-row::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 16%;
  right: 16%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--st-green) 55%, transparent 45%);
  background-size: 14px 2px;
  opacity: .35;
  animation: st-dash 1.2s linear infinite;
  z-index: 0;
}

@keyframes st-dash {
  to { background-position: 14px 0; }
}

@media (max-width: 780px) { .steps-row::before { display: none; } }

.step-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  z-index: 1;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--st-green-border);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #052e13;
  background: linear-gradient(135deg, #4ADE80, #A78BFA);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.3);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.step-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--st-green-dim);
  color: var(--st-green);
}

/* ───────────────────────────────
   FAQ (details/summary)
─────────────────────────────── */
.start-faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s;
}

.faq-item[open] {
  border-color: rgba(74, 222, 128, 0.4);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--st-green); }

.faq-plus {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--st-green);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--st-green-dim);
}

.faq-body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  animation: st-faq-in .35s ease both;
}

@keyframes st-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────
   ФІНАЛЬНИЙ CTA
─────────────────────────────── */
.start-cta {
  text-align: center;
  padding: 110px 5vw;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.05) 60%, rgba(108, 62, 244, 0.08));
}

.start-cta::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.1), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.start-cta h2 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  position: relative;
}

.start-cta > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 42px;
  line-height: 1.7;
  position: relative;
}

.start-cta .hero-cta-group {
  margin-bottom: 0;
  position: relative;
}

/* зелена варіація primary-кнопки */
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #22C55E, #4ADE80);
  color: #052e13;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.35);
}

.btn-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 44px rgba(74, 222, 128, 0.55);
}

.btn-start:active { transform: translateY(-1px); }

/* ───────────────────────────────
   СЕКЦІЙНІ ВАРІАЦІЇ ДЛЯ ЦІЄЇ СТОРІНКИ
─────────────────────────────── */
.section-label.lbl-green { color: var(--st-green); }

.section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}