/* ==========================================================================
   Первый экран главной: окно Vetryx для Windows + телефон с Vetryx для Android
   Подключается только на главной (tpl-ru.php) после main.css
   ========================================================================== */

.hero { overflow-x: clip; }

.hero-apps { position: relative; padding-bottom: 96px; }
.hero-apps::before {
  content: ""; position: absolute; inset: 8% 6% 20%; z-index: -1; border-radius: 30px;
  background: var(--grad); opacity: .32; filter: blur(60px);
}
@media (min-width: 961px) { .hero-apps { margin-left: -44px; } }

/* ---------- Окно Windows-приложения (повторяет настоящий интерфейс) ---------- */

.vxw {
  --w-bg: #0a0b11; --w-panel: #0c0e15; --w-s1: #12141d; --w-line: rgba(255, 255, 255, .07); --w-line2: rgba(255, 255, 255, .12);
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  background: var(--w-bg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  font-size: 13px; user-select: none;
}
.vxw__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; border-bottom: 1px solid var(--w-line); background: #08090e; }
.vxw__brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 11px; letter-spacing: .07em; }
.vxw__brand img { width: 20px; height: auto; }
.vxw__days { margin-left: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--w-line); background: var(--w-s1); color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.vxw__ctl { display: flex; }
.vxw__ctl svg { width: 34px; height: 33px; padding: 11px 12px; color: var(--text-3); stroke: currentColor; stroke-width: 1.6; fill: none; }
.vxw__body { display: grid; grid-template-columns: 212px minmax(0, 1fr); }
.vxw__side { position: relative; isolation: isolate; padding: 16px 14px 14px; background: var(--w-panel); border-right: 1px solid var(--w-line); }
.vxw__side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; background: radial-gradient(300px 130px at 25% -35%, rgba(61, 220, 151, .18), transparent 72%); }
.vxw__st { display: flex; align-items: center; gap: 7px; color: var(--ok); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vxw__st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.vxw__loc { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.vxw__loc .flag { width: 26px; height: 26px; border-radius: 50%; }
.vxw__meta { margin-top: 7px; color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
.vxw__meta .mono { color: var(--text); }
.vxw__btn { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; margin-top: 14px; border-radius: 10px; border: 1px solid var(--w-line2); background: var(--w-s1); font-weight: 700; font-size: 12.5px; }
.vxw__btn svg { width: 15px; height: 15px; }
.vxw__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.vxw__tiles div { padding: 8px 9px; border-radius: 9px; border: 1px solid var(--w-line); background: var(--w-s1); }
.vxw__tiles small { display: block; color: var(--text-3); font-size: 10px; }
.vxw__tiles b { display: block; margin-top: 3px; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vxw__list { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--w-line); }
.vxw__row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.vxw__row > div { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vxw__row .flag { width: 20px; height: 20px; border-radius: 50%; }
.vxw__row small { display: block; color: var(--text-3); font-size: 10.5px; font-weight: 500; }
.vxw__row.is-on { background: rgba(155, 77, 255, .1); box-shadow: inset 0 0 0 1px rgba(155, 77, 255, .45); }
.vxw__row.is-on small { color: var(--ok); }
.vxw__ping { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font: 500 10.5px var(--mono); white-space: nowrap; }
.vxw__ping i { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.vxw__ping i::before, .vxw__ping i::after, .vxw__ping i span { content: ""; width: 2.5px; border-radius: 1px; background: var(--ok); }
.vxw__ping i::before { height: 4px; }
.vxw__ping i span { height: 6.5px; }
.vxw__ping i::after { height: 9px; }
.vxw__ico { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; }
.vxw__ico svg { width: 11px; height: 11px; }
.vxw__ico--fast { background: var(--grad); }
.vxw__ico--lte { background: #1f2a3d; color: #8fb4ff; }
.vxw__map { position: relative; overflow: hidden; min-height: 100%; background: url(/assets/img/hero-map.svg) center / cover no-repeat, var(--w-bg); }
.vxw__map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vxw__route { fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-dasharray: 5 5; animation: vxw-flow 1.2s linear infinite; }
.vxw__mk { fill: none; stroke: rgba(220, 226, 245, .55); stroke-width: 1.2; }
.vxw__mk-c { fill: rgba(220, 226, 245, .75); }
.vxw__act { fill: var(--ok); }
.vxw__pulse { fill: none; stroke: var(--ok); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: vxw-pulse 2.2s ease-out infinite; }
.vxw__home { fill: #fff; }
.vxw__chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--w-line2); background: rgba(12, 14, 21, .82); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.vxw__chip i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.vxw__chip span { color: var(--text-3); font-weight: 500; }
.vxw__chip--top { top: 10px; left: 10px; }
.vxw__foot { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.vxw__foot .vxw__chip { position: static; }
@keyframes vxw-flow { to { stroke-dashoffset: -20; } }
@keyframes vxw-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Телефон с Android-приложением ---------- */

.vxp { position: absolute; right: -74px; bottom: 0; width: 136px; container-type: inline-size; }
.vxp__body {
  position: relative; padding: 2.8cqw; border-radius: 15.5cqw;
  background: linear-gradient(150deg, #3b3f57 0%, #181a24 32%, #0c0d13 62%, #2c2f42 100%);
  box-shadow: inset 0 0 0 .5cqw rgba(255, 255, 255, .09), inset 0 0 0 1.6cqw #07080c, 0 34px 70px -22px rgba(0, 0, 0, .95);
}
.vxp__screen { position: relative; overflow: hidden; border-radius: 12.8cqw; background: #08090e; }
.vxp__screen img { display: block; width: 100%; height: auto; }
.vxp__status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 10cqw; padding: 1.2cqw 8cqw 0 9cqw; color: #eef0f7; font: 600 4.6cqw/1 var(--font); }
.vxp__cam { position: absolute; left: 50%; top: 3.1cqw; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #000; box-shadow: 0 0 0 .7cqw #14151c; transform: translateX(-50%); }
.vxp__icons { display: flex; align-items: center; gap: 1.5cqw; }
.vxp__icons svg { width: 4.4cqw; height: 4.4cqw; fill: currentColor; }
.vxp__icons svg.bat { width: 6.4cqw; }
.vxp__home { display: grid; place-items: center; height: 6.4cqw; background: #08090e; }
.vxp__home i { width: 30cqw; height: 1.3cqw; border-radius: 1cqw; background: rgba(238, 240, 247, .6); }
.vxp__key { position: absolute; right: -.7cqw; width: 1.3cqw; border-radius: 0 1cqw 1cqw 0; background: linear-gradient(90deg, #1b1d28, #3a3d52); }
.vxp__key--pwr { top: 30cqw; height: 13cqw; }
.vxp__key--vol { top: 50cqw; height: 22cqw; }

/* ---------- Кнопки «Windows · Скачать» и «Android · Скачать» ---------- */

.vxapps { position: absolute; left: 0; bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.vxapp {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: rgba(16, 18, 27, .75);
  transition: border-color .15s ease, background-color .15s ease;
}
.vxapp:hover { border-color: var(--violet); background: rgba(155, 77, 255, .08); }
.vxapp__i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--text); }
.vxapp__i svg { width: 18px; height: 18px; }
.vxapp b { display: block; font-size: 15px; }
.vxapp b em { margin-left: 6px; font-style: normal; color: var(--pink); font-weight: 600; font-size: 13px; }
.vxapp small { display: block; color: var(--text-3); font-size: 12.5px; }

@media (max-width: 1100px) { .vxp { right: -10px; } }
@media (max-width: 560px) {
  .hero-apps { padding-bottom: 0; }
  .vxw { display: none; }
  .vxp { position: static; width: 230px; margin: 0 auto; }
  .vxapps { position: static; justify-content: center; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .vxw__route, .vxw__pulse { animation: none; }
}

/* Узкие ноутбуки и планшеты: кнопки приложений не прячутся под телефон */
@media (min-width: 561px) and (max-width: 1200px) {
  .hero-apps { padding-bottom: 172px; }
  .vxapps { right: 140px; }
  .vxp { width: 120px; }
}
