/* VYSHKA Cloud apex landing — FOUNDATION 2030 (2026-07-31)
 * Onest / Unbounded · cobalt #1d4ed8 · Auth+Messenger+Voice CTAs · no bottom junk.
 * Soft motion only; disabled under prefers-reduced-motion.
 */

:root {
  --wow-iris: #1d4ed8;
  --wow-indigo: #1e40af;
  --wow-cyan: #38bdf8;
  --wow-mint: #2ccf9b;
  --brand: #1d4ed8;
  --brand-soft: #eff6ff;
  --hero-stage-min: 420px;
}

body {
  background:
    var(--vy-texture, radial-gradient(rgba(29, 78, 216, 0.045) 0.65px, transparent 0.65px)) 0 0 / 26px 26px,
    radial-gradient(54rem 30rem at 88% -8%, color-mix(in srgb, var(--wow-iris) 10%, transparent), transparent 72%),
    radial-gradient(40rem 28rem at -4% 70%, color-mix(in srgb, var(--wow-cyan) 11%, transparent), transparent 70%),
    var(--bg, #f4f7fb);
  font-family: var(--vy-font-body, "Onest", "Segoe UI", system-ui, sans-serif);
}

h1, h2, .brand-word, .auth-card h2, .svc b {
  font-family: var(--vy-font-display, "Unbounded", "Avenir Next", system-ui, sans-serif);
  letter-spacing: -0.03em;
}

.nav {
  border-bottom-color: color-mix(in srgb, var(--wow-iris) 16%, var(--line, #d8e1ec));
  background: color-mix(in srgb, var(--bg, #f4f7fb) 82%, transparent);
  box-shadow: 0 10px 34px rgba(12, 20, 39, 0.05);
}
.nav-in { min-height: 70px; }
.btn {
  min-height: 48px;
  gap: 8px;
  font-weight: 750;
}
.btn.primary {
  border-color: var(--wow-iris);
  background: linear-gradient(135deg, var(--wow-iris), var(--wow-indigo));
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.22);
}
.mark-image {
  object-fit: cover;
  filter: drop-shadow(0 6px 12px rgba(29, 78, 216, 0.24));
}

/* ——— Hero atmosphere ——— */
.hero-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 760px);
  padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line, #d8e1ec);
  background:
    radial-gradient(54rem 36rem at 90% 2%, rgba(29, 78, 216, 0.18), transparent 70%),
    radial-gradient(38rem 28rem at 4% 76%, rgba(56, 189, 248, 0.12), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface, #fff) 34%, var(--bg, #f4f7fb)), var(--bg, #f4f7fb));
  display: flex;
  align-items: center;
}
.hero-aurora {
  position: absolute;
  inset: -10% -5% auto;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(29, 78, 216, 0.24), transparent 42%),
    radial-gradient(circle at 20% 60%, rgba(56, 189, 248, 0.18), transparent 46%);
  filter: blur(40px);
  animation: wow-aurora 18s ease-in-out infinite alternate;
}
.hero-grid-glow {
  position: absolute;
  inset: auto 8% 6% 8%;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(29, 78, 216, 0.1), transparent 68%);
  filter: blur(24px);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.brand-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  animation: wow-rise 700ms var(--vy-ease, cubic-bezier(0.2, 0.7, 0.1, 1)) both;
}
.brand-word {
  font-size: clamp(2.7rem, 7.4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.94;
  color: var(--text, #111827);
}
.brand-word em {
  font-style: normal;
  background: linear-gradient(120deg, #1d4ed8 0%, #38bdf8 55%, #2ccf9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-kicker {
  max-width: 32ch;
  color: var(--muted, #475569);
  font-size: clamp(1.05rem, 2.3vw, 1.22rem);
  line-height: 1.45;
  animation: wow-rise 780ms 60ms var(--vy-ease, cubic-bezier(0.2, 0.7, 0.1, 1)) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  animation: wow-rise 820ms 110ms var(--vy-ease, cubic-bezier(0.2, 0.7, 0.1, 1)) both;
}
.hero-actions .btn {
  min-width: 132px;
  padding: 0 18px;
  font-size: 15px;
}
.cta-ico {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}
.cta-ico svg { width: 18px; height: 18px; display: block; }
.cta-msg, .cta-voice {
  border-color: color-mix(in srgb, var(--wow-iris) 28%, var(--line, #d8e1ec));
  background: color-mix(in srgb, #fff 88%, var(--brand-soft));
}
.cta-msg:hover, .cta-voice:hover {
  border-color: var(--wow-iris);
  box-shadow: 0 12px 26px rgba(15, 47, 104, 0.12);
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live, #147a5b);
  box-shadow: 0 0 0 0 rgba(20, 122, 91, 0.45);
  animation: wow-pulse 2.2s ease-out infinite;
}

/* ——— Auth window ——— */
.auth-card {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid color-mix(in srgb, var(--wow-iris) 22%, var(--line, #d8e1ec));
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  box-shadow:
    0 24px 60px rgba(15, 47, 104, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: wow-rise 760ms 80ms var(--vy-ease, cubic-bezier(0.2, 0.7, 0.1, 1)) both;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
  animation: wow-auth-glow 7s ease-in-out infinite alternate;
}
.auth-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.auth-card__mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8 60%, #2ccf9b);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}
.auth-card__mark img { width: 28px; height: 28px; }
.auth-card h2 { margin: 0; font-size: 1.15rem; }
.auth-card p { margin: 4px 0 0; color: var(--muted, #475569); font-size: 13px; }
/* Live submitting form (replaces decorative auth-fake) */
.auth-live {
  display: grid;
  gap: 12px;
  margin: 14px 0 4px;
}
.auth-live__field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #111827);
}
.auth-live__field span { letter-spacing: -0.01em; }
.auth-live__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--wow-iris) 22%, var(--line, #d8e1ec));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text, #111827);
  font: 500 16px/1.3 var(--vy-font-body, "Onest", system-ui, sans-serif);
  transition: border-color 200ms ease, box-shadow 220ms ease;
}
.auth-live__field input::placeholder { color: #94a3b8; font-weight: 500; }
.auth-live__field input:focus {
  outline: none;
  border-color: var(--wow-iris);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}
.auth-live__field input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}
.auth-live__hint {
  margin: 0;
  color: var(--muted, #475569);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.auth-card--live {
  animation: wow-rise 820ms 90ms var(--vy-ease, cubic-bezier(0.2, 0.7, 0.1, 1)) both;
}
.auth-card .btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}
.auth-card__note {
  margin-top: 12px;
  color: var(--muted, #475569);
  font-size: 13px;
  text-align: center;
}
.auth-card__pulse {
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.5);
  animation: wow-pulse 2s ease-out infinite;
}

/* ——— Visual services ——— */
.services {
  padding: clamp(36px, 5.5vw, 64px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line, #d8e1ec);
}
.services-head {
  max-width: 40rem;
  margin-bottom: 22px;
}
.services-head h2 { margin: 10px 0 0; font-size: clamp(1.45rem, 3.2vw, 2.1rem); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 136px;
  padding: 16px 14px 14px;
  border: 1px solid var(--line, #d8e1ec);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--brand-soft));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1), border-color 200ms ease, box-shadow 220ms ease;
}
.svc-hero {
  min-height: 152px;
  border-color: color-mix(in srgb, var(--svc-accent, #1d4ed8) 34%, var(--line, #d8e1ec));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--svc-accent, #1d4ed8) 10%, #fff), #fff 68%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--svc-accent, #1d4ed8) 12%, transparent);
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% 30%;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--svc-accent, #1d4ed8) 22%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--svc-accent, #1d4ed8) 55%, var(--line, #d8e1ec));
  box-shadow: 0 16px 36px rgba(15, 47, 104, 0.12);
  text-decoration: none;
}
.svc:hover::after { opacity: 1; }
.svc-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--svc-accent, #1d4ed8) 18%, #fff), #fff);
  color: var(--svc-accent, #1d4ed8);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--svc-accent, #1d4ed8) 18%, transparent);
  position: relative;
}
.svc-ico svg { width: 24px; height: 24px; display: block; }
.svc-ico::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--svc-accent, #1d4ed8) 28%, transparent);
  opacity: 0;
  transform: scale(0.86);
}
.svc:hover .svc-ico::after { animation: wow-ring 1.1s ease-out; }
.svc b { font-size: 0.98rem; font-weight: 700; }
.svc small {
  color: var(--muted, #475569);
  font-size: 12px;
  line-height: 1.35;
}
.svc[data-id="messenger"] { --svc-accent: #1d4ed8; }
.svc[data-id="voice"] { --svc-accent: #0284c7; }
.svc[data-id="files"] { --svc-accent: #0f766e; }
.svc[data-id="ai"] { --svc-accent: #1e40af; }
.svc[data-id="remote"] { --svc-accent: #0369a1; }
.svc[data-id="store"] { --svc-accent: #b45309; }
.svc[data-id="academy"] { --svc-accent: #047857; }
.svc[data-id="account"] { --svc-accent: #1d4ed8; }
.svc[data-id="uslugi"] { --svc-accent: #334155; }
.svc[data-id="dock"] { --svc-accent: #475569; }

/* ——— Slim tools / footer (no junk) ——— */
.strip {
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #d8e1ec);
}
.strip-mini { background: color-mix(in srgb, var(--surface, #fff) 70%, transparent); }
.strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.strip-free {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #475569);
  font-size: 13px;
  font-weight: 700;
}
.install-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.install-panel .btn {
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
  background: transparent;
  border-color: var(--line, #d8e1ec);
  box-shadow: none;
}
.install-status {
  flex-basis: 100%;
  min-height: 0;
  margin: 0;
  color: var(--muted, #475569);
  font-size: 12px;
}
.install-status:empty { display: none; }

.footer { padding: 22px 0 36px; }
.foot-mini {
  color: var(--muted, #475569);
  font-size: 13px;
  text-align: center;
}
.foot-mini p { margin: 0; }
.foot-mini a { color: var(--brand, #1d4ed8); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

#mobile-links:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 16px;
}
#mobile-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line, #d8e1ec);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--muted, #475569);
  font-size: 14px;
  font-weight: 700;
}

@keyframes wow-aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
@keyframes wow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}
@keyframes wow-auth-glow {
  from { transform: translate3d(0, 0, 0); opacity: 0.7; }
  to { transform: translate3d(-8%, -6%, 0); opacity: 1; }
}
@keyframes wow-ring {
  0% { opacity: 0.7; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes wow-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-surface { min-height: 0; display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: none; }
  .mobile-menu { display: inline-flex !important; }
  .hero-actions .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .hero-actions .cta-auth { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .brand-word { font-size: clamp(2.4rem, 12vw, 3.15rem); }
  .svc { min-height: 124px; padding: 14px; }
  .svc-hero { min-height: 136px; }
  .svc-ico { width: 42px; height: 42px; }
  .auth-card { padding: 18px; }
  #mobile-links:not([hidden]) { grid-template-columns: 1fr; }
  .hero-actions .btn { flex-basis: 100%; }
}
@media (min-width: 1280px) {
  .hero-grid { gap: 64px; }
  .svc-grid { gap: 14px; }
  .svc { min-height: 148px; }
  .svc-hero { min-height: 164px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .auth-card::before,
  .pulse-dot,
  .auth-card__pulse,
  .svc-ico::after,
  .brand-hero,
  .hero-kicker,
  .hero-actions,
  .auth-card { animation: none !important; }
  .svc, .btn { transition: none !important; }
}

/* m390-gate-20260731 */
@media (max-width: 420px) {
  .hero, .hero-stage, .hero-surface { overflow-x: clip; }
  .hero-aurora { left: 0; right: 0; width: 100%; max-width: 100%; transform: none; }
  a.brand, .brand { min-height: 44px; }
  .btn.theme, #theme { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
}
