/* Лендинг Shum. Приёмы — как в приложении: пятна-блобы, точечная сетка, градиентная «заливка», блик на кнопках,
   пульсирующее свечение, карточки со свечением и бегущей полоской. Цвета и шрифты — из tokens.css приложения. */
:root {
  --bg: #0a0a0c;
  --bg-alt: #0f0f12;
  --card: #151518;
  --card-2: #1b1b20;
  --text: #f4f4f6;
  --text-2: #a4a4ad;
  --text-3: #6e6e78;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff5500;
  --accent-end: #ff8a3d;
  --accent-2: #ffcc00;
  --glow: rgba(255, 85, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 32px); }
.section { padding: 112px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }
.gradient-text { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 12, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.logo-bars i { width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: bar 1.4s var(--ease) infinite; }
.logo-bars i:nth-child(1) { height: 45%; animation-delay: -0.2s; }
.logo-bars i:nth-child(2) { height: 80%; animation-delay: -0.5s; }
.logo-bars i:nth-child(3) { height: 100%; animation-delay: -0.9s; }
.logo-bars i:nth-child(4) { height: 65%; animation-delay: -0.3s; }
.logo-bars i:nth-child(5) { height: 35%; animation-delay: -0.7s; }
.logo-bars.small { height: 16px; }
.logo-bars.small i { width: 3px; }
.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-link:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 10px; }
.nav-ghost { font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 10px; color: var(--text-2); transition: color 0.2s ease, background 0.2s ease; }
.nav-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { position: relative; overflow: hidden; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 85, 0, 0.3); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-ghost { display: none; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: 14px; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: left 0.6s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.btn-secondary { color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-row.center { justify-content: center; }
.cta-wrap { position: relative; display: inline-flex; }
.pulse-ring { position: absolute; inset: -8px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-end)); filter: blur(18px); animation: pulseGlow 3.2s ease-in-out infinite; }
.cta-wrap .btn-primary { position: relative; z-index: 1; }
@media (max-width: 480px) { .cta-row .btn, .cta-row .cta-wrap { width: 100%; } .cta-wrap .btn { flex: 1; } }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background-image: radial-gradient(rgba(255, 140, 80, 0.06) 1px, transparent 1px); background-size: 22px 22px; }
.hero-wash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 85, 0, 0.16), transparent 40%, rgba(255, 204, 0, 0.08) 70%, transparent); background-size: 250% 250%; animation: gradientShift 16s ease-in-out infinite; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.blob-a { top: -140px; right: -100px; width: 480px; height: 480px; opacity: 0.45; background: radial-gradient(circle at 35% 35%, var(--accent), #7a2200 70%, transparent 100%); animation: floatA 9s ease-in-out infinite; }
.blob-b { bottom: -170px; left: -120px; width: 420px; height: 420px; opacity: 0.32; background: radial-gradient(circle at 65% 65%, var(--accent-2), var(--accent) 70%, transparent 100%); animation: floatB 11s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-weight: 800; font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
/* одна колонка: заголовок снова крупный, по ширине экрана */
@media (max-width: 980px) { .hero-title { font-size: clamp(36px, 8.4vw, 64px); } }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.hero-note { font-size: 13px; color: var(--text-3); }
.hero-shot { position: relative; }
.shot-glow { position: absolute; inset: 8% 6%; border-radius: 30px; background: radial-gradient(ellipse at 50% 60%, var(--glow), transparent 70%); filter: blur(40px); animation: pulseGlow 5s ease-in-out infinite; }

.app-window { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 40px 80px rgba(0, 0, 0, 0.55); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.app-bar .dot:nth-child(1) { background: #ff5f57; }
.app-bar .dot:nth-child(2) { background: #febc2e; }
.app-bar .dot:nth-child(3) { background: #28c840; }
.app-bar-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.app-window img { width: 100%; aspect-ratio: 1400 / 880; object-fit: cover; object-position: top left; background: var(--bg); transition: opacity 0.16s ease; }
.app-window img.swap { opacity: 0; }
.hero-shot .app-window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s var(--ease); }
.hero-shot:hover .app-window { transform: perspective(1600px) rotateY(0) rotateX(0); }
@media (max-width: 980px) { .hero-shot .app-window { transform: none; } }

.eq { position: absolute; right: -6px; bottom: -26px; display: flex; align-items: flex-end; gap: 5px; height: 56px; padding: 10px 14px; border-radius: 14px; background: rgba(21, 21, 24, 0.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.eq i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: bar 1.2s var(--ease) infinite; }
.eq i:nth-child(odd) { animation-duration: 1.5s; }
.eq i:nth-child(1) { height: 40%; animation-delay: -0.1s; } .eq i:nth-child(2) { height: 70%; animation-delay: -0.4s; }
.eq i:nth-child(3) { height: 100%; animation-delay: -0.8s; } .eq i:nth-child(4) { height: 55%; animation-delay: -0.2s; }
.eq i:nth-child(5) { height: 85%; animation-delay: -0.6s; } .eq i:nth-child(6) { height: 35%; animation-delay: -0.3s; }
.eq i:nth-child(7) { height: 65%; animation-delay: -0.9s; } .eq i:nth-child(8) { height: 90%; animation-delay: -0.5s; }
.eq i:nth-child(9) { height: 50%; animation-delay: -0.7s; } .eq i:nth-child(10) { height: 30%; animation-delay: -0.15s; }
.eq i:nth-child(11) { height: 75%; animation-delay: -0.45s; } .eq i:nth-child(12) { height: 45%; animation-delay: -0.85s; }
@media (max-width: 560px) { .eq { display: none; } }

/* ---------- скачивание под систему (download.js) ---------- */
/* hidden сильнее display у .btn и ссылок: скрытая кнопка «Открыть в браузере» не должна оставаться на месте */
[hidden] { display: none !important; }
/* колонка первого экрана не растягивается длинной командой (строка команды прокручивается внутри своей рамки) */
.hero-copy { min-width: 0; }
.dl-other { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13px; color: var(--text-3); margin-top: -10px; }
.dl-other a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.dl-other a:hover { color: var(--text); text-decoration-color: var(--accent); }
.dl-hint { display: flex; flex-direction: column; gap: 10px; max-width: 540px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; color: var(--text-2); }
/* команда переносится, а не прокручивается; на узком экране кнопка «Копировать» уходит под неё */
.dl-cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dl-cmd code { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; padding: 9px 12px; border-radius: 10px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.dl-copy { flex: none; padding: 9px 12px; border-radius: 10px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong); cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.dl-copy:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.dl-small { font-size: 13px; color: var(--text-3); }
.qa code { font-family: var(--mono); font-size: 0.88em; color: var(--text); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- заголовки секций ---------- */
.section-head { max-width: 680px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.section-head h2, .together-copy h2, .final h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.section-head p, .together-copy p, .final p { font-size: 17px; line-height: 1.65; color: var(--text-2); }

/* ---------- возможности ---------- */
.features { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
/* две колонки и нечётное число карточек — последняя на всю ширину, без «дырки» справа */
@media (min-width: 641px) and (max-width: 980px) { .grid-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glow), 0 0 50px var(--glow); }
.card-shimmer { position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; animation: shimmerMove 4s linear infinite; transition: opacity 0.35s var(--ease); }
.card:hover .card-shimmer { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--accent); background: rgba(255, 85, 0, 0.1); border: 1px solid rgba(255, 85, 0, 0.22); transition: transform 0.35s var(--ease); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon .ic { width: 22px; height: 22px; }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin-top: 6px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ---------- скриншоты ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
/* телефон: вкладки одной строкой с прокруткой, а не тремя рядами */
@media (max-width: 560px) {
  .gallery { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: -16px; padding: 2px 16px; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-tab { flex: none; scroll-snap-align: start; }
}
.gallery-tab { font-family: var(--font); font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.gallery-tab:hover { color: var(--text); border-color: var(--border-strong); }
.gallery-tab.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-end)); border-color: transparent; }
.gallery-frame { position: relative; }
.gallery-frame::before { content: ''; position: absolute; inset: 10% 8% -4%; border-radius: 40px; background: radial-gradient(ellipse, var(--glow), transparent 70%); filter: blur(60px); opacity: 0.6; }

/* ---------- вместе ---------- */
.together { background: var(--bg-alt); overflow: hidden; }
.together-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .together-grid { grid-template-columns: 1fr; } }
.together-copy { display: flex; flex-direction: column; gap: 16px; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--text); }
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-num { font-weight: 800; font-size: 36px; letter-spacing: -0.03em; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* ---------- вопросы ---------- */
.faq-container { max-width: 820px; }
.qa { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-family: var(--mono); font-size: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 2px 22px; font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 720px; }

/* ---------- финал ---------- */
.final { overflow: hidden; text-align: center; background: var(--card); }
.final-glow { position: absolute; left: 50%; top: 50%; width: 720px; height: 320px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 85, 0, 0.22), transparent 70%); filter: blur(40px); pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final .cta-row { margin-top: 8px; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .logo { font-size: 16px; }
.footer-muted { font-size: 13px; color: var(--text-3); }

/* ---------- появление ---------- */
.reveal-1 { animation: fadeUp 0.7s var(--ease) both; }
.reveal-2 { animation: fadeUp 0.7s var(--ease) 0.08s both; }
.reveal-3 { animation: fadeUp 0.7s var(--ease) 0.16s both; }
.reveal-4 { animation: fadeUp 0.7s var(--ease) 0.24s both; }
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.grid-3 .card:nth-child(3n+2), .stat:nth-child(2) { transition-delay: 0.06s; }
.grid-3 .card:nth-child(3n), .stat:nth-child(3), .stat:nth-child(4) { transition-delay: 0.12s; }
.card.fade.in:hover { transition-delay: 0s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -24px); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, 18px); } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes shimmerMove { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.06); } }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }
.logo-bars i, .eq i { transform-origin: bottom; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
