/* Лендинг фитнес-клуба поверх общих стилей карточек (styles.css).
   styles.css рассчитан на экран-приборку, поэтому здесь отпускаем body
   в нормальный скроллящийся документ. */

body.site {
  display: block;
  height: auto;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
}

.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Шапка сайта ────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .site-wrap { display: flex; align-items: center; gap: 30px; height: 68px; }

.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; gap: 24px; margin-left: 14px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }

.site-phone { margin-left: auto; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.btn-call-sm {
  border: 1px solid var(--accent); color: var(--accent); background: #fff;
  border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-call-sm:hover { background: var(--accent-soft); }

/* ── Первый экран ───────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, #0f172a 0%, #14532d 100%);
  color: #fff; padding: 66px 0 74px;
}
.hero-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { color: #86efac; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 14px 0 18px; font-weight: 700; }
.hero-sub { font-size: 17px; line-height: 1.55; color: #cbd5e1; max-width: 560px; }

.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 12px; padding: 15px 26px;
  font: inherit; font-size: 17px; font-weight: 650; cursor: pointer;
  box-shadow: 0 8px 24px rgba(22,163,74,.35);
  transition: .15s;
}
.btn-call:hover:not(:disabled) { background: #15803d; transform: translateY(-1px); }
.btn-call:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-call-ico { font-size: 19px; }
.hero-note { color: #94a3b8; font-size: 14px; }

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 22px;
}
.hero-card-head { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #86efac; }
.hero-card-title { font-size: 21px; font-weight: 650; margin: 6px 0 16px; }
.hero-card .kv { font-size: 14px; }
.hero-card .kv dt { color: #94a3b8; }
.hero-card .kv dd { color: #fff; }

/* ── Полосы контента ────────────────────────────────────────────────── */

.strip { padding: 56px 0; }
.strip.alt { background: var(--bg); }
.strip h2 { font-size: 27px; margin-bottom: 26px; font-weight: 650; }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.scard { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.scard-ico { font-size: 26px; }
.scard h3 { font-size: 18px; margin: 10px 0 8px; }
.scard p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.tcard b { font-size: 15.5px; }
.tcard span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--ink-3); font-size: 13.5px; }
.site-foot .site-wrap { display: flex; gap: 16px; }
.foot-note { margin-left: auto; }

/* ── Виджет звонка ──────────────────────────────────────────────────── */

.widget {
  position: fixed; right: 26px; bottom: 26px; z-index: 30;
  width: 410px; max-height: 72vh;
  background: #0f172a; color: #fff;
  border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.4);
  display: flex; flex-direction: column; overflow: hidden;
  animation: rise .25s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.widget-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,.06); }
.widget-who { display: flex; flex-direction: column; line-height: 1.3; }
.widget-who b { font-size: 15px; }
.widget-who span { font-size: 13px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.widget-timer { margin-left: auto; font: 600 16px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* Полоски «агент говорит»: анимация включается классом на body, который
   ставит app.js по приходу звука. */
.wave { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 34px; padding: 8px 0 4px; }
.wave i { width: 4px; height: 5px; border-radius: 2px; background: #334155; transition: background .2s; }
body.agent-speaking .wave i { background: var(--accent); animation: bounce .9s infinite ease-in-out; }
.wave i:nth-child(2) { animation-delay: .08s } .wave i:nth-child(3) { animation-delay: .16s }
.wave i:nth-child(4) { animation-delay: .24s } .wave i:nth-child(5) { animation-delay: .32s }
.wave i:nth-child(6) { animation-delay: .40s } .wave i:nth-child(7) { animation-delay: .48s }
.wave i:nth-child(8) { animation-delay: .56s } .wave i:nth-child(9) { animation-delay: .64s }
@keyframes bounce { 0%,100% { height: 5px } 50% { height: 26px } }

.widget .transcript {
  flex: 1 1 auto; min-height: 120px;
  padding: 6px 16px 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 7px;
}
.widget .line .who { color: #64748b; flex-basis: 62px; }
.widget .line .txt { background: rgba(255,255,255,.08); color: #e2e8f0; }
.widget .line.agent .txt { background: rgba(22,163,74,.22); color: #dcfce7; }
.widget .line.filler .txt { background: rgba(245,158,11,.18); color: #fde68a; }
.widget .line.sys .txt { background: transparent; color: #64748b; }

.widget-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: rgba(255,255,255,.05);
  font-size: 12.5px; color: #94a3b8;
}
.widget-foot .meter { background: rgba(255,255,255,.15); width: 64px; }
.widget-lat { margin-left: auto; font: 11.5px var(--mono); color: #86efac; }
.btn-hang {
  border: none; background: var(--call); color: #fff;
  border-radius: 9px; padding: 7px 13px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-hang:disabled { opacity: .4; cursor: default; }

/* ── Изнанка ────────────────────────────────────────────────────────── */

.backstage-toggle {
  position: fixed; right: 0; top: 120px; z-index: 25;
  background: #0f172a; color: #fff; border: none;
  border-radius: 10px 0 0 10px; padding: 11px 14px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  writing-mode: vertical-rl;
}
.backstage-toggle:hover { background: #1e293b; }

.backstage {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 28;
  width: 470px; background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(15,23,42,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease-out;
}
.backstage.open { transform: none; }

.backstage-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: #0f172a; color: #fff;
}
.backstage-head h2 { font-size: 14px; font-weight: 600; }
.backstage-actions { margin-left: auto; display: flex; gap: 6px; }

.backstage-body {
  flex: 1 1 auto; overflow-y: auto;
  padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.backstage-body .card.grow { flex: 0 0 auto; max-height: 46vh; }
.backstage-body .tools { max-height: 40vh; }

.backstage-foot {
  display: flex; gap: 12px; align-items: center;
  padding: 9px 16px; background: #fff; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.backstage-foot .cfg { margin-left: auto; text-align: right; max-width: 300px; }

@media (max-width: 1240px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .cols4 { grid-template-columns: repeat(2, 1fr); }
}

/* Переключатель амплуа. Голосов у модели два, остальное — манера из промпта,
   поэтому подпись честно говорит «амплуа», а не «голос». */
.persona-pick {
  display: inline-flex; flex-direction: column; gap: 4px;
  color: #cbd5e1; font-size: 12.5px;
}
.persona-pick span { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.persona-pick select {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 9px;
  padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.persona-pick select option { color: #0f172a; }
