/* ============================================================
   Xanov Convertor — Premium Edition
   Тёмная тема, aurora-фон, стеклянные панели, плавные анимации
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-2: #0a0e1c;
  --text: #edf1ff;
  --muted: #939fca;
  --muted-2: #6b77a3;
  --accent: #6d8bff;
  --accent-2: #8b7bff;
  --cyan: #5fd4f6;
  --good: #34d399;
  --danger: #ff6b7a;
  --stroke: rgba(168, 186, 255, 0.13);
  --stroke-soft: rgba(168, 186, 255, 0.09);
  --glass: rgba(146, 170, 255, 0.055);
  --glass-strong: rgba(146, 170, 255, 0.09);
  --radius: 20px;
  --radius-lg: 26px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.55);
  --grad-accent: linear-gradient(120deg, #5b7cfa 0%, #8b7bff 55%, #5fc9f6 120%);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(109, 139, 255, 0.38); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(146, 170, 255, 0.16); border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(146, 170, 255, 0.3); }

:focus-visible { outline: 2.5px solid rgba(126, 156, 255, 0.9); outline-offset: 3px; border-radius: 6px; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- Фоновая сцена ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #0b1128 0%, var(--bg) 55%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.5; will-change: transform; }
.aurora-a { width: 62vw; height: 62vw; min-width: 560px; min-height: 560px; top: -22vw; left: -12vw; background: radial-gradient(circle at 40% 40%, rgba(91, 124, 250, 0.5), transparent 62%); animation: drift-a 38s ease-in-out infinite alternate; }
.aurora-b { width: 48vw; height: 48vw; min-width: 440px; min-height: 440px; top: -8vw; right: -16vw; background: radial-gradient(circle at 55% 45%, rgba(139, 123, 250, 0.42), transparent 62%); animation: drift-b 44s ease-in-out infinite alternate; }
.aurora-c { width: 52vw; height: 52vw; min-width: 460px; min-height: 460px; top: 68%; left: 28%; background: radial-gradient(circle at 50% 50%, rgba(48, 184, 220, 0.24), transparent 62%); animation: drift-c 52s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } to { transform: translate3d(9vw, 7vh, 0) rotate(22deg) scale(1.14); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8vw, 10vh, 0) scale(0.9); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-10vw, -8vh, 0) scale(1.18); } }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(168, 186, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 186, 255, 0.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(90% 62% at 50% 0%, black 0%, transparent 78%); -webkit-mask-image: radial-gradient(90% 62% at 50% 0%, black 0%, transparent 78%); }
.bg-noise { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay; }
.bg-noise svg { width: 100%; height: 100%; }

/* ---------- Прогресс скролла ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 120; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad-accent); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 14px rgba(109, 139, 255, 0.8); }

/* ---------- Шапка ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(6, 9, 20, 0.72); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom-color: var(--stroke-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 92px; transition: height 0.45s var(--ease-out); }
.site-header.scrolled .header-inner { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--grad-accent); box-shadow: 0 8px 28px rgba(91, 124, 250, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.5s var(--ease-spring); }
.brand-mark .i, .brand-mark svg { width: 20px; height: 20px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.brand-name b { font-weight: 800; }
.brand-name small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; transition: color 0.25s ease; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease-out); }
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 22px; border-radius: 13px; border: 1px solid transparent; font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease, filter 0.3s ease; }
.btn .i { width: 16px; height: 16px; transition: transform 0.35s var(--ease-spring); }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn:hover:not(:disabled) .i { transform: translate(2px, -2px); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 14px; border-radius: 15px; }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: var(--grad-accent); box-shadow: 0 10px 34px rgba(97, 120, 250, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 46px rgba(97, 120, 250, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28); filter: saturate(1.12); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.42), transparent); transform: skewX(-22deg); transition: left 0.7s var(--ease-out); pointer-events: none; }
.btn-primary:hover:not(:disabled)::after { left: 135%; }
.btn-ghost { color: var(--text); background: var(--glass); border-color: var(--stroke); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(168, 186, 255, 0.28); }
.btn-outline { color: #a9baff; background: transparent; border-color: rgba(126, 156, 255, 0.35); }
.btn-outline:hover { background: rgba(109, 139, 255, 0.1); border-color: rgba(126, 156, 255, 0.6); }
.btn-success { color: #062e21; background: linear-gradient(135deg, #4ee6ac, #2bd493); box-shadow: 0 8px 26px rgba(52, 211, 153, 0.35); }
.btn-success:hover { box-shadow: 0 12px 34px rgba(52, 211, 153, 0.5); }
.btn-light { color: #101736; background: #fff; box-shadow: 0 10px 36px rgba(255, 255, 255, 0.18); }
.btn-light:hover { box-shadow: 0 14px 44px rgba(255, 255, 255, 0.28); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .i { display: none; }
.btn.is-loading::before { content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Анимации появления ---------- */
@keyframes hero-in { from { opacity: 0; transform: translateY(34px); filter: blur(10px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.reveal-load { opacity: 0; animation: hero-in 1.05s var(--ease-out) both; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.d-0 { animation-delay: 0.05s; transition-delay: 0s; }
.d-1 { animation-delay: 0.14s; transition-delay: 0.09s; }
.d-2 { animation-delay: 0.23s; transition-delay: 0.18s; }
.d-3 { animation-delay: 0.32s; transition-delay: 0.27s; }
.d-4 { animation-delay: 0.41s; transition-delay: 0.36s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 178px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: 44px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid rgba(126, 156, 255, 0.3); background: rgba(109, 139, 255, 0.09); border-radius: 100px; color: #c3d0f5; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pulse-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { margin: 26px 0 20px; font-size: clamp(38px, 5vw, 66px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #93b0ff 5%, #b79bff 45%, #6ee2f7 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0 0 32px; max-width: 540px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 42px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-facts .i { width: 15px; height: 15px; color: var(--good); }

/* Hero-визуал */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; perspective: 1200px; }
.orbit { position: absolute; border: 1px solid rgba(140, 165, 255, 0.12); border-radius: 50%; }
.orbit-1 { width: min(540px, 108%); height: min(540px, 108%); animation: orbit-breathe 9s ease-in-out infinite alternate; }
.orbit-2 { width: min(380px, 78%); height: min(380px, 78%); border-color: rgba(140, 165, 255, 0.18); animation: orbit-breathe 7s 0.8s ease-in-out infinite alternate-reverse; }
@keyframes orbit-breathe { from { transform: scale(0.98); opacity: 0.75; } to { transform: scale(1.04); opacity: 1; } }
.mockup { position: relative; width: min(430px, 100%); border-radius: var(--radius-lg); background: linear-gradient(165deg, rgba(24, 32, 62, 0.92), rgba(12, 17, 36, 0.94)); border: 1px solid rgba(168, 186, 255, 0.18); box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 90px rgba(97, 120, 250, 0.16); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.25s ease-out; }
.mockup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 20px; border-bottom: 1px solid rgba(168, 186, 255, 0.1); color: var(--muted-2); font-size: 11px; font-weight: 600; }
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(168, 186, 255, 0.18); }
.mockup-dots i:first-child { background: rgba(255, 130, 130, 0.55); }
.mockup-dots i:nth-child(2) { background: rgba(255, 210, 130, 0.5); }
.mockup-dots i:nth-child(3) { background: rgba(94, 226, 178, 0.55); }
.mockup-url { flex: 1; text-align: center; color: var(--muted); }
.mockup-lock { display: flex; align-items: center; gap: 5px; color: var(--good); font-weight: 700; }
.mockup-lock .i { width: 12px; height: 12px; }
.mockup-body { padding: 22px 20px 22px; }
.mockup-file { display: flex; align-items: center; gap: 13px; }
.mockup-file-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #9db4ff; background: rgba(109, 139, 255, 0.13); border: 1px solid rgba(126, 156, 255, 0.22); }
.mockup-file-icon .i { width: 22px; height: 22px; }
.mockup-file-name { flex: 1; min-width: 0; }
.mockup-file-name b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-file-name small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10.5px; }
.mockup-tag { padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: #9db4ff; background: rgba(109, 139, 255, 0.14); border: 1px solid rgba(126, 156, 255, 0.24); }
.mockup-progress { height: 7px; margin: 20px 0; border-radius: 20px; background: rgba(146, 170, 255, 0.1); overflow: hidden; }
.mockup-progress-bar { display: block; height: 100%; border-radius: 20px; background: var(--grad-accent); box-shadow: 0 0 16px rgba(109, 139, 255, 0.8); animation: bar-loop 4.2s var(--ease-out) infinite; }
@keyframes bar-loop { 0% { width: 4%; } 55% { width: 78%; } 82% { width: 96%; } 92%, 100% { width: 100%; } }
.mockup-convert { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.chip { padding: 8px 20px; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); background: rgba(146, 170, 255, 0.07); border: 1px solid var(--stroke-soft); }
.chip-accent { color: #fff; background: var(--grad-accent); border-color: transparent; box-shadow: 0 6px 22px rgba(97, 120, 250, 0.45); }
.conv-arrow { width: 20px; height: 20px; color: #8fa7ff; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-3px); opacity: 0.6; } 50% { transform: translateX(3px); opacity: 1; } }
.mockup-done { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 13px; background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.22); }
.done-icon { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #052b1e; background: linear-gradient(135deg, #4ee6ac, #2bd493); box-shadow: 0 4px 14px rgba(52, 211, 153, 0.45); }
.done-icon .i { width: 13px; height: 13px; }
.mockup-done b { display: block; font-size: 12px; }
.mockup-done small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 10px; }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 13px; font-size: 11.5px; font-weight: 800; color: var(--text); background: rgba(16, 22, 46, 0.85); border: 1px solid rgba(168, 186, 255, 0.2); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.float-chip .i { width: 15px; height: 15px; color: var(--accent); }
.chip-a { top: 26px; right: 2%; animation: float-y 6s ease-in-out infinite; }
.chip-a .i { color: #f5c26b; }
.chip-b { bottom: 22px; left: 0%; animation: float-y 7s 1.2s ease-in-out infinite; }
.chip-b .i { color: var(--good); }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; padding: 6px 0 10px; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--muted-2); font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { color: rgba(109, 139, 255, 0.4); font-style: normal; font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.tool-section { padding: 108px 0 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 38px; }
.kicker { display: block; margin-bottom: 13px; color: #8fa7ff; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: clamp(27px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.18; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; max-width: 520px; }
.section-index { color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: 0.2em; white-space: nowrap; padding-bottom: 8px; }

/* ---------- Оболочка инструментов ---------- */
.tool-shell { max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: linear-gradient(170deg, rgba(20, 27, 54, 0.72), rgba(10, 14, 30, 0.82)); box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden; }
.tool-tabs { position: relative; display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--stroke-soft); background: rgba(8, 12, 26, 0.55); }
.tab-glider { position: absolute; top: 12px; bottom: 12px; left: 0; width: 0; border-radius: 13px; background: linear-gradient(160deg, rgba(109, 139, 255, 0.2), rgba(139, 123, 250, 0.14)); border: 1px solid rgba(126, 156, 255, 0.38); box-shadow: 0 8px 26px rgba(97, 120, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); transition: transform 0.55s var(--ease-spring), width 0.55s var(--ease-spring); will-change: transform, width; }
.tool-tab { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; transition: color 0.3s ease; }
.tool-tab .i { width: 17px; height: 17px; transition: transform 0.4s var(--ease-spring); }
.tool-tab:hover { color: #cdd8f8; }
.tool-tab:hover .i { transform: translateY(-2px) scale(1.08); }
.tool-tab.active { color: #fff; }
.tool-content { padding: 36px 42px 38px; min-height: 430px; }

.tab-panel { animation: none; }
.tab-panel.panel-in { animation: panel-in 0.55s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(0.995); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.panel-head h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.local-pill { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px; border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); color: #7ce9c0; font-size: 11px; font-weight: 750; white-space: nowrap; }
.local-pill .pulse-dot { width: 6px; height: 6px; }

/* ---------- Dropzone ---------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 208px; padding: 26px; border: 1.6px dashed rgba(146, 170, 255, 0.3); border-radius: 17px; background: rgba(109, 139, 255, 0.045); cursor: pointer; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out); }
.dropzone:hover, .dropzone:focus-visible { border-color: rgba(126, 156, 255, 0.65); background: rgba(109, 139, 255, 0.08); }
.dropzone.dragover { border-color: var(--accent); background: rgba(109, 139, 255, 0.12); box-shadow: 0 0 0 5px rgba(109, 139, 255, 0.12), 0 0 50px rgba(109, 139, 255, 0.2) inset; transform: scale(1.008); }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 14px; color: #9db4ff; background: rgba(109, 139, 255, 0.13); border: 1px solid rgba(126, 156, 255, 0.24); transition: transform 0.4s var(--ease-spring); }
.upload-icon .i { width: 22px; height: 22px; }
.dropzone:hover .upload-icon, .dropzone.dragover .upload-icon { transform: translateY(-4px) scale(1.06); }
.dropzone strong { font-size: 14px; font-weight: 750; }
.dropzone p { margin: 3px 0 7px; color: var(--muted); font-size: 12.5px; }
.dropzone small { color: var(--muted-2); font-size: 11px; letter-spacing: 0.02em; }
.inline-link { color: #9db4ff; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(126, 156, 255, 0.45); text-underline-offset: 3px; }
.file-info { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(109, 139, 255, 0.07); border: 1px solid var(--stroke-soft); animation: panel-in 0.45s var(--ease-out) both; }
.file-preview { width: 48px; height: 48px; flex: none; border-radius: 10px; background-color: rgba(146, 170, 255, 0.1); background-size: cover; background-position: center; border: 1px solid var(--stroke-soft); }
.file-details { flex: 1; min-width: 0; }
.file-details strong { display: block; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 11px; }
.icon-button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--stroke-soft); border-radius: 9px; background: rgba(146, 170, 255, 0.07); color: var(--muted); transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.icon-button:hover { background: rgba(255, 107, 122, 0.14); color: var(--danger); transform: rotate(90deg); }
.icon-button .i { width: 14px; height: 14px; }

/* ---------- Формы ---------- */
.form-block { margin-top: 24px; }
.field-label { display: block; margin-bottom: 10px; color: #c6d1f1; font-size: 12.5px; font-weight: 750; }
.field-control { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid var(--stroke); border-radius: 13px; background: rgba(8, 12, 26, 0.6); color: var(--text); font-size: 13.5px; outline: none; transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.field-control::placeholder { color: var(--muted-2); }
.field-control:hover { border-color: rgba(168, 186, 255, 0.26); }
.field-control:focus { border-color: rgba(126, 156, 255, 0.75); box-shadow: 0 0 0 4px rgba(109, 139, 255, 0.14); background: rgba(8, 12, 26, 0.85); }
select.field-control { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23939fca' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; cursor: pointer; }
select.field-control option { background: #0c1124; color: var(--text); }
textarea.field-control { resize: vertical; min-height: 150px; line-height: 1.65; }
.text-stats { display: flex; justify-content: space-between; margin: 8px 3px 0; color: var(--muted-2); font-size: 11.5px; font-weight: 600; }
.text-output { animation: panel-in 0.5s var(--ease-out) both; }
.text-output .btn { margin-top: 12px; }

/* Форматы */
.format-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.format-option { position: relative; display: block; cursor: pointer; }
.format-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-option span { display: flex; flex-direction: column; padding: 13px 16px; border: 1.5px solid var(--stroke); border-radius: 13px; background: rgba(8, 12, 26, 0.5); font-size: 13.5px; font-weight: 800; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out); }
.format-option small { margin-top: 3px; color: var(--muted-2); font-size: 11px; font-weight: 550; }
.format-option:hover span { border-color: rgba(126, 156, 255, 0.45); transform: translateY(-2px); }
.format-option input:checked + span { border-color: rgba(126, 156, 255, 0.8); background: rgba(109, 139, 255, 0.13); box-shadow: 0 8px 28px rgba(97, 120, 250, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.format-option input:checked + span small { color: #aebdf5; }
.format-option input:focus-visible + span { outline: 2.5px solid rgba(126, 156, 255, 0.9); outline-offset: 2px; }
.image-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input[type="range"] { width: 100%; margin: 14px 0 4px; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 20px; background: linear-gradient(90deg, #5b7cfa var(--fill, 80%), rgba(146, 170, 255, 0.14) var(--fill, 80%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid #5b7cfa; box-shadow: 0 3px 14px rgba(97, 120, 250, 0.6); cursor: grab; transition: transform 0.2s var(--ease-spring); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 5px solid #5b7cfa; box-shadow: 0 3px 14px rgba(97, 120, 250, 0.6); cursor: grab; }
input[type="range"]:focus-visible { outline: 2.5px solid rgba(126, 156, 255, 0.9); outline-offset: 4px; border-radius: 8px; }

/* Прогресс конвертации */
.convert-progress { display: flex; align-items: center; gap: 14px; margin-top: 24px; animation: panel-in 0.4s var(--ease-out) both; }
.convert-progress-track { flex: 1; height: 8px; border-radius: 20px; background: rgba(146, 170, 255, 0.1); overflow: hidden; }
.convert-progress-track span { display: block; height: 100%; width: 0%; border-radius: 20px; background: var(--grad-accent); box-shadow: 0 0 16px rgba(109, 139, 255, 0.7); transition: width 0.12s linear; }
.convert-progress-label { min-width: 44px; text-align: right; color: #9db4ff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Сообщения и результаты */
.message { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 12.5px; font-weight: 600; animation: panel-in 0.4s var(--ease-out) both; }
.message.error { border: 1px solid rgba(255, 107, 122, 0.35); background: rgba(255, 107, 122, 0.09); color: #ffa3ad; }
.action-button { width: 100%; min-height: 52px; margin-top: 26px; font-size: 14px; border-radius: 15px; }
.result-card { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 15px 17px; border-radius: 15px; border: 1px solid rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.07); animation: pop-in 0.6s var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.result-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #052b1e; background: linear-gradient(135deg, #4ee6ac, #2bd493); box-shadow: 0 5px 18px rgba(52, 211, 153, 0.45); }
.result-icon .i { width: 15px; height: 15px; }
.result-text { flex: 1; min-width: 0; }
.result-text strong { display: block; font-size: 12.5px; }
.result-text span { display: block; margin-top: 2px; color: #7fd9b4; font-size: 11px; }
.tool-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: var(--muted-2); font-size: 11.5px; text-align: center; }
.tool-note .i { width: 14px; height: 14px; color: #7ce9c0; }

/* ---------- Величины ---------- */
.unit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); align-items: center; gap: 18px; }
.unit-grid .form-block { margin-top: 20px; }
.unit-grid .field-control + .field-control { margin-top: 12px; }
.unit-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; min-height: 60px; font-variant-numeric: tabular-nums; }
.swap-button { width: 46px; height: 46px; display: grid; place-items: center; margin-top: 36px; border: 1px solid rgba(126, 156, 255, 0.4); border-radius: 14px; color: #9db4ff; background: rgba(109, 139, 255, 0.1); transition: transform 0.55s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease; }
.swap-button:hover { transform: rotate(180deg); background: rgba(109, 139, 255, 0.2); box-shadow: 0 8px 26px rgba(97, 120, 250, 0.35); }
.swap-button .i { width: 18px; height: 18px; }
.unit-summary { margin: 26px 0 14px; padding: 16px 18px; border-radius: 13px; border: 1px solid var(--stroke-soft); background: rgba(109, 139, 255, 0.05); color: #b9c6ec; font-size: 13px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.unit-copy { display: flex; margin-left: auto; }

/* Кнопка «скопировать» */
.copy-button .icon-check { display: none; }
.copy-button.copied { color: #062e21; background: linear-gradient(135deg, #4ee6ac, #2bd493); border-color: transparent; }
.copy-button.copied .icon-copy { display: none; }
.copy-button.copied .icon-check { display: block; }

/* ---------- Цифры ---------- */
.stats-band { padding: 64px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { position: relative; padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--stroke-soft); background: linear-gradient(170deg, rgba(20, 27, 54, 0.55), rgba(10, 14, 30, 0.7)); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% -10%, rgba(109, 139, 255, 0.14), transparent 70%); opacity: 0; transition: opacity 0.5s ease; }
.stat:hover::before { opacity: 1; }
.stat-value { display: block; font-size: 42px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; background: linear-gradient(110deg, #fff 30%, #9db4ff 75%, #6ee2f7); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 9px; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Преимущества ---------- */
.advantages { padding: 96px 0 20px; }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); border: 1px solid var(--stroke-soft); background: linear-gradient(170deg, rgba(20, 27, 54, 0.55), rgba(10, 14, 30, 0.7)); transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease; }
.adv-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(126, 156, 255, 0.55), rgba(139, 123, 250, 0.3) 45%, transparent 75%); -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.adv-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); }
.adv-card:hover::after { opacity: 1; }
.adv-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: #fff; background: var(--grad-accent); box-shadow: 0 10px 30px rgba(97, 120, 250, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: transform 0.5s var(--ease-spring); }
.adv-icon .i { width: 22px; height: 22px; }
.adv-card:hover .adv-icon { transform: rotate(-7deg) scale(1.08); }
.adv-card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.adv-card p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.8; }

/* ---------- Шаги ---------- */
.how-section { padding: 96px 0 30px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.steps::before { content: ""; position: absolute; top: 26px; left: 4%; right: 4%; height: 1px; background: linear-gradient(90deg, transparent, rgba(126, 156, 255, 0.35), transparent); }
.step { position: relative; padding-top: 4px; }
.step-number { position: relative; display: inline-grid; place-items: center; height: 52px; min-width: 52px; padding: 0 8px; border-radius: 15px; background: linear-gradient(160deg, rgba(20, 27, 54, 0.9), rgba(10, 14, 30, 0.95)); border: 1px solid rgba(126, 156, 255, 0.4); color: #9db4ff; font-size: 17px; font-weight: 800; letter-spacing: 0.02em; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.step h3 { margin: 18px 0 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 300px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 96px 0 30px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--stroke-soft); border-radius: 17px; background: linear-gradient(170deg, rgba(20, 27, 54, 0.5), rgba(10, 14, 30, 0.65)); transition: border-color 0.35s ease, background 0.35s ease; }
.faq-item.open { border-color: rgba(126, 156, 255, 0.4); background: rgba(109, 139, 255, 0.06); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; border: 0; background: transparent; color: var(--text); font-size: 14.5px; font-weight: 700; text-align: left; letter-spacing: -0.01em; }
.faq-icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid rgba(126, 156, 255, 0.35); background: rgba(109, 139, 255, 0.08); transition: transform 0.5s var(--ease-spring), background 0.3s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.8px; border-radius: 2px; background: #9db4ff; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease-spring); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon { transform: rotate(135deg); background: rgba(109, 139, 255, 0.18); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0; padding: 0 58px 22px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ---------- CTA и футер ---------- */
.cta-wrap { padding: 90px 0 100px; }
.bottom-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 46px 48px; border-radius: 28px; border: 1px solid rgba(126, 156, 255, 0.3); background: linear-gradient(120deg, #1a2450 0%, #141b3d 55%, #1c1f4e 100%); overflow: hidden; }
.bottom-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 85% 0%, rgba(109, 139, 255, 0.3), transparent 60%), radial-gradient(50% 90% at 8% 100%, rgba(139, 123, 250, 0.22), transparent 60%); pointer-events: none; }
.bottom-cta > * { position: relative; }
.cta-tag { color: #9db4ff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }
.bottom-cta h2 { margin: 8px 0 4px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.bottom-cta p { margin: 0; color: #a9b8dd; font-size: 13px; }
.footer { padding: 40px 0 46px; border-top: 1px solid var(--stroke-soft); background: rgba(6, 9, 20, 0.6); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; }
.footer-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--grad-accent); box-shadow: 0 6px 20px rgba(97, 120, 250, 0.4); }
.footer-mark svg { width: 15px; height: 15px; }
.footer-left p { margin: 12px 0 0; color: var(--muted-2); font-size: 12px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted-2); font-size: 12px; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; border: 1px solid rgba(126, 156, 255, 0.35); background: rgba(14, 20, 42, 0.92); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(97, 120, 250, 0.2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: toast-in 0.55s var(--ease-spring) both; }
.toast .i { width: 15px; height: 15px; color: var(--good); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px) scale(0.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---------- Адаптив ---------- */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding-top: 150px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 400px; margin-top: 12px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 36px, 620px); }
  .header-inner { height: 74px; }
  .site-header.scrolled .header-inner { height: 60px; }
  .hero { padding: 128px 0 60px; }
  .hero h1 { font-size: clamp(34px, 8.4vw, 46px); }
  .hero-visual { min-height: 340px; transform: scale(0.92); margin: -6px 0 -20px; }
  .chip-a { right: -2px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .section-index { padding-bottom: 0; }
  .tool-content { padding: 26px 22px 30px; }
  .tool-tab { font-size: 12px; padding: 13px 8px; gap: 7px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .bottom-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .panel-head { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
}
@media (max-width: 500px) {
  .container { width: calc(100% - 30px); }
  .header-cta { font-size: 0; padding: 10px 13px; border-radius: 12px; }
  .header-cta .i { width: 17px; height: 17px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-name { font-size: 15px; }
  .hero { padding-top: 112px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 13px 14px; font-size: 12.5px; }
  .hero-facts { gap: 8px 16px; font-size: 11.5px; }
  .hero-visual { transform: scale(0.78); min-height: 372px; margin: -14px 0 -46px; }
  .float-chip { padding: 9px 12px; font-size: 10.5px; }
  .chip-a { top: 0; right: -2px; }
  .chip-b { bottom: 0; left: -2px; }
  .tool-tabs { padding: 8px; gap: 4px; }
  .tool-tab { font-size: 11px; padding: 12px 4px; }
  .tool-tab .i { display: none; }
  .tool-content { padding: 22px 16px 26px; }
  .format-group { gap: 8px; }
  .format-option span { padding: 11px 10px; font-size: 12.5px; }
  .image-options { grid-template-columns: 1fr; gap: 0; }
  .unit-grid { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 9px; }
  .unit-grid .field-control { font-size: 12px; padding: 9px 10px; }
  .unit-value { font-size: 18px; min-height: 54px; }
  .swap-button { width: 38px; height: 38px; margin-top: 32px; }
  .swap-button .i { width: 15px; height: 15px; }
  .result-card { flex-wrap: wrap; }
  .result-card .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 34px; }
  .faq-a-inner p { padding-right: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-load, .reveal { opacity: 1; transform: none; filter: none; }
  .mockup-progress-bar, .marquee-track, .aurora { animation: none !important; }
  .mockup-progress-bar { width: 100%; }
}
