/* =========================================================
   SaloApp — сайт-визитка (saloapp.uz)
   Дизайн-система из приложения + доработка визуального качества:
   3D-мокапы, глубина, анимации, мобильный приоритет.
   ========================================================= */

:root {
  /* Фирменная пара (бизнес-тема приложения): королевский синий */
  --pf: #2456d0;          /* основной синий */
  --pf2: #4d8ff0;         /* светлый синий */
  --pf-rgb: 36, 86, 208;  /* для rgba(var(--pf-rgb), .10) и т.п. */
  --pf-ink: #2456d0;      /* синий для текста/иконок на светлом */
  --accent: #1e6bff;      /* синий свечения/фокуса (Part 3/7) */

  /* Фирменный градиент (кнопки, hero-карточки, акценты) */
  --grad: linear-gradient(135deg, #2456d0, #4d8ff0);

  /* Текст */
  --ink: #38323f;         /* заголовки и основной текст */
  --ink-soft: #6b6276;    /* вторичный текст */
  --muted: #a39bab;       /* приглушённые подписи */

  /* Фоны */
  --bg: #ffffff;                       /* фон страницы — чистый белый */
  --tint: #f5f9ff;                     /* фон секции мокапов */
  --dark: #0c1b39;                     /* тёмный футер */
  --card: rgba(255,255,255,0.94);      /* фон карточек */
  --glass-br: #e4edfa;                 /* граница карточек */
  --line: rgba(160,150,175,0.18);      /* границы полей/разделители */
  --line-in: #f0f4fa;                  /* разделитель строк внутри мокапа */
  --icon-bg: #eaf2ff;                  /* подложка иконок карточек */

  /* Состояния и акценты */
  --green: #6fcf97;  --green-ink: #3fa56b;
  --amber: #f2b56b;  --amber-ink: #d99845;
  --red: #ef8b80;
  --blue-ink: #5b8fc7;
  --cyan-ink: #1f9ed4;

  /* Тени */
  --sh-card: 0 6px 20px rgba(30,107,255,0.06);
  --sh-card-hover: 0 14px 34px rgba(30,107,255,0.14);
  --sh-stat: 0 10px 24px rgba(150,130,180,0.13);
  --sh-hero: 0 20px 45px rgba(36,86,208,0.42);
  --sh-btn: 0 8px 22px rgba(36,86,208,0.28);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --maxw: 1120px;
}

/* ------------------------- Reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
::selection { background: rgba(var(--pf-rgb), 0.16); }

/* Видимый фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------- Layout ------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; position: relative; }
/* Плавный переход: белый → тон → белый, чтобы не было резкой линии
   на границе секций (особенно под телефонами). */
.bg-tint { background: linear-gradient(180deg, #ffffff 0%, var(--tint) 16%, var(--tint) 84%, #ffffff 100%); }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head--center {
  margin-left: auto; margin-right: auto; text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pf-ink);
  background: rgba(var(--pf-rgb), 0.10);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.section-sub {
  margin-top: 14px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: balance;
}

/* ------------------------- Reveal ------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ------------------------- Buttons ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 15px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(.98); }

.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-btn); }
.btn--secondary {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 12px rgba(120,130,180,0.08);
}
.btn--white { background: #fff; color: var(--pf-ink); box-shadow: 0 8px 22px rgba(20,40,90,0.18); }
.btn svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .btn--primary:hover { box-shadow: 0 12px 28px rgba(36,86,208,0.34); transform: translateY(-1px); }
  .btn--secondary:hover { border-color: rgba(var(--pf-rgb), 0.35); }
  .btn--white:hover { box-shadow: 0 12px 28px rgba(20,40,90,0.24); transform: translateY(-1px); }
}

/* ------------------------- Header ------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(30,60,120,0.05);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 12px rgba(36,86,208,0.16);
}
.logo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo__name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ------------------------- Hero -------------------------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 70%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.hero::before {
  width: 600px; height: 600px;
  top: 4%; right: 4%;
  background: radial-gradient(circle, rgba(30,107,255,0.16), transparent 70%);
  filter: blur(80px);
}
.hero::after {
  width: 500px; height: 500px;
  bottom: -6%; left: -4%;
  background: radial-gradient(circle, rgba(79,179,255,0.12), transparent 70%);
  filter: blur(100px);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero__actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note {
  margin-top: 22px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero__visual { display: flex; justify-content: center; }

/* ------------------------- Features ---------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--glass-br);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--sh-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--icon-bg);
  color: var(--pf-ink);
  margin-bottom: 18px;
  transition: background .25s var(--ease);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__icon--green { background: rgba(111,207,151,0.16); color: var(--green-ink); }
.feature__icon--amber { background: rgba(242,181,107,0.2); color: var(--amber-ink); }
.feature__title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.feature__desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

@media (hover: hover) {
  .feature:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); }
  .feature:hover .feature__icon { background: #dbeaff; }
  .feature:hover .feature__icon--green { background: rgba(111,207,151,0.26); }
  .feature:hover .feature__icon--amber { background: rgba(242,181,107,0.32); }
}

/* ------------------------- Showcase ---------------------- */
.showcase-row {
  display: flex;
  gap: 56px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  padding: 20px 0 40px;
}
.showcase-item { text-align: center; }
.showcase-item--back { z-index: 1; }
.showcase-item--front { z-index: 2; }
.showcase-item__cap { margin-top: 26px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ------------------------- Audience ---------------------- */
.audience { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.audience__item {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--glass-br);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--sh-card);
  font-size: 15px; font-weight: 700; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.audience__item .ic {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--icon-bg); color: var(--pf-ink);
}
.audience__item .ic svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .audience__item:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
}

/* ------------------------- CTA --------------------------- */
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--sh-hero);
}
.cta-card .deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.cta-card .deco-1 { width: 320px; height: 320px; top: -120px; right: -90px; }
.cta-card .deco-2 { width: 220px; height: 220px; bottom: -110px; left: -60px; }
.cta-card .deco-3 { width: 140px; height: 140px; top: 30%; left: 8%; background: rgba(255,255,255,0.05); }
.cta-card__title { position: relative; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.cta-card__sub { position: relative; margin: 16px auto 28px; font-size: 16px; opacity: 0.92; max-width: 440px; }
.cta-card .btn--white { position: relative; }
.cta-card__tg { color: #fff; font-weight: 700; text-decoration: underline; }

/* бегущий блик по CTA-карточке */
.cta-card__shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,0.14) 46%, transparent 58%);
  transform: translateX(-120%);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}

/* мягкое свечение-блюр снизу страницы (за CTA) */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: "";
  position: absolute; z-index: 0;
  width: 560px; height: 560px;
  left: 50%; margin-left: -280px; bottom: -180px;
  background: radial-gradient(circle, rgba(30,107,255,0.16), transparent 70%);
  filter: blur(90px);
  animation: floatBlobA 20s ease-in-out infinite;
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

/* =========================================================
   Анимации (плавающий блюр, лёгкий bob, пульс) — только
   transform/opacity; отключаются при prefers-reduced-motion.
   ========================================================= */
@keyframes floatBlobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -26px) scale(1.08); }
}
@keyframes floatBlobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, 20px) scale(1.06); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}
@keyframes sweep {
  0%   { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

/* плавающий блюр сверху (в hero) */
.hero::before { animation: floatBlobA 17s ease-in-out infinite; }
.hero::after  { animation: floatBlobB 21s ease-in-out infinite; }

/* лёгкое «дыхание» телефона в hero */
.hero .phone-wrap { animation: bob 6s ease-in-out infinite; }

/* пульс зелёной точки */
.hero__note .dot { animation: pulse 2.4s ease-in-out infinite; }

/* ------------------------- Footer ------------------------ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 40px;
}
.site-footer .logo__name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-about { max-width: 340px; }
.footer-about p { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-col a { position: relative; transition: color .2s var(--ease); }
.footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
@media (hover: hover) {
  .footer-col a:hover { color: #fff; }
  .footer-col a:hover::after { transform: scaleX(1); }
}
.footer-req { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.site-footer.footer--slim { padding: 40px 0; }
.footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: none; }
.footer--slim .footer-bottom a { color: #7db0ff; font-weight: 700; }

/* =========================================================
   Рамка телефона + 3D-мокапы
   ========================================================= */
.phone-wrap { perspective: 1300px; perspective-origin: 50% 42%; }

.phone-mockup {
  --tilt: rotateY(-22deg) rotateX(5deg) rotateZ(-1.5deg);
  --py: 0px;
  --thick: 22px;              /* толщина корпуса */
  width: 340px;
  transform: var(--tilt) translateY(var(--py));
  transform-style: preserve-3d;
  transition: transform .2s var(--ease), filter .3s var(--ease);
}
.phone-mockup.is-back { transform: var(--tilt) translateY(var(--py)) scale(0.9) translateX(-6%); filter: brightness(0.94); }
/* Зеркальная пара: Клиенты повёрнут налево (rotateY -22, торец справа),
   Финансы — направо (rotateY +22, торец слева). Оба читаются как 3D,
   торцы смотрят к центру. */
.phone-mockup.mirrored {
  --tilt: rotateY(22deg) rotateX(5deg) rotateZ(1.5deg);
}

.phone {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(150deg, #23273a, #0a0c12);
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.14),
    inset 0 1px 1px rgba(255,255,255,0.22),
    0 4px 12px rgba(12,27,57,0.10),
    0 26px 50px rgba(12,27,57,0.20),
    0 70px 110px rgba(12,27,57,0.26),
    0 50px 90px rgba(30,107,255,0.16);
}
/* Толщина корпуса: задняя оболочка со скруглением как у корпуса —
   на уходящем крае читается как торец, углы совпадают (без артефакта). */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(115deg, #2c3042 0%, #12141c 52%, #05060a 100%);
  transform: translateZ(calc(var(--thick) * -1));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.45);
}
/* Динамический остров (приподнят над стеклом) */
.phone::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translate(-50%, 0) translateZ(2px);
  width: 90px; height: 26px;
  background: #05060a;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 8;
}
.phone__screen {
  position: relative;
  background: #f6f5f8;
  border-radius: 36px;
  overflow: hidden;
  height: 720px;
  display: flex;
  flex-direction: column;
  transform: translateZ(1px);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}
/* Блик на стекле */
.phone__screen::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 42%);
  pointer-events: none;
  z-index: 7;
}

/* статус-бар */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 6px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.status-bar .sb-right { display: flex; align-items: center; gap: 6px; color: #8b8592; }
.status-bar .sb-right svg { width: 17px; height: 12px; }

.app-body { flex: 1; overflow: hidden; padding: 10px 18px 96px; }

/* «Живой» телефон: стопка экранов с кросс-фейдом.
   grid-стек — все слайды в одной ячейке, высота = самый высокий экран
   (работает и при фикс-высоте на десктопе, и при авто-высоте на мобильном). */
.app-stack { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-height: 0; }
.app-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.app-slide.is-active { opacity: 1; visibility: visible; }

/* нижняя навигация */
.tabbar {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  background: rgba(255,255,255,0.96);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(120,100,150,0.18),
              inset 0 2px 0 rgba(255,255,255,0.85);
  display: flex; justify-content: space-between;
  padding: 9px 12px;
  z-index: 6;
}
.tabbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-soft); font-size: 10px; font-weight: 700;
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item--active .tabbar__bubble { background: var(--grad); box-shadow: 0 4px 12px rgba(36,86,208,0.30); color: #fff; }
.tabbar__bubble { width: 44px; height: 30px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 1px; }
.tabbar__item--active .tabbar__label { color: var(--pf-ink); }

/* --- Общие элементы мокапа --- */
.app-topline { display: flex; align-items: flex-start; justify-content: space-between; margin: 6px 0 16px; }
.app-kicker { font-size: 13px; color: var(--ink-soft); }
.app-h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.icon-btn-round {
  width: 44px; height: 44px; border-radius: 50%;
  background: #efedf2; color: var(--ink-soft);
  display: grid; place-items: center; flex: none;
}
.icon-btn-round svg { width: 20px; height: 20px; }

.pill-export {
  border: 1.5px solid var(--line); background: #fff; color: var(--pf-ink);
  font-size: 12.5px; font-weight: 700; border-radius: 12px; padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill-export svg { width: 15px; height: 15px; }

/* hero-карточка (выручка) */
.rev-card {
  position: relative; overflow: hidden;
  background: var(--grad); border-radius: 28px; padding: 24px;
  color: #fff; box-shadow: var(--sh-hero);
}
.rev-card::before, .rev-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.07); }
.rev-card::before { width: 150px; height: 150px; top: -50px; right: -30px; }
.rev-card::after  { width: 110px; height: 110px; bottom: -46px; left: -26px; }
.rev-card__cap { font-size: 13px; opacity: 0.9; }
.rev-card__amount {
  font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  margin-top: 10px; font-variant-numeric: tabular-nums;
}
.rev-card__amount .unit { font-size: 16px; opacity: 0.75; font-weight: 700; margin-left: 4px; }
.rev-card__foot { margin-top: 12px; font-size: 12px; opacity: 0.85; }
.rev-badge {
  position: absolute; top: 22px; right: 22px;
  background: rgba(255,255,255,0.2); border-radius: 20px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 800;
}

/* карточки статистики (3 в ряд) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.stat-card { background: #fff; border-radius: 20px; padding: 16px 12px; text-align: center; box-shadow: var(--sh-stat); }
.stat-card__ic {
  width: 38px; height: 38px; border-radius: 12px; margin: 0 auto 9px;
  display: grid; place-items: center; background: rgba(var(--pf-rgb), 0.16); color: var(--pf-ink);
}
.stat-card__ic svg { width: 19px; height: 19px; }
.stat-card__ic--green { background: rgba(111,207,151,0.16); color: var(--green-ink); }
.stat-card__ic--cyan  { background: rgba(31,158,212,0.14); color: var(--cyan-ink); }
.stat-card__num {
  font-size: 23px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--pf-ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-card__num--green { color: var(--green-ink); }
.stat-card__num--cyan  { color: var(--cyan-ink); }
.stat-card__lbl { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); margin-top: 5px; }

/* финансовая карточка (обзор) */
.fin-card { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--sh-card); margin-top: 2px; }
.fin-card__title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.fin-card__cols { display: flex; gap: 14px; }
.fin-col { flex: 1; }
.fin-col__lbl { font-size: 12px; color: var(--ink-soft); }
.fin-col__val { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fin-col__val--green { color: var(--green-ink); }
.fin-col__val--blue { color: var(--pf-ink); }

/* чипы-фильтры */
.chips { display: flex; gap: 8px; overflow: hidden; margin: 4px 0 12px; }
.chip { border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.chip--active { background: var(--grad); border-color: transparent; color: #fff; }

/* поле поиска */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh-card); margin-bottom: 8px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search span { color: var(--muted); font-size: 14px; }

/* список клиентов — единая карточка с разделителями */
.client-list { background: #fff; border-radius: 18px; padding: 2px 14px; box-shadow: var(--sh-card); }
.client {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-in);
}
.client:last-child { border-bottom: none; }
.client__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700;
  display: grid; place-items: center; flex: none;
}
.client__main { flex: 1; min-width: 0; }
.client__name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  line-height: 1.25; min-width: 0;
}
/* имя — одной строкой, при нехватке места аккуратно троеточие; бейдж в ряд */
.client__nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.client__meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.client__amt { text-align: right; flex: none; padding-left: 6px; }
.client__sum { font-size: 13.5px; font-weight: 700; color: var(--green-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.client__sub { font-size: 10px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }

.badge-reg { display: inline-block; vertical-align: middle; font-size: 9px; font-weight: 800; color: var(--amber-ink); background: rgba(242,181,107,0.2); border-radius: 7px; padding: 1px 6px; margin-left: 5px; flex: none; letter-spacing: 0.01em; }
.client__meta { white-space: nowrap; }
.dot-self { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }

/* переключатель периода (финансы) */
.period { display: flex; gap: 6px; background: #efedf2; border-radius: 16px; padding: 4px; margin: 4px 0 16px; }
.period__pill { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 8px 4px; border-radius: 13px; }
.period__pill--active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(36,86,208,0.24); }

/* мини-карточки финансов */
.mini-row { display: flex; gap: 12px; margin: 14px 0; }
.mini-card { flex: 1; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--sh-card); }
.mini-card__ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(242,181,107,0.2); color: var(--amber-ink); margin-bottom: 12px; }
.mini-card__ic--blue { background: rgba(var(--pf-rgb), 0.16); color: var(--pf-ink); }
.mini-card__ic svg { width: 18px; height: 18px; }
.mini-card__val { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-card__lbl { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

/* график по дням */
.chart-card { background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--sh-card); }
.chart-card__title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.chart .bar { flex: 1; border-radius: 6px 6px 0 0; background: rgba(77,143,240,0.35); }
.chart .bar--peak { background: linear-gradient(to top, #4d8ff0, #2456d0); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* =========================================================
   Страницы документов (privacy / terms)
   ========================================================= */
.doc-header { border-bottom: 1px solid var(--line); background: #fff; }
.doc-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.doc-back { font-size: 14px; font-weight: 700; color: var(--pf-ink); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.doc-back svg { width: 16px; height: 16px; }

.doc-main { padding: 56px 0 80px; }
.doc-col { max-width: 720px; margin: 0 auto; }
.doc-title { font-size: clamp(30px, 5vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.doc-updated { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.doc-toc { margin: 32px 0; padding: 22px 24px; background: rgba(var(--pf-rgb), 0.05); border: 1px solid var(--line); border-radius: 18px; }
.doc-toc h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.doc-toc li { margin-bottom: 8px; }
.doc-toc a { font-size: 14.5px; color: var(--pf-ink); }
@media (hover: hover) { .doc-toc a:hover { text-decoration: underline; } }

.doc-section { margin-top: 40px; scroll-margin-top: 84px; }
.doc-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.doc-section h3 { font-size: 17px; font-weight: 800; margin: 22px 0 10px; }
.doc-section p, .doc-section li { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.doc-section p { margin-bottom: 14px; }
.doc-section ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.doc-section li { margin-bottom: 8px; }
.doc-placeholder { color: var(--muted); font-style: italic; background: rgba(160,150,175,0.08); border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; }

/* мета версии/даты и карточка реквизитов оператора */
.doc-meta { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--pf-ink); }
.doc-operator {
  margin: 22px 0 4px;
  padding: 18px 20px;
  background: rgba(var(--pf-rgb), 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}
.doc-operator b { font-weight: 800; }
.doc-note {
  background: rgba(var(--pf-rgb), 0.06);
  border-left: 3px solid var(--pf-ink);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
}
.doc-section h2 .num { color: var(--pf-ink); margin-right: 8px; }

/* таблица получателей данных */
.doc-table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.doc-table th {
  font-weight: 800;
  color: var(--ink);
  background: rgba(var(--pf-rgb), 0.05);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { font-weight: 700; white-space: nowrap; }

/* =========================================================
   Адаптивность
   ========================================================= */
@media (max-width: 1200px) {
  .hero .container { gap: 40px; }
  .phone-mockup { width: 320px; }
  .showcase-row { gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  /* Шапка: логотип + одна компактная кнопка */
  .header-actions .btn--secondary { display: none; }
  .header-actions .btn--primary { padding: 10px 16px; font-size: 14px; min-height: 40px; }

  /* Hero в столбик, мокап под текстом */
  .hero { padding: 40px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero__actions .btn { flex: 1; }

  .features-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Мобильный концепт: без корпуса телефона — показываем сами экраны
     приложения edge-to-edge как чистые карточки (пользователь уже в телефоне,
     «телефон в телефоне» лишний). Дизайн-ширина 340px сохраняется, мокап
     масштабируется целиком (JS), чтобы UI не перекомпоновывался. */
  .phone-wrap { perspective: none; margin: 0 auto; overflow: visible; }
  .hero .phone-wrap { animation: none; }
  .phone-mockup,
  .phone-mockup.mirrored,
  .phone-mockup.is-back {
    width: 340px;
    transform-origin: top left;
    transform: scale(var(--scale, 1));
    filter: none;
  }
  .phone {
    background: transparent;
    padding: 0;
    border-radius: 28px;
    box-shadow: none;
  }
  .phone::before,          /* динамический остров */
  .phone::after,           /* торец корпуса */
  .phone__screen::after,   /* блик стекла */
  .status-bar {            /* device-статусбар без корпуса не нужен */
    display: none;
  }
  .phone__screen {
    height: auto;
    border-radius: 26px;
    border: 1px solid var(--glass-br);
    box-shadow: 0 14px 34px rgba(30,107,255,0.10), 0 2px 8px rgba(12,27,57,0.06);
    transform: none;
  }
  .app-body { overflow: visible; padding: 20px 18px 16px; }
  .tabbar {
    position: static;
    margin-top: 10px;
    border-radius: 0 0 26px 26px;
    box-shadow: none;
    border-top: 1px solid var(--line-in);
  }

  /* Экраны-карточки — один под другим */
  .showcase-row { flex-direction: column; gap: 28px; align-items: center; padding: 8px 0 16px; }

  .cta-card { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .doc-main { padding: 40px 0 60px; }
}

@media (max-width: 400px) {
  .app-body { padding-left: 16px; padding-right: 16px; }
}

/* Уменьшение движения — доступность */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
