:root{
  --bg:#0A0A0A;
  --accent:#E8FF00;
  --accent-glow:rgba(232,255,0,.15);
  --white:#fff;
  --muted:rgba(255,255,255,.55);
  --faint:rgba(255,255,255,.06);
  --hdr-h:84px;
  --hdr-scrolled:60px;
  --ease:cubic-bezier(.16,1,.3,1);
  --f-display:'Bebas Neue',sans-serif;
  --f-body:'DM Sans',sans-serif;
  --accent-dark:     rgba(232, 255, 0, 0.08);
  --surface-1:       #111111;
  --surface-2:       #0D0D0D;
  --surface-3:       #0f0f0f;
  --surface-4:       #1a1a1a;
  --surface-5:       #050505;
  --border-1:        #1A1A1A;
  --border-2:        #2a2a2a;
  --border-3:        #222222;
  --text-muted-1:    #888888;
  --text-muted-2:    #555555;
  --text-muted-3:    #444444;
  --text-muted-4:    #666666;
  --online-green:    #22c55e;

  /* кольори типів занять */
  --color-strength:  #E8FF00;
  --color-cardio:    #FF6432;
  --color-yoga:      #64C896;
  --color-boxing:    #C864FF;
  --color-crossfit:  #3296FF;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--white);font-family:var(--f-body);overflow-x:hidden;-webkit-font-smoothing:antialiased}

/* HEADER */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:100;
  height:var(--hdr-h);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 48px;
  transition:height .4s var(--ease),background .4s,backdrop-filter .4s,box-shadow .4s;
}
.hdr.scrolled{
  height:var(--hdr-scrolled);
  background:rgba(10,10,10,.78);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:0 1px 0 rgba(232,255,0,.1);
}
.logo{
  font-family:var(--f-display);font-size:26px;letter-spacing:.1em;
  color:var(--white);text-decoration:none;display:flex;align-items:center;
  flex-shrink:0;
}
.logo em{
  font-style:normal;
  background:var(--accent);color:#000;
  padding:1px 6px 0;margin-left:4px;
}
nav{display:flex;align-items:center;gap:4px}
nav a{
  font-family:var(--f-body);font-size:13px;font-weight:500;letter-spacing:.03em;
  color:var(--muted);text-decoration:none;padding:7px 10px;border-radius:4px;
  transition:color .2s,background .2s;white-space:nowrap;
}
nav a:hover{color:var(--white);background:var(--faint)}
.cta-btn{
  flex-shrink:0;
  font-family:var(--f-body);font-size:13px;font-weight:600;letter-spacing:.06em;
  background:var(--accent);color:#000;
  border:none;padding:10px 22px;cursor:pointer;
  position:relative;overflow:hidden;
  text-transform:uppercase;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);
  transition:transform .2s;
}
.cta-btn::before{
  content:'';position:absolute;inset:0;
  background:#fff;transform:translateX(-105%);
  transition:transform .35s var(--ease);
}
.cta-btn:hover::before{transform:translateX(0)}
.cta-btn:hover{transform:scale(1.02)}
.cta-btn span{position:relative;z-index:1}

.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.burger span{display:block;width:24px;height:1.5px;background:var(--white);transition:transform .3s,opacity .3s}

.mobile-nav{
  display:none;position:fixed;inset:0;z-index:99;
  background:rgba(10,10,10,.97);
  flex-direction:column;justify-content:center;align-items:center;gap:12px;
  opacity:0;pointer-events:none;transition:opacity .3s;
}
.mobile-nav.open{opacity:1;pointer-events:all}
.mobile-nav a{
  font-family:var(--f-display);font-size:36px;letter-spacing:.08em;
  color:var(--white);text-decoration:none;transition:color .2s;
}
.mobile-nav a:hover{color:var(--accent)}

/* HERO */
.hero{
  position:relative;height:100vh;min-height:600px;
  display:flex;align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background-image:url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80&auto=format&fit=crop');
  background-size:cover;background-position:center;
  will-change:transform;
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(10,10,10,.92) 40%,rgba(10,10,10,.6) 70%,rgba(10,10,10,.35) 100%);
}
.hero-grain{
  position:absolute;inset:0;opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:180px;pointer-events:none;
}
.hero-deco-text{
  position:absolute;bottom:-4%;left:-2%;
  font-family:var(--f-display);
  font-size:clamp(160px,28vw,420px);
  line-height:1;letter-spacing:-.02em;
  color:var(--white);opacity:.04;
  user-select:none;pointer-events:none;white-space:nowrap;
}
.hero-lines{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero-lines::before,.hero-lines::after{
  content:'';position:absolute;
  width:1px;background:linear-gradient(to bottom,transparent,rgba(232,255,0,.18),transparent);
  top:0;height:100%;
}
.hero-lines::before{right:22%;transform:skewX(-12deg) scaleY(1.4)}
.hero-lines::after{right:35%;transform:skewX(-12deg) scaleY(1.4);opacity:.5}
.hero-accentbar{
  position:absolute;left:48px;top:50%;transform:translateY(-50%);
  width:3px;height:180px;
  background:linear-gradient(to bottom,transparent,var(--accent),transparent);
  opacity:.8;
}
.hero-content{
  position:relative;z-index:2;
  padding:0 72px;max-width:820px;
  padding-top:var(--hdr-h);
}
.hero-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent);margin-bottom:28px;
  opacity:0;transform:translateY(20px);
  animation:reveal .7s var(--ease) .1s forwards;
}
.hero-tag::before{content:'';display:block;width:28px;height:1px;background:var(--accent)}
.hero-title{
  font-family:var(--f-display);
  font-size:clamp(56px,9vw,124px);
  line-height:.95;letter-spacing:.01em;
  color:var(--white);margin-bottom:24px;
  opacity:0;transform:translateY(30px);
  animation:reveal .8s var(--ease) .25s forwards;
}
.hero-title .accent{color:var(--accent)}
.hero-sub{
  font-size:clamp(15px,1.4vw,18px);font-weight:300;line-height:1.6;
  color:var(--muted);max-width:440px;margin-bottom:44px;
  opacity:0;transform:translateY(30px);
  animation:reveal .8s var(--ease) .45s forwards;
}
.hero-btns{
  display:flex;gap:14px;flex-wrap:wrap;
  opacity:0;transform:translateY(30px);
  animation:reveal .8s var(--ease) .62s forwards;
}
.btn-primary{
  font-family:var(--f-body);font-size:14px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  background:var(--accent);color:#000;
  border:none;padding:16px 36px;cursor:pointer;
  position:relative;overflow:hidden;
  clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%);
  transition:transform .2s;
}
.btn-primary::before{
  content:'';position:absolute;inset:0;background:#fff;
  transform:translateX(-105%);transition:transform .4s var(--ease);
}
.btn-primary:hover::before{transform:translateX(0)}
.btn-primary:hover{transform:scale(1.02)}
.btn-primary span{position:relative;z-index:1}
.btn-ghost{
  font-family:var(--f-body);font-size:14px;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;
  background:transparent;color:var(--white);
  border:1px solid rgba(232,255,0,.5);
  padding:15px 36px;cursor:pointer;
  position:relative;overflow:hidden;
  clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%);
  transition:color .35s var(--ease),border-color .35s;
}
.btn-ghost::before{
  content:'';position:absolute;inset:0;background:var(--accent);
  transform:translateX(-105%);transition:transform .4s var(--ease);
}
.btn-ghost:hover::before{transform:translateX(0)}
.btn-ghost:hover{color:#000;border-color:var(--accent)}
.btn-ghost span{position:relative;z-index:1}

.hero-stats{
  position:absolute;bottom:80px;right:48px;z-index:2;
  display:flex;flex-direction:column;gap:24px;align-items:flex-end;
  opacity:0;animation:reveal .8s var(--ease) .85s forwards;
}
.stat{text-align:right}
.stat-num{
  font-family:var(--f-display);font-size:clamp(32px,3.5vw,48px);
  letter-spacing:.04em;color:var(--accent);line-height:1;
}
.stat-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:3px}

.scroll-ind{
  position:absolute;bottom:32px;left:50%;transform:translateX(-50%);
  z-index:2;display:flex;flex-direction:column;align-items:center;gap:6px;
  opacity:0;animation:reveal .8s var(--ease) 1.1s forwards;
}
.scroll-ind span{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.scroll-mouse{
  width:22px;height:34px;border:1px solid rgba(255,255,255,.3);border-radius:11px;
  position:relative;display:flex;justify-content:center;
}
.scroll-mouse::before{
  content:'';position:absolute;top:6px;
  width:2px;height:7px;border-radius:1px;background:var(--accent);
  animation:scroll-bob 1.5s ease-in-out infinite;
}

@keyframes reveal{to{opacity:1;transform:translateY(0)}}
@keyframes scroll-bob{
  0%,100%{transform:translateY(0);opacity:1}
  60%{transform:translateY(10px);opacity:.3}
}

@media(max-width:900px){
  nav,.cta-btn{display:none}
  .burger{display:flex}
  .hero-stats{display:none}
  .hero-content{padding:0 24px;padding-top:var(--hdr-h)}
  .hdr{padding:0 24px}
  .hero-accentbar{left:24px}
}
@media(max-width:480px){
  .hero-title{font-size:52px}
  .hero-btns{flex-direction:column}
  .btn-primary,.btn-ghost{width:100%;text-align:center}
}



/* ═══════════════════════════════════════
   STATS + MARQUEE
═══════════════════════════════════════ */

.stats-section {
  background: var(--surface-1);
  /* тонкий акцентний відблиск зверху */
  border-top: 1px solid rgba(232, 255, 0, 0.08);
}

/* --- Статистика grid --- */
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* початковий стан для анімації появи */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* staggered затримки */
.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(3) { transition-delay: 0.15s; }
.stat-item:nth-child(5) { transition-delay: 0.3s; }
.stat-item:nth-child(7) { transition-delay: 0.45s; }

/* клас що додається через JS коли секція у viewport */
.stats-section.in-view .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-family: var(--f-display);
  font-size: clamp(64px, 7vw, 96px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.stat-desc {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* вертикальний роздільник */
.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border-3);
  flex-shrink: 0;
  margin: 0 40px;
}

/* --- Marquee --- */
.marquee-wrap {
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
  cursor: default;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

/* пауза при наведенні */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-content {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #000000;
  white-space: nowrap;
  padding-right: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Адаптив --- */
@media (max-width: 768px) {
  .stats-grid {
    flex-wrap: wrap;
    padding: 56px 24px;
    gap: 40px 0;
  }

  .stat-item {
    flex: 0 0 50%;
  }

  /* ховаємо роздільники на таблеті */
  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .stat-item {
    flex: 0 0 100%;
  }

  .stats-grid {
    padding: 48px 16px;
    gap: 32px 0;
  }
}



/* ═══════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════ */

.services-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Заголовок секції (спільний патерн) --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted-1);
  letter-spacing: 0.02em;
}

/* --- Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Картка --- */
.service-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-4);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  cursor: pointer;

  /* початковий стан для reveal анімації */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease),
              transform 0.5s var(--ease),
              box-shadow 0.3s ease,
              border-color 0.3s ease;

  /* border-top заздалегідь прозорий — анімується при hover */
  border-top: 2px solid transparent;
}

/* staggered затримки для 6 карток */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* reveal — клас додається через JS */
.services-section.in-view .service-card {
  opacity: 1;
  transform: translateY(0);
}

/* після reveal скидаємо transition-delay щоб hover не лагав */
.services-section.in-view .service-card {
  transition-delay: 0s !important;
  transition: box-shadow 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(232, 255, 0, 0.1);
  border-top-color: var(--accent);
}

/* --- Іконка --- */
.service-icon {
  color: var(--accent);
  line-height: 0; /* прибирає зайвий простір під SVG */
}

/* --- Назва --- */
.service-name {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}

/* --- Опис --- */
.service-desc {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted-1);
  flex: 1; /* тягне стрілку завжди вниз */
}

/* --- Стрілка --- */
.service-arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  line-height: 0;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-section {
    padding: 80px 24px;
  }
}

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

  .services-section {
    padding: 64px 16px;
  }

  /* на мобільному stagger не потрібен — все одразу */
  .service-card {
    transition-delay: 0s !important;
  }
}

/* ═══════════════════════════════════════
   SCHEDULE SECTION
═══════════════════════════════════════ */

.schedule-section {
  padding: 100px 0;
  /* секція на повну ширину для горизонтального скролу */
}

/* заголовок центрований з падінгом */
.schedule-section .section-header {
  padding: 0 48px;
}

/* ── Таблиця-обгортка ── */
.schedule-table-wrap {
  overflow-x: auto;
  margin: 0 48px;
  border-radius: 16px;
  border: 1px solid var(--surface-4);
  /* кастомний скролбар */
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) var(--surface-2);
}

.schedule-table-wrap::-webkit-scrollbar {
  height: 6px;
}

.schedule-table-wrap::-webkit-scrollbar-track {
  background: var(--surface-2);
}

.schedule-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}

/* ── Таблиця ── */
.schedule-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--surface-2);
  table-layout: fixed;
}

/* Заголовки колонок */
.schedule-table thead th {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--white);
  padding: 18px 12px;
  text-align: center;
  border-bottom: 1px solid var(--surface-4);
  position: sticky;
  top: 0;
  background: var(--surface-1);
  z-index: 2;
  white-space: nowrap;
}

.schedule-table thead th span {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted-2);
  margin-left: 4px;
}

/* Колонка часу — sticky зліва */
.col-time {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface-1);
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text-muted-2);
  width: 72px;
  min-width: 72px;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--surface-4);
}

/* thead th.col-time — поверх усіх */
.schedule-table thead th.col-time {
  z-index: 4;
}

/* Рядки — чергування */
.schedule-table tbody tr:nth-child(odd) td {
  background: var(--surface-2);
}

.schedule-table tbody tr:nth-child(even) td {
  background: var(--surface-1);
}

/* sticky col-time в tbody підхоплює фон рядка */
.schedule-table tbody tr:nth-child(odd) .col-time {
  background: var(--surface-2);
}

.schedule-table tbody tr:nth-child(even) .col-time {
  background: var(--surface-1);
}

.schedule-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--surface-4);
  border-right: 1px solid var(--surface-4);
  vertical-align: top;
  min-width: 120px;
}

/* ── Клітинка заняття ── */
.lesson {
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lesson-name {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.lesson-trainer {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted-1);
}

.lesson-dur {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted-2);
  margin-top: 2px;
}

/* ── Типи занять — кольори ── */
.lesson--strength {
  background: rgba(232, 255, 0, 0.08);
  border-left: 3px solid #E8FF00;
}

.lesson--cardio {
  background: rgba(255, 100, 50, 0.1);
  border-left: 3px solid #FF6432;
}

.lesson--yoga {
  background: rgba(100, 200, 150, 0.1);
  border-left: 3px solid #64C896;
}

.lesson--boxing {
  background: rgba(200, 100, 255, 0.1);
  border-left: 3px solid #C864FF;
}

.lesson--crossfit {
  background: rgba(50, 150, 255, 0.1);
  border-left: 3px solid #3296FF;
}

/* ── Легенда ── */
.schedule-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 48px 0;
}

.legend-item {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border-left: 3px solid;
}

.legend-item--strength {
  background: rgba(232, 255, 0, 0.08);
  border-color: #E8FF00;
  color: #E8FF00;
}

.legend-item--cardio {
  background: rgba(255, 100, 50, 0.1);
  border-color: #FF6432;
  color: #FF6432;
}

.legend-item--yoga {
  background: rgba(100, 200, 150, 0.1);
  border-color: #64C896;
  color: #64C896;
}

.legend-item--boxing {
  background: rgba(200, 100, 255, 0.1);
  border-color: #C864FF;
  color: #C864FF;
}

.legend-item--crossfit {
  background: rgba(50, 150, 255, 0.1);
  border-color: #3296FF;
  color: #3296FF;
}

/* ── Mobile view ── */
.schedule-mobile {
  display: none;
}

.day-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--surface-4);
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text-muted-2);
  background: none;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.day-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.day-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* мобільна картка заняття */
.mobile-lesson {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 3px solid;
}

.mobile-lesson-time {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  min-width: 52px;
}

.mobile-lesson-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-lesson-name {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.mobile-lesson-meta {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text-muted-1);
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .schedule-table-wrap,
  .schedule-legend {
    display: none;
  }

  .schedule-mobile {
    display: block;
  }

  .schedule-section .section-header {
    padding: 0 16px;
  }

  .schedule-section {
    padding: 64px 0;
  }
}

@media (max-width: 900px) {
  .schedule-table-wrap,
  .schedule-legend {
    margin: 0 24px;
  }

  .schedule-section .section-header {
    padding: 0 24px;
  }
}



/* ═══════════════════════════════════════
   TRAINERS SECTION
═══════════════════════════════════════ */

.trainers-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Grid ── */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Картка ── */
.trainer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;

  /* reveal: початковий стан */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.trainer-card:nth-child(1) { transition-delay: 0s; }
.trainer-card:nth-child(2) { transition-delay: 0.15s; }
.trainer-card:nth-child(3) { transition-delay: 0.3s; }
.trainer-card:nth-child(4) { transition-delay: 0.45s; }

/* reveal клас */
.trainers-section.in-view .trainer-card {
  opacity: 1;
  transform: translateY(0);
}

/* після reveal — скидаємо delay щоб hover не лагав */
.trainers-section.in-view .trainer-card {
  transition-delay: 0s !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trainer-card:hover {
  transform: scale(1.03);
}

/* ── Фото-обгортка ── */
.trainer-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-1);
}

/* ── Фото ── */
.trainer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* grayscale за замовчуванням */
  filter: grayscale(100%);
  transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trainer-card:hover .trainer-photo {
  filter: grayscale(0%);
  transform: scale(1.05); /* легкий zoom фото при hover */
}

/* ── Overlay ── */
.trainer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trainer-card:hover .trainer-overlay {
  opacity: 1;
}

/* ── Контент overlay ── */
.trainer-overlay-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trainer-card:hover .trainer-overlay-content {
  transform: translateY(0);
}

.trainer-overlay-name {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.trainer-overlay-spec {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Соцмережі ── */
.trainer-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.social-btn:hover {
  background: var(--accent);
  color: #000000;
}

/* ── Інфо під фото ── */
.trainer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.trainer-name {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.trainer-spec {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted-1);
}

.trainer-exp {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* ── Мобільний: overlay завжди видимий ── */
@media (hover: none) {
  .trainer-overlay {
    opacity: 1;
  }

  .trainer-overlay-content {
    transform: translateY(0);
  }

  .trainer-photo {
    filter: grayscale(0%);
  }
}

/* ── Адаптив ── */
@media (max-width: 900px) {
  .trainers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trainers-section {
    padding: 80px 24px;
  }
}

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

  .trainers-section {
    padding: 64px 16px;
  }

  .trainer-card {
    transition-delay: 0s !important;
  }
}

/* ═══════════════════════════════════════
   PRICING SECTION
═══════════════════════════════════════ */

.pricing-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Перемикач ── */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.toggle-label {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted-1);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}

/* активний лейбл підсвічується через JS */
.toggle-label.active {
  color: var(--white);
}

.toggle-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000000;
  padding: 3px 8px;
  border-radius: 20px;
}

/* сам toggle-switch */
.pricing-toggle {
  width: 52px;
  height: 28px;
  background: var(--surface-4);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.pricing-toggle[aria-checked="true"] {
  background: var(--accent-dark);
  border-color: rgba(232, 255, 0, 0.3);
}

.pricing-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted-2);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.pricing-toggle[aria-checked="true"] .pricing-toggle-thumb {
  transform: translateX(24px);
  background: var(--accent);
}

/* ── Grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center; /* PRO картка вища — решта вирівнюється по центру */
}

/* ── Картка ── */
.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-4);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* PRO картка — виділена */
.pricing-card--pro {
  border: 2px solid var(--accent);
  padding: 56px 32px; /* більший padding для висоти */
  box-shadow: 0 0 60px rgba(232, 255, 0, 0.06);
}

.pricing-card--pro:hover {
  box-shadow: 0 20px 60px rgba(232, 255, 0, 0.12);
}

/* ── Badge "ПОПУЛЯРНИЙ" ── */
.pricing-popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000000;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 20px;
  border-radius: 0 0 12px 12px;
}

/* ── Badge "-20%" — прихований за замовчуванням ── */
.pricing-discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(232, 255, 0, 0.12);
  color: var(--accent);
  border: 1px solid rgba(232, 255, 0, 0.3);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

/* з'являється коли активний річний план */
.pricing-section.yearly .pricing-discount-badge {
  opacity: 1;
  transform: scale(1);
}

/* ── Назва плану ── */
.pricing-plan-name {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--text-muted-1);
  margin-bottom: 20px;
  margin-top: 8px;
}

.pricing-card--pro .pricing-plan-name {
  color: var(--accent);
}

/* ── Ціна ── */
.pricing-price-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 32px;
  line-height: 1;
}

.pricing-price {
  font-family: var(--f-display);
  font-size: clamp(52px, 5vw, 72px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
  /* анімація зміни ціни */
  transition: opacity 0.2s, transform 0.2s;
}

.pricing-card--pro .pricing-price {
  color: var(--accent);
}

/* клас під час анімації зміни */
.pricing-price.updating {
  opacity: 0;
  transform: translateY(-8px);
}

.pricing-price-meta {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  gap: 2px;
}

.pricing-currency {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted-1);
}

.pricing-period {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted-2);
}

/* ── Список фіч ── */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.feature {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

/* галочка / хрестик через псевдоелемент */
.feature::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.feature--yes {
  color: var(--white);
}

.feature--yes::before {
  background-color: rgba(100, 200, 150, 0.15);
  /* SVG checkmark */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 5L4 7.5L8.5 2.5' stroke='%2364C896' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature--no {
  color: var(--text-muted-3);
}

.feature--no::before {
  background-color: rgba(255, 255, 255, 0.04);
  /* SVG cross */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 2.5L7.5 7.5M7.5 2.5L2.5 7.5' stroke='%23444444' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── CTA кнопки ── */
.pricing-btn {
  width: 100%;
  padding: 15px 24px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.pricing-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-2);
}

.pricing-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.pricing-btn--filled {
  background: var(--accent);
  color: #000000;
  border: 2px solid var(--accent);
}

.pricing-btn--filled:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* ── Адаптив ── */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  /* на мобільному PRO не вищий — зайвий padding прибираємо */
  .pricing-card--pro {
    padding: 40px 32px;
  }

  .pricing-section {
    padding: 64px 16px;
  }
}

/* ═══════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════ */

.gallery-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Masonry через CSS columns ── */
.gallery-masonry {
  columns: 3;
  column-gap: 12px;
}

/* ── Елемент галереї ── */
.gallery-item {
  break-inside: avoid;       /* не розривати між колонками */
  margin-bottom: 12px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-1);       /* placeholder поки фото не завантажилось */

  /* reveal: початковий стан */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.gallery-section.in-view .gallery-item {
  opacity: 1;
  transform: translateY(0);
}

/* stagger для 9 елементів */
.gallery-section.in-view .gallery-item:nth-child(1) { transition-delay: 0s;    }
.gallery-section.in-view .gallery-item:nth-child(2) { transition-delay: 0.07s; }
.gallery-section.in-view .gallery-item:nth-child(3) { transition-delay: 0.14s; }
.gallery-section.in-view .gallery-item:nth-child(4) { transition-delay: 0.21s; }
.gallery-section.in-view .gallery-item:nth-child(5) { transition-delay: 0.28s; }
.gallery-section.in-view .gallery-item:nth-child(6) { transition-delay: 0.35s; }
.gallery-section.in-view .gallery-item:nth-child(7) { transition-delay: 0.42s; }
.gallery-section.in-view .gallery-item:nth-child(8) { transition-delay: 0.49s; }
.gallery-section.in-view .gallery-item:nth-child(9) { transition-delay: 0.56s; }

/* ── Фото ── */
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

/* ── Hover overlay ── */
.gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover {
  opacity: 1;
}

.gallery-zoom-icon {
  transition: transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1.15);
}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;

  /* прихований за замовчуванням */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Фото у lightbox ── */
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  /* анімація появи */
  transform: scale(0.9);
  transition: transform 0.35s var(--ease);
}

.lightbox.open .lightbox-img-wrap {
  transform: scale(1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  /* fade при зміні фото */
  transition: opacity 0.2s ease;
}

.lightbox-img.changing {
  opacity: 0;
}

/* ── Закрити ── */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ── Лічильник ── */
.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Навігація ← → ── */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(232, 255, 0, 0.1);
  border-color: rgba(232, 255, 0, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav--prev { left: 24px; }
.lightbox-nav--next { right: 24px; }

/* ── Адаптив ── */
@media (max-width: 900px) {
  .gallery-masonry {
    columns: 2;
  }

  .gallery-section {
    padding: 80px 24px;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }

  .gallery-section {
    padding: 64px 16px;
  }

  .lightbox-nav--prev { left: 10px; }
  .lightbox-nav--next { right: 10px; }
}

/* ═══════════════════════════════════════
   NEWS SECTION
═══════════════════════════════════════ */

.news-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* горизонтальний скрол на мобільному */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Картка новини ── */
.news-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-4);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 2px solid transparent;
  transition: transform 0.3s var(--ease),
              border-top-color 0.3s ease,
              box-shadow 0.3s ease;

  /* reveal */
  opacity: 0;
  transform: translateY(24px);
}

.news-section.in-view .news-card {
  opacity: 1;
  transform: translateY(0);
}

.news-section.in-view .news-card:nth-child(1) { transition-delay: 0s; }
.news-section.in-view .news-card:nth-child(2) { transition-delay: 0.12s; }
.news-section.in-view .news-card:nth-child(3) { transition-delay: 0.24s; }

/* після reveal — скидаємо delay для hover */
.news-section.in-view .news-card {
  transition: transform 0.3s var(--ease),
              border-top-color 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.5s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ── Фото ── */
.news-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

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

/* badge на фото */
.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #000000;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
}

/* ── Тіло картки ── */
.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--text-muted-2);
}

.news-title {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}

.news-desc {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted-1);
  line-height: 1.6;
  /* обрізаємо до 2 рядків */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-link {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: text-decoration 0.2s;
  align-self: flex-start;
}

.news-link:hover {
  text-decoration: underline;
}

/* ── Адаптив новини ── */
@media (max-width: 900px) {
  .news-section {
    padding: 80px 0 80px 24px; /* правий padding 0 — дозволяє горизонтальний скрол */
    max-width: 100%;
    overflow: hidden;
  }

  .news-section .section-header {
    padding-right: 24px;
  }

  .news-grid {
    grid-template-columns: repeat(3, 280px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .news-grid::-webkit-scrollbar { display: none; }

  .news-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: repeat(3, 260px);
  }
}


/* ═══════════════════════════════════════
   REVIEWS SECTION
═══════════════════════════════════════ */

.reviews-section {
  padding: 100px 0;
  background: var(--surface-2);
  overflow: hidden;
}

.reviews-section .section-header {
  padding: 0 48px;
}

/* ── Обгортка слайдера ── */
.reviews-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
}

/* ── Track ── */
.reviews-track {
  display: flex;
  gap: 0;
  overflow: hidden; /* JS керує transform */
  width: 100%;
}

/* ── Картка відгуку ── */
.review-card {
  min-width: 100%;       /* кожна карточка = 100% ширини track */
  padding: 48px 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;

  /* reveal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reviews-section.in-view .review-card {
  opacity: 1;
  transform: translateY(0);
}

/* великі декоративні лапки на фоні */
.review-quote-bg {
  position: absolute;
  top: 20px;
  left: 100px;
  font-family: Georgia, serif;
  font-size: 160px;
  line-height: 1;
  color: var(--white);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}

/* ── Шапка картки: аватар + ім'я ── */
.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #000000;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-name {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.review-stars {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 2px;
}

/* ── Текст відгуку ── */
.review-text {
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* ── Стрілки ── */
.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  color: var(--text-muted-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.reviews-arrow:hover {
  background: var(--accent-dark);
  border-color: rgba(232, 255, 0, 0.3);
  color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.reviews-arrow--prev { left: 32px; }
.reviews-arrow--next { right: 32px; }

/* ── Dots ── */
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 0 48px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
  padding: 0;
}

.reviews-dot.active {
  background: var(--accent);
  width: 24px;          /* активна dot витягується в лінію */
  border-radius: 4px;
}

/* ── Адаптив відгуки ── */
@media (max-width: 900px) {
  .review-card {
    padding: 40px 72px;
  }

  .review-quote-bg {
    left: 60px;
  }

  .reviews-arrow--prev { left: 12px; }
  .reviews-arrow--next { right: 12px; }

  .reviews-section .section-header {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .review-card {
    padding: 32px 24px;
  }

  .review-quote-bg {
    left: 16px;
    font-size: 120px;
  }

  .review-text {
    font-size: 15px;
  }

  .reviews-arrow {
    display: none; /* на мобільному тільки dots */
  }
}

/* ═══════════════════════════════════════
   CONTACTS SECTION
═══════════════════════════════════════ */

.contacts-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Ліва частина ── */
.contacts-info .section-title {
  text-align: left;
  margin-bottom: 8px;
}

.contacts-info .section-sub {
  text-align: left;
  margin-bottom: 40px;
}

.contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contacts-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.contacts-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contacts-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.contacts-item a:hover {
  color: var(--accent);
}

/* Години роботи — grid 2 колонки */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 6px;
}

.hours-day {
  font-weight: 500;
  color: var(--white);
}

.hours-time {
  color: var(--text-muted-1);
}

/* Соцмережі в контактах */
.contacts-socials {
  display: flex;
  gap: 12px;
}

/* ── Спільний стиль social-circle ── */
.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-1);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  flex-shrink: 0;
}

.social-circle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

.social-circle--sm {
  width: 36px;
  height: 36px;
}

/* ── Права частина: Карта ── */
.contacts-map {
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-4);
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: invert(90%) hue-rotate(180deg); /* dark стиль мапи */
}

/* ── Адаптив контакти ── */
@media (max-width: 900px) {
  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts-map {
    height: 300px;
  }

  .contacts-section {
    padding: 80px 24px;
  }
}



/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.footer {
  background: var(--surface-5);
  border-top: 1px solid var(--surface-4);
  padding: 72px 48px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

/* ── Колонка бренду ── */
.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 24px;
}

.footer-desc {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

/* ── Колонки навігації ── */
.footer-col-title {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text-muted-3);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted-4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ── Колонка контактів ── */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-muted-4);
}

.footer-contacts a {
  color: var(--text-muted-4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: var(--accent);
}

.footer-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--accent) !important;
  font-weight: 500;
}

/* ── Копірайт ── */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--text-muted-3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ── Адаптив footer ── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer {
    padding: 56px 24px 0;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ═══════════════════════════════════════
   PROMO MODAL
═══════════════════════════════════════ */

.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  /* анімація появи */
  opacity: 0;
  animation: promo-overlay-in 0.4s var(--ease) 0.6s forwards;
}

@keyframes promo-overlay-in {
  to { opacity: 1; }
}

/* стан закриття */
.promo-overlay.closing {
  animation: promo-overlay-out 0.35s var(--ease) forwards;
}

@keyframes promo-overlay-out {
  to { opacity: 0; pointer-events: none; }
}

/* ── Вікно ── */
.promo-modal {
  background: var(--surface-3);
  border: 1px solid #1e1e1e;
  border-radius: 24px;
  max-width: 920px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
  position: relative;

  /* анімація появи */
  transform: translateY(32px) scale(0.97);
  opacity: 0;
  animation: promo-modal-in 0.45s var(--ease) 0.65s forwards;
}

@keyframes promo-modal-in {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.promo-overlay.closing .promo-modal {
  animation: promo-modal-out 0.3s var(--ease) forwards;
}

@keyframes promo-modal-out {
  to { transform: translateY(24px) scale(0.96); opacity: 0; }
}

/* ── Кнопка закрити ── */
.promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ── Ліва частина ── */
.promo-left {
  padding: 48px 40px;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-right: 1px solid var(--surface-4);

  /* декоративний акцентний градієнт знизу */
  background-image: radial-gradient(ellipse 120% 60% at 10% 110%, rgba(232,255,0,0.07) 0%, transparent 70%);
}

.promo-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: promo-dot-pulse 2s ease-in-out infinite;
}

@keyframes promo-dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.promo-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
}

.promo-lead {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.promo-sub {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.promo-sub strong {
  color: var(--accent);
  font-weight: 600;
}

/* CTA кнопка */
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  padding: 13px 28px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.promo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-105%);
  transition: transform 0.35s var(--ease);
}

.promo-cta:hover::before { transform: translateX(0); }
.promo-cta:hover { transform: scale(1.02); }
.promo-cta span, .promo-cta svg { position: relative; z-index: 1; }

/* ── Права частина ── */
.promo-right {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) var(--surface-3);
}

.promo-right-label {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
}

/* ── Список фіч ── */
.promo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.promo-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-4);
}

.promo-feature:last-child {
  border-bottom: none;
}

.promo-feature-num {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 1px;
  min-width: 24px;
}

.promo-feature-title {
  display: block;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.promo-feature-desc {
  display: block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 300;
  color: #666;
  line-height: 1.5;
}

/* ── Технічні деталі ── */
.promo-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-tech-item {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666;
  background: #161616;
  border: 1px solid #222;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Примітка ── */
.promo-note {
  font-family: var(--f-body);
  font-size: 12px;
  color: #444;
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px solid var(--surface-4);
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .promo-modal {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .promo-left {
    padding: 40px 28px 32px;
    border-right: none;
    border-bottom: 1px solid var(--surface-4);
  }

  .promo-right {
    padding: 28px;
    max-height: none;
  }
}

/* ── Promo: більший текст ── */
.promo-lead {
  font-size: 17px;
  line-height: 1.7;
}

.promo-sub {
  font-size: 15px;
  line-height: 1.6;
}

.promo-feature-title {
  font-size: 15px;
  margin-bottom: 5px;
}

.promo-feature-desc {
  font-size: 13px;
  line-height: 1.6;
}

.promo-tech-item {
  font-size: 12px;
  padding: 6px 14px;
}

.promo-note {
  font-size: 13px;
  color: var(--text-muted-1);
  line-height: 1.6;
}

.promo-right-label {
  font-size: 15px;
}


/* ═══════════════════════════════════════
   PRELOADER
═══════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  font-family: var(--f-display);
  font-size: 48px;
  letter-spacing: .1em;
  color: var(--white);
  animation: preloader-pulse 1s ease-in-out infinite;
}
.preloader-logo em {
  font-style: normal;
  background: var(--accent);
  color: #000;
  padding: 2px 8px 0;
  margin-left: 6px;
}
.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border-2);
  border-radius: 1px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  background: var(--accent);
  animation: preloader-fill .8s ease-in-out forwards;
}
@keyframes preloader-pulse {
  0%,100% { opacity: 1 }
  50%      { opacity: .4 }
}
@keyframes preloader-fill {
  from { width: 0 }
  to   { width: 100% }
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 10001;
  box-shadow: 0 0 8px rgba(232,255,0,.5);
  transition: width .05s linear;
}

/* ═══════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { background: var(--white) }

/* ═══════════════════════════════════════
   CHAT + APP TIP — спільна зона
═══════════════════════════════════════ */

/* Контейнер що тримає обидва елементи разом */
.chat-zone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ── App download tip ── */
.app-download-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: tip-in .45s var(--ease) 3s forwards;
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
}
.app-download-tip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,255,0,.1);
}
.app-download-tip.hidden {
  opacity: 0 !important;
  transform: translateY(6px) !important;
  pointer-events: none;
}
@keyframes tip-in {
  to { opacity: 1; transform: translateY(0) }
}
.app-tip-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-tip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}
.app-tip-title {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
}
.app-tip-sub {
  font-size: 11px;
  color: var(--text-muted-1);
  white-space: nowrap;
}
.app-tip-close {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-4);
  border: 1px solid var(--border-2);
  color: var(--text-muted-1);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background .2s, color .2s;
}
.app-tip-close:hover {
  background: var(--border-2);
  color: var(--white);
}

/* ── Chat widget (без position:fixed — тепер у .chat-zone) ── */
.chat-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Bubble */
.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #000;
  flex-shrink: 0;
  animation: chat-bounce-in .6s cubic-bezier(.34,1.56,.64,1) 1.5s both;
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(232,255,0,.3);
}
@keyframes chat-bounce-in {
  from { transform: scale(0); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}
.chat-bubble-icon {
  position: absolute;
  transition: opacity .2s, transform .2s;
}
.chat-bubble-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(.6);
}
.chat-widget.open .chat-bubble-icon--chat {
  opacity: 0;
  transform: rotate(90deg) scale(.6);
}
.chat-widget.open .chat-bubble-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.chat-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online-green);
  border: 2px solid var(--accent);
  transition: background .3s;
}
.chat-widget.offline .chat-status-dot { background: var(--text-muted-2) }
.chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: chat-pulse 2.5s ease-out 2.5s infinite;
}
@keyframes chat-pulse {
  0%   { transform: scale(1);   opacity: .6 }
  100% { transform: scale(1.5); opacity: 0  }
}
.chat-widget.open .chat-pulse { animation: none }

/* Вікно чату */
.chat-window {
  width: 340px;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-height: 460px;
}
.chat-widget.open .chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat header */
.chat-header {
  background: var(--surface-4);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; flex-direction: column; gap: 3px }
.chat-header-title {
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--white);
}
.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted-1);
}
.chat-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online-green);
  flex-shrink: 0;
  transition: background .3s;
}
.chat-widget.offline .chat-header-dot { background: var(--text-muted-2) }

/* Chat body */
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) var(--surface-1);
}
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--f-display);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-msg-bubble {
  background: var(--surface-4);
  border-radius: 4px 14px 14px 14px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 220px;
}
.chat-msg--user { flex-direction: row-reverse }
.chat-msg--user .chat-msg-bubble {
  background: var(--accent-dark);
  border: 1px solid rgba(232,255,0,.2);
  border-radius: 14px 4px 14px 14px;
  color: var(--white);
}

/* Офлайн форма */
.chat-offline-view {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.chat-offline-note {
  font-size: 13px;
  color: var(--text-muted-1);
  line-height: 1.5;
}
.chat-offline-success {
  display: none;
  font-size: 13px;
  color: var(--online-green);
  text-align: center;
  padding: 6px 0;
}
.chat-input-field {
  background: var(--surface-4);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 9px 13px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--white);
  width: 100%;
  outline: none;
  resize: none;
  transition: border-color .2s;
}
.chat-input-field::placeholder { color: var(--text-muted-2) }
.chat-input-field:focus { border-color: rgba(232,255,0,.35) }
.chat-textarea { min-height: 68px }

/* Chat footer */
.chat-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-2);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
}
.chat-input-inline {
  flex: 1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
}
.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.chat-send-btn:hover { transform: scale(1.1); background: var(--white) }
.chat-send-btn--full {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
}

/* офлайн */
.chat-widget.offline .chat-online-view { display: none }
.chat-widget.offline .chat-offline-view { display: flex }
.chat-widget.offline .chat-footer { display: none }

/* мобільний */
@media (max-width: 480px) {
  .chat-zone { bottom: 16px; right: 16px }
  .chat-window { width: calc(100vw - 32px) }
  .app-download-tip { display: none }
}

/* ═══════════════════════════════════════
   LEAD MODAL
═══════════════════════════════════════ */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.lead-overlay.open {
  display: flex;
  opacity: 1;
}
.lead-overlay.closing {
  opacity: 0;
  pointer-events: none;
}

.lead-modal {
  background: var(--surface-3, #0f0f0f);
  border: 1px solid var(--border-1);
  border-radius: 24px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .4s var(--ease);
  max-height: 90vh;
}
.lead-overlay.open .lead-modal {
  transform: translateY(0) scale(1);
}

/* закрити */
.lead-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-2);
  color: var(--text-muted-1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
}
.lead-close:hover { background: rgba(255,255,255,.1); color: var(--white) }

/* ── Ліва частина ── */
.lead-left {
  padding: 48px 40px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-1);
  background-image: radial-gradient(ellipse 120% 60% at 0% 100%, rgba(232,255,0,.07) 0%, transparent 70%);
}
.lead-deco-text {
  position: absolute;
  bottom: -10%;
  left: -5%;
  font-family: var(--f-display);
  font-size: 180px;
  line-height: 1;
  color: var(--white);
  opacity: .03;
  user-select: none;
  pointer-events: none;
}
.lead-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.lead-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--white);
}
.lead-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.lead-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.lead-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
}
.lead-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Права частина ── */
.lead-right {
  padding: 40px 36px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.lead-form-label {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted-3, #444);
  margin-bottom: 20px;
}

/* поля */
.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.lead-field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted-1);
}
.lead-input {
  background: var(--surface-4, #1a1a1a);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--white);
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.lead-input::placeholder { color: var(--text-muted-2) }
.lead-input:focus { border-color: rgba(232,255,0,.4) }
.lead-input.error { border-color: rgba(255,80,80,.5) }

.lead-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.lead-select option { background: #1a1a1a; color: var(--white) }

.lead-textarea {
  resize: none;
  min-height: 80px;
}

.lead-field-err {
  font-size: 11px;
  color: rgba(255,80,80,.8);
  display: none;
}
.lead-field.has-error .lead-field-err { display: block }
.lead-field.has-error .lead-input { border-color: rgba(255,80,80,.5) }

/* кнопка сабміт */
.lead-submit {
  width: 100%;
  height: 52px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, background .2s;
}
.lead-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .4s var(--ease);
}
.lead-submit:hover::before { transform: translateX(0) }
.lead-submit:hover { transform: scale(1.01) }
.lead-submit span, .lead-submit svg { position: relative; z-index: 1 }
.lead-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.lead-privacy {
  font-size: 11px;
  color: var(--text-muted-2);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.lead-privacy a {
  color: var(--text-muted-1);
  text-decoration: underline;
  transition: color .2s;
}
.lead-privacy a:hover { color: var(--accent) }

/* ── Стан успіху ── */
.lead-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 300px;
}
.lead-success.show { display: flex }

.lead-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-dark);
  border: 1px solid rgba(232,255,0,.2);
  display: flex; align-items: center; justify-content: center;
  animation: success-pop .5s var(--ease) forwards;
}
@keyframes success-pop {
  from { transform: scale(.6); opacity: 0 }
  to   { transform: scale(1);  opacity: 1 }
}
.lead-success-title {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: .04em;
  color: var(--white);
}
.lead-success-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.lead-success-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .2s;
}
.lead-success-btn:hover { background: #fff; transform: scale(1.02) }

/* ── Адаптив ── */
@media (max-width: 680px) {
  .lead-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .lead-left {
    padding: 32px 24px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border-1);
  }
  .lead-deco-text { display: none }
  .lead-right { padding: 24px }
}
/* ── Мобільний адаптив chat-zone ── */
@media (max-width: 480px) {
  .chat-zone {
    bottom: 104px;
    right: 16px;
  }

  /* floating tip ховаємо — замінюємо статичною панеллю */
  .app-download-tip {
    display: none !important;
  }

  .chat-window {
    width: calc(100vw - 32px);
  }

  /* чат bubble трохи менший */
  .chat-bubble {
    width: 50px;
    height: 50px;
  }
}

/* ── Мобільна панель додатку (тільки mobile) ── */
.app-mobile-bar {
  display: none;
}

@media (max-width: 480px) {
  .app-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    background: var(--surface-1);
    border-top: 1px solid var(--border-2);
    padding: 10px 16px 10px;
    /* safe area для iPhone */
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0,0,0,.4);
  }

  .app-mobile-bar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .app-mobile-bar-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .app-mobile-bar-title {
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
  }

  .app-mobile-bar-sub {
    font-size: 11px;
    color: var(--text-muted-1);
  }

  .app-mobile-bar-btn {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
  }
  .app-mobile-bar-btn:hover { background: #fff }

  .app-mobile-bar-close {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: var(--text-muted-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
  }

  /* щоб footer не перекривався панеллю */
  .footer {
    padding-bottom: 80px;
  }
}
