/* Copyright © 2026 MELDIX. TrioSoft. All rights reserved. */
/* ============================================================
   TrioSoft — «Aperture» 12.0
   Apple-язык интерфейса: SF-типографика, компактная сетка,
   многослойное жидкое стекло. Разметка и JS-хуки не менялись.
   ============================================================ */

:root {
  /* --- типографика --- */
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --sf-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* --- акценты (меняются в админке) --- */
  --s1: var(--accent, #0071e3);
  --s2: var(--accent-2, #5e5ce6);
  --s1-rgb: var(--accent-rgb, 0, 113, 227);
  --tint: var(--s1);

  --green: #30a46c;
  --orange: #c2740c;
  --red: #e5484d;

  /* --- геометрия: компактно --- */
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 980px;

  --max: var(--content, 1180px);
  --gutter: clamp(16px, 3.4vw, 32px);

  /* --- движение в духе Apple --- */
  --spring: cubic-bezier(.25, .8, .3, 1);
  --smooth: cubic-bezier(.33, .1, .18, 1);
  --gentle: cubic-bezier(.25, .46, .29, 1);

  /* --- материал по умолчанию = светлая тема --- */
  --ink: #1d1d1f;
  --ink-2: #494b52;
  --ink-3: #86868b;
  --paper: #f5f5f7;
  --paper-2: #fbfbfd;
  --mat: rgba(255, 255, 255, .66);
  --mat-thick: rgba(255, 255, 255, .82);
  --solid: #ffffff;
  --fill: rgba(118, 118, 128, .08);
  --fill-2: rgba(118, 118, 128, .12);
  --edge: rgba(0, 0, 0, .08);
  --edge-2: rgba(0, 0, 0, .14);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .03);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .05), 0 14px 38px rgba(0, 0, 0, .08);
  --sh-3: 0 30px 90px rgba(0, 0, 0, .16);
  --blur: saturate(180%) blur(28px);
  --tint-soft: rgba(var(--s1-rgb), .08);
}

html[data-theme="light"] {
  color-scheme: light;
  --tint: var(--s1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --paper: #000000;
  --paper-2: #0a0a0c;
  --mat: rgba(30, 30, 34, .62);
  --mat-thick: rgba(28, 28, 30, .84);
  --solid: #1c1c1e;
  --fill: rgba(120, 120, 128, .16);
  --fill-2: rgba(120, 120, 128, .24);
  --edge: rgba(255, 255, 255, .10);
  --edge-2: rgba(255, 255, 255, .18);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .3);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 12px 34px rgba(0, 0, 0, .5);
  --sh-3: 0 34px 100px rgba(0, 0, 0, .68);
  --blur: saturate(180%) blur(30px);
  --tint-soft: rgba(var(--s1-rgb), .16);
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --tint: color-mix(in srgb, var(--s1) 72%, white);
}

/* ============================ база ============================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sf);
  font-size: calc(15.5px * var(--font-scale, 1));
  line-height: 1.5;
  letter-spacing: -.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

/* глубина под стеклом: мягкие цветовые пятна */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -6%, rgba(var(--s1-rgb), .14), transparent 60%),
    radial-gradient(760px 460px at 96% 6%, rgba(94, 92, 230, .12), transparent 58%),
    radial-gradient(700px 460px at 55% 104%, rgba(48, 164, 108, .08), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper) 42%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }
.hidden { display: none !important; }
::selection { background: rgba(var(--s1-rgb), .22); }
:focus-visible { outline: 3px solid rgba(var(--s1-rgb), .5); outline-offset: 2px; border-radius: 8px; }

.section-shell { width: min(calc(100% - (var(--gutter) * 2)), var(--max)); margin-inline: auto; }

/* --- переиспользуемый рецепт стекла --- */
.site-header,
.stats-strip,
.platform-card,
.release-item,
.feature-card,
.team-card,
.news-card,
.faq-item,
.contact-card,
.status-card,
.newsletter,
.app-card,
.search-box,
.core-card,
.ecosystem-pill,
.catalog-summary-card,
.catalog-switcher {
  background: var(--mat);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-1), var(--spec);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: calc(.34 * var(--glow-strength, 1));
  pointer-events: none;
  animation: drift 48s ease-in-out infinite;
}
.ambient-one { top: -10%; left: -220px; background: radial-gradient(circle, rgba(var(--s1-rgb), .5), transparent 70%); }
.ambient-two { top: 46%; right: -240px; background: radial-gradient(circle, rgba(94, 92, 230, .4), transparent 70%); animation-delay: -17s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.1); }
}
body.no-glow .ambient { display: none; }
body.modal-open { overflow: hidden; }

/* ====================== служебные полосы ====================== */
.announcement-bar {
  position: relative;
  z-index: 70;
  padding: 9px 20px;
  color: #fff;
  text-align: center;
  background: var(--s1);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.announcement-bar a { text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.announcement-bar.success { background: var(--green); }
.announcement-bar.warning { background: var(--orange); }
.announcement-bar.danger { background: var(--red); }
.maintenance-banner {
  position: relative;
  z-index: 70;
  padding: 9px 20px;
  color: #fff;
  text-align: center;
  background: var(--orange);
  font-size: 13px;
  font-weight: 500;
}

/* ========================== шапка ========================== */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 20px), var(--max));
  margin: 10px auto 0;
  padding: 7px 8px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--mat-thick);
  transition: box-shadow 0.68s var(--smooth), background 0.68s var(--smooth);
}
.site-header.header-static { position: relative; top: 0; }
.site-header.header-no-blur { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--solid); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transition: transform 0.85s var(--spring);
}
.brand:hover .brand-logo { transform: scale(1.08); }
.brand-copy { display: grid; line-height: 1.2; min-width: 0; }
.brand-copy strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.brand-copy small {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* сегментированный контрол */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--fill);
}
.main-nav a {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.42s var(--smooth), background 0.42s var(--smooth), box-shadow 0.42s var(--smooth);
}
.main-nav a:hover { color: var(--ink); background: var(--solid); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-button, .mobile-menu-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  cursor: pointer;
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), color 0.42s var(--smooth);
}
.icon-button { width: 34px; height: 34px; color: var(--ink-2); }
.icon-button:hover { color: var(--ink); background: var(--fill-2); transform: scale(1.06); }
.icon-button:active { transform: scale(.94); transition-duration: .12s; }
.mobile-menu-button { display: none; width: 36px; height: 36px; color: var(--ink-2); }
.ui-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legacy-glow-toggle { display: none; }

/* иконки темы перетекают друг в друга, а не переключаются */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .ui-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: opacity .55s var(--gentle), transform .75s var(--spring);
}
html[data-theme="light"] .theme-toggle .theme-icon-moon,
html[data-theme="dark"] .theme-toggle .theme-icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
html[data-theme="light"] .theme-toggle .theme-icon-sun,
html[data-theme="dark"] .theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(.4);
}

/* смена темы — мягкое перетекание цвета, а не мгновенный скачок */
body { transition: background-color .8s var(--gentle), color .8s var(--gentle); }
html.theme-is-changing *,
html.theme-is-changing *::before,
html.theme-is-changing *::after {
  transition-property: all !important;
  transition-duration: .8s !important;
  transition-timing-function: var(--gentle) !important;
}
html.theme-is-changing .ambient,
html.theme-is-changing .orbit,
html.theme-is-changing .hero-sphere { transition-property: background-color, border-color, opacity !important; }

@keyframes lift { to { box-shadow: var(--sh-2), var(--spec); } }

/* ========================== кнопки ========================== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), box-shadow 0.51s var(--smooth), color 0.42s var(--smooth), border-color 0.42s var(--smooth);
}
.button:hover { transform: scale(1.02); }
.button:active { transform: scale(.975); transition-duration: .12s; }

.button-primary {
  color: #fff;
  background: var(--s1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 18px rgba(var(--s1-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.button-primary:hover { background: var(--s1); background: color-mix(in srgb, var(--s1) 88%, white); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 10px 26px rgba(var(--s1-rgb), .34), inset 0 1px 0 rgba(255, 255, 255, .24); }

.button-secondary {
  color: var(--ink);
  border-color: var(--edge);
  background: var(--mat-thick);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--sh-1), var(--spec);
}
.button-secondary:hover { background: var(--solid); }
.button-ghost { color: var(--ink-2); border-color: transparent; background: var(--fill); }
.button-ghost:hover { color: var(--ink); background: var(--fill-2); }
.button-small { min-height: 32px; padding-inline: 13px; font-size: 12.5px; }
.button-wide { width: 100%; }
.button[disabled], .button.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; box-shadow: none; }
#accountLink.account-authenticated { color: var(--green); }

/* ========================== герой ========================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4.5vw, 56px);
}
.hero.has-custom-background::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  z-index: -1;
  border-radius: var(--r-xl);
  background-image: var(--hero-background-image);
  background-size: cover;
  background-position: center;
  opacity: .26;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
  mask-image: linear-gradient(180deg, #000 20%, transparent);
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tint);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: none;
}
.eyebrow {
  padding: 7px 13px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--mat-thick);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--spec);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  max-width: 16ch;
  margin: 20px 0 16px;
  font-size: clamp(36px, 4.9vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-text { max-width: 46ch; margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.5; letter-spacing: -.014em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  color: var(--ink-3);
  font-size: 12.5px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ---- визуал: стеклянная плитка в мягком свете ---- */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--s1-rgb), .3), rgba(94, 92, 230, .14) 46%, transparent 70%);
  filter: blur(36px);
  opacity: calc(1 * var(--glow-strength, 1));
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--edge);
  opacity: calc(.9 * var(--glow-strength, 1));
  animation: turn 64s linear infinite;
}
.orbit i {
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s1);
  box-shadow: 0 0 14px 2px rgba(var(--s1-rgb), .6);
}
.orbit-a { width: 400px; height: 400px; }
.orbit-b { width: 300px; height: 300px; animation-duration: 48s; animation-direction: reverse; }
.orbit-b i { background: var(--s2); box-shadow: 0 0 14px 2px rgba(94, 92, 230, .55); }
@keyframes turn { to { transform: rotate(360deg); } }

.hero-sphere {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: var(--mat-thick);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--sh-1), var(--spec);
  animation: bob 11s ease-in-out infinite;
}
.sphere-a { top: 14%; left: 7%; }
.sphere-b { bottom: 20%; left: 2%; width: 28px; height: 28px; animation-delay: -3.6s; }
.sphere-c { top: 24%; right: 5%; width: 32px; height: 32px; animation-delay: -7.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.core-card {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 228px;
  height: 228px;
  padding: 38px;
  border-radius: 54px;
  background: var(--mat-thick);
  box-shadow: var(--sh-3), var(--spec);
  transition: transform 1.1s var(--spring);
}
/* зеркальный блик по краю — подпись Apple Glass */
.core-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .05) 38%, transparent 60%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.core-card::after { content: none; }
.hero-visual:hover .core-card { transform: scale(1.04); }
.hero-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: calc(100% - 52px);
  max-height: calc(100% - 52px);
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .16));
}
.core-card.is-empty { padding: 0; }

.ecosystem-pill {
  position: absolute;
  right: 3.5%;
  bottom: 5.5%;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 292px;
  padding: 9px 11px;
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
    color-mix(in srgb, var(--mat) 92%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
  border: 1px solid color-mix(in srgb, var(--edge-2) 82%, transparent);
  box-shadow:
    0 14px 34px rgba(4,8,22,.20),
    inset 0 1px 0 rgba(255,255,255,.06),
    var(--spec);
}
.ecosystem-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--s1);
  border: 1px solid color-mix(in srgb, var(--s1) 30%, var(--edge));
  background: color-mix(in srgb, var(--s1) 10%, transparent);
}
.ecosystem-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.ecosystem-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
}
.ecosystem-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ecosystem-copy small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ecosystem-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  background: color-mix(in srgb, var(--green) 9%, transparent);
}
.ecosystem-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent), 0 0 12px color-mix(in srgb, var(--green) 68%, transparent);
}
.ecosystem-status b {
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
@media (prefers-reduced-motion: no-preference) {
  .ecosystem-status i { animation: ecosystemPulse 2.4s ease-in-out infinite; }
}
@keyframes ecosystemPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .58; transform: scale(.82); }
}

/* ======================= полоса статистики ======================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block: 4px 12px;
  padding: 3px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stats-strip article {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px 15px;
  border-radius: var(--r-md);
  transition: background 0.51s var(--smooth);
}
.stats-strip article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--edge);
}
.stats-strip article:hover { background: var(--fill); }
.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: var(--tint);
  background: var(--tint-soft);
}
.stats-strip article:nth-child(3) .stat-icon,
.stats-strip article:nth-child(5) .stat-icon { color: var(--green); background: rgba(48, 164, 108, .12); }
.stats-strip div { display: grid; min-width: 0; }
.stats-strip strong {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stats-strip span {
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================= секции и заголовки ======================= */
.content-section { padding-block: clamp(40px, 5.2vw, 72px); }
.section-heading { max-width: 660px; margin-bottom: 28px; }
.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.032em;
  text-wrap: balance;
}
.section-heading p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; letter-spacing: -.014em; }
.centered-heading { margin-inline: auto; text-align: center; }
.centered-heading .section-kicker { justify-content: center; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }

/* ======================= карточки платформ ======================= */
.platform-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.platform-card {
  --pc: var(--s1);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon copy" "meta meta";
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 1s var(--gentle), box-shadow 1s var(--gentle), border-color 1s var(--gentle);
}
.platform-card-android { --pc: var(--green); }
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 220px at 100% 0%, var(--tint-soft), transparent 68%);
  opacity: 0;
  transition: opacity 1.1s var(--gentle);
}
.platform-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--sh-2), var(--spec); }
.platform-card:hover::before { opacity: 1; }
.platform-card-icon {
  grid-area: icon;
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--pc);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.platform-card-icon .ui-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.platform-card-copy { grid-area: copy; position: relative; min-width: 0; }
.platform-card-copy span { color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.platform-card-copy h3 { margin: 7px 0 6px; font-size: 21px; letter-spacing: -.03em; }
.platform-card-copy p { margin: 0; color: var(--ink-2); font-size: 14px; }
.platform-card-meta {
  grid-area: meta;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
}
.platform-card-meta strong { font-size: 28px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.platform-card-meta span { color: var(--ink-3); font-size: 12.5px; }
.platform-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--fill);
  font-size: 15px;
  font-weight: 400;
  transition: transform 0.68s var(--spring), background 0.51s var(--smooth), color 0.51s var(--smooth);
}
.platform-card:hover .platform-card-arrow { color: #fff; background: var(--pc); transform: scale(1.08); }

/* ======================= релизы ======================= */
.release-list { display: grid; gap: 8px; }
.release-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  transition: transform 1s var(--gentle), box-shadow 1s var(--gentle), border-color 1s var(--gentle);
}
.release-item:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--sh-2), var(--spec); }
.release-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 0;
  border-radius: 14px;
  color: var(--ink-2);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
  transition: transform .55s var(--spring), filter .45s var(--smooth);
}
.release-icon:hover { transform: scale(1.06); filter: brightness(1.08); }
.release-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.release-icon .ui-icon { width: 25px; height: 25px; }
.release-main { min-width: 0; }
.release-app-link {
  display: inline-block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .35s var(--smooth);
}
.release-app-link:hover { color: var(--tint); }
.release-main p {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.release-meta { display: grid; justify-items: end; text-align: right; }
.release-meta strong {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  color: var(--tint);
  background: var(--tint-soft);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.release-meta small { margin-top: 4px; color: var(--ink-3); font-size: 11.5px; }
.release-actions { display: flex; gap: 6px; }
.release-download {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--fill);
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), color 0.42s var(--smooth);
}
.release-download:hover { color: #fff; background: var(--s1); transform: scale(1.08); }

/* ======================= преимущества ======================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 1s var(--gentle), box-shadow 1s var(--gentle), border-color 1s var(--gentle);
}
.feature-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--sh-2), var(--spec); }
.feature-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--tint);
  background: var(--tint-soft);
  font-size: 19px;
}
.feature-card:nth-child(3n) .feature-symbol { color: var(--green); background: rgba(48, 164, 108, .12); }
.feature-symbol .ui-icon { width: 22px; height: 22px; stroke-width: 1.8; }
.feature-card h3 { margin: 0 0 7px; font-size: 17.5px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ======================= команда ======================= */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.team-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
  transition: transform 1s var(--gentle), box-shadow 1s var(--gentle), border-color 1s var(--gentle);
}
.team-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--sh-2), var(--spec); }
.team-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 22px;
  color: #fff;
  background: var(--s1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 24px;
  font-weight: 600;
  overflow: hidden;
}
.team-card:nth-child(2) .team-avatar { background: var(--s2); }
.team-card:nth-child(3) .team-avatar { background: var(--green); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.025em; }
.team-role {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--fill);
  font-size: 11.5px;
  font-weight: 500;
}
.team-card p { margin: 12px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.team-links { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.team-links a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--fill);
  font-size: 12.5px;
  font-weight: 500;
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), color 0.42s var(--smooth);
}
.team-links a:hover { color: #fff; background: var(--s1); transform: scale(1.04); }
.social-link { display: inline-flex; align-items: center; gap: 7px; }
.brand-icon { width: 16px; height: 16px; flex: none; }
.team-links .social-link:hover .brand-icon { filter: brightness(0) invert(1); }
.platform-card-icon .ui-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; }
.release-download .ui-icon { width: 18px; height: 18px; }


/* Последние релизы: реальные логотипы и единая кнопка загрузки */
.release-download {
  width: 38px;
  height: 38px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--ink-2);
  background: var(--fill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .45s var(--spring), color .35s var(--smooth), background .35s var(--smooth), border-color .35s var(--smooth);
}
.release-download:hover {
  color: #fff;
  border-color: rgba(var(--s1-rgb), .5);
  background: linear-gradient(135deg, var(--s1), var(--s2));
  transform: translateY(-2px);
}
.release-download .ui-icon { width: 18px; height: 18px; }

/* ======================= новости ======================= */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: stretch;
}
.news-showcase-card,
.news-follow-card,
.news-empty-state {
  border: 1px solid var(--edge);
  background: linear-gradient(155deg, color-mix(in srgb, var(--solid) 92%, var(--paper-2)), color-mix(in srgb, var(--fill) 72%, var(--solid)));
  box-shadow: var(--sh-1), var(--spec);
}
.news-showcase-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .55s var(--gentle), box-shadow .55s var(--gentle), border-color .4s var(--smooth), background .4s var(--smooth);
}
.news-showcase-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: color-mix(in srgb, var(--s1) 28%, var(--edge));
  box-shadow: var(--sh-2), var(--spec);
}
.news-featured-card {
  min-height: 320px;
  padding: 26px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(420px 230px at 100% 100%, color-mix(in srgb, var(--s1) 15%, transparent), transparent 70%),
    radial-gradient(320px 190px at 0% 0%, color-mix(in srgb, var(--s2) 8%, transparent), transparent 72%),
    linear-gradient(155deg, color-mix(in srgb, var(--solid) 95%, var(--paper-2)), color-mix(in srgb, var(--fill) 74%, var(--solid)));
}
.news-grid[data-news-count="1"] .news-featured-card,
.news-grid[data-news-count="1"] .news-side-list,
.news-grid[data-news-count="1"] .news-follow-card {
  height: 268px;
  min-height: 268px;
  max-height: 268px;
}
.news-grid[data-news-count="1"] .news-featured-card { padding: 24px; }
.news-grid[data-news-count="1"] .news-featured-card h3 { font-size: clamp(26px, 2.7vw, 34px); }
.news-grid[data-news-count="1"] .news-featured-card p { -webkit-line-clamp: 3; }
.news-featured-content { position: relative; z-index: 2; max-width: 760px; }
.news-featured-meta,
.news-compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-3);
  font-size: 11.5px;
}
.news-featured-meta { margin-bottom: 18px; }
.news-compact-meta { margin-bottom: 12px; justify-content: space-between; }
.news-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
  border-radius: var(--r-pill);
  color: var(--tint);
  background: var(--tint-soft);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .015em;
}
.news-type-badge .ui-icon { width: 13px; height: 13px; }
.news-type-badge.release { color: var(--green); border-color: color-mix(in srgb, var(--green) 22%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); }
.news-type-badge.warning { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 24%, transparent); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.news-type-badge.update { color: var(--tint); }
.news-type-badge.news { color: color-mix(in srgb, var(--s2) 74%, var(--ink)); }
.news-featured-card h3 {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.news-featured-card p {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-linked-app {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 7px 10px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: color-mix(in srgb, var(--fill) 72%, transparent);
  font-size: 11.5px;
}
.news-linked-app .ui-icon { width: 13px; height: 13px; color: var(--tint); }
.news-featured-glow {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--s1) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.news-side-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.news-side-count-1 { grid-template-rows: minmax(0, 1fr); }
.news-side-count-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.news-side-count-3 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.news-compact-card {
  min-height: 0;
  padding: 18px 52px 18px 18px;
  border-radius: 20px;
}
.news-compact-card h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.32;
  letter-spacing: -.025em;
}
.news-compact-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-compact-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--tint);
  background: color-mix(in srgb, var(--fill) 78%, transparent);
}
.news-compact-arrow .ui-icon { width: 14px; height: 14px; }
.news-follow-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(260px 150px at 100% 0%, color-mix(in srgb, var(--s2) 10%, transparent), transparent 70%),
    linear-gradient(155deg, color-mix(in srgb, var(--solid) 92%, var(--paper-2)), color-mix(in srgb, var(--fill) 72%, var(--solid)));
}
.news-follow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--s1) 28%, var(--edge));
  border-radius: 14px;
  color: var(--tint);
  background: var(--tint-soft);
}
.news-follow-icon .ui-icon { width: 18px; height: 18px; }
.news-follow-copy strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 15px; }
.news-follow-copy p { margin: 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.news-follow-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.news-follow-tags span {
  padding: 6px 9px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  background: color-mix(in srgb, var(--fill) 70%, transparent);
  font-size: 10.5px;
}
.news-empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
}
.news-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--tint); background: var(--tint-soft); }
.news-empty-icon .ui-icon { width: 19px; height: 19px; }
.news-empty-state h3 { margin: 12px 0 6px; }
.news-empty-state p { margin: 0; color: var(--ink-3); }

.faq-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 36px; align-items: start; }
.sticky-heading { position: sticky; top: 92px; margin-bottom: 0; }
.faq-list { display: grid; gap: 8px; }
.faq-item {
  display: grid;
  grid-template-rows: auto 0fr;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: grid-template-rows .7s var(--gentle), box-shadow .7s var(--gentle);
}
.faq-item.open { grid-template-rows: auto 1fr; }
.faq-item.open { box-shadow: var(--sh-2), var(--spec); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  cursor: pointer;
}
.faq-question span:last-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--fill);
  font-size: 15px;
  font-weight: 400;
  transition: transform .8s var(--gentle), background .6s var(--gentle), color .6s var(--gentle);
}
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); color: #fff; background: var(--s1); }
.faq-answer {
  min-height: 0;
  padding: 0 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  overflow: hidden;
  transition: opacity .55s var(--gentle), padding .7s var(--gentle);
}
.faq-item.open .faq-answer { opacity: 1; padding: 0 18px 18px; }

/* ======================= поддержка ======================= */
.support-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 34px; align-items: start; }
.support-copy .section-kicker { margin-bottom: 14px; }
.support-copy h2 { margin: 0 0 10px; font-size: clamp(25px, 2.9vw, 36px); letter-spacing: -.032em; }
.support-copy > p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.status-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(48, 164, 108, .16); }
.status-card strong { display: block; font-size: 14px; font-weight: 600; }
.status-card small { color: var(--ink-3); font-size: 12.5px; }

.contact-card { display: grid; gap: 13px; padding: 26px; border-radius: var(--r-xl); box-shadow: var(--sh-2), var(--spec); }
.form-grid { display: grid; gap: 13px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-card label { display: grid; gap: 6px; min-width: 0; }
.contact-card label > span { color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.contact-card input,
.contact-card textarea,
.contact-card select,
.subscribe-form input,
.search-box input {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  outline: 0;
  color: var(--ink);
  background: var(--solid);
  font-size: 14.5px;
  transition: border-color 0.42s var(--smooth), box-shadow 0.42s var(--smooth);
}
.contact-card input, .contact-card select { min-height: 42px; padding: 0 13px; }
.contact-card textarea { padding: 11px 13px; resize: vertical; line-height: 1.5; }
.contact-card input::placeholder, .contact-card textarea::placeholder, .subscribe-form input::placeholder { color: var(--ink-3); }
.contact-card input:focus,
.contact-card textarea:focus,
.contact-card select:focus,
.subscribe-form input:focus {
  border-color: rgba(var(--s1-rgb), .6);
  box-shadow: 0 0 0 3.5px rgba(var(--s1-rgb), .16);
}
.contact-card option { color: var(--ink); background: var(--solid); }
.form-result { margin: 0; min-height: 18px; font-size: 13px; }
.form-result.success { color: var(--green); }
.form-result.error { color: var(--red); }

/* ======================= поиск и фильтры ======================= */
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  transition: box-shadow 0.42s var(--smooth);
}
.search-box:focus-within { box-shadow: 0 0 0 3.5px rgba(var(--s1-rgb), .16), var(--spec); }
.search-box input { min-height: 40px; border: 0; background: transparent; box-shadow: none; }
.search-box input:focus { box-shadow: none; }

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--fill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), color 0.42s var(--smooth);
}
.filter-chip:hover { color: var(--ink); background: var(--fill-2); }
.filter-chip.active { color: #fff; background: var(--s1); box-shadow: 0 4px 12px rgba(var(--s1-rgb), .26); }

/* ======================= карточки приложений ======================= */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-xl);
  cursor: pointer;
  overflow: hidden;
  transition: transform 1s var(--gentle), box-shadow 1s var(--gentle), border-color 1s var(--gentle);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 200px at 88% -12%, rgba(var(--s1-rgb), .12), transparent 68%);
  background: radial-gradient(460px 200px at 88% -12%, color-mix(in srgb, var(--card-accent, var(--s1)) 16%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 1.1s var(--gentle);
  pointer-events: none;
}
.app-card:hover, .app-card:focus-visible { transform: translate3d(0, -4px, 0); box-shadow: var(--sh-2), var(--spec); }
.app-card:hover::before { opacity: 1; }
.app-card-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 16px;
  color: #fff;
  background: var(--card-accent, var(--s1));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.badge {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: var(--fill);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-success { color: var(--green); background: rgba(48, 164, 108, .12); }
.badge-warning { color: var(--orange); background: rgba(194, 116, 12, .12); }
.badge-purple { color: var(--tint); background: var(--tint-soft); }
.app-card-body { position: relative; flex: 1; margin-top: 16px; }
.app-card h3 { margin: 9px 0 6px; font-size: 18px; letter-spacing: -.028em; }
.app-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tag { padding: 3px 9px; border-radius: var(--r-pill); color: var(--ink-3); background: var(--fill); font-size: 11px; }
.app-card-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
}
.version-copy { display: grid; gap: 2px; min-width: 0; }
.version-copy small { color: var(--ink-3); font-size: 11px; }
.version-copy strong { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--tint); font-size: 13px; font-weight: 500; white-space: nowrap; }
.card-link b { font-weight: 400; transition: transform .8s var(--gentle); }
.app-card:hover .card-link b { transform: translateX(4px); }

.skeleton-card {
  min-height: 260px;
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, var(--fill) 30%, var(--fill-2) 50%, var(--fill) 70%);
  background-size: 220% 100%;
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

.empty-state {
  animation: rise 1s var(--gentle) both;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 48px 22px;
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  background: var(--fill);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 15px;
  color: var(--tint);
  background: var(--tint-soft);
}
.empty-state h3 { font-size: 17px; }
.empty-state p { margin: 0; color: var(--ink-3); font-size: 13.5px; }

.app-grid:empty, .release-list:empty, .feature-grid:empty, .team-grid:empty, .news-grid:empty, .faq-list:empty { min-height: 110px; }
.app-grid:empty::after, .release-list:empty::after, .feature-grid:empty::after, .team-grid:empty::after, .news-grid:empty::after, .faq-list:empty::after {
  content: "Загрузка…";
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 110px;
  border-radius: var(--r-lg);
  background: var(--fill);
  color: var(--ink-3);
  font-size: 13px;
}

/* ======================= подписка ======================= */
.newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .76fr);
  gap: 26px;
  align-items: center;
  margin-block: 20px 64px;
  padding: 34px;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2), var(--spec);
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 8% 0%, var(--tint-soft), transparent 66%);
  pointer-events: none;
}
.newsletter > * { position: relative; }
.newsletter h2 { margin: 10px 0 7px; font-size: clamp(22px, 2.6vw, 31px); letter-spacing: -.032em; }
.newsletter-text { margin: 0; color: var(--ink-2); font-size: 15px; }
.subscribe-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.subscribe-form input { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); }

/* ======================= подвал ======================= */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 32px;
  padding-block: 34px;
  border-top: 1px solid var(--edge);
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 11px; }
.footer-brand strong { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.footer-brand p { margin: 6px 0 0; max-width: 46ch; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { color: var(--ink-2); font-size: 13px; transition: color 0.42s var(--smooth); }
.footer-links a:hover { color: var(--tint); }
.footer-social-links { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.footer-social-links a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: var(--r-pill); color: var(--ink-2); background: var(--fill); font-size: 12px; font-weight: 500; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  color: var(--ink-3);
  font-size: 12px;
}

/* ======================= модальные окна ======================= */
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  transition: opacity .6s var(--gentle), visibility .6s var(--gentle);
}
.modal-shell.hidden {
  display: grid !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.app-modal, .content-page-modal {
  position: relative;
  width: min(900px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  background: var(--mat-thick);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
  box-shadow: var(--sh-3), var(--spec);
  transition: transform .75s var(--spring), opacity .55s var(--gentle);
}
.modal-shell.hidden .app-modal,
.modal-shell.hidden .content-page-modal { opacity: 0; transform: translateY(20px) scale(.98); }
.modal-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--fill-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.51s var(--spring), background 0.42s var(--smooth), color 0.42s var(--smooth);
}
.modal-close:hover { color: #fff; background: var(--red); transform: scale(1.08); }

.app-detail-cover {
  position: relative;
  padding: 34px 32px 28px;
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(560px 260px at 12% 0%, rgba(var(--s1-rgb), .16), transparent 66%);
  background: radial-gradient(560px 260px at 12% 0%, color-mix(in srgb, var(--detail-accent, var(--s1)) 22%, transparent), transparent 66%);
}
.app-detail-head { display: flex; align-items: flex-start; gap: 18px; }
.app-detail-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 22px;
  color: #fff;
  background: var(--detail-accent, var(--s1));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-size: 26px;
  font-weight: 600;
  overflow: hidden;
}
.app-detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-detail-title { min-width: 0; }
.app-detail-title .app-badges { justify-content: flex-start; margin-bottom: 10px; }
.app-detail-title h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.035em; }
.app-detail-title p { margin: 0; color: var(--ink-2); font-size: 15px; }

.app-detail-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .82fr); gap: 28px; padding: 28px 32px 32px; }
.app-detail-body h3 { margin: 0 0 11px; font-size: 16px; letter-spacing: -.02em; }
.app-description { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.detail-side { display: grid; align-content: start; gap: 7px; }
.detail-info-card { display: grid; gap: 3px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--fill); }
.detail-info-card small { color: var(--ink-3); font-size: 11.5px; }
.detail-info-card strong { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }

.latest-download-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--fill);
}
.latest-download-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.latest-download-top h3 { margin: 0; font-size: 16px; }
.latest-download-top span { color: var(--tint); font-size: 12.5px; font-weight: 500; }
.latest-download-card p { margin: 8px 0 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-release-list { display: grid; gap: 6px; }
.modal-release-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--fill);
}
.modal-release-item strong { font-size: 13.5px; font-weight: 600; }
.modal-release-item span { color: var(--ink-3); font-size: 11.5px; }

.content-page-modal { width: min(800px, 100%); }
.content-page-header { padding: 34px 32px 22px; border-bottom: 1px solid var(--edge); }
.content-page-header h2 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 33px); letter-spacing: -.035em; }
.content-page-header p { margin: 0; color: var(--ink-2); }
.content-page-body { padding: 26px 32px 36px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.content-page-body h2, .content-page-body h3, .content-page-body h4 { color: var(--ink); margin: 26px 0 10px; letter-spacing: -.025em; }
.content-page-body h2 { font-size: 21px; }
.content-page-body p { margin: 0 0 14px; }
.content-page-body ul, .content-page-body ol { margin: 0 0 16px; padding-left: 20px; }
.content-page-body li { margin-bottom: 6px; }
.content-page-body blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--s1);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--fill);
}
.content-page-body a { color: var(--tint); }
.content-page-body :is(code, pre) { padding: 2px 6px; border-radius: 6px; background: var(--fill); font-family: var(--sf-mono); font-size: .9em; }
.page-loading { min-height: 240px; }

/* ======================= тост ======================= */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  color: var(--ink);
  background: var(--mat-thick);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--sh-3), var(--spec);
  font-size: 13.5px;
  font-weight: 500;
  animation: toastIn 0.85s var(--spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } }
.toast.error { color: #fff; background: var(--red); border-color: transparent; }

/* ============== появление: длинное и мягкое ============== */
@media (prefers-reduced-motion: no-preference) {
  /* базовое проявление — работает и для карточек, которые JS добавляет позже */
  .section-heading,
  .app-card,
  .feature-card,
  .team-card,
  .news-card,
  .release-item,
  .platform-card,
  .faq-item,
  .contact-card,
  .status-card,
  .newsletter,
  .stats-strip {
    animation: rise 1.25s var(--gentle) both;
  }
  /* лёгкая волна по сетке, чтобы карточки не появлялись стеной */
  .app-card:nth-child(2), .feature-card:nth-child(2), .team-card:nth-child(2),
  .news-card:nth-child(2), .release-item:nth-child(2), .platform-card:nth-child(2) { animation-delay: .09s; }
  .app-card:nth-child(3), .feature-card:nth-child(3), .team-card:nth-child(3),
  .news-card:nth-child(3), .release-item:nth-child(3) { animation-delay: .18s; }
  .app-card:nth-child(4), .news-card:nth-child(4), .release-item:nth-child(4) { animation-delay: .27s; }
  .app-card:nth-child(n+5), .news-card:nth-child(n+5), .release-item:nth-child(n+5) { animation-delay: .34s; }

  /* заголовки секций мягко привязаны к прокрутке, карточки — нет:
     так они не дёргаются при быстрой прокрутке колесом */
  @supports (animation-timeline: view()) {
    .section-heading, .newsletter, .contact-card {
      animation: rise linear both;
      animation-delay: 0s;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }

  @keyframes rise { from { opacity: 0; transform: translate3d(0, 20px, 0); } }

  /* мягкий вход первого экрана */
  .site-header { animation: fadeDown 1s var(--gentle) both; }
  .hero-copy { animation: rise 1.2s var(--gentle) both; }
  .hero-visual { animation: fadeIn 1.6s var(--gentle) both; animation-delay: .15s; }
  @keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }
  @keyframes fadeIn { from { opacity: 0; transform: scale(.97); } }
}

main.dynamic-sections { display: flex; flex-direction: column; }
main.dynamic-sections > * { min-width: 0; width: min(calc(100% - (var(--gutter) * 2)), var(--max)); }

/* карточки живут на отдельном слое: плавнее и без дрожания текста */
.app-card,
.platform-card,
.feature-card,
.team-card,
.news-card,
.release-item,
.catalog-summary-card {
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .app-card, .platform-card, .feature-card, .team-card, .news-card, .release-item { will-change: transform; }
}
/* на тач-устройствах наведения нет — вместо него мягкое нажатие */
@media (hover: none) {
  .app-card:hover, .platform-card:hover, .feature-card:hover,
  .team-card:hover, .news-card:hover, .release-item:hover { transform: none; box-shadow: var(--sh-1), var(--spec); }
  .app-card:active, .platform-card:active, .news-card:active, .release-item:active {
    transform: scale(.985);
    transition-duration: .22s;
  }
}

/* ======================= адаптив ======================= */
@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr); gap: 26px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid, .feature-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
}

@media (max-width: 900px) {
  .faq-layout, .support-layout { grid-template-columns: 1fr; gap: 24px; }
  .sticky-heading { position: static; }
  .app-detail-body { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .newsletter { grid-template-columns: 1fr; padding: 26px; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; padding: 7px 8px 7px 10px; }
  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--edge);
    border-radius: var(--r-lg);
    background: var(--mat-thick);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: var(--sh-3), var(--spec);
  }
  .site-header.menu-open .main-nav { display: flex; animation: menuIn .55s var(--gentle) both; }
  .main-nav a { padding: 11px 12px; font-size: 15px; }
  .header-actions { display: none; }
  .site-header.menu-open .header-actions {
    animation: menuIn .55s var(--gentle) both;
    animation-delay: .06s;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--edge);
    border-radius: var(--r-lg);
    background: var(--mat-thick);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: var(--sh-3), var(--spec);
    transform: translateY(calc(100% + 4px));
  }
  .mobile-menu-button { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { order: -1; min-height: 300px; transform: scale(.82); }
  .platform-card-grid { grid-template-columns: 1fr; }
  .app-grid, .feature-grid, .team-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side-list { grid-template-rows: none; grid-template-columns: 1fr; }
  .news-featured-card { min-height: 320px; }
  .release-item { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .release-meta { grid-column: 2; justify-items: start; text-align: left; }
  .release-actions { grid-column: 2; }
  .split-heading { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  :root { --gutter: 14px; }
  .brand-copy small { display: none; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip article:last-child { grid-column: 1 / -1; }
  .stats-strip article + article::before { display: none; }
  .two-columns { grid-template-columns: 1fr; }
  .subscribe-form { grid-template-columns: 1fr; }
  .contact-card, .newsletter { padding: 20px; }
  .app-detail-cover, .app-detail-body, .content-page-header, .content-page-body { padding-inline: 20px; }
  .app-detail-head { flex-direction: column; }
  .modal-shell { padding: 10px; }
  .ecosystem-pill { right: auto; left: 50%; bottom: 4%; min-width: min(292px, calc(100% - 28px)); transform: translateX(-50%); }
}

/* шапка: мягкий вход при загрузке + плавное уплотнение тени при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: fadeDown 1s var(--gentle) both, lift linear both;
      animation-timeline: auto, scroll();
      animation-range: normal, 0 160px;
    }
  }
}

/* ============================================================
   Мобильная интеграция: тач-поведение, безопасные зоны, шторки
   ============================================================ */
@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  body {
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* шапка прижата к краям экрана и учитывает «чёлку» */
  .site-header {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    padding: 6px 6px 6px 10px;
  }
  .brand-logo { width: 30px; height: 30px; }
  .icon-button, .mobile-menu-button { width: 38px; height: 38px; }

  /* навигация раскрывается как шторка на всю ширину */
  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions {
    left: -4px;
    right: -4px;
    border-radius: 22px;
    padding: 10px;
  }
  .main-nav a { min-height: 46px; display: flex; align-items: center; }

  /* фильтры каталога — горизонтальная лента без полосы прокрутки */
  .filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; min-height: 38px; scroll-snap-align: start; }

  /* поля не должны вызывать зум в Safari — минимум 16px */
  input, textarea, select { font-size: 16px !important; }
  .contact-card input, .contact-card select { min-height: 48px; }
  .button { min-height: 48px; }

  /* модалка ведёт себя как нижняя шторка iOS */
  .modal-shell { padding: 0; place-items: end center; }
  .app-modal, .content-page-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(0);
  }
  .modal-shell.hidden .app-modal,
  .modal-shell.hidden .content-page-modal { transform: translateY(100%) scale(1); opacity: 1; }
  /* «ручка» шторки */
  .app-modal::before, .content-page-modal::before {
    content: "";
    position: sticky;
    top: 8px;
    z-index: 6;
    display: block;
    width: 38px;
    height: 4px;
    margin: 8px auto -12px;
    border-radius: 999px;
    background: var(--fill-2);
  }
  .modal-close { top: 20px; right: 14px; }

  .toast { left: 14px; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); transform: none; width: auto; text-align: center; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

  /* меньше стекла — больше плавности на слабых телефонах */
  .app-card, .platform-card, .feature-card, .team-card, .news-card, .release-item, .catalog-summary-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--mat-thick);
    will-change: auto;
  }
  .ambient { filter: blur(90px); opacity: calc(.26 * var(--glow-strength, 1)); }
}

@media (max-width: 620px) {
  .hero-visual { min-height: 260px; transform: scale(.74); margin-block: -20px; }
  .hero h1 { max-width: none; }
  .stats-strip article { padding: 12px 12px; gap: 9px; }
  .stat-icon { width: 30px; height: 30px; border-radius: 9px; }
  .stat-icon .ui-icon { width: 15px; height: 15px; }
  .app-card, .feature-card, .team-card, .news-card { padding: 18px; }
  .section-heading { margin-bottom: 22px; }
  .site-footer { padding-block: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ======================= доступность ======================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
body.animations-off *, body.animations-off *::before, body.animations-off *::after {
  animation: none !important;
  transition: none !important;
}
[data-site-logo] { object-fit: contain; }

@media (max-width: 760px) { .footer-social-links { justify-content: flex-start; } }

/* ===================== VirusTotal ===================== */
.vt-card-line { display: flex; align-items: center; margin-top: 12px; }
.vt-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1; }
.vt-badge .ui-icon { width: 14px; height: 14px; }
.vt-badge.safe { color: var(--green); background: rgba(48, 164, 108, .12); }
.vt-badge.warning { color: #a76a00; background: rgba(245, 166, 35, .15); }
.vt-badge.danger { color: #d94a50; background: rgba(229, 72, 77, .13); }
.vt-badge.pending { color: var(--ink-3); background: var(--fill); }
.vt-report-card { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--fill); }
.vt-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vt-report-head h4 { margin: 2px 0 0; font-size: 15px; }
.vt-report-hash { display: grid; gap: 4px; }
.vt-report-hash small { color: var(--ink-3); }
.vt-report-hash code { display: block; max-width: 100%; padding: 8px 10px; border-radius: 10px; background: var(--surface-solid); color: var(--ink-2); font-size: 10.5px; overflow-wrap: anywhere; }
.vt-report-note { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.vt-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-release-item .vt-badge { margin-top: 5px; }
@media (max-width: 620px) { .vt-report-head { display: grid; } }

/* ======================= Markdown только для блока «Последняя версия» ======================= */
.latest-download-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border-color: color-mix(in srgb, var(--detail-accent, var(--s1)) 24%, var(--edge));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--detail-accent, var(--s1)) 8%, transparent), transparent 46%),
    var(--fill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.10);
}
.latest-download-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 210px;
  height: 210px;
  right: -92px;
  top: -118px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--detail-accent, var(--s1)) 18%, transparent);
  filter: blur(12px);
  pointer-events: none;
}
.latest-download-top {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--edge);
}
.latest-release-heading { display: grid; gap: 3px; }
.latest-release-kicker {
  color: var(--detail-accent, var(--tint));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.2;
  text-transform: uppercase;
}
.latest-download-top .latest-release-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.release-version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--detail-accent, var(--s1)) 24%, var(--edge));
  border-radius: var(--r-pill);
  color: var(--detail-accent, var(--tint)) !important;
  background: color-mix(in srgb, var(--detail-accent, var(--s1)) 10%, var(--surface-solid));
  font-family: var(--sf-mono);
  font-size: 11.5px !important;
  font-weight: 650 !important;
  white-space: nowrap;
}
.release-markdown {
  display: flow-root;
  margin: 16px 0 18px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.latest-download-card .release-markdown > :first-child { margin-top: 0; }
.latest-download-card .release-markdown > :last-child { margin-bottom: 0; }
.latest-download-card .release-markdown p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: inherit;
  line-height: inherit;
}
.release-markdown h3,
.release-markdown h4,
.release-markdown h5,
.release-markdown h6 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.release-markdown h3 { font-size: 15px; }
.release-markdown ul,
.release-markdown ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: release-item;
}
.release-markdown li {
  position: relative;
  min-width: 0;
  padding: 8px 11px 8px 32px;
  border: 1px solid color-mix(in srgb, var(--edge) 78%, transparent);
  border-radius: 11px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
}
.release-markdown ul > li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--detail-accent, var(--s1));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--detail-accent, var(--s1)) 12%, transparent);
  transform: rotate(45deg);
}
.release-markdown ol > li { counter-increment: release-item; padding-left: 38px; }
.release-markdown ol > li::before {
  content: counter(release-item);
  position: absolute;
  left: 11px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  color: #fff;
  background: var(--detail-accent, var(--s1));
  font-size: 10px;
  font-weight: 700;
}
.release-markdown li.task-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 11px;
}
.release-markdown li.task-item::before { display: none; }
.release-markdown .task-check {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-solid);
}
.release-markdown .task-item.checked .task-check {
  border-color: var(--detail-accent, var(--s1));
  background: var(--detail-accent, var(--s1));
  box-shadow: inset 0 0 0 4px var(--surface-solid);
}
.release-markdown strong { color: var(--ink); font-weight: 700; }
.release-markdown em { color: var(--ink); }
.release-markdown del { color: var(--ink-3); }
.release-markdown a {
  color: var(--detail-accent, var(--tint));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 36%, transparent);
  text-underline-offset: 3px;
}
.release-markdown code {
  padding: 2px 6px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface-solid);
  font-family: var(--sf-mono);
  font-size: .9em;
}
.release-markdown pre {
  position: relative;
  margin: 12px 0 14px;
  padding: 15px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: color-mix(in srgb, var(--background-solid) 86%, #000);
  overflow: auto;
}
.release-markdown pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 7px;
  right: 10px;
  color: var(--ink-3);
  font-family: var(--sf-mono);
  font-size: 9.5px;
  text-transform: uppercase;
}
.release-markdown pre code {
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
}
.release-markdown blockquote {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--detail-accent, var(--s1));
  border-radius: 0 11px 11px 0;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--detail-accent, var(--s1)) 8%, var(--surface-solid));
}
.release-markdown hr {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--edge);
}
.release-markdown-empty { color: var(--ink-3) !important; font-style: italic; }
.latest-download-card .android-info-grid,
.latest-download-card .vt-report-card { margin-top: 16px; }
.latest-download-card .download-buttons {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
}
.latest-download-card .download-buttons .button { min-height: 40px; }

@media (max-width: 620px) {
  .latest-download-card { padding: 17px; }
  .latest-download-top { align-items: flex-start; }
  .release-version-pill { width: 100%; justify-content: center; }
  .release-markdown li { padding-right: 9px; }
  .latest-download-card .download-buttons { display: grid; }
  .latest-download-card .download-buttons .button { width: 100%; }
}

/* ============================================================
   Ссылка Premium — 14.1.0
   Везде: золотой текст по умолчанию, золотая заливка при наведении.
   ============================================================ */
:root {
  --gold: #b4801a;
  --gold-2: #d9a63c;
  --gold-rgb: 180, 128, 26;
}
html[data-theme="dark"] {
  --gold: #f0c04a;
  --gold-2: #ffd97a;
  --gold-rgb: 240, 192, 74;
}

.main-nav a[href="/premium"],
.footer-links a[href="/premium"],
.mobile-nav a[href="/premium"] {
  color: var(--gold);
  font-weight: 600;
}
.main-nav a[href="/premium"]:hover,
.footer-links a[href="/premium"]:hover,
.mobile-nav a[href="/premium"]:hover {
  color: #2a1e05;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 18px rgba(var(--gold-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.footer-links a[href="/premium"] { padding: 2px 10px; border-radius: 999px; }

/* кнопка Premium, если она выводится как .button */
.button[href="/premium"] {
  color: var(--gold);
  border-color: rgba(var(--gold-rgb), .38);
  background: transparent;
}
.button[href="/premium"]:hover {
  color: #2a1e05;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 22px rgba(var(--gold-rgb), .3);
}

/* Hide scrollbar visuals without disabling scrolling */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

/* App gallery and verified reviews */
.app-gallery-section,.app-reviews-section{margin-top:30px;padding-top:26px;border-top:1px solid var(--line,var(--edge))}.app-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:16px}.app-section-heading span{display:block;color:var(--accent,var(--tint));font-size:10px;font-weight:800;letter-spacing:.12em}.app-section-heading h3{margin:4px 0 0!important}.app-section-heading>small{color:var(--muted,var(--ink-3))}.app-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.app-gallery-item{position:relative;display:grid;padding:0;border:1px solid var(--line,var(--edge));border-radius:18px;background:var(--surface,var(--mat));overflow:hidden;text-align:left;color:inherit;cursor:pointer;transition:transform .25s ease,border-color .25s ease}.app-gallery-item:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--detail-accent) 42%,var(--line,var(--edge)))}.app-gallery-item img,.app-gallery-item video{width:100%;aspect-ratio:16/10;object-fit:cover;background:#080a10}.app-gallery-item>span:last-child{display:grid;gap:3px;padding:11px 13px}.app-gallery-item small{color:var(--muted,var(--ink-3));line-height:1.4}.gallery-play{position:absolute!important;inset:50% auto auto 50%;translate:-50% -50%;display:grid!important;place-items:center;width:46px;height:46px;padding:0!important;border-radius:50%;background:rgba(0,0,0,.64);color:white}.gallery-lightbox{position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:30px;background:rgba(3,5,12,.88);backdrop-filter:blur(18px)}.gallery-lightbox-content{width:min(1100px,96vw);max-height:90vh;display:grid;gap:14px}.gallery-lightbox img,.gallery-lightbox video{width:100%;max-height:76vh;object-fit:contain;border-radius:22px;background:#05070c}.gallery-lightbox-content>div{color:white}.gallery-lightbox-content h3,.gallery-lightbox-content p{margin:0}.gallery-lightbox-close{position:fixed;top:22px;right:26px;width:46px;height:46px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:white;font-size:28px;cursor:pointer}.review-summary{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;column-gap:8px}.review-summary small{grid-column:1/-1;color:var(--muted,var(--ink-3))}.review-stars{display:inline-flex;gap:2px}.review-stars i{color:color-mix(in srgb,var(--muted,var(--ink-3)) 55%,transparent);font-style:normal}.review-stars i.active{color:#f2b84b}.app-review-form{display:grid;gap:12px;padding:16px;margin-bottom:16px;border:1px solid var(--line,var(--edge));border-radius:18px;background:var(--surface,var(--mat))}.app-review-form textarea{width:100%;padding:13px;border:1px solid var(--line,var(--edge));border-radius:14px;background:var(--background,var(--fill));color:inherit;resize:vertical}.review-rating-input{display:flex;align-items:center;gap:4px}.review-rating-input>span{margin-right:8px;color:var(--muted,var(--ink-3));font-size:12px}.review-rating-input label{cursor:pointer}.review-rating-input input{position:absolute;opacity:0}.review-rating-input label span{font-size:25px;color:var(--muted,var(--ink-3))}.review-rating-input label:has(input:checked) span,.review-rating-input label:has(input:checked)~label span,.review-rating-input label:hover span,.review-rating-input label:hover~label span{color:#f2b84b}.app-review-list{display:grid;gap:12px}.app-review-card{padding:17px;border:1px solid var(--line,var(--edge));border-radius:18px;background:var(--surface,var(--mat))}.review-author{display:flex;align-items:center;gap:10px;margin-bottom:10px}.review-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--accent-soft,var(--tint-soft));color:var(--accent,var(--tint));font-weight:800;overflow:hidden}.review-avatar img{width:100%;height:100%;object-fit:cover}.review-author>div{display:grid;flex:1}.review-author small{color:var(--muted,var(--ink-3))}.verified-review{padding:4px 8px;border-radius:999px;background:rgba(38,186,111,.13);color:#32b979;font-size:10px;font-weight:800}.app-review-card>p{line-height:1.6}.developer-reply{margin-top:13px;padding:13px;border-left:3px solid var(--detail-accent);border-radius:0 13px 13px 0;background:color-mix(in srgb,var(--detail-accent) 8%,transparent)}.developer-reply p{margin:6px 0 0}.review-login-note{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px;margin-bottom:16px;border:1px dashed var(--line,var(--edge));border-radius:17px}.review-login-note p{margin:0;color:var(--muted,var(--ink-3))}
@media(max-width:700px){.app-gallery-grid{grid-template-columns:1fr}.app-section-heading{align-items:start}.verified-review{display:none}.review-login-note{align-items:stretch;flex-direction:column}}

@media (max-width: 560px) {
  .ecosystem-pill {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }
  .ecosystem-status {
    grid-column: 2;
    justify-self: start;
    min-height: 23px;
  }
}
