Files
veilix.app/design/handoff/project/MassSupport.dc.html
T

369 lines
32 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./support.js"></script>
</head>
<body>
<x-dc>
<helmet>
<link rel="icon" type="image/svg+xml" href="favicon-mass.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;500;600&family=Unbounded:wght@500;600&display=swap" rel="stylesheet" />
<script>(function(){if(window.__veilixI18nSrc)return;window.__veilixI18nSrc="./i18n.js?v="+Date.now().toString(36)+Math.random().toString(36).slice(2,8);var s=document.createElement("script");s.src=window.__veilixI18nSrc;document.head.appendChild(s);})();</script>
<style>
:root{
--bg: oklch(99.6% 0.0015 215);
--surface: oklch(100% 0 0);
--surface-2: oklch(98.4% 0.003 215);
--ink: oklch(24% 0.04 204);
--ink-2: oklch(45% 0.03 204);
--ink-3: oklch(60% 0.025 204);
--border: oklch(92% 0.014 200);
--accent: oklch(48% 0.105 178);
--accent-hover: oklch(41% 0.1 178);
--accent-soft: oklch(95.5% 0.032 180);
--sel: oklch(96.5% 0.016 190);
--on-accent: oklch(99% 0.01 180);
--glow-1: oklch(86% 0.085 190);
--glow-2: oklch(88% 0.075 205);
--glow-3: oklch(89% 0.07 172);
--veil: oklch(100% 0 0 / 0.55);
--shadow: 0 1px 2px oklch(24% 0.04 204 / 0.05), 0 12px 32px -12px oklch(24% 0.04 204 / 0.14);
}
:root[data-veilix-theme="dark"]{
--bg: oklch(23% 0.026 210);
--surface: oklch(26.5% 0.028 210);
--surface-2: oklch(30% 0.03 210);
--ink: oklch(96% 0.012 196);
--ink-2: oklch(80% 0.02 196);
--ink-3: oklch(65% 0.025 196);
--border: oklch(36% 0.04 204);
--accent: oklch(76% 0.105 190);
--accent-hover: oklch(83% 0.09 190);
--accent-soft: oklch(31% 0.05 190);
--sel: oklch(30% 0.03 195);
--on-accent: oklch(20% 0.04 204);
--glow-1: oklch(52% 0.09 200);
--glow-2: oklch(47% 0.085 215);
--glow-3: oklch(50% 0.08 180);
--veil: oklch(100% 0 0 / 0.07);
--shadow: 0 1px 2px oklch(12% 0.03 204 / 0.4), 0 16px 40px -16px oklch(9% 0.03 204 / 0.7);
}
*{ box-sizing: border-box; }
input, textarea, select{ font-size: 16px; }
[hidden]{ display: none !important; }
body{ margin:0; background: var(--bg); color: var(--ink); font-family:"Commissioner", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-hover); }
</style>
</helmet>
<template id="__bundler_thumbnail" data-bg-color="#e3f4f1">
<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg">
<rect x="480" y="290" width="150" height="150" rx="48" fill="#00705e" />
<rect x="570" y="360" width="150" height="150" rx="48" fill="#ffffff" fill-opacity="0.62" stroke="#00705e" stroke-width="6" />
</svg>
</template>
<div style="background: var(--bg); color: var(--ink); font-family: 'Commissioner', system-ui, sans-serif; font-weight: 400; letter-spacing: -0.01em; min-height: 100vh;">
<header style="position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--border);">
<div style="max-width: 1200px; margin: 0 auto; padding: 14px 24px; min-height: 66px; display: flex; flex-wrap: nowrap; align-items: center; gap: 14px 40px;">
<a href="MassMain.dc.html" style="display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none;">
<span style="position: relative; width: 28px; height: 28px; display: block; flex: none;">
<span style="position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 7px; background: linear-gradient(140deg, var(--accent), color-mix(in oklab, var(--accent) 55%, var(--glow-3))); display: block;"></span>
<span style="position: absolute; right: 0; bottom: 3px; width: 21px; height: 21px; border-radius: 7px; background: var(--veil); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); backdrop-filter: blur(2px); display: block;"></span>
</span>
<span style="font-family: 'Unbounded', 'Commissioner', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; width: 132px; flex: none; white-space: nowrap;">ВейликсВПН</span>
</a>
<nav hidden="{{ navOff }}" style="display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 500; color: var(--ink-2);">
<a href="MassPrice.dc.html" style="color: var(--ink-2);" style-hover="color: var(--ink);">Цены</a>
<a href="MassLocations.dc.html" style="color: var(--ink-2);" style-hover="color: var(--ink);">Локации</a>
<a href="#top" style="color: var(--ink);">Поддержка</a>
</nav>
<div style="margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;">
<div hidden="{{ navOff }}" style="position: relative;">
<button type="button" onClick="{{ toggleLangMenu }}" title="Язык" style="display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--ink-2); font-family: inherit; font-size: 14px; cursor: pointer;" style-hover="color: var(--ink); border-color: var(--ink-3);">
<span style="position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: block; flex: none;">
<span style="position: absolute; left: -1.5px; top: 5.75px; width: 16px; height: 1.5px; background: currentColor; display: block;"></span>
<span style="position: absolute; left: 3.25px; top: -1.5px; width: 8px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: block;"></span>
</span>
<span style="font-variant-numeric: tabular-nums;">{{ langLabel }}</span>
</button>
<div hidden="{{ langMenuOff }}" style="position: absolute; right: 0; top: 46px; width: 172px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); font-size: 14px;">
<button type="button" onClick="{{ setRu }}" style="display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: {{ ruBg }}; color: var(--ink); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer;">
<span>Русский</span>
<span style="color: var(--accent);">{{ ruCheck }}</span>
</button>
<button type="button" onClick="{{ setEn }}" style="display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: {{ enBg }}; color: var(--ink); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer;">
<span>English</span>
<span style="color: var(--accent);">{{ enCheck }}</span>
</button>
</div>
</div>
<a href="MassApp.dc.html" hidden="{{ navOff }}" style="display: flex; align-items: center; justify-content: center; height: 38px; width: 78px; flex: none; box-sizing: border-box; border-radius: 10px; color: var(--ink-2); font-size: 15px;" style-hover="color: var(--ink); background: var(--surface-2);">Войти</a>
<a href="MassPrice.dc.html" hidden="{{ navOff }}" style="display: flex; align-items: center; justify-content: center; height: 38px; width: 142px; flex: none; box-sizing: border-box; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 500; box-shadow: 0 6px 18px -8px var(--accent);" style-hover="background: var(--accent-hover); color: var(--on-accent);">Получить VPN</a>
<button type="button" hidden="{{ burgerOff }}" onClick="{{ toggleMenu }}" title="Меню" style="display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer;" style-hover="border-color: var(--ink-3);">
<span style="width: 18px; height: 2px; border-radius: 2px; background: currentColor; display: block;"></span>
<span style="width: 18px; height: 2px; border-radius: 2px; background: currentColor; display: block;"></span>
<span style="width: 18px; height: 2px; border-radius: 2px; background: currentColor; display: block;"></span>
</button>
</div>
</div>
<div hidden="{{ menuOff }}" style="position: absolute; left: 0; right: 0; top: 100%; z-index: 45; padding: 10px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 2px;">
<a href="MassPrice.dc.html" onClick="{{ closeMenu }}" style="padding: 13px 6px; font-size: 17px; color: var(--ink);">Цены</a>
<a href="MassLocations.dc.html" onClick="{{ closeMenu }}" style="padding: 13px 6px; font-size: 17px; color: var(--ink);">Локации</a>
<a href="MassSupport.dc.html" onClick="{{ closeMenu }}" style="padding: 13px 6px; font-size: 17px; color: var(--ink);">Поддержка</a>
<div style="display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--border);">
<a href="MassApp.dc.html" onClick="{{ closeMenu }}" style="padding: 13px 6px; font-size: 17px; color: var(--ink);">Войти</a>
<div style="display: flex; gap: 6px; flex: none;">
<button type="button" onClick="{{ setRu }}" style="padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; background: {{ ruBg }}; color: var(--ink); font-family: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;">Русский</button>
<button type="button" onClick="{{ setEn }}" style="padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; background: {{ enBg }}; color: var(--ink); font-family: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;">English</button>
</div>
</div>
<a href="MassPrice.dc.html" onClick="{{ closeMenu }}" style="display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 12px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 500;">Получить VPN</a>
</div>
</header>
<main id="top" style="max-width: 1000px; margin: 0 auto; padding: 0 24px 80px;">
<section style="padding: 56px 0 8px;">
<h1 style="margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.035em;">Поддержка</h1>
<div style="height: 32px;"></div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;">
<a href="#form" style="display: grid; gap: 10px; padding: clamp(20px, 4.8vw, 28px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink);" style-hover="border-color: var(--accent); color: var(--ink);">
<span style="font-size: 13px; color: var(--ink-3);">Telegram</span>
<span style="font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent);">@veilix_support</span>
<span style="font-size: 14px; color: var(--ink-2); font-weight: 300;">Быстрее всего. Можно писать голосом и скидывать скриншоты.</span>
</a>
<a href="#form" style="display: grid; gap: 10px; padding: clamp(20px, 4.8vw, 28px); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink);" style-hover="border-color: var(--accent); color: var(--ink);">
<span style="font-size: 13px; color: var(--ink-3);">Почта</span>
<span style="font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); word-break: break-word;">help@veilixvpn.cc</span>
<span style="font-size: 14px; color: var(--ink-2); font-weight: 300;">Для счетов, возвратов и всего, что нужно письменно.</span>
</a>
</div>
<p style="margin: 16px 0 0; font-size: 14px; color: var(--ink-3);">Отвечаем с 10 до 20 в рабочие дни.</p>
</section>
<section style="padding: 64px 0 0;">
<h2 style="margin: 0 0 20px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -0.03em;">Частые вопросы</h2>
<div style="display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;">
<button type="button" onClick="{{ tab0 }}" style="padding: 9px 16px; border-radius: 10px; border: 1px solid {{ tab0Border }}; background: {{ tab0Bg }}; color: {{ tab0Ink }}; font-family: inherit; font-size: 14px; cursor: pointer;">Подключение</button>
<button type="button" onClick="{{ tab1 }}" style="padding: 9px 16px; border-radius: 10px; border: 1px solid {{ tab1Border }}; background: {{ tab1Bg }}; color: {{ tab1Ink }}; font-family: inherit; font-size: 14px; cursor: pointer;">Оплата и продление</button>
<button type="button" onClick="{{ tab2 }}" style="padding: 9px 16px; border-radius: 10px; border: 1px solid {{ tab2Border }}; background: {{ tab2Bg }}; color: {{ tab2Ink }}; font-family: inherit; font-size: 14px; cursor: pointer;">Локации и подписка</button>
</div>
<div style="display: grid; gap: 10px;">
<sc-for list="{{ items }}" as="item" hint-placeholder-count="4">
<div style="border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden;">
<button type="button" onClick="{{ item.toggle }}" style="display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 22px; background: transparent; border: 0; color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; letter-spacing: -0.015em;">
<span style="flex: 1;">{{ item.q }}</span>
<span style="flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: {{ item.rot }}; transition: transform 180ms ease; display: block;"></span>
</button>
<div hidden="{{ item.off }}" style="padding: 0 22px 22px; font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 300; max-width: 62ch;">{{ item.a }}</div>
</div>
</sc-for>
</div>
</section>
<section id="form" style="padding: 64px 0 0;">
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);">
<div>
<h2 style="margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.03em;">Написать нам</h2>
<p style="margin: 0; max-width: 26em; font-size: 15px; line-height: 1.55; color: var(--ink-2); font-weight: 300;">Если подписка уже оформлена, укажите почту, на которую она оформлена — так мы сразу увидим вашу конфигурацию.</p>
</div>
<div style="display: grid; gap: 10px;">
<input type="email" placeholder="Ваша почта" style="height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px; width: 100%;" />
<select style="height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px; width: 100%;">
<option>Тема: подключение</option>
<option>Тема: оплата и продление</option>
<option>Тема: локации и подписка</option>
<option>Тема: другое</option>
</select>
<textarea rows="5" placeholder="Что произошло" style="padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px; resize: vertical; width: 100%;"></textarea>
<button type="button" onClick="{{ send }}" style="display: inline-flex; align-items: center; justify-content: center; height: 50px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer;" style-hover="background: var(--accent-hover);">{{ sendLabel }}</button>
</div>
</div>
</section>
</main>
<footer style="border-top: 1px solid var(--border); background: var(--surface-2);">
<div style="max-width: 1200px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 24px) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;">
<div>
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 14px;">
<span style="position: relative; width: 24px; height: 24px; display: block; flex: none;">
<span style="position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(140deg, var(--accent), color-mix(in oklab, var(--accent) 55%, var(--glow-3))); display: block;"></span>
<span style="position: absolute; right: 0; bottom: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--veil); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); display: block;"></span>
</span>
<span style="font-family: 'Unbounded', 'Commissioner', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.02em;">ВейликсВПН</span>
</div>
<p style="margin: 0 0 20px; max-width: 26em; font-size: 14px; line-height: 1.55; color: var(--ink-3); font-weight: 300;">VPN, который не нужно отключать. Работаем с 2022 года.</p>
<div style="display: flex; flex-wrap: wrap; gap: 6px;">
<span style="display: flex; align-items: center; justify-content: center; width: 60px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);">VISA</span>
<span style="display: flex; align-items: center; justify-content: center; width: 60px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);">MC</span>
<span style="display: flex; align-items: center; justify-content: center; width: 60px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);">МИР</span>
<span style="display: flex; align-items: center; justify-content: center; width: 60px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);">CRYPTO</span>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 24px 32px; align-content: start;">
<div style="display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; font-size: 14px;">
<div style="font-size: 13px; color: var(--ink-3); margin-bottom: 2px;">Сервис</div>
<a href="MassPrice.dc.html" style="color: var(--ink-2);" style-hover="color: var(--ink);">Цены</a>
<a href="MassLocations.dc.html" style="color: var(--ink-2);" style-hover="color: var(--ink);">Локации</a>
<a href="#top" style="color: var(--ink-2);" style-hover="color: var(--ink);">Поддержка</a>
</div>
<div style="display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; font-size: 14px;">
<div style="font-size: 13px; color: var(--ink-3); margin-bottom: 2px;">Документы</div>
<a href="#top" style="color: var(--ink-2);" style-hover="color: var(--ink);">Условия использования</a>
<a href="#top" style="color: var(--ink-2);" style-hover="color: var(--ink);">Политика конфиденциальности</a>
<a href="#top" style="color: var(--ink-2);" style-hover="color: var(--ink);">Возврат средств</a>
</div>
</div>
</div>
<div style="max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;">
<div style="font-size: 13px; color: var(--ink-3);">© 2026 ВейликсВПН</div>
<div style="display: flex; align-items: center; gap: 8px;">
<div style="display: flex; padding: 2px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); flex: none;">
<button type="button" onClick="{{ setLight }}" title="Светлая тема" style="display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: {{ lightBg }}; color: {{ lightInk }}; cursor: pointer;"><span style="position: relative; width: 14px; height: 14px; display: block;"><span style="position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: block;"></span><span style="position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.45; display: block;"></span></span></button>
<button type="button" onClick="{{ setDark }}" title="Тёмная тема" style="display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: {{ darkBg }}; color: {{ darkInk }}; cursor: pointer;"><span style="width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -5px -1.5px 0 0 currentColor; display: block;"></span></button>
<button type="button" onClick="{{ setSystem }}" title="Как в системе" style="display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: {{ systemBg }}; color: {{ systemInk }}; cursor: pointer;"><span style="width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); display: block;"></span></button>
</div>
<div style="display: flex; padding: 2px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); flex: none;">
<button type="button" onClick="{{ setRu }}" style="padding: 0 10px; height: 28px; border: 0; border-radius: 7px; background: {{ ruBg }}; color: {{ ruInk }}; font-family: inherit; font-size: 12px; cursor: pointer;">RU</button>
<button type="button" onClick="{{ setEn }}" style="padding: 0 10px; height: 28px; border: 0; border-radius: 7px; background: {{ enBg }}; color: {{ enInk }}; font-family: inherit; font-size: 12px; cursor: pointer;">EN</button>
</div>
</div>
</div>
</footer>
</div>
</x-dc>
<script type="text/x-dc" data-dc-script data-props="{&quot;defaultTheme&quot;:{&quot;editor&quot;:&quot;enum&quot;,&quot;options&quot;:[&quot;light&quot;,&quot;dark&quot;,&quot;system&quot;],&quot;default&quot;:&quot;light&quot;,&quot;tsType&quot;:&quot;'light' | 'dark' | 'system'&quot;,&quot;section&quot;:&quot;Тема&quot;}}">
class Component extends DCLogic {
state = { theme: null, sysDark: false, tab: 0, open: 0, sent: false, lang: "ru", narrow: false, menu: false, langMenu: false };
componentDidMount() {
const mq = window.matchMedia("(prefers-color-scheme: dark)");
this.mq = mq;
this.onSys = () => this.setState({ sysDark: mq.matches });
mq.addEventListener("change", this.onSys);
this.onResize = () => {
const n = window.innerWidth < 900;
if (n !== this.state.narrow) this.setState({ narrow: n, menu: false });
};
window.addEventListener("resize", this.onResize);
this.onResize();
let saved = null;
try { saved = localStorage.getItem("veilix.theme"); } catch (e) {}
let savedLang = null;
try { savedLang = localStorage.getItem("veilix.lang"); } catch (e) {}
this.setState({ sysDark: mq.matches, theme: saved || this.props.defaultTheme || "light", lang: savedLang || "ru" }, () => { this.apply(); this.applyLang(); });
}
applyLang() {
const lang = this.state.lang || "ru";
if (window.VEILIX_APPLY_LANG) window.VEILIX_APPLY_LANG(document.body, lang);
else setTimeout(() => this.applyLang(), 150);
}
setLang(l) {
try { localStorage.setItem("veilix.lang", l); } catch (e) {}
this.setState({ lang: l, langMenu: false }, () => this.applyLang());
}
componentWillUnmount() {
if (this.mq) this.mq.removeEventListener("change", this.onSys);
if (this.onResize) window.removeEventListener("resize", this.onResize);
}
componentDidUpdate() { this.apply(); this.applyLang(); }
apply() {
const theme = this.state.theme || this.props.defaultTheme || "light";
const dark = theme === "dark" || (theme === "system" && this.state.sysDark);
document.documentElement.setAttribute("data-veilix-theme", dark ? "dark" : "light");
}
setTheme(t) {
try { localStorage.setItem("veilix.theme", t); } catch (e) {}
this.setState({ theme: t }, () => this.apply());
}
faq() {
return [
[
["Что делать сразу после оплаты?", "Зайдите в кабинет по почте, выберите страну и скачайте конфигурацию XRAY или отсканируйте QR-код с телефона. Маршрутизация уже настроена, вручную ничего вписывать не нужно."],
["Сколько устройств можно подключить?", "До пяти на одну подписку. Страны у устройств могут быть разные: каждое подключается к своей локации."],
["Перестал работать один способ подключения.", "Подключение работает на XRAY: откройте кабинет и обновите конфигурацию или смените локацию. Настройки протокола мы обновляем по мере блокировок."],
["Нужно ли что-то настраивать вручную?", "Нет. В конфигурации уже прописано, что российские сайты идут напрямую, а зарубежные — через выбранную локацию. Переключать режимы во время работы не нужно."]
],
[
["Сколько стоит подписка?", "699 ₽ в месяц или 6 990 ₽ в год. Годовая выходит по 582 ₽ в месяц и экономит 1 398 ₽. Платы за подключение и доплат за страну нет."],
["Как продлевается подписка?", "Списание раз в месяц или раз в год с привязанной карты. Дату окончания и карту видно в кабинете, там же оплату можно поменять или остановить."],
["Можно вернуть деньги?", "Если подписка не заработала по нашей вине, возвращаем полностью в течение первых семи дней. Если вы просто передумали — возвращаем остаток неиспользованного периода."],
["Чем можно платить?", "Карты российских и зарубежных банков, а также криптовалюта. Все способы доступны на странице оформления заказа."]
],
[
["Сколько стран входит в подписку?", "Тридцать, включая российскую локацию. Все они доступны сразу и не тарифицируются отдельно."],
["Можно менять страну сколько угодно?", "Да. Переключение занимает пару секунд и ничего не стоит: список локаций открыт целиком на всё время подписки."],
["Зачем в подписке российский адрес?", "Он работает в обе стороны. Из России — чтобы банки, госуслуги и стриминг видели обычное местное подключение. Из другой страны — чтобы те же сервисы открывались так, будто вы дома."],
["Чем это отличается от индивидуального IP?", "Здесь адрес общий: на сервере несколько человек, поэтому подписка стоит заметно дешевле. Если нужен адрес, закреплённый только за вами, это отдельные тарифы Вейликс с индивидуальным IP."]
]
];
}
renderVals() {
const theme = this.state.theme || this.props.defaultTheme || "light";
const sel = "var(--sel)";
const list = this.faq()[this.state.tab];
const v = {
items: list.map((row, i) => ({
q: row[0],
a: row[1],
off: this.state.open !== i,
rot: this.state.open === i ? "rotate(-135deg) translateY(2px)" : "rotate(45deg) translateY(-2px)",
toggle: () => this.setState(s => ({ open: s.open === i ? -1 : i }))
})),
send: () => this.setState({ sent: true }),
navOff: this.state.narrow,
burgerOff: !this.state.narrow,
menuOff: !(this.state.narrow && this.state.menu),
toggleMenu: () => this.setState(st => ({ menu: !st.menu })),
closeMenu: () => this.setState({ menu: false }),
toggleLangMenu: () => this.setState(st => ({ langMenu: !st.langMenu })),
langMenuOff: !this.state.langMenu,
langLabel: this.state.lang === "en" ? "EN" : "RU",
ruCheck: this.state.lang === "en" ? "" : "✓",
enCheck: this.state.lang === "en" ? "✓" : "",
setRu: () => this.setLang("ru"),
setEn: () => this.setLang("en"),
ruBg: this.state.lang === "en" ? "transparent" : sel,
enBg: this.state.lang === "en" ? sel : "transparent",
ruInk: this.state.lang === "en" ? "var(--ink-3)" : "var(--ink)",
enInk: this.state.lang === "en" ? "var(--ink)" : "var(--ink-3)",
sendLabel: this.state.sent ? "Отправлено, ответим на почту" : "Отправить",
setLight: () => this.setTheme("light"),
setDark: () => this.setTheme("dark"),
setSystem: () => this.setTheme("system"),
lightBg: theme === "light" ? sel : "transparent",
darkBg: theme === "dark" ? sel : "transparent",
systemBg: theme === "system" ? sel : "transparent",
lightInk: theme === "light" ? "var(--ink)" : "var(--ink-3)",
darkInk: theme === "dark" ? "var(--ink)" : "var(--ink-3)",
systemInk: theme === "system" ? "var(--ink)" : "var(--ink-3)"
};
for (let i = 0; i < 3; i++) {
v["tab" + i] = () => this.setState({ tab: i, open: 0 });
v["tab" + i + "Bg"] = this.state.tab === i ? sel : "transparent";
v["tab" + i + "Border"] = this.state.tab === i ? "var(--accent)" : "var(--border)";
v["tab" + i + "Ink"] = this.state.tab === i ? "var(--ink)" : "var(--ink-2)";
}
return v;
}
}
</script>
</body>
</html>