/* Работа ПМР — страница о приложении. Небо, облака, белая карточка, три iPhone со скриншотами. */
:root {
  --brand: #2763e6; --brand-2: #1e44b8; --text: #0f172a; --muted: #64748b; --line: rgba(15, 23, 42, .08);
  --card: #fff; --field: #f1f4fa;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; background: linear-gradient(180deg, #8fbcf3 0%, #b9d6fb 34%, #dcebff 70%, #eef5ff 100%); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Мягкие облака на фоне */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
.sky i:nth-child(1) { width: 900px; height: 360px; left: -260px; top: 30%; animation: drift 38s ease-in-out infinite alternate; }
.sky i:nth-child(2) { width: 760px; height: 320px; right: -220px; top: 52%; animation: drift 44s ease-in-out infinite alternate-reverse; }
.sky i:nth-child(3) { width: 620px; height: 240px; left: 30%; bottom: -60px; animation: drift 50s ease-in-out infinite alternate; }
.sky i:nth-child(4) { width: 520px; height: 200px; right: 10%; top: -60px; opacity: .7; animation: drift 46s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateX(80px); } }

.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 28px 20px 30px; }

/* ===== Белая карточка с главным экраном ===== */
.frame { background: var(--card); border-radius: 30px; padding: 18px 26px 0; box-shadow: 0 30px 80px rgba(30, 70, 140, .18), 0 0 0 1px rgba(255, 255, 255, .6);
  overflow: hidden; animation: rise .7s cubic-bezier(.2, .8, .3, 1) both; }
.nav { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.links { display: flex; gap: 22px; margin-left: 10px; flex: 1; }
.links a { color: #334155; font-size: 15px; font-weight: 500; transition: color .2s; }
.links a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600;
  background: linear-gradient(135deg, #3b7bff, var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(39, 99, 230, .28);
  transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(39, 99, 230, .34); }
.btn:active { transform: scale(.97); }
.btn.small { height: 38px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn .arr { font-size: 13px; }

.hero { text-align: center; padding: 46px 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; background: var(--field);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -1.2px; margin: 20px auto 16px; max-width: 900px; font-weight: 700; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 26px; }
.stores { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0b0b0f; color: #fff; padding: 9px 22px 9px 16px; border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 30px; height: 30px; stroke: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 20px; letter-spacing: -.3px; }
.store-note { font-size: 13px; color: var(--muted); }

/* ===== Три iPhone ===== */
.phones { position: relative; height: 470px; margin-top: 34px; display: flex; justify-content: center; align-items: flex-start; }
.phone { position: absolute; margin: 0; width: 230px; aspect-ratio: 1206 / 2622; border-radius: 40px; background: #0b0b0f; padding: 8px;
  box-shadow: 0 30px 60px rgba(15, 40, 90, .25), inset 0 0 0 1.5px #3a3a40; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; display: block; }
.island { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 72px; height: 21px; border-radius: 12px; background: #000; z-index: 2; }
.phone.center { z-index: 3; top: 0; animation: float 7s ease-in-out infinite; }
.phone.side { width: 206px; top: 52px; z-index: 2; filter: saturate(.95); }
.phone.left { transform: translateX(-215px) rotate(-6deg); animation: float-l 8s ease-in-out infinite; }
.phone.right { transform: translateX(215px) rotate(6deg); animation: float-r 8s ease-in-out infinite .6s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes float-l { 0%, 100% { transform: translateX(-215px) rotate(-6deg); } 50% { transform: translateX(-215px) translateY(-6px) rotate(-6deg); } }
@keyframes float-r { 0%, 100% { transform: translateX(215px) rotate(6deg); } 50% { transform: translateX(215px) translateY(-6px) rotate(6deg); } }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, #e3efff, rgba(227, 239, 255, 0)); z-index: 1; }
.cloud.c1 { width: 900px; height: 300px; bottom: -120px; left: 50%; transform: translateX(-50%); }
.cloud.c2 { width: 1100px; height: 260px; bottom: -170px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); z-index: 4; }

.facts { position: relative; z-index: 5; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; padding: 18px 0 24px; margin: 0 -26px;
  border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-size: 16px; margin-right: 4px; }

/* ===== Блоки ниже ===== */
.block { background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 28px; padding: 40px;
  margin-top: 22px; box-shadow: 0 20px 50px rgba(30, 70, 140, .1), 0 0 0 1px rgba(255, 255, 255, .7); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 6px; }
.eyebrow.light { color: #c7d2fe; }
.block h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.6px; margin: 0 0 24px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(25, 51, 115, .1); }
.card h3 { font-size: 17px; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); flex: none; }

.employers { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; color: #fff;
  background: linear-gradient(135deg, #6d5df0, #3b2a9e); box-shadow: 0 24px 60px rgba(59, 42, 158, .3); }
.employers h2 { color: #fff; }
.employers ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.employers li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; opacity: .95; }
.employers li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.btn.light { background: #fff; color: #3b2a9e; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.emp-badge { display: grid; gap: 12px; }
.emp-card { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 18px; }
.emp-card b { display: block; font-size: 17px; }
.emp-card small { opacity: .8; }
.emp-logo { width: 52px; height: 52px; border-radius: 15px; background: #fff; color: #5b4bdb; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.emp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.emp-stats span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 14px; font-size: 13px; opacity: .9; }
.emp-stats b { display: block; font-size: 24px; }

.support { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.support h2 { margin-bottom: 8px; }
.muted { color: var(--muted); margin: 0; }
.support-actions { display: grid; gap: 12px; }
.contact { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: transform .15s, box-shadow .2s; }
.contact:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25, 51, 115, .1); }
.contact span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact small { color: var(--muted); font-size: 13px; }
.contact b { overflow-wrap: anywhere; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 30px 6px 10px; color: #475569; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1; }
.footer nav a:hover { color: var(--brand); }
.footer p { margin: 0; width: 100%; color: #64748b; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ===== Планшет ===== */
@media (max-width: 980px) {
  .links { display: none; }
  .nav { justify-content: space-between; }
  .cards { grid-template-columns: 1fr 1fr; }
  .employers, .support { grid-template-columns: 1fr; }
}

/* ===== Телефон ===== */
@media (max-width: 640px) {
  .page { padding: 12px 10px 24px; }
  .frame { border-radius: 26px; padding: 12px 16px 0; }
  .brand b { font-size: 16px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: 30px; letter-spacing: -.8px; }
  .hero h1 br { display: none; }
  .lead { font-size: 16px; }
  .phones { height: 380px; margin-top: 28px; }
  .phone { width: 184px; border-radius: 32px; padding: 6px; }
  .phone img { border-radius: 27px; }
  .island { top: 13px; width: 56px; height: 17px; }
  .phone.side { width: 158px; top: 44px; }
  .phone.left { transform: translateX(-118px) rotate(-7deg); animation-name: float-l-m; }
  .phone.right { transform: translateX(118px) rotate(7deg); animation-name: float-r-m; }
  @keyframes float-l-m { 0%, 100% { transform: translateX(-118px) rotate(-7deg); } 50% { transform: translateX(-118px) translateY(-5px) rotate(-7deg); } }
  @keyframes float-r-m { 0%, 100% { transform: translateX(118px) rotate(7deg); } 50% { transform: translateX(118px) translateY(-5px) rotate(7deg); } }
  .facts { margin: 0 -16px; gap: 8px 18px; font-size: 13px; padding: 16px 12px 20px; }
  .block { padding: 26px 20px; border-radius: 24px; margin-top: 14px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .emp-stats b { font-size: 20px; }
  .footer { padding: 24px 8px 6px; }
}
/* ===== Во всю ширину на любом экране — без голубых полей по бокам ===== */
:root { --side: max(20px, calc((100vw - 1130px) / 2)); }
body { background: #fff; }
.sky { display: none; }
.page { max-width: none; padding: 0; }
.frame { border-radius: 0; box-shadow: none; padding: 18px var(--side) 0; animation: none;
  background: radial-gradient(1200px 520px at 50% 0%, #eaf2ff 0%, rgba(234, 242, 255, 0) 70%), #fff; }
.facts { margin: 0 calc(-1 * var(--side)); }
.block { border-radius: 0; margin: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: #fff; padding: 64px var(--side); border-top: 1px solid var(--line); }
#features { background: #f6f9ff; }
.employers { border-top: 0; background: linear-gradient(135deg, #6d5df0, #3b2a9e); }
.footer { padding: 28px var(--side) 18px; border-top: 1px solid var(--line); }
.cloud.c2 { background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); }

/* Телефон: три iPhone целиком помещаются на экране */
@media (max-width: 640px) {
  .frame { padding-top: calc(12px + env(safe-area-inset-top)); }
  .block { padding: 40px 20px; }
  .phones { height: calc(40vw * 2.174 * .8 + 30px); margin-top: 26px; }
  .phone { width: 40vw; border-radius: 7.5vw; padding: 1.6vw; }
  .phone img { border-radius: 6.2vw; }
  .island { top: 3.2vw; width: 13vw; height: 3.9vw; }
  .phone.side { width: 33vw; top: 9vw; }
  .phone.left { transform: translateX(-29vw) rotate(-6deg); animation-name: float-l-v; }
  .phone.right { transform: translateX(29vw) rotate(6deg); animation-name: float-r-v; }
  @keyframes float-l-v { 0%, 100% { transform: translateX(-29vw) rotate(-6deg); } 50% { transform: translateX(-29vw) translateY(-4px) rotate(-6deg); } }
  @keyframes float-r-v { 0%, 100% { transform: translateX(29vw) rotate(6deg); } 50% { transform: translateX(29vw) translateY(-4px) rotate(6deg); } }
  .cloud.c1 { width: 120vw; }
  .cloud.c2 { width: 140vw; bottom: -150px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
