/* AI Mira для iPhone — общее оформление страниц /ios/ и /ios/features/.
   В начале — те правила общей оболочки сайта (site-v2, site-premium, global-shell, site-sales-v3),
   которые на этих страницах действительно срабатывают: шапка, меню, подвал, база. Отобраны
   автоматически по совпадению селекторов 27.09.2026; остальные ~120 КБ оболочки здесь не нужны.
   Дальше — своё: токены, типографика, кнопки, значок App Store, рамка телефона, пузыри сообщений,
   выбор языка, подвал, появление при прокрутке. Разделы страниц — в ios-home.css и ios-features.css.
   Масштаб жидкий (clamp); анимации — только transform и opacity; при prefers-reduced-motion всё
   сразу в конечном виде. */

/* ---- из /styles/site-v2.css (только правила, которые срабатывают на страницах /ios/) ---- */
:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --bg-soft: #12121c;
  --panel: #171724;
  --panel-2: #1d1d2d;
  --text: #f8f7ff;
  --muted: #aaa8bb;
  --line: rgba(255, 255, 255, 0.11);
  --purple: #7b5cff;
  --purple-strong: #6f4bf3;
  --purple-soft: #b7a8ff;
  --mint: #42d392;
  --amber: #ffb84d;
  --danger: #ff7a7a;
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(111, 75, 243, 0.22), transparent 29rem),
    radial-gradient(circle at 90% 22%, rgba(66, 211, 146, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, #856aff, #6240e8);
  box-shadow: 0 14px 34px rgba(111, 75, 243, 0.28);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(111, 75, 243, 0.36);
}

.button-small {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 13px;
  font-size: 0.8rem;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer b {
  color: var(--text);
}

.site-footer p {
  margin: 5px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- из /styles/site-premium.css (только правила, которые срабатывают на страницах /ios/) ---- */
:root {
  color-scheme: light;
  --bg: #fbfaff;
  --bg-soft: #f5f1ff;
  --panel: #ffffff;
  --panel-2: #f0eaff;
  --text: #211a36;
  --muted: #716b80;
  --line: rgba(67, 48, 105, 0.12);
  --purple: #7953e8;
  --purple-strong: #6338d1;
  --purple-soft: #8f6bf0;
  --lavender: #eadfff;
  --lavender-soft: #f7f3ff;
  --mint: #43bd8a;
  --amber: #b66b16;
  --danger: #bd4f5f;
  --shadow:
    0 36px 90px rgba(79, 53, 135, 0.13),
    0 12px 32px rgba(67, 47, 104, 0.08);
}

html {
  background: var(--bg);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 5% 4%, rgba(220, 205, 255, 0.82), transparent 28rem),
    radial-gradient(circle at 94% 18%, rgba(229, 219, 255, 0.78), transparent 30rem),
    linear-gradient(180deg, #fdfcff 0%, #ffffff 36%, #faf8ff 100%);
  color: var(--text);
}

::selection {
  background: #ddd0ff;
  color: #2b174e;
}

.button {
  border-color: rgba(98, 54, 203, 0.16);
  background: linear-gradient(135deg, #8765ed, #6639d5);
  box-shadow:
    0 14px 30px rgba(105, 61, 213, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button:hover {
  box-shadow:
    0 18px 38px rgba(105, 61, 213, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-footer {
  border-top-color: rgba(75, 51, 113, 0.1);
  color: #7a7384;
}

.site-footer b,
.footer-links a:hover {
  color: #2c233b;
}

/* ---- из /styles/global-shell.css (только правила, которые срабатывают на страницах /ios/) ---- */
.mira-global-header {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1280px);
  min-height: 78px;
  margin: 10px auto 0;
  padding: 10px 14px;
  position: sticky;
  top: 8px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(70, 48, 111, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 50px rgba(69, 46, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #241a38;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.mira-global-brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #241a38;
  text-decoration: none;
}

.mira-global-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(64, 43, 98, 0.1);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(66, 43, 112, 0.13);
}

.mira-global-brand > span {
  display: grid;
  line-height: 1.08;
}

.mira-global-brand b {
  color: #241a38;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.mira-global-brand small {
  margin-top: 4px;
  color: #746b7f;
  font-size: 0.64rem;
  white-space: nowrap;
}

.mira-product-switch {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(94, 62, 159, 0.1);
  border-radius: 14px;
  background: #f3effb;
}

.mira-product-switch a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  color: #756d81;
  font-size: 0.75rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.mira-product-switch a:hover {
  color: #5632ba;
}

.mira-product-switch a.is-active,
.mira-product-switch a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 6px 16px rgba(66, 42, 106, 0.1);
  color: #6338d1;
}

.mira-page-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.mira-page-nav a {
  padding: 9px 10px;
  border-radius: 11px;
  color: #716a7d;
  font-size: 0.78rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.mira-page-nav a:hover {
  background: #f3effb;
  color: #5632ba;
}

.mira-shell-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mira-global-header .button {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 13px;
  white-space: nowrap;
}

.nav-burger {
  width: 42px;
  height: 40px;
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(71, 47, 113, 0.14);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(63, 43, 98, 0.06);
  color: #463a58;
  cursor: pointer;
}

.nav-burger span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mira-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 82px 12px 20px;
  background: rgba(28, 20, 42, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mira-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mira-mobile-menu-panel {
  width: min(100%, 430px);
  max-height: calc(100svh - 100px);
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(79, 51, 130, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 74px rgba(45, 30, 70, 0.24);
}

.mira-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.mira-mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #241a38;
  text-decoration: none;
}

.mira-mobile-menu-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.mira-mobile-menu-brand span {
  display: grid;
  line-height: 1.08;
}

.mira-mobile-menu-brand b {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.mira-mobile-menu-brand small {
  margin-top: 3px;
  color: #746b7f;
  font-size: 0.6rem;
}

.mira-mobile-menu-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(71, 47, 113, 0.12);
  border-radius: 13px;
  background: #f7f3ff;
  color: #463a58;
  font-size: 1.45rem;
  line-height: 1;
}

.mira-mobile-menu-nav {
  display: grid;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(84, 56, 135, 0.1);
}

.mira-mobile-menu-nav a {
  min-height: 46px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(84, 56, 135, 0.08);
  border-radius: 15px;
  background: #fbf9ff;
  color: #322540;
  font-size: 0.86rem;
  font-weight: 780;
  text-decoration: none;
}

.mira-mobile-menu-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

body.mira-mobile-menu-open {
  overflow: hidden;
}

.brand-footer {
  padding-top: 30px;
}

@media (max-width: 1120px) {
  .mira-page-nav {
    display: none;
  }
}

@media (max-width: 960px) {
  header.mira-global-header {
    width: auto;
    min-height: 64px;
    margin: 0;
    padding: 8px 12px;
    top: 0;
    right: 8px;
    left: 8px;
    border-radius: 0 0 19px 19px;
  }
}

@media (max-width: 760px) {
  .mira-global-header .button,
  .telegram-global-shell .mira-shell-telegram-cta {
    display: none;
  }

  .mira-shell-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .mira-global-brand > span {
    display: none;
  }

  .mira-global-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .mira-product-switch a {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 0.67rem;
  }
}

@media (max-width: 390px) {
  header.mira-global-header {
    gap: 7px;
    padding-inline: 8px;
  }

  .mira-product-switch {
    padding: 3px;
  }

  .mira-product-switch a {
    padding-inline: 7px;
    font-size: 0.62rem;
  }
}

@media (max-width: 359px) {
  header.mira-global-header .mira-product-switch {
    display: none;
  }
}

/* ---- из /styles/site-sales-v3.css (только правила, которые срабатывают на страницах /ios/) ---- */
.sales-v3 {
  --sales-ink: #21172f;
  --sales-copy: #625a6e;
  --sales-muted: #837b90;
  --sales-purple: #7652ef;
  --sales-purple-dark: #5931c8;
  --sales-purple-soft: #eee7ff;
  --sales-purple-wash: #f7f3ff;
  --sales-green: #2fb27b;
  --sales-line: rgba(68, 42, 111, 0.12);
  --sales-shadow: 0 30px 80px rgba(72, 44, 122, 0.13);
  --sales-max: 1280px;
  background:
    radial-gradient(circle at 4% 8%, rgba(230, 221, 255, 0.86), transparent 28rem),
    radial-gradient(circle at 96% 16%, rgba(238, 232, 255, 0.88), transparent 30rem),
    linear-gradient(180deg, #fcfbff 0%, #fff 32%, #fbf9ff 100%);
  color: var(--sales-ink);
}

.sales-v3 main {
  overflow-x: clip;
  overflow-y: visible;
}

.sales-v3 h1,
.sales-v3 h2,
.sales-v3 h3,
.sales-v3 p {
  text-wrap: pretty;
}

.sales-v3 svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sales-v3 a:focus-visible,
.sales-v3 button:focus-visible {
  outline: 3px solid rgba(118, 82, 239, 0.38);
  outline-offset: 3px;
}

.sales-v3 [id] {
  scroll-margin-top: 100px;
}

.sales-v3 .mira-global-header {
  width: min(calc(100% - 32px), var(--sales-max));
  min-height: 76px;
  margin-top: 12px;
  padding: 10px 12px 10px 14px;
  position: sticky;
  top: 8px;
  border-color: rgba(85, 57, 134, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(73, 48, 115, 0.08);
}

.sales-v3 .mira-global-header .button {
  border: 0;
}

.sales-v3 .mira-page-nav a {
  color: #6d6478;
}

.sales-v3 .site-footer {
  width: min(calc(100% - 32px), var(--sales-max));
  margin: 0 auto;
  padding: 44px 0 48px;
  border-top: 1px solid rgba(78, 51, 126, 0.1);
  color: #716879;
}

.sales-v3 .site-footer b {
  color: #312440;
}

.sales-v3 .site-footer a {
  color: #635a6f;
}

@media (max-width: 760px) {
  .sales-v3 .mira-global-header {
    min-height: 64px;
    margin-top: 0;
    padding: 8px 10px;
    border-radius: 0 0 20px 20px;
  }

  .brand-gateway,
  .sales-hero,
  .sales-how > .sales-section-heading,
  .sales-story-list,
  .whole-day-section,
  .real-life-section,
  .sales-final-cta,
  .sales-v3 .site-footer {
    width: min(calc(100% - 24px), var(--sales-max));
  }
}

@media (max-width: 520px) {
  .sales-v3 .mira-global-header {
    gap: 7px;
  }

  .sales-v3 .mira-product-switch {
    gap: 1px;
    padding: 3px;
  }

  .sales-v3 .mira-product-switch a {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }
}

@media (max-width: 359px) {
  .brand-gateway,
  .sales-hero,
  .sales-how > .sales-section-heading,
  .sales-story-list,
  .whole-day-section,
  .real-life-section,
  .sales-final-cta,
  .sales-v3 .site-footer {
    width: min(calc(100% - 20px), var(--sales-max));
  }

  .sales-v3 .mira-product-switch a {
    padding-inline: 6px;
    font-size: 0.59rem;
  }
}

/* ---------- Своё ---------- */

/* Имя бренда — «AI Mira» строчными (владелец, 27.09.2026): разрядка общей оболочки была под «MIRA»
   капсом, строчным она не нужна. */
.ios-page .mira-global-brand b,
.ios-page .mira-mobile-menu-brand b {
  letter-spacing: 0.005em;
}

:root {
  --ios-ink: #21172f;
  --ios-copy: #5d5469;
  --ios-muted: #675e75;
  --ios-violet: #6b43e3;
  --ios-brand: #7050f5;
  --ios-lilac: #efe8ff;
  --ios-lilac-2: #f6f2ff;
  --ios-wash: #fbf9ff;
  --ios-line: rgba(68, 42, 111, 0.12);
  --ios-coral: #ff7a4f;
  --ios-coral-soft: #fff1ea;
  --ios-mint: #1f9d68;
  --ios-night: #1c1430;
  --ios-on-night: #f4f0ff;
  --ios-on-night-soft: rgba(244, 240, 255, 0.78);
  --ios-serif: Georgia, "Times New Roman", serif;
  --ios-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ios-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ios-shadow:
    0 34px 70px -30px rgba(62, 36, 128, 0.38),
    0 12px 26px -16px rgba(40, 22, 80, 0.24);
  --ios-card-shadow: 0 24px 50px -40px rgba(62, 36, 128, 0.5);
  /* Одна шкала на всю страницу: поля, контейнер, отступ секций, радиусы. */
  --ios-gutter: clamp(16px, 4.2vw, 40px);
  --ios-max: clamp(1200px, 62.5vw, 1280px);
  --ios-section: clamp(64px, 3.2vw + 52px, 128px);
  --ios-r-lg: 32px;
  --ios-r-md: 24px;
  --ios-r-sm: 16px;
  /* Высота: 1 — фишки и плитки, 2 — парящие карточки, 3 — телефоны и главная карточка. */
  --ios-e1: 0 1px 2px rgba(20, 10, 60, 0.08), 0 6px 16px -6px rgba(60, 40, 140, 0.18);
  --ios-e2: 0 1px 2px rgba(20, 10, 60, 0.08), 0 12px 32px rgba(60, 40, 140, 0.16);
  --ios-e3: 0 2px 6px rgba(20, 10, 60, 0.1), 0 24px 48px -12px rgba(60, 40, 140, 0.28), 0 56px 90px -40px rgba(40, 20, 110, 0.38);
  /* Стекло: полупрозрачная подложка, светлая кромка сверху; без backdrop-filter — почти белая. */
  --ios-glass: rgba(255, 255, 255, 0.7);
  --ios-glass-strong: rgba(255, 255, 255, 0.96);
  --ios-glass-solid: rgba(255, 255, 255, 0.95);
  --ios-glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  /* Высота липкой шапки + воздух: на столько якоря не заезжают под неё. */
  --ios-anchor: 104px;
}

@media (max-width: 960px) {
  :root { --ios-anchor: 84px; }
}

.ios-page [id] {
  scroll-margin-top: var(--ios-anchor);
}

/* ---------- Общая шапка на этой странице ----------
   Остальные страницы получают эти правила через классы brand-hub / web-landing. Эти классы здесь не
   ставятся: по ним site-v2.js подменил бы заголовок страницы на заголовок главной или Web App. */

/* Шесть разделов, переключатель продуктов, язык и кнопка в одну строку помещаются только на широком
   экране: французский и русский раньше наезжали на переключатель продуктов. Поэтому в шапке нет
   «Документов» (они в подвале и в мобильном меню — туда ссылка попадает клоном и остаётся видимой),
   а меню-бургер включается раньше, чем на остальных страницах. */

.ios-page .mira-page-nav a {
  padding-inline: 8px;
}

/* Кнопка «Скачать в App Store» в общей шапке: светлый край градиента давал белому тексту 4,1:1. */

.ios-page .mira-global-header .button,
.ios-page .mira-mobile-menu-cta {
  background: linear-gradient(135deg, #7a5af0, #5a36d6);
}

/* Подписи переключателя продуктов в общей шапке — #756d81 на #f3effb (4,35:1); на этой странице
   чуть темнее, до 5:1. */

.ios-page .mira-product-switch a:not([aria-current]) {
  color: #655d74;
}

.ios-page .mira-page-nav a[href="/legal/"] {
  display: none;
}

@media (max-width: 1320px) {
  .ios-page .mira-page-nav { display: none; }

  .ios-page .nav-burger { display: inline-flex; }

  .ios-page .mira-shell-actions { margin-left: auto; }
}

/* Между 600 и 900 px знак, переключатель продуктов, язык, кнопка и бургер вылезали за правый край
   шапки (длиннее всего по-французски): прячем подпись у знака, сам знак остаётся. */

@media (max-width: 900px) {
  .ios-page .mira-global-brand > span { display: none; }
}

/* Телефоны (владелец, 28.09.2026: шапка «пустовата»): у знака название «AI Mira» и подпись 11 px,
   левее выбора языка — тёмная кнопка App Store высотой 36 px, бургер на месте. Подпись под
   названием видна от 440 px, слово «App Store» — от 390 px (уже — один значок яблока). У
   выбора языка на телефоне нет стрелки: место нужнее, а открытие видно по самому меню. */
@media (max-width: 600px) {
  .ios-page .mira-global-brand {
    gap: 9px;
  }

  .ios-page .mira-global-brand > span { display: grid; }

  .ios-page .mira-global-brand b {
    font-size: 1.0625rem;
    letter-spacing: 0;
  }

  .ios-page .mira-global-brand small {
    display: none;
    margin-top: 2px;
    color: #6f6680;
    font-size: 11px;
  }

  .ios-page .mira-shell-actions {
    gap: 8px;
  }

  .ios-page .mira-global-header .button {
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px 0 9px;
    border-radius: 11px;
    background: #121016;
    box-shadow: 0 6px 14px -8px rgba(16, 10, 30, 0.6);
    font-size: 0;
  }

  .ios-page .mira-global-header .button::before {
    content: "";
    width: 14px;
    height: 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath fill='%23fff' d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .ios-page .mira-global-header .button::after {
    content: "App Store";
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .ios-page .ios-lang-chev {
    display: none;
  }
}

@media (max-width: 389px) {
  .ios-page .mira-global-header .button {
    width: 36px;
    padding: 0;
  }

  .ios-page .mira-global-header .button::after {
    display: none;
  }
}

/* Подпись под названием помещается рядом с кнопкой App Store только от 440 px. */
@media (min-width: 440px) and (max-width: 600px) {
  .ios-page .mira-global-brand small {
    display: block;
  }
}

@media (max-width: 960px) {
  .ios-page header.mira-global-header {
    width: min(calc(100% - 16px), 1280px);
    margin-right: auto;
    margin-left: auto;
    right: auto;
    left: auto;
  }
}

@media (max-width: 760px) {
  .ios-page .nav-burger {
    border: 0;
    background: linear-gradient(135deg, #8765ed, #6639d5);
    box-shadow: 0 10px 22px rgba(105, 61, 213, 0.22);
    color: #fff;
  }
}

/* Три продукта и выбор языка в одну строку на узком телефоне не помещаются. Ссылки продуктов при этом
   не теряются: общее меню (бургер) кладёт их первыми. */

@media (max-width: 480px) {
  .ios-page header.mira-global-header .mira-product-switch { display: none; }
}

/* ---------- База ---------- */

/* Основной текст растёт вместе с экраном: 16 px на телефоне, 18 px на 2560. Шапка вне main и не
   растёт — у неё своя раскладка. */

.ios-main {
  color: var(--ios-ink);
  font-size: clamp(1rem, 0.96rem + 0.12vw, 1.125rem);
  overflow-x: clip;
}

.ios-main:focus {
  outline: none;
}

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

.ios-page p,
.ios-page li,
.ios-page h3,
.ios-page dt {
  overflow-wrap: break-word;
}

.ios-page h1,
.ios-page h2,
.ios-page h3 {
  margin: 0;
  color: var(--ios-ink);
  text-wrap: balance;
}

.ios-page h1 em,
.ios-page h2 em {
  font-family: var(--ios-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ios-violet);
}

.ios-h1 {
  font-size: clamp(2rem, 1.1rem + 2.75vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 850;
  overflow-wrap: break-word;
}

.ios-h2 {
  font-size: clamp(1.8rem, 1.15rem + 2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 850;
  overflow-wrap: break-word;
}

.ios-page h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.22vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.ios-eyebrow {
  margin: 0 0 14px;
  color: var(--ios-violet);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ios-lead {
  max-width: 36rem;
  margin: 18px 0 0;
  color: var(--ios-copy);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);
  line-height: 1.6;
}

.ios-lead a {
  color: var(--ios-violet);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ios-section {
  padding-block: var(--ios-section);
}

.ios-section-head {
  max-width: 44rem;
}

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

.ios-skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ios-ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.ios-skip:focus {
  transform: none;
}

.ios-page summary:focus-visible,
.ios-page a:focus-visible,
.ios-page button:focus-visible,
.ios-page select:focus-visible {
  outline: 3px solid rgba(107, 67, 227, 0.45);
  outline-offset: 3px;
}

.ios-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Значок App Store ---------- */

.ios-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.ios-badge {
  display: inline-flex;
  border-radius: 12px;
  line-height: 0;
  box-shadow: 0 16px 30px -16px rgba(16, 10, 30, 0.6);
  transition: transform 200ms var(--ios-ease);
}

.ios-page .ios-badge svg {
  width: 172px;
  height: auto;
  stroke: none;
}

.ios-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -16px rgba(16, 10, 30, 0.6);
}

.ios-note {
  margin: 14px 0 0;
  color: var(--ios-muted);
  font-size: 0.9375rem;
  font-weight: 650;
}

/* Вторая кнопка рядом со значком App Store: та же ссылка, другой повод нажать. Высота совпадает
   со значком (172 × 55,5). На узком экране текст может уйти в две строки — кнопка это выдерживает. */

.ios-btn {
  min-height: 56px;
  flex: 0 1 auto;
  padding: 8px 22px 8px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7a5af0 0%, #5a36d6 100%);
  box-shadow: 0 16px 30px -14px rgba(98, 60, 230, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--ios-ease);
}

.ios-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-top: 2.4px solid currentColor;
  border-right: 2.4px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--ios-ease);
}

.ios-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -14px rgba(98, 60, 230, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ios-btn:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ---------- Рамка телефона: корпус iPhone с фото владельца ----------
   Корпус — iphone-body.webp (363×738, экран вырезан, «остров» — часть корпуса и закрывает остров
   на кадрах). Экран в корпусе: x 20–344, y 17–721 (324×704 — ровно пропорция кадров 480×1043),
   скругление ≈ 45 px. Кадр лежит ПОД корпусом и заходит под рамку на 1 px с каждой стороны.
   Тень — на скруглённом прямоугольнике корпуса (радиусы — как у его углов). */

.ios-phone {
  --w: 250px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 363 / 738;
  border-radius: 16.5% / 8.1%;
  box-shadow: var(--ios-e3);
}

.ios-phone::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background: url("/ios/img/iphone-body.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.ios-phone-screen {
  position: absolute;
  left: 5.234%;
  top: 2.168%;
  width: 89.807%;
  height: 95.664%;
  overflow: hidden;
  border-radius: 14.1% / 6.5%;
  background: #f4f2fa;
}

.ios-phone-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Параллакс двигает обёртки через отдельное свойство translate, а собственные анимации
   детей живут в transform — так они складываются и не перебивают друг друга. */

[data-parallax] {
  translate: 0 var(--py, 0px);
}

/* ---------- Глубина и стекло ----------
   Три уровня высоты на всю страницу: 1 — фишки и плитки, 2 — карточки, что парят над экраном,
   3 — телефоны и главная карточка первого экрана. Мелкие накладки — «жидкое стекло» iOS 26:
   полупрозрачная матовая подложка, светлая кромка сверху, короткая контактная тень и широкая мягкая.
   Размытие фона — только у маленьких элементов; где его нет, подложка становится почти белой. */

.ios-glass {
  background: var(--ios-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--ios-glass-edge), var(--ios-e2);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ios-glass { background: var(--ios-glass-solid); }
}

/* На компьютере карточки чуть приподнимаются под курсором (отдельное свойство translate —
   не спорит с анимациями появления, которые живут в transform). */

@media (hover: hover) and (pointer: fine) {
  .ios-lift {
    transition: translate 260ms var(--ios-ease), box-shadow 260ms var(--ios-ease);
  }

  .ios-lift:hover {
    translate: 0 -3px;
  }
}

/* ---------- Выбор языка: кнопка с флагом и список ---------- */

.ios-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ios-page .ios-flag {
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 10, 40, 0.1);
  fill: none;
  stroke: none;
  overflow: hidden;
}

.ios-lang {
  position: relative;
}

.ios-lang-btn {
  height: 40px;
  min-width: 44px;
  padding: 0 9px 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(71, 47, 113, 0.14);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(63, 43, 98, 0.06);
  color: #2d2340;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ios-page .ios-lang-chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 200ms var(--ios-ease);
}

.ios-lang-btn[aria-expanded="true"] .ios-lang-chev {
  transform: rotate(180deg);
}

.ios-lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1150;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: var(--ios-glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--ios-glass-edge), var(--ios-e3);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .ios-lang-list { background: #fff; }
}

.ios-lang-list li {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: var(--ios-ink);
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
}

.ios-lang-list li:hover,
.ios-lang-list li:focus {
  outline: none;
  background: rgba(107, 67, 227, 0.1);
}

.ios-lang-list li:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(107, 67, 227, 0.55);
}

.ios-lang-list li[aria-selected="true"] {
  color: var(--ios-violet);
  font-weight: 800;
}

.ios-lang-list li[aria-selected="true"]::after {
  content: "";
  width: 6px;
  height: 11px;
  margin: -3px 2px 0 auto;
  border-right: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: rotate(45deg);
}

.ios-online {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e6b;
}

.ios-online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2e9e6b;
  opacity: 0;
}

.ios-msg {
  position: relative;
  margin: 0;
  padding: 10px 13px 7px;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.ios-msg time {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ios-msg--me {
  justify-self: end;
  max-width: 88%;
  border-radius: 20px 20px 6px 20px;
  background: var(--ios-brand);
  color: #fff;
}

.ios-msg--me time {
  color: rgba(255, 255, 255, 0.95);
}

.ios-msg-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.ios-msg-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.ios-msg-stack {
  position: relative;
  min-width: 0;
  max-width: 92%;
}

.ios-msg--mira {
  border: 1px solid #ece7f5;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  color: var(--ios-ink);
}

.ios-msg--mira time {
  color: #6f6a85;
}

.ios-fine {
  margin: 18px 0 0;
  color: var(--ios-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- Подвал ---------- */

.ios-footer .footer-links a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

/* Текст подвала: #716879 общей оболочки даёт 4,1:1 на сиреневом фоне страницы — темнее. */

.sales-v3.ios-page .site-footer,
.sales-v3.ios-page .site-footer a {
  color: #5b5368;
}

/* Цели касания на телефоне — не меньше 44 px: ссылки подвала, знак, выбор языка, бургер. */

@media (max-width: 760px) {
  .ios-footer .footer-links {
    gap: 0 14px;
  }

  .ios-footer .footer-links a {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .ios-page .mira-global-brand img {
    width: 44px;
    height: 44px;
  }

  .ios-page .ios-lang-btn,
  .ios-page .nav-burger {
    min-height: 44px;
    height: 44px;
  }

  .ios-page .nav-burger {
    width: 44px;
  }
}

/* ---------- Появление при прокрутке ----------
   Класс ios-motion ставит скрипт, и только если движение разрешено. Без скрипта всё видно сразу. */

html.ios-motion .ios-reveal {
  transition:
    opacity 800ms var(--ios-ease) var(--d, 0ms),
    transform 900ms var(--ios-ease) var(--d, 0ms);
}

html.ios-motion .ios-reveal:not(.is-in) {
  opacity: 0.4;
  transform: translateY(36px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-parallax] {
    translate: none;
  }

  .ios-badge,
  .ios-btn,
  .ios-btn::after,
  .ios-btn-hero,
  .ios-btn-hero-arrow,
  .ios-lift,
  .ios-chev {
    transition: none;
  }
}

@media (max-width: 420px) {
  .ios-page .ios-badge svg {
    width: 160px;
  }

  .ios-btn {
    min-height: 52px;
    flex: 1 1 150px;
    padding: 7px 14px 7px 16px;
    gap: 10px;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .ios-msg {
    font-size: 1rem;
  }
}

@keyframes ios-online {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}
