/* Страница скачивания приложения (/app). Дизайн — экраны Stitch «Hatmail — Скачать мобильное приложение», токены сайта. */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/business/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/business/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0070F0; --blue-d: #005ECC; --blue-l: #EBF4FE; --blue-ring: rgba(0, 112, 240, .25);
  --bg: #F8FAFC; --card: #FFFFFF; --line: #E2E8F0; --line-2: #EEF2F6;
  --text: #0F172A; --muted: #475569; --hint: #64748B;
  --navy: #0B1220;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 56px -12px rgba(15, 40, 90, .18);
  --shadow-phone: 0 30px 70px -20px rgba(11, 18, 32, .35);
  --r: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.xs { width: 16px; height: 16px; }
:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; border-radius: 8px; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(248, 250, 252, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.nav-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 22px; width: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-link:hover { color: var(--blue); text-decoration: none; }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow-a { width: 560px; height: 560px; right: 2%; top: 50%; transform: translateY(-50%); background: rgba(0, 112, 240, .12); }
.glow-b { width: 340px; height: 340px; left: 4%; top: 10%; background: rgba(0, 112, 240, .06); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 640px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--blue-l); border: 1px solid rgba(0, 112, 240, .2); color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; margin-bottom: 20px; }
h1 .accent { background: linear-gradient(90deg, var(--text) 0%, var(--text) 35%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin-bottom: 36px; }

/* кнопки магазинов */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.store { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 26px 0 22px; border-radius: 16px; background: #000; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); transition: transform .18s ease, background .18s ease; }
.store:hover { background: #111827; text-decoration: none; transform: translateY(-2px); }
.store-ic { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #CBD5E1; }
.store-text strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.store.outline { border: 1px solid rgba(255, 255, 255, .3); box-shadow: none; }
.store.outline:hover { border-color: #fff; }
.qr-card { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-card img { width: 56px; height: 56px; padding: 4px; border-radius: 10px; background: #fff; }
.qr-text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: var(--muted); max-width: 190px; }
.qr-text strong { color: var(--text); font-size: 13px; margin-bottom: 2px; }
.alt-store { margin-top: 14px; font-size: 14px; color: var(--muted); }
.alt-store a { font-weight: 700; }

/* телефон или Android: везде остаётся кнопка своего магазина, второй — строкой под главной кнопкой */
.os-ios .store[data-store="android"], .os-android .store[data-store="ios"] { display: none; }
.os-ios [data-desktop-only], .os-android [data-desktop-only] { display: none !important; }

/* телефоны-макеты */
.hero-art { position: relative; height: 580px; }
.phone { position: absolute; border-radius: 44px; background: #0A0D14; padding: 10px; box-shadow: var(--shadow-phone); border: 5px solid rgba(30, 41, 59, .9); }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0F172A; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-back { right: 0; top: 10px; width: 262px; height: 536px; transform: rotate(4deg); border-radius: 38px; }
.phone-back .screen { border-radius: 30px; }
.phone-front { left: 18%; bottom: 0; width: 286px; height: 566px; transform: rotate(-2deg); z-index: 2; }
.phone-front::after { content: ''; position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 45%); pointer-events: none; }
.island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 999px; background: #000; z-index: 3; }

/* полоса доверия */
.facts { background: rgba(255, 255, 255, .75); border-top: 1px solid rgba(226, 232, 240, .8); border-bottom: 1px solid rgba(226, 232, 240, .8); padding: 20px 0; }
.facts-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-weight: 600; font-size: 15px; }
.facts-row span { display: inline-flex; align-items: center; gap: 8px; }
.facts-row .ic { color: var(--blue); width: 18px; height: 18px; }
.facts-row .sep { color: #CBD5E1; font-weight: 800; }

/* почему */
.why { padding: 88px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head.left { text-align: left; margin: 0; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 14px; }
.sec-head p { font-size: 17px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feat { background: var(--card); border: 1px solid rgba(226, 232, 240, .8); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.feat:hover { border-color: rgba(0, 112, 240, .3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tile { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: rgba(0, 112, 240, .1); color: var(--blue); align-items: center; justify-content: center; margin-bottom: 20px; }
.tile .ic { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--muted); }

/* экраны */
.shots { padding: 88px 0; background: rgba(241, 245, 249, .7); border-top: 1px solid rgba(226, 232, 240, .7); border-bottom: 1px solid rgba(226, 232, 240, .7); overflow: hidden; }
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hint); }
.strip { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px)) 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 250px; margin: 0; scroll-snap-align: start; text-align: center; }
.frame { border-radius: 36px; background: #0A0D14; padding: 8px; border: 4px solid rgba(30, 41, 59, .9); box-shadow: var(--shadow-lg); transition: transform .3s ease; }
.shot:hover .frame { transform: translateY(-6px); }
.frame img { width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 26px; background: #fff; }
figcaption { margin-top: 14px; font-size: 16px; font-weight: 700; }

/* магазины */
.download { padding: 72px 0 96px; }
.dark { position: relative; overflow: hidden; border-radius: 40px; background: var(--navy); color: #fff; padding: 56px; border: 1px solid #1E293B; box-shadow: 0 30px 70px -30px rgba(11, 18, 32, .6); display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.dark-glow { position: absolute; right: -80px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(0, 112, 240, .22); filter: blur(70px); pointer-events: none; }
.dark-copy { position: relative; max-width: 600px; }
.dark h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 14px; }
.dark p { font-size: 17px; color: #CBD5E1; margin-bottom: 30px; }
.dark .fine { margin: 20px 0 0; font-size: 13px; color: #94A3B8; }
.qr-big { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; padding: 24px; border-radius: 24px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.qr-big img { width: 144px; height: 144px; margin-bottom: 14px; }
.qr-big strong { font-size: 13px; }
.qr-big span { font-size: 12px; color: var(--muted); }

/* подвал */
.foot { background: #fff; border-top: 1px solid rgba(226, 232, 240, .9); padding: 40px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; font-size: 14px; }
.copy-note { color: var(--muted); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--blue); text-decoration: none; }

/* закреплённая кнопка на телефоне */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .2); transform: translateY(110%); transition: transform .3s ease; }
.sticky.on { transform: none; }
.sticky .store { width: 100%; justify-content: center; }

/* появление блоков */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark { flex-direction: column; align-items: flex-start; padding: 40px; }
  .qr-big { align-self: center; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-row { height: 60px; }
  .nav-link { font-size: 13px; }
  .hero { padding: 32px 0 0; }
  .badge { font-size: 11px; margin-bottom: 18px; }
  .lead { margin-bottom: 26px; }
  .store-row { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; min-height: 58px; }
  .qr-card { display: none; }
  .hero-art { height: 340px; max-width: none; margin: 12px -18px 0; overflow: hidden; }
  .phone-back { display: none; }
  .phone-front { left: 50%; top: 24px; bottom: auto; transform: translateX(-50%) rotate(0); width: 270px; height: 540px; }
  .facts { padding: 16px 0; }
  .facts-row { font-size: 14px; gap: 10px 16px; }
  .facts-row .sep { display: none; }
  .why, .shots { padding: 56px 0; }
  .sec-head { margin-bottom: 28px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .feat .tile { width: 44px; height: 44px; margin: 0; grid-row: 1 / 3; }
  .feat h3 { font-size: 17px; margin-bottom: 4px; }
  .feat p { font-size: 14px; }
  .shots-head { margin-bottom: 24px; }
  .strip { gap: 16px; padding: 8px 18px 16px; }
  .shot { width: 210px; }
  .download { padding: 40px 0 120px; }
  .dark { padding: 28px 22px; border-radius: 28px; gap: 24px; }
  .dark p { font-size: 15px; margin-bottom: 22px; }
  .dark-stores .store { width: 100%; }
  .foot { padding: 28px 0 120px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge .dot { animation: none; }
  .store, .feat, .frame, .sticky { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
}
