/* /app и /pwa — UI в стиле основного сайта В-Крыму */
html.standalone-page,
html.standalone-page body {
  background: #f8fafc !important;
  color: #0f172a;
}
html.dark.standalone-page,
html.dark.standalone-page body {
  background: #0a0a0a !important;
  color: #f5f5f5;
}
.app-site-page {
  min-height: 100svh;
  padding: 16px 12px 40px;
  background:
    radial-gradient(700px 360px at 8% 0%, rgba(56,189,248,.12), transparent 68%),
    radial-gradient(680px 340px at 94% 18%, rgba(96,165,250,.10), transparent 66%),
    transparent;
}
.dark .app-site-page {
  background:
    radial-gradient(700px 360px at 8% 0%, rgba(14,165,233,.09), transparent 68%),
    radial-gradient(680px 340px at 94% 18%, rgba(59,130,246,.07), transparent 66%),
    transparent;
}
.app-site-page *, .app-site-page *::before, .app-site-page *::after { box-sizing: border-box; }
.app-site-page a { text-decoration: none; }
.app-site-container { width: min(1160px, 100%); margin: 0 auto; }
.app-site-container-narrow { width: min(940px, 100%); }
.app-site-header {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  min-height:64px; padding:9px 12px;
  border:1px solid #e2e8f0; border-radius:22px;
  background:rgba(255,255,255,.82); box-shadow:0 10px 30px rgba(15,23,42,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dark .app-site-header { border-color:#262626; background:rgba(23,23,23,.72); box-shadow:0 10px 30px rgba(0,0,0,.24); }
.app-site-brand { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.app-site-logo, .app-site-pwa-logo, .app-site-phone-logo, .app-site-add-logo {
  display:grid; place-items:center; overflow:hidden; flex:0 0 auto;
  background:#1687ff; box-shadow:0 8px 20px rgba(2,132,199,.22);
}
.app-site-logo { width:44px; height:44px; border-radius:14px; }
.app-site-logo svg, .app-site-pwa-logo svg, .app-site-phone-logo svg, .app-site-add-logo svg { display:block; width:100%; height:100%; }
.app-site-brand-text b { display:block; color:#0f172a; font-size:15px; line-height:1.1; font-weight:900; letter-spacing:-.02em; }
.app-site-brand-text small { display:block; margin-top:4px; color:#64748b; font-size:11px; font-weight:700; }
.dark .app-site-brand-text b { color:#fafafa; }
.dark .app-site-brand-text small { color:#a3a3a3; }
.app-site-back {
  display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 13px;
  border:1px solid #e2e8f0; border-radius:14px; background:#fff;
  color:#334155; font-size:12px; font-weight:850; transition:.18s ease;
}
.app-site-back svg { width:16px; height:16px; }
.app-site-back:hover { background:#f1f5f9; transform:translateY(-1px); }
.dark .app-site-back { border-color:#2f2f2f; background:#171717; color:#e5e5e5; }
.dark .app-site-back:hover { background:#262626; }
.app-site-hero {
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.75fr); align-items:center; gap:34px;
  margin-top:16px; padding:34px;
  border:1px solid #e2e8f0; border-radius:28px; overflow:hidden;
  background:rgba(255,255,255,.88); box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.dark .app-site-hero { border-color:#262626; background:rgba(23,23,23,.68); box-shadow:0 10px 30px rgba(0,0,0,.24); }
.app-site-badge {
  display:inline-flex; align-items:center; gap:8px; min-height:30px; padding:0 11px;
  border:1px solid #e2e8f0; border-radius:999px; background:rgba(255,255,255,.72);
  color:#334155; font-size:11px; font-weight:850;
}
.dark .app-site-badge { border-color:#333; background:rgba(10,10,10,.36); color:#d4d4d4; }
.app-site-badge span { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.app-site-hero h1, .app-site-pwa-hero h1 {
  margin:15px 0 0; color:#0f172a; font-size:clamp(36px,5.5vw,66px); line-height:1; font-weight:950; letter-spacing:-.06em;
}
.dark .app-site-hero h1, .dark .app-site-pwa-hero h1 { color:#fafafa; }
.app-site-hero h1 em, .app-site-pwa-hero h1 em { color:#0284c7; font-style:normal; }
.dark .app-site-hero h1 em, .dark .app-site-pwa-hero h1 em { color:#38bdf8; }
.app-site-hero-copy > p, .app-site-pwa-hero p {
  margin:17px 0 0; max-width:680px; color:#64748b; font-size:15px; line-height:1.65; font-weight:600;
}
.dark .app-site-hero-copy > p, .dark .app-site-pwa-hero p { color:#a3a3a3; }
.app-site-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.app-site-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 17px;
  border-radius:16px; font-size:13px; font-weight:900; transition:transform .18s ease, background .18s ease, filter .18s ease;
}
.app-site-btn svg { width:18px; height:18px; }
.app-site-btn:hover { transform:translateY(-1px); }
.app-site-btn-primary { background:#0284c7; color:#fff; box-shadow:0 10px 24px rgba(2,132,199,.22); }
.app-site-btn-primary:hover { background:#0369a1; }
.app-site-btn-secondary { border:1px solid #e2e8f0; background:#fff; color:#0f172a; }
.app-site-btn-secondary:hover { background:#f1f5f9; }
.dark .app-site-btn-secondary { border-color:#333; background:#171717; color:#fafafa; }
.dark .app-site-btn-secondary:hover { background:#262626; }
.app-site-btn-dark { background:#0f172a; color:#fff; }
.app-site-btn-dark:hover { background:#020617; }
.dark .app-site-btn-dark { background:#fff; color:#171717; }
.dark .app-site-btn-dark:hover { background:#e5e5e5; }
.app-site-btn-full { width:100%; margin-top:20px; }
.app-site-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.app-site-tags span {
  display:inline-flex; align-items:center; min-height:34px; padding:0 11px;
  border:1px solid #e2e8f0; border-radius:13px; background:#f8fafc; color:#475569; font-size:11px; font-weight:800;
}
.dark .app-site-tags span { border-color:#2f2f2f; background:#171717; color:#d4d4d4; }
.app-site-phone-wrap { position:relative; display:grid; place-items:center; min-height:390px; }
.app-site-phone-shadow { position:absolute; width:230px; height:80px; bottom:12px; border-radius:50%; background:rgba(15,23,42,.18); filter:blur(22px); }
.dark .app-site-phone-shadow { background:rgba(0,0,0,.55); }
.app-site-phone {
  position:relative; width:215px; height:410px; padding:8px; border-radius:43px;
  border:1px solid rgba(15,23,42,.28); background:linear-gradient(145deg,#334155,#0f172a);
  box-shadow:0 28px 55px rgba(15,23,42,.28); animation:appSiteFloat 5.5s ease-in-out infinite;
}
.dark .app-site-phone { border-color:#404040; box-shadow:0 28px 55px rgba(0,0,0,.55); }
.app-site-phone-screen { position:relative; height:100%; padding:38px 12px 60px; border-radius:35px; overflow:hidden; background:#f8fafc; }
.dark .app-site-phone-screen { background:#101010; }
.app-site-phone-screen::before { content:''; position:absolute; top:10px; left:50%; width:72px; height:21px; transform:translateX(-50%); border-radius:999px; background:#020617; }
.app-site-phone-top { display:flex; align-items:center; gap:8px; }
.app-site-phone-logo { width:32px; height:32px; border-radius:10px; }
.app-site-phone-top div { min-width:0; flex:1; }
.app-site-phone-top b { display:block; color:#0f172a; font-size:10px; font-weight:900; }
.app-site-phone-top small { display:block; margin-top:3px; color:#94a3b8; font-size:7px; font-weight:700; }
.dark .app-site-phone-top b { color:#fafafa; }
.app-site-phone-top > i { width:22px; height:22px; border-radius:8px; background:#e2e8f0; }
.dark .app-site-phone-top > i { background:#262626; }
.app-site-phone-banner { margin-top:14px; padding:13px; border-radius:18px; background:linear-gradient(135deg,#0284c7,#2563eb); color:#fff; box-shadow:0 12px 24px rgba(2,132,199,.20); }
.app-site-phone-banner small { display:block; font-size:7px; font-weight:800; opacity:.72; }
.app-site-phone-banner b { display:block; margin-top:5px; font-size:12px; line-height:1.2; font-weight:900; }
.app-site-phone-banner span { display:block; margin-top:5px; font-size:7px; line-height:1.45; opacity:.78; }
.app-site-phone-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:9px; }
.app-site-phone-grid > div { min-height:74px; padding:10px; border:1px solid #e2e8f0; border-radius:16px; background:#fff; }
.dark .app-site-phone-grid > div { border-color:#2f2f2f; background:#171717; }
.app-site-phone-grid i { display:grid; place-items:center; width:26px; height:26px; border-radius:9px; background:#f0f9ff; font-style:normal; font-size:12px; }
.dark .app-site-phone-grid i { background:#0c4a6e; }
.app-site-phone-grid b { display:block; margin-top:8px; color:#0f172a; font-size:8px; font-weight:900; }
.app-site-phone-grid span { display:block; margin-top:2px; color:#94a3b8; font-size:6px; font-weight:700; }
.dark .app-site-phone-grid b { color:#fafafa; }
.app-site-phone-nav { position:absolute; left:12px; right:12px; bottom:12px; display:flex; justify-content:space-around; padding:9px; border:1px solid #e2e8f0; border-radius:15px; background:rgba(255,255,255,.92); }
.dark .app-site-phone-nav { border-color:#2f2f2f; background:rgba(23,23,23,.92); }
.app-site-phone-nav i { width:16px; height:16px; border-radius:6px; background:#cbd5e1; }
.app-site-phone-nav i:first-child { background:#0284c7; }
.dark .app-site-phone-nav i { background:#404040; }
.dark .app-site-phone-nav i:first-child { background:#38bdf8; }
.app-site-section { margin-top:16px; padding:28px; border:1px solid #e2e8f0; border-radius:28px; background:rgba(255,255,255,.88); box-shadow:0 10px 30px rgba(15,23,42,.06); }
.dark .app-site-section { border-color:#262626; background:rgba(23,23,23,.68); box-shadow:0 10px 30px rgba(0,0,0,.24); }
.app-site-section-head small { color:#0284c7; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.dark .app-site-section-head small { color:#38bdf8; }
.app-site-section-head h2 { margin:6px 0 0; color:#0f172a; font-size:clamp(24px,4vw,35px); line-height:1.1; font-weight:950; letter-spacing:-.045em; }
.dark .app-site-section-head h2 { color:#fafafa; }
.app-site-platforms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }
.app-site-platform { position:relative; padding:22px; border:1px solid #e2e8f0; border-radius:24px; background:#f8fafc; }
.dark .app-site-platform { border-color:#2f2f2f; background:#171717; }
.app-site-platform[data-recommended='1'] { border-color:#38bdf8; box-shadow:0 0 0 1px rgba(56,189,248,.12); }
.app-site-recommended { display:none; position:absolute; top:16px; right:16px; min-height:27px; align-items:center; padding:0 9px; border-radius:999px; background:#e0f2fe; color:#0369a1; font-size:9px; font-weight:900; }
.app-site-platform[data-recommended='1'] .app-site-recommended { display:inline-flex; }
.dark .app-site-recommended { background:#0c4a6e; color:#bae6fd; }
.app-site-platform-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:17px; }
.app-site-platform-icon svg { width:28px; height:28px; }
.app-site-platform-android { background:#dcfce7; color:#16a34a; }
.app-site-platform-ios { background:#e2e8f0; color:#0f172a; }
.dark .app-site-platform-android { background:rgba(22,163,74,.16); color:#4ade80; }
.dark .app-site-platform-ios { background:#262626; color:#fafafa; }
.app-site-platform h3 { margin:17px 0 0; color:#0f172a; font-size:23px; font-weight:950; letter-spacing:-.035em; }
.dark .app-site-platform h3 { color:#fafafa; }
.app-site-platform > p { margin:7px 0 0; color:#64748b; font-size:13px; line-height:1.55; font-weight:650; }
.dark .app-site-platform > p { color:#a3a3a3; }
.app-site-platform ul { list-style:none; margin:15px 0 0; padding:0; display:grid; gap:8px; }
.app-site-platform li { position:relative; padding-left:21px; color:#475569; font-size:11px; line-height:1.45; font-weight:750; }
.dark .app-site-platform li { color:#d4d4d4; }
.app-site-platform li::before { content:'✓'; position:absolute; left:0; top:0; color:#0284c7; font-weight:950; }
.dark .app-site-platform li::before { color:#38bdf8; }
.app-site-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.app-site-features article { display:flex; align-items:flex-start; gap:12px; padding:18px; border:1px solid #e2e8f0; border-radius:22px; background:rgba(255,255,255,.82); box-shadow:0 10px 30px rgba(15,23,42,.05); }
.dark .app-site-features article { border-color:#262626; background:rgba(23,23,23,.66); box-shadow:0 10px 30px rgba(0,0,0,.20); }
.app-site-features article > span { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:12px; background:#e0f2fe; color:#0284c7; font-weight:950; }
.dark .app-site-features article > span { background:#0c4a6e; color:#7dd3fc; }
.app-site-features b { display:block; color:#0f172a; font-size:13px; font-weight:900; }
.dark .app-site-features b { color:#fafafa; }
.app-site-features p { margin:5px 0 0; color:#64748b; font-size:11px; line-height:1.5; font-weight:650; }
.dark .app-site-features p { color:#a3a3a3; }
/* PWA */
.app-site-pwa-hero { display:grid; grid-template-columns:100px minmax(0,1fr); align-items:center; gap:22px; margin-top:16px; padding:30px; border:1px solid #e2e8f0; border-radius:28px; background:rgba(255,255,255,.88); box-shadow:0 10px 30px rgba(15,23,42,.06); }
.dark .app-site-pwa-hero { border-color:#262626; background:rgba(23,23,23,.68); box-shadow:0 10px 30px rgba(0,0,0,.24); }
.app-site-pwa-logo { width:100px; height:100px; border-radius:28px; }
.app-site-pwa-hero h1 { font-size:clamp(34px,5vw,58px); }
.app-site-installed { display:none; align-items:center; gap:7px; width:fit-content; margin-top:14px; padding:8px 11px; border:1px solid #bbf7d0; border-radius:12px; background:#f0fdf4; color:#15803d; font-size:10px; font-weight:850; }
.app-site-installed svg { width:15px; height:15px; }
.app-site-installed.is-visible { display:inline-flex; }
.dark .app-site-installed { border-color:#14532d; background:rgba(22,101,52,.20); color:#86efac; }
.app-site-notice { display:none; margin-top:14px; padding:14px 16px; border:1px solid #fed7aa; border-radius:16px; background:#fff7ed; color:#9a3412; font-size:12px; line-height:1.55; font-weight:700; }
.app-site-notice.is-visible { display:block; }
.app-site-notice a { color:inherit; text-decoration:underline; font-weight:900; }
.dark .app-site-notice { border-color:#7c2d12; background:rgba(124,45,18,.18); color:#fdba74; }
.app-site-steps { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:12px; }
.app-site-step { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; align-items:start; }
.app-site-step-number { display:grid; place-items:center; width:42px; height:42px; margin-top:18px; border-radius:14px; background:#0284c7; color:#fff; font-size:14px; font-weight:950; box-shadow:0 8px 20px rgba(2,132,199,.22); }
.app-site-step-card { padding:20px; border:1px solid #e2e8f0; border-radius:24px; background:rgba(255,255,255,.88); box-shadow:0 10px 30px rgba(15,23,42,.05); }
.dark .app-site-step-card { border-color:#262626; background:rgba(23,23,23,.68); box-shadow:0 10px 30px rgba(0,0,0,.20); }
.app-site-step-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.app-site-step-title h2 { margin:0; color:#0f172a; font-size:19px; line-height:1.25; font-weight:950; letter-spacing:-.025em; }
.dark .app-site-step-title h2 { color:#fafafa; }
.app-site-step-title > span { flex:0 0 auto; padding:6px 9px; border-radius:10px; background:#f1f5f9; color:#64748b; font-size:9px; font-weight:850; }
.dark .app-site-step-title > span { background:#262626; color:#a3a3a3; }
.app-site-step-card > p { margin:7px 0 0; color:#64748b; font-size:12px; line-height:1.55; font-weight:650; }
.dark .app-site-step-card > p { color:#a3a3a3; }
.app-site-demo { margin-top:14px; max-width:560px; border:1px solid #e2e8f0; border-radius:18px; background:#f8fafc; }
.dark .app-site-demo { border-color:#2f2f2f; background:#101010; }
.app-site-address-demo { padding:11px; }
.app-site-address { display:flex; align-items:center; gap:8px; min-height:40px; padding:0 12px; border:1px solid #e2e8f0; border-radius:12px; background:#fff; color:#475569; font-size:10px; font-weight:750; }
.dark .app-site-address { border-color:#2f2f2f; background:#171717; color:#d4d4d4; }
.app-site-address svg { width:15px; height:15px; color:#0284c7; }
.app-site-copy { display:inline-flex; align-items:center; gap:7px; min-height:38px; margin-top:9px; padding:0 12px; border:0; border-radius:12px; background:#e0f2fe; color:#0369a1; font-size:10px; font-weight:900; cursor:pointer; }
.app-site-copy svg { width:15px; height:15px; }
.dark .app-site-copy { background:#0c4a6e; color:#bae6fd; }
.app-site-safari-bar { display:grid; grid-template-columns:repeat(5,1fr); padding:12px 16px; }
.app-site-safari-bar i { display:grid; place-items:center; color:#94a3b8; }
.app-site-safari-bar svg { width:21px; height:21px; }
.app-site-safari-bar i.is-active { width:42px; height:42px; justify-self:center; border-radius:13px; background:#e0f2fe; color:#0284c7; animation:appSitePulse 2.4s ease-in-out infinite; }
.dark .app-site-safari-bar i.is-active { background:#0c4a6e; color:#7dd3fc; }
.app-site-menu-demo { padding:8px; }
.app-site-menu-demo > div { display:grid; grid-template-columns:26px minmax(0,1fr) 12px; align-items:center; gap:8px; min-height:48px; padding:0 11px; border-radius:12px; color:#475569; font-size:11px; }
.app-site-menu-demo > div + div { border-top:1px solid #e2e8f0; }
.app-site-menu-demo > div.is-active { background:#e0f2fe; color:#0369a1; }
.app-site-menu-demo b { font-weight:800; }
.dark .app-site-menu-demo > div { color:#d4d4d4; }
.dark .app-site-menu-demo > div + div { border-color:#2f2f2f; }
.dark .app-site-menu-demo > div.is-active { background:#0c4a6e; color:#bae6fd; }
.app-site-add-demo { display:flex; align-items:center; gap:12px; padding:12px; }
.app-site-add-logo { width:52px; height:52px; border-radius:16px; }
.app-site-add-demo > div { min-width:0; flex:1; }
.app-site-add-demo b { display:block; color:#0f172a; font-size:12px; font-weight:900; }
.app-site-add-demo small { display:block; margin-top:4px; color:#94a3b8; font-size:9px; font-weight:700; }
.dark .app-site-add-demo b { color:#fafafa; }
.app-site-add-demo > i { padding:8px 10px; border-radius:10px; background:#0284c7; color:#fff; font-size:9px; font-style:normal; font-weight:900; }
.app-site-done { display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:20px; border:1px solid #bae6fd; border-radius:22px; background:#f0f9ff; }
.dark .app-site-done { border-color:#0c4a6e; background:rgba(12,74,110,.18); }
.app-site-done-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 auto; border-radius:13px; background:#0284c7; color:#fff; font-weight:950; }
.app-site-done b { display:block; color:#0f172a; font-size:14px; font-weight:900; }
.app-site-done p { margin:5px 0 0; color:#64748b; font-size:11px; line-height:1.5; font-weight:650; }
.dark .app-site-done b { color:#fafafa; }
.dark .app-site-done p { color:#a3a3a3; }
.app-site-reveal { opacity:0; transform:translateY(12px); animation:appSiteReveal .55s ease forwards; }
.app-site-delay-1 { animation-delay:.08s; }
.app-site-delay-2 { animation-delay:.15s; }
.app-site-delay-3 { animation-delay:.22s; }
@keyframes appSiteReveal { to { opacity:1; transform:none; } }
@keyframes appSiteFloat { 0%,100% { transform:translateY(0) rotate(4deg); } 50% { transform:translateY(-6px) rotate(3deg); } }
@keyframes appSitePulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }
@media (max-width:900px) {
  .app-site-hero { grid-template-columns:1fr; }
  .app-site-phone-wrap { min-height:350px; }
  .app-site-platforms { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .app-site-page { padding:10px 8px 28px; }
  .app-site-header { min-height:58px; padding:7px 9px; border-radius:18px; }
  .app-site-logo { width:40px; height:40px; border-radius:13px; }
  .app-site-brand-text small { display:none; }
  .app-site-hero, .app-site-section, .app-site-pwa-hero { padding:20px; border-radius:24px; }
  .app-site-hero h1, .app-site-pwa-hero h1 { font-size:39px; }
  .app-site-actions { flex-direction:column; }
  .app-site-btn { width:100%; }
  .app-site-tags span { width:calc(50% - 4px); justify-content:center; }
  .app-site-phone-wrap { min-height:330px; }
  .app-site-phone { width:178px; height:340px; border-radius:36px; }
  .app-site-phone-screen { border-radius:29px; padding:36px 10px 54px; }
  .app-site-phone-grid > div { min-height:62px; padding:8px; }
  .app-site-features { grid-template-columns:1fr; }
  .app-site-pwa-hero { grid-template-columns:72px minmax(0,1fr); gap:15px; }
  .app-site-pwa-logo { width:72px; height:72px; border-radius:21px; }
  .app-site-pwa-hero h1 { font-size:32px; }
  .app-site-step { grid-template-columns:36px minmax(0,1fr); gap:9px; }
  .app-site-step-number { width:34px; height:34px; margin-top:15px; border-radius:11px; font-size:12px; }
  .app-site-step-card { padding:16px; border-radius:20px; }
  .app-site-step-title { display:block; }
  .app-site-step-title > span { display:inline-flex; margin-top:8px; }
}
@media (max-width:430px) {
  .app-site-back { padding:0 10px; }
  .app-site-back svg { display:none; }
  .app-site-hero h1 { font-size:35px; }
  .app-site-tags span { width:100%; }
  .app-site-pwa-hero { grid-template-columns:1fr; text-align:center; }
  .app-site-pwa-logo { margin:0 auto; }
  .app-site-installed { margin-left:auto; margin-right:auto; }
}
@media (prefers-reduced-motion: reduce) {
  .app-site-reveal, .app-site-phone, .app-site-safari-bar i.is-active { animation:none !important; opacity:1; transform:none; }
}
