/* FileRocks website — design tokens from app palette */
:root {
  --bg: #0e1116;
  --bg-glow: #12201a;
  --surface: #161b22;
  --card: #1c232d;
  --line: #2e3948;
  --text: #f4f7fa;
  --muted: #b7c3d0;
  --accent: #2ee6a6;
  --accent-dim: #16352c;
  --on-accent: #062018;
  --danger: #e05a6a;
  --warn: #e8b84a;
  --save-blue: #6ba3e8;
  --connecting: #6ea8e6;
  --hover: #22303c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: system-ui, -apple-system, 'Segoe UI Variable', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'SF Mono', monospace;

  --header-h: 64px;
  --max-w: 1120px;
  --section-gap: clamp(4rem, 8vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(46, 230, 166, 0.12), transparent 55%),
    radial-gradient(900px 500px at 92% 8%, rgba(107, 163, 232, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  position: relative;
  width: min(100% - 2rem, 1180px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
}

.site-header .logo {
  font-size: 1.45rem;
  gap: 0.55rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.site-header .logo-icon {
  width: 40px;
  height: 40px;
}

.site-header nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.logo:hover {
  opacity: 1;
  color: var(--text);
}

.logo-word {
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

.logo-accent {
  color: var(--accent);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.65rem, 1.2vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  opacity: 1;
}

.header-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

/* Avoid English flash before i18n applies */
html.i18n-pending body {
  visibility: hidden;
}

.lang-toggle {
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.lang-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
}

.header-social {
  /* sizing and border-radius from .social-link */
}

.footer-social-row {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-social {
  width: 40px;
  height: 40px;
}

.social-icon {
  display: block;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  opacity: 1;
  background: #3af0b4;
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  opacity: 1;
  background: var(--hover);
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn .btn-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}

.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 34rem;
}

.hero-logo {
  width: 192px;
  height: 192px;
  border-radius: 0;
  margin-bottom: 1.25rem;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 0 32px rgba(46, 230, 166, 0.22));
}

.hero-logo--desktop {
  display: none;
}

.hero-logo--mobile {
  display: none;
}

.hero-brand {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* Слоган под H1: раньше он и был заголовком, теперь H1 занят целевым запросом. */
.hero-slogan {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.0625rem);
  line-height: 1.4;
}

.hero-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.hero-promise li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  background: var(--accent-dim);
  border: 1px solid rgba(46, 230, 166, 0.28);
  border-radius: 999px;
  color: var(--text);
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  list-style: none;
}

.hero-promise li::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232ee6a6' fill-opacity='0.22'/%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232ee6a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
}

.hero-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1 1 0;
  min-width: 0;
}

.hero-download .btn {
  width: 100%;
}

.hero-download-meta {
  margin: 0 !important;
  padding: 0 0.15rem;
  font-size: 0.75rem !important;
  line-height: 1.35;
  color: var(--muted);
}

.hero-windows-hint {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  max-width: none;
  margin-top: 0.15rem;
  padding: 0 0.15rem;
}

.hero-windows-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.hero-windows-hint-title {
  color: var(--text) !important;
  font-weight: 600;
}

.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.download-qr img {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.35rem;
  box-sizing: border-box;
}

.download-qr figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.download-qr--hero {
  margin-top: 0.35rem;
  align-self: center;
}

.download-qr--hero img {
  width: 6.75rem;
  height: 6.75rem;
}

.download-qr--card {
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 0;
}

.download-qr--card img {
  width: 7.25rem;
  height: 7.25rem;
}

.download-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.download-card-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.download-card-intro > p {
  flex: 0 0 auto;
}

.download-card[data-channel="apk"] {
  justify-content: flex-start;
}

.download-card[data-channel="apk"] > .download-meta,
.download-card[data-channel="apk"] > .btn,
.download-card[data-channel="apk"] > .download-card-notice {
  flex: 0 0 auto;
}

.hero-platforms {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.hero-platforms span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
}

.hero-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  -webkit-tap-highlight-color: transparent;
}

.hero-play--mobile {
  display: none;
}

.hero-play--desktop {
  display: inline-flex;
  width: min(220px, 42%);
}

.hero-play .hero-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.hero-play-icon {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: clamp(3.25rem, 8vw, 4.25rem);
  height: clamp(3.25rem, 8vw, 4.25rem);
  margin: calc(clamp(3.25rem, 8vw, 4.25rem) / -2) 0 0 calc(clamp(3.25rem, 8vw, 4.25rem) / -2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-play-icon svg {
  margin-left: 3px;
  opacity: 0.92;
}

.hero-play:hover .hero-play-icon,
.hero-play:focus-visible .hero-play-icon {
  transform: scale(1.06);
  background: rgba(14, 17, 22, 0.42);
  border-color: rgba(46, 230, 166, 0.55);
  color: var(--accent);
}

.hero-play:focus-visible {
  outline: none;
}

.hero-play:focus-visible .hero-play-icon {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-play-waves {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: clamp(3.25rem, 8vw, 4.25rem);
  height: clamp(3.25rem, 8vw, 4.25rem);
  margin: calc(clamp(3.25rem, 8vw, 4.25rem) / -2) 0 0 calc(clamp(3.25rem, 8vw, 4.25rem) / -2);
  pointer-events: none;
}

.hero-play-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 230, 166, 0.38);
  opacity: 0;
  animation: hero-play-ripple 2.6s ease-out infinite;
}

.hero-play-wave:nth-child(2) {
  animation-delay: 0.85s;
}

.hero-play-wave:nth-child(3) {
  animation-delay: 1.7s;
}

@keyframes hero-play-ripple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    transform: scale(2.75);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-play-wave {
    animation: none;
    opacity: 0.28;
    transform: scale(1.35);
  }

  .hero-play-wave:nth-child(2),
  .hero-play-wave:nth-child(3) {
    display: none;
  }
}

.hero-visual .hero-logo--desktop {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
}

.video-modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 420px);
  width: 100%;
}

.video-modal::backdrop {
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(4px);
}

.video-modal-panel {
  position: relative;
  background: #0a0c10;
  border: 1px solid rgba(46, 230, 166, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.video-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.72);
  color: #fff;
  cursor: pointer;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  background: rgba(46, 230, 166, 0.22);
  color: var(--accent);
  outline: none;
}

.video-modal-player {
  display: block;
  width: 100%;
  max-height: min(82vh, 820px);
  background: #000;
  vertical-align: middle;
}

.scenario-diagrams {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.scenario-diagrams .device-diagram {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.1rem 0.75rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* ── Device diagram ── */
.device-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem;
}

.device-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 160px;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
}

.device-box.cloud {
  background: rgba(110, 168, 230, 0.12);
  border-color: rgba(110, 168, 230, 0.5);
  color: var(--connecting);
  width: 158px;
  max-width: 158px;
  height: 2.85rem;
  min-height: 2.85rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.device-box.accent {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  width: 158px;
  max-width: 158px;
  height: 2.85rem;
  min-height: 2.85rem;
  padding: 0 0.75rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.device-diagram--cloud {
  border-color: rgba(110, 168, 230, 0.3);
}

.diagram-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  gap: 0.15rem;
}

.diagram-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ── Sections ── */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 0 2.5rem;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin: 0;
}

.step-card h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
}

.transfer-flow {
  margin-top: 2.75rem;
}

.transfer-flow-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.transfer-flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.transfer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 100%;
}

.transfer-kbd {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(46, 230, 166, 0.35);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

.transfer-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 5.5rem;
  padding: 0.5rem 0.25rem;
  color: var(--accent);
}

.transfer-anim-track {
  position: relative;
  width: min(7.5rem, 18vw);
  height: 2.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  overflow: hidden;
}

.transfer-packet {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(46, 230, 166, 0.75);
}

.transfer-packet--ltr {
  left: 0.45rem;
  animation: transfer-ltr 1.7s ease-in-out infinite;
}

.transfer-packet--rtl {
  right: 0.45rem;
  animation: transfer-rtl 1.7s ease-in-out infinite;
  animation-delay: 0.85s;
}

.transfer-anim-arrows {
  width: 3.5rem;
  height: 2.2rem;
  opacity: 0.9;
}

.transfer-anim-arrows svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes transfer-ltr {
  0% { transform: translateX(0); opacity: 0.25; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(5.6rem); opacity: 0.2; }
}

@keyframes transfer-rtl {
  0% { transform: translateX(0); opacity: 0.25; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(-5.6rem); opacity: 0.2; }
}

@keyframes transfer-ltr-mobile {
  0% { transform: translateX(0); opacity: 0.25; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(2.1rem); opacity: 0.2; }
}

@keyframes transfer-rtl-mobile {
  0% { transform: translateX(0); opacity: 0.25; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(-2.1rem); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-packet--ltr,
  .transfer-packet--rtl {
    animation: none;
    opacity: 0.85;
  }

  .transfer-packet--ltr {
    left: 30%;
  }

  .transfer-packet--rtl {
    right: 30%;
  }
}

.compare-carousel-hint {
  display: none;
}

.steps-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.steps-visual span {
  padding: 0.5rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps-visual .arrow-down {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.process-intro {
  max-width: 52rem;
}

.process-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.process-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(28, 35, 45, 0.95), rgba(22, 27, 34, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.process-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.26);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.process-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.process-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.process-shot-grid {
  display: grid;
  gap: 0.9rem;
}

.process-shot-grid--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-shot-grid--double-desktop {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-shot {
  margin: 0;
  overflow: hidden;
  background: rgba(8, 11, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.process-shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.28s ease;
}

.process-shot figcaption {
  padding: 0.8rem 0.9rem 0.95rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.process-shot-note {
  display: none;
}

.process-shot--mobile img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.process-shot--desktop img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

@media (hover: hover) and (pointer: fine) {
  .process-carousel,
  .process-card,
  .process-shot-grid {
    overflow: visible;
  }

  .process-shot {
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  .process-shot img {
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .process-shot.is-zoomed {
    z-index: 20;
  }

  .process-shot.is-zoomed img {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 200;
    width: var(--zoom-w);
    height: var(--zoom-h);
    max-width: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }
}

/* ── Feature blocks ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-visual {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.clipboard-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.clipboard-url {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--connecting);
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  word-break: break-all;
  text-align: center;
}

.clipboard-label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.clipboard-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
}

/* File transfer animation */
.file-transfer {
  text-align: center;
}

.file-size {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.transfer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.transfer-device {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.transfer-bar {
  flex: 1;
  max-width: 200px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.transfer-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 60%;
  background: var(--accent);
  border-radius: 2px;
  animation: transfer-pulse 2s ease-in-out infinite;
}

@keyframes transfer-pulse {
  0% { width: 10%; opacity: 0.5; }
  50% { width: 80%; opacity: 1; }
  100% { width: 10%; opacity: 0.5; }
}

.transfer-wifi {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--warn);
  font-size: 0.8125rem;
  font-weight: 500;
}

.transfer-speed {
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
}

/* ── Security list ── */
.security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.security-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Platforms ── */
.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
}

.platform-chip.supported {
  border-color: var(--accent);
  color: var(--accent);
}

.platform-chip.soon {
  opacity: 0.5;
}

.platform-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.platform-chip.soon .dot {
  background: var(--muted);
}

.platforms-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 2rem;
}

/* ── Telegram comparison ── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.compare-card.before {
  opacity: 0.65;
}

.compare-card.after {
  border-color: var(--accent);
}

.compare-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.compare-card.after .compare-label {
  color: var(--accent);
}

.compare-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.compare-table {
  width: 100%;
  min-width: 56rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 8.5rem;
  min-width: 8.5rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  background: var(--card);
  border-right: 1px solid var(--line);
}

.compare-table tbody td {
  color: var(--muted);
  max-width: 12rem;
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
  background: var(--hover);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table-highlight th,
.compare-table-highlight td {
  background: rgba(46, 230, 166, 0.09);
  color: var(--text);
}

.compare-table-highlight th {
  color: var(--accent);
  background: rgba(46, 230, 166, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}

.compare-table-highlight:hover th,
.compare-table-highlight:hover td {
  background: rgba(46, 230, 166, 0.14);
}

.compare-table-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.compare-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.compare-flow span {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.compare-flow .flow-arrow {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ── FAQ ── */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── Footer ── */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text);
  font-size: 0.9375rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-left a {
  color: var(--accent);
}

.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-credit a {
  color: var(--accent);
}

.footer-credit a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Download page ── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 4rem;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.download-card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.download-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
  flex: 1;
}

.download-meta {
  margin: 0 !important;
  flex: 0 !important;
  font-size: 0.8125rem !important;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.download-meta-version {
  color: var(--text);
  font-weight: 600;
}

.download-meta-date {
  color: var(--text);
}

.download-card.unavailable {
  opacity: 0.45;
}

.download-card-notice {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.download-card-notice-lead {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.download-card-notice-title {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--warn);
}

.download-card-notice-steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.download-card-notice-steps li + li {
  margin-top: 0.25rem;
}

.download-card-notice-steps strong,
.download-card-notice-lead strong {
  color: var(--text);
  font-weight: 600;
}

.download-verify {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.download-verify-title {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-verify-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.download-verify-hash {
  flex: 1 1 14rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted);
}

.download-verify-copy {
  flex: 0 0 auto;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
}

.download-verify-copy:hover {
  border-color: var(--accent);
}

.download-verify-how {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.download-verify-how summary {
  cursor: pointer;
  color: var(--accent);
}

.download-verify-how p {
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.download-verify-cmd {
  display: block;
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--card);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
  color: var(--text);
}

.download-hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
}

.hero-play--download {
  display: inline-flex;
  margin: 0 auto 1.5rem;
}

.hero-play--download .download-hero-logo,
.hero-play--download .logo-icon-lg {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0;
}

.page-download .page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-available-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.download-available .download-grid {
  padding-top: 1rem;
}

/* ── Changelog / Что нового ── */
/* --- Скриншоты и вопрос-ответ внутри статьи ------------------------------ */
.article-figure {
  margin: 1.75rem 0;
  text-align: center;
}

.article-figure img,
.article-figure video {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a0e14;
  vertical-align: middle;
}

.article-figure--desktop img,
.article-figure--desktop video {
  max-width: min(520px, 100%);
}

.article-figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-faq h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.0625rem;
  color: var(--text);
}

.article-faq p {
  margin: 0;
}

.article-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--surface, rgba(255,255,255,0.06));
  font-size: 0.9375em;
}

.article-body .kb-table {
  margin: 1.25rem 0 1.75rem;
}

/* --- Вводный блок и таблица на /instructions/ ---------------------------- */
.kb-intro {
  max-width: 48rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.kb-intro-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.kb-table th,
.kb-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.kb-table th {
  color: var(--text);
  font-weight: 600;
}

.kb-table a {
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .kb-table a { white-space: normal; }
  .kb-table th, .kb-table td { padding: 0.55rem 0.4rem; }
}

/* --- Статические блоки на /download/ ------------------------------------- */
.download-intro {
  max-width: 44rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-requirements {
  padding-bottom: 1rem;
  max-width: 48rem;
}

.download-req-list,
.download-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.download-req-list li,
.download-steps li {
  margin-bottom: 0.5rem;
}

.download-req-list strong,
.download-steps strong {
  color: var(--text);
}

.download-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Предыдущая версия на /download/ ------------------------------------ */
.download-previous-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  max-width: 36rem;
}

.download-previous-version {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.download-previous-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.download-previous-links .btn {
  flex: 1 1 15rem;
  justify-content: center;
}

.download-previous-meta {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

@media (max-width: 480px) {
  .download-previous-links .btn { flex-basis: 100%; }
}

.changelog-section {
  padding: 2rem 0 1rem;
  max-width: 48rem;
}

.changelog-title {
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  align-items: start;
  padding: 1.15rem 0;
}

.changelog-entry + .changelog-entry {
  border-top: 1px solid var(--line);
}

.changelog-meta {
  padding-top: 0.1rem;
}

.changelog-version {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.changelog-date {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.3;
}

.changelog-body {
  min-width: 0;
}

.changelog-block + .changelog-block {
  margin-top: 1rem;
}

.changelog-block-title {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.changelog-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.changelog-list li + li {
  margin-top: 0.35rem;
}

.changelog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.changelog-toggle::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
  margin-top: -0.15rem;
}

.changelog-toggle.is-open::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.changelog-toggle:hover {
  opacity: 0.85;
}

.changelog-past {
  margin-top: 0.5rem;
}

.changelog-empty {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .changelog-meta {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
  }

  .changelog-date {
    margin-top: 0;
  }
}

/* ── Pair page ── */
.pair-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.pair-card {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
}

.pair-card h1 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
}

.pair-card .pair-status {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.pair-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pair-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 50%;
  color: var(--accent);
}

.pair-icon.warn {
  background: rgba(255, 200, 87, 0.12);
  color: var(--warn);
}

.pair-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pair-actions .btn {
  width: 100%;
}

.pair-hint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .scenario-diagrams {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .scenario-diagrams .device-diagram {
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.5rem, var(--max-w));
  }

  /* Version meta: two lines so "Версия X · дата · размер" fits on phones */
  .download-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.3;
    font-size: 0.75rem !important;
  }

  .download-meta .download-meta-sep {
    display: none;
  }

  .download-meta .download-meta-version-line,
  .download-meta .download-meta-date {
    display: block;
  }

  .site-header .container {
    width: 100%;
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 0.15rem;
    box-sizing: border-box;
  }

  .site-header .header-inner {
    gap: 0;
  }

  .site-header .logo {
    order: 1;
    margin-right: auto;
  }

  /* Keep nav out of flex flow so the toggle sits on the right edge */
  .site-header nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    order: 4;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin: 0;
    padding: 0.65rem 0.5rem;
  }

  .nav-links {
    display: none;
    position: static;
    transform: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .header-cta {
    display: none;
    order: 5;
  }

  .header-socials {
    order: 2;
    margin-left: 0;
    margin-right: 0.15rem;
  }

  .hero {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow: hidden;
    padding: clamp(0.25rem, 1vh, 0.65rem) 0 clamp(0.5rem, 1.6vh, 1rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
    align-content: stretch;
  }

  .hero-content {
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .hero-logo--mobile {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 112px;
    min-height: 112px;
    max-width: min(52vw, 200px);
    max-height: min(30dvh, 200px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0 auto;
  }

  .hero-play--mobile {
    display: inline-flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 112px;
    min-height: 112px;
    max-width: min(52vw, 200px);
    max-height: min(30dvh, 200px);
    margin: 0 auto clamp(0.25rem, 1vh, 0.55rem);
  }

  .hero-play--mobile .hero-logo--mobile {
    width: 100%;
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }

  .hero-play--desktop,
  .hero-logo--desktop {
    display: none;
  }

  .hero-brand {
    font-size: clamp(1.35rem, 3.8vh, 1.85rem);
    margin-bottom: clamp(0.1rem, 0.5vh, 0.25rem);
  }

  .hero-slogan {
    font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
    margin-bottom: clamp(0.3rem, 0.9vh, 0.55rem);
  }

  .hero h1 {
    font-size: clamp(1.15rem, 4.6vw, 1.45rem);
    line-height: 1.28;
    margin: 0 0 clamp(0.3rem, 0.9vh, 0.55rem);
  }

  .hero h1 br {
    display: block;
  }

  .hero-promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: clamp(0.22rem, 0.7vh, 0.35rem) clamp(0.25rem, 1vw, 0.35rem);
    margin: 0 0 clamp(0.3rem, 1vh, 0.6rem);
    max-width: 24rem;
    width: 100%;
  }

  .hero-promise li {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
    padding: clamp(0.18rem, 0.55vh, 0.28rem) clamp(0.15rem, 0.8vw, 0.35rem);
  }

  .hero-desc {
    font-size: clamp(0.75rem, 1.9vh, 0.875rem);
    line-height: 1.35;
    margin: 0 0 clamp(0.4rem, 1.2vh, 0.75rem);
    max-width: 22rem;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
  }

  .hero-actions {
    width: 100%;
    max-width: 22rem;
    flex-direction: column;
    gap: clamp(0.35rem, 1vh, 0.55rem);
  }

  .download-qr {
    display: none !important;
  }

  .hero-windows-hint {
    display: none !important;
  }

  .hero-download {
    width: 100%;
    align-items: center;
    gap: 0.2rem;
  }

  .hero-download-meta {
    text-align: center;
    font-size: 0.6875rem !important;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.3;
  }

  .hero-download-meta .download-meta-sep {
    display: none;
  }

  .hero-download-meta .download-meta-version-line,
  .hero-download-meta .download-meta-date {
    display: block;
  }

  .hero-actions .btn {
    width: 100%;
    padding: clamp(0.55rem, 1.4vh, 0.75rem) 1rem;
  }

  .hero-platforms {
    display: flex;
    margin-top: clamp(0.35rem, 1vh, 0.65rem);
    justify-content: center;
    gap: 0.35rem;
  }

  .hero-platforms span {
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
  }

  .hero-visual {
    display: none;
  }

  .feature-grid,
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-grid.reverse {
    direction: ltr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .transfer-flow {
    margin-top: 2rem;
  }

  .transfer-flow-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.65rem;
    align-items: stretch;
  }

  .transfer-card {
    padding: 1rem 0.75rem;
  }

  .transfer-kbd {
    font-size: 1.05rem;
    padding: 0.45rem 0.7rem;
    margin-bottom: 0.65rem;
  }

  .transfer-card p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .transfer-anim {
    min-width: 3.25rem;
    padding: 0.15rem 0;
    gap: 0.45rem;
  }

  .transfer-anim-track {
    width: 3.25rem;
    height: 2.25rem;
  }

  .transfer-anim-arrows {
    width: 2.4rem;
    height: 1.5rem;
  }

  .transfer-packet--ltr {
    animation-name: transfer-ltr-mobile;
  }

  .transfer-packet--rtl {
    animation-name: transfer-rtl-mobile;
  }

  .process-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .process-carousel::-webkit-scrollbar {
    height: 8px;
  }

  .process-carousel::-webkit-scrollbar-thumb {
    background: rgba(46, 230, 166, 0.25);
    border-radius: 999px;
  }

  .process-card,
  .process-shot-grid,
  .process-shot-grid--double,
  .process-shot-grid--double-desktop {
    display: contents;
  }

  .process-card-head,
  .process-card > p {
    display: none;
  }

  .process-shot {
    flex: 0 0 min(68vw, 16.5rem);
    scroll-snap-align: start;
  }

  .process-shot img {
    transform: none !important;
  }

  .process-shot figcaption {
    display: none;
  }

  .process-shot-note {
    display: block;
    margin: 0;
    padding: 0.7rem 0.75rem 0.85rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .transfer-line {
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
  }

  .transfer-device {
    flex-shrink: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }

  .transfer-bar {
    flex: 1 1 auto;
    min-width: 48px;
    max-width: none;
    width: auto;
    order: 0;
  }

  .article-layout {
    padding-top: 1.5rem;
  }

  .article-cta .btn {
    display: flex;
    width: 100%;
    margin: 0.35rem 0;
  }

  .kb-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-bottom-left {
    flex-direction: column;
    align-items: center;
  }

  .footer-credit {
    text-align: center;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  #download-grid-available .download-card[data-channel="apk"] {
    order: -1;
  }

  .page-download .download-above-fold {
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }

  .page-download .page-hero {
    padding: clamp(0.35rem, 1.2vh, 0.75rem) 0 clamp(0.35rem, 1vh, 0.65rem);
  }

  .page-download .download-hero-logo,
  .page-download .page-hero .logo-icon-lg,
  .page-download .hero-play--download {
    width: clamp(120px, 22vh, 168px);
    height: clamp(120px, 22vh, 168px);
    margin: 0 auto clamp(0.4rem, 1.2vh, 0.75rem);
  }

  .page-download .hero-play--download .download-hero-logo,
  .page-download .hero-play--download .logo-icon-lg {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .page-download .page-hero h1 {
    font-size: clamp(1.4rem, 4.5vh, 1.85rem);
    margin: 0;
  }

  .page-download .download-available-title {
    font-size: clamp(1rem, 2.8vh, 1.15rem);
    margin: 0 0 clamp(0.45rem, 1.2vh, 0.7rem);
  }

  .page-download .download-available .download-grid {
    padding: 0;
    gap: clamp(0.7rem, 1.8vh, 1rem);
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] {
    padding: clamp(0.9rem, 2.2vh, 1.25rem) clamp(0.95rem, 3vw, 1.2rem);
    gap: clamp(0.55rem, 1.4vh, 0.85rem);
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] .download-card-icon {
    width: 40px;
    height: 40px;
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] h2 {
    font-size: 1.1rem;
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] > p,
  .page-download #download-grid-available .download-card[data-channel="apk"] .download-card-intro > p,
  .page-download #download-grid-available .download-card[data-channel="apk"] .download-meta {
    font-size: 0.75rem !important;
  }

  .page-download .download-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .page-download .download-meta .download-meta-sep {
    display: none;
  }

  .page-download .download-meta .download-meta-version-line,
  .page-download .download-meta .download-meta-date {
    display: block;
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] .btn {
    padding: clamp(0.65rem, 1.8vh, 0.85rem) 1.1rem;
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] .download-card-notice {
    margin-top: 0;
    padding-top: clamp(0.55rem, 1.4vh, 0.8rem);
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] .download-card-notice-lead {
    margin: 0;
    font-size: clamp(0.75rem, 2vh, 0.8125rem);
    line-height: 1.4;
  }

  .page-download #download-grid-available .download-card[data-channel="windows"] {
    margin-top: 0.25rem;
  }

  .page-hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .compare-carousel-hint {
    display: block;
    margin: -0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.8125rem;
    text-align: center;
  }

  .compare-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    border-radius: 0;
    margin-inline: -0.75rem;
  }

  .compare-table {
    min-width: 0;
    display: block;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.75rem;
    padding: 0.15rem 0.75rem 0.85rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .compare-table tbody::-webkit-scrollbar {
    height: 6px;
  }

  .compare-table tbody::-webkit-scrollbar-thumb {
    background: rgba(46, 230, 166, 0.28);
    border-radius: 999px;
  }

  .compare-table tbody tr {
    display: block;
    flex: 0 0 min(86vw, 21.5rem);
    scroll-snap-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem 0.85rem;
  }

  .compare-table tbody th,
  .compare-table tbody td {
    display: block;
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
  }

  .compare-table tbody th {
    margin: 0 0 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }

  .compare-table tbody td {
    display: grid;
    grid-template-columns: minmax(8.25rem, 40%) 1fr;
    gap: 0.65rem 0.85rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(46, 57, 72, 0.55);
    font-size: 0.875rem;
    color: var(--text);
  }

  .compare-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0.15rem;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 0.1rem;
  }

  .compare-table-highlight {
    border-color: rgba(46, 230, 166, 0.45);
    background: rgba(46, 230, 166, 0.07);
  }

  .compare-table-highlight th {
    color: var(--accent);
  }

  .compare-table tbody tr:hover th,
  .compare-table tbody tr:hover td {
    background: transparent !important;
  }
}

@media (max-width: 380px) {
  .clipboard-url {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .btn {
    padding: 0.7rem 1.1rem;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero-logo--mobile {
    min-width: 88px;
    min-height: 88px;
    max-width: min(42vw, 140px);
    max-height: min(22dvh, 140px);
    margin-bottom: 0.25rem;
  }

  .hero-play--mobile {
    min-width: 88px;
    min-height: 88px;
    max-width: min(42vw, 140px);
    max-height: min(22dvh, 140px);
    margin-bottom: 0.25rem;
  }

  .hero-brand {
    font-size: clamp(1.2rem, 3.2vh, 1.55rem);
  }

  .hero h1 {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    margin-bottom: 0.3rem;
  }

  .hero-promise {
    max-width: 22rem;
    margin-bottom: 0.35rem;
  }

  .hero-promise li {
    font-size: clamp(0.55rem, 2.2vw, 0.66rem);
  }

  .hero-desc {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .page-download .download-hero-logo,
  .page-download .page-hero .logo-icon-lg,
  .page-download .hero-play--download {
    width: clamp(64px, 12vh, 96px);
    height: clamp(64px, 12vh, 96px);
  }

  .page-download .hero-play--download .download-hero-logo,
  .page-download .hero-play--download .logo-icon-lg {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .page-download #download-grid-available .download-card[data-channel="apk"] {
    padding: 0.85rem 1rem;
    gap: 0.55rem;
  }
}

/* ── Logo ── */
.logo-icon {
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.logo-icon-lg {
  width: 96px;
  height: 96px;
  border-radius: 0;
  object-fit: contain;
}

/* ── Knowledge base / articles ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
  opacity: 1;
}

.breadcrumbs span {
  color: var(--line);
}

.article-layout {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.article-layout h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}

.article-body h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text);
}

.article-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.article-cta p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 4rem;
}

.kb-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text);
  transition: border-color 0.15s;
}

.kb-card:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--text);
}

.kb-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.kb-card h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.kb-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-list a {
  color: var(--accent);
  font-size: 0.9375rem;
}

.seo-keywords {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--hover);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .transfer-bar::after { animation: none; width: 60%; }
  .pair-spinner { animation: none; }
  .back-to-top { transition: none; }
}


/* ── Article callouts (cloud guide) ── */
.callout {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout-accent {
  border-color: rgba(46, 230, 166, 0.35);
  background: linear-gradient(135deg, rgba(22, 53, 44, 0.85), rgba(28, 35, 45, 0.9));
}
.callout p { margin: 0; color: var(--text); }
/* Врезка из нескольких блоков: правило выше обнуляет отступы ради однострочных
   врезок, а когда внутри заголовок и несколько абзацев, нужен воздух между ними.
   Соседний селектор не трогает врезки с единственным абзацем. */
.callout > * + * { margin-top: 0.75rem; }
.callout h2 { margin: 0; font-size: 1.15rem; }
.steps-list { padding-left: 1.25rem; }
.steps-list li { margin-bottom: 0.65rem; }
.kb-card-tag--cloud { color: var(--save-blue); }
.feature-cloud-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 230, 166, 0.25);
  background: linear-gradient(160deg, var(--accent-dim), var(--card));
}
.feature-cloud-visual .cloud-link-demo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  word-break: break-all;
}

/* ---------- Страница тарифов: таблица из трёх колонок всегда помещается в экран ----------
   Общий .compare-table рассчитан на широкую таблицу (главная): min-width и карусель на
   телефоне. Здесь колонок всего три, поэтому остаётся обычная таблица без прокрутки. */
.compare-table-wrap.plans-wrap {
  overflow: visible;
  margin-inline: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.compare-table.plans-table {
  display: table;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.compare-table.plans-table thead {
  display: table-header-group;
}

.compare-table.plans-table tbody {
  display: table-row-group;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.compare-table.plans-table tr,
.compare-table.plans-table tbody tr {
  display: table-row;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.compare-table.plans-table thead th {
  position: static;
  display: table-cell;
  white-space: normal;
  padding: 0.85rem 1rem;
}

.compare-table.plans-table thead th:nth-child(1) { width: 52%; }
.compare-table.plans-table thead th:nth-child(2) { width: 22%; }
.compare-table.plans-table thead th:nth-child(3) { width: 26%; }

.compare-table.plans-table tbody th,
.compare-table.plans-table tbody td {
  display: table-cell;
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1rem;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.compare-table.plans-table tbody th {
  font-size: 0.875rem;
  color: var(--text);
}

.compare-table.plans-table tbody td::before {
  content: none;
}

.compare-table.plans-table tbody td:last-child {
  padding-bottom: 0.85rem;
}

.compare-table.plans-table tbody tr:last-child th,
.compare-table.plans-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table.plans-table tbody th {
  border-right: 1px solid var(--line);
}

/* Подсветка строки и наведение — как на десктопе, мобильный стиль их обнуляет. */
.compare-table.plans-table tbody tr:hover th,
.compare-table.plans-table tbody tr:hover td {
  background: var(--hover) !important;
}

.compare-table.plans-table tbody tr.compare-table-highlight th,
.compare-table.plans-table tbody tr.compare-table-highlight td {
  background: rgba(46, 230, 166, 0.09) !important;
  color: var(--text);
}

.compare-table.plans-table tbody tr.compare-table-highlight th {
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent) !important;
}

@media (max-width: 640px) {
  .compare-table.plans-table thead th {
    padding: 0.7rem 0.6rem;
    font-size: 0.625rem;
    letter-spacing: 0.03em;
  }

  .compare-table.plans-table thead th:nth-child(1) { width: 46%; }
  .compare-table.plans-table thead th:nth-child(2) { width: 25%; }
  .compare-table.plans-table thead th:nth-child(3) { width: 29%; }

  .compare-table.plans-table tbody th,
  .compare-table.plans-table tbody td {
    padding: 0.7rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

/* ---------- Значок магазина приложений (RuStore) ---------- */
.store-row {
  --store-h: 3.6rem;
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--store-h);
  box-sizing: border-box;
  line-height: 1.1;
  padding: 0 0.9rem 0 0.4rem;
  background: #0b0f14;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.store-badge:hover {
  opacity: 0.9;
}

.store-badge:active {
  transform: scale(0.98);
}

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-badge-img {
  display: block;
  flex: 0 0 auto;
  height: 2.8rem;
  width: 2.8rem;
  border-radius: 0.6rem;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge-text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-badge-text strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.store-badge-img[hidden] ~ .store-badge-text {
  display: none;
}

.store-badge-img[hidden],
.store-badge-fallback[hidden] {
  display: none;
}

.store-badge-fallback {
  line-height: 1.2;
}

.hero-download .store-badge-fallback {
  width: 100%;
}

/* QR рядом со значком: высота как у значка, при наведении увеличивается для сканирования. */
.store-row .download-qr--hero {
  position: relative;
  flex: 0 0 auto;
  align-self: auto;
  margin: 0;
  width: var(--store-h);
  height: var(--store-h);
  z-index: 1;
  outline: none;
}

.store-row .download-qr--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0.18rem;
  border-radius: 0.55rem;
  box-sizing: border-box;
  transform-origin: right center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}

.store-row .download-qr--hero:hover,
.store-row .download-qr--hero:focus-visible {
  z-index: 30;
}

.store-row .download-qr--hero:hover img,
.store-row .download-qr--hero:focus-visible img {
  transform: scale(3.4);
  padding: 0.12rem;
  box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.55);
}

.store-row .download-qr--hero:focus-visible img {
  outline: 2px solid var(--accent);
}

/* Карточка Android на странице «Скачать»: значок RuStore + QR, ниже APK как запасной вариант. */
.download-card[data-channel="apk"] .store-row {
  --store-h: 3.8rem;
}

.download-card[data-channel="apk"] > p {
  flex: 0 0 auto;
}

.download-card[data-channel="apk"] > .btn {
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

.download-apk-help {
  font-size: 0.8125rem;
  color: var(--muted);
}

.download-apk-help > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.15rem 0;
  color: var(--muted);
}

.download-apk-help > summary::-webkit-details-marker {
  display: none;
}

.download-apk-help > summary::before {
  content: "▸ ";
}

.download-apk-help[open] > summary::before {
  content: "▾ ";
}

.download-apk-help > summary:hover {
  color: var(--text);
}

.download-apk-help .download-card-notice {
  margin-top: 0.4rem;
}

.hero-download--android .hero-apk-fallback {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  /* На телефоне QR скрыт, поэтому значок RuStore — главный способ установки:
     на всю ширину колонки, ровно по центру, а «Скачать APK» — спокойная кнопка ниже. */
  .store-row {
    --store-h: 3.75rem;
    justify-content: center;
  }

  .store-badge {
    justify-content: center;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .store-badge-img {
    height: 2.9rem;
    width: 2.9rem;
  }

  .store-badge-text small {
    font-size: 0.72rem;
  }

  .store-badge-text strong {
    font-size: 1.3rem;
  }

  .hero-download--android {
    gap: 0.45rem;
  }

  .hero-download--android .hero-apk-fallback {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    opacity: 0.9;
  }

  /* Страница «Скачать»: карточка RuStore идёт первой, дальше APK как запасной вариант. */
  #download-grid-available .download-card[data-channel="rustore"] {
    order: -2;
  }

  .page-download #download-grid-available .download-card[data-channel="rustore"] {
    padding: clamp(0.9rem, 2.2vh, 1.25rem) clamp(0.95rem, 3vw, 1.2rem);
    gap: clamp(0.55rem, 1.4vh, 0.85rem);
  }

  .page-download #download-grid-available .download-card[data-channel="rustore"] .download-card-icon {
    width: 40px;
    height: 40px;
  }

  .page-download #download-grid-available .download-card[data-channel="rustore"] h2 {
    font-size: 1.1rem;
  }

  .page-download #download-grid-available .download-card[data-channel="rustore"] > p,
  .page-download #download-grid-available .download-card[data-channel="rustore"] .download-card-intro > p {
    font-size: 0.75rem !important;
  }
}

/* ---------- Юридические документы ---------- */
.footer-legal {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.legal-missing {
  background: rgba(255, 200, 87, 0.18);
  color: #ffc857;
  border-radius: 4px;
  padding: 0 0.25rem;
  font-style: normal;
}

.legal-draft {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 200, 87, 0.5);
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 200, 87, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-draft[hidden],
[data-legal-live][hidden] {
  display: none;
}

.article-layout .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.article-layout .legal-table th,
.article-layout .legal-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.article-layout .legal-table th {
  width: 38%;
  color: var(--text);
  font-weight: 600;
}

.legal-doc {
  max-width: 48rem;
}

.legal-doc .legal-num {
  color: var(--accent);
}

.article-layout .legal-consent {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Мобильная шапка: компактные кнопки скачивания ---------- */
@media (max-width: 768px) {
  /* Android: значок RuStore и «Скачать APK» — в одну строку, версия — одной строкой под ними. */
  .hero-download--android {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    align-items: stretch;
    justify-items: stretch;
  }

  .hero-download--android .store-row {
    --store-h: 2.9rem;
    grid-column: 1;
    width: auto;
    min-width: 0;
  }

  .hero-download--android .store-badge {
    gap: 0.45rem;
    padding: 0 0.5rem 0 0.3rem;
    border-radius: 0.75rem;
    justify-content: flex-start;
  }

  .hero-download--android .store-badge-img {
    height: 2.2rem;
    width: 2.2rem;
    border-radius: 0.5rem;
  }

  .hero-download--android .store-badge-text small {
    font-size: 0.6rem;
  }

  .hero-download--android .store-badge-text strong {
    font-size: 1.05rem;
  }

  .hero-download--android .hero-apk-fallback {
    grid-column: 2;
    box-sizing: border-box;
    height: 2.9rem;
    margin: 0;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    border-radius: 0.75rem;
    justify-content: center;
    white-space: nowrap;
  }

  .hero-download--android .hero-apk-fallback .btn-icon {
    width: 16px;
    height: 16px;
  }

  .hero-apk-suffix {
    display: none;
  }

  .hero-download--android .hero-download-meta {
    grid-column: 1 / -1;
  }

  /* Версия, дата и размер — одной строкой. */
  .hero-actions .hero-download-meta {
    display: block;
    text-align: center;
    font-size: 0.7rem !important;
    line-height: 1.3;
  }

  .hero-actions .hero-download-meta > span {
    display: inline;
  }

  .hero-actions .hero-download-meta .download-meta-sep {
    display: inline;
  }

  .hero-actions .hero-download > .btn.btn-accent {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

/* ---------- Страница «Скачать»: кнопки Android прямо в шапке (телефон) ---------- */
.page-download .page-hero .download-quick {
  display: none;
}

@media (max-width: 768px) {
  .page-download .page-hero .download-quick:not([hidden]) {
    display: grid;
    width: 100%;
    max-width: 22rem;
    margin: 0.6rem auto 0;
  }

  .page-download .download-quick .download-meta {
    display: block;
    text-align: center;
    font-size: 0.7rem !important;
    line-height: 1.3;
  }

  .page-download .download-quick .download-meta > span,
  .page-download .download-quick .download-meta .download-meta-sep {
    display: inline;
  }

  /* Шапка компактнее, чтобы кнопки были видны без прокрутки. */
  .page-download .hero-play--download,
  .page-download .download-hero-logo,
  .page-download .page-hero .logo-icon-lg {
    width: clamp(84px, 14vh, 112px);
    height: clamp(84px, 14vh, 112px);
    margin-bottom: 0.4rem;
  }

  .page-download .page-hero h1 {
    font-size: clamp(1.25rem, 4vh, 1.6rem);
    line-height: 1.2;
  }

  .page-download .download-intro {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0.4rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Кнопки Android уже в шапке — в карточке остаётся описание, памятка и контрольная сумма. */
  .page-download #download-grid-available .download-card[data-channel="apk"] > .store-row,
  .page-download #download-grid-available .download-card[data-channel="apk"] > .btn,
  .page-download #download-grid-available .download-card[data-channel="apk"] > .download-meta {
    display: none;
  }
}

/* ---------- Мобильная шапка главной: логотип не сжимается, высота по содержимому ---------- */
@media (max-width: 768px) {
  .hero {
    max-height: none;
    overflow: visible;
    min-height: 0;
    padding: 0.5rem 0 1.25rem;
  }

  .hero-grid,
  .hero-content {
    height: auto;
    flex: 0 0 auto;
  }

  .hero-play--mobile,
  .hero-play--mobile .hero-logo--mobile,
  .hero-logo--mobile {
    flex: 0 0 auto;
  }

  .hero-play--mobile {
    width: clamp(120px, 36vw, 160px);
    height: clamp(120px, 36vw, 160px);
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0.25rem auto 0.4rem;
  }

  .hero-play--mobile .hero-logo--mobile {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
    object-fit: contain;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .hero-play--mobile {
    width: 112px;
    height: 112px;
  }
}

