/* SideScreen — светлый сайт: небесный первый экран, белые разделы, мягкие голубые карточки. */
:root {
  --bg: #ffffff; --bg2: #f5f7fc; --card: #ffffff; --text: #0e1220; --muted: #6b7386; --soft: #9aa2b4; --line: #e6e9f2;
  --accent: #2f6bff; --accent2: #1f55e0; --on-accent: #fff; --ok: #12924f; --err: #d0342c;
  --sky1: #2f74ff; --sky2: #6aa8ff; --sky3: #bcd8ff; --lav: #e8ebf7;
  --radius: 18px; --shadow: 0 20px 50px -20px rgba(22, 52, 130, .25);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- шапка ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background .25s, box-shadow .25s; }
header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
header.solid { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
header.solid .logo, .page header .logo { color: var(--text); }
nav { display: flex; gap: 22px; align-items: center; flex: 1; }
nav a { color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 500; }
header.solid nav a, .page nav a { color: var(--muted); }
nav a:hover { text-decoration: none; color: #fff; }
header.solid nav a:hover, .page nav a:hover { color: var(--text); }
.head-right { display: flex; gap: 10px; align-items: center; }
.lang-switch { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 999px;
               padding: 6px 12px; cursor: pointer; font: inherit; font-size: 13px; }
header.solid .lang-switch, .page .lang-switch { background: transparent; border-color: var(--line); color: var(--text); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px;
       font: inherit; font-weight: 600; font-size: 15px; line-height: 1.1; cursor: pointer; border: 1px solid var(--line);
       background: var(--card); color: var(--text); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #4a82ff, var(--accent)); color: #fff; border-color: transparent;
               box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -8px rgba(47, 107, 255, .7); }
.btn.primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 28px -8px rgba(47, 107, 255, .8); }
.btn.dark { background: #141824; color: #fff; border-color: #141824; box-shadow: 0 10px 24px -10px rgba(10, 14, 30, .6); }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.win-ico { width: 14px; height: 14px; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1.5px; }
.win-ico i { background: currentColor; border-radius: 1px; }

/* ---------- первый экран ---------- */
.hero { position: relative; padding: 130px 0 0; text-align: center; color: #fff; overflow: hidden;
        background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 38%, var(--sky3) 64%, #eef5ff 80%, #fff 100%); }
.hero .sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.01em;
           margin: 0 auto 18px; max-width: 900px; text-shadow: 0 2px 30px rgba(20, 50, 140, .25); position: relative; }
.hero h1 em { font-style: italic; }
.hero p.sub { font-size: 18px; max-width: 620px; margin: 0 auto 28px; color: rgba(255, 255, 255, .94); position: relative; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .note { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .85); position: relative; }
.hero .btn.ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(6px); }

/* сцена: монитор + планшет, окно переезжает на планшет */
.stage { position: relative; margin: 56px auto 0; max-width: 980px; height: 460px; }
.monitor { position: absolute; left: 3%; top: 0; width: 58%; aspect-ratio: 16 / 10; background: #10131c; border-radius: 16px; padding: 10px;
           box-shadow: 0 40px 80px -30px rgba(10, 30, 90, .55); }
.monitor::after { content: ""; position: absolute; left: 42%; width: 16%; bottom: -34px; height: 34px; background: linear-gradient(#cfd6e6, #aeb7cc);
                  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.tablet { position: absolute; right: 3%; top: 70px; width: 31%; aspect-ratio: 16 / 10; background: #10131c; border-radius: 18px; padding: 9px;
          box-shadow: 0 40px 80px -30px rgba(10, 30, 90, .55); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden;
          background: radial-gradient(120% 90% at 20% 10%, #8fb9ff 0%, #4a7cf0 45%, #2c4fb8 100%); }
.tablet .screen { border-radius: 10px; background: radial-gradient(120% 90% at 80% 10%, #8fb9ff 0%, #4a7cf0 45%, #2c4fb8 100%); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: rgba(240, 244, 255, .72); backdrop-filter: blur(6px);
           display: flex; justify-content: center; align-items: center; gap: 2.5%; }
.taskbar i { width: 3.2%; aspect-ratio: 1; border-radius: 3px; background: #fff; opacity: .9; }
.taskbar i:first-child { background: var(--accent); }
.w { position: absolute; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); overflow: hidden; text-align: left; }
.w .bar { height: 14%; min-height: 10px; background: #f1f3f9; display: flex; align-items: center; gap: 3px; padding: 0 6px; }
.w .bar b { width: 5px; height: 5px; border-radius: 50%; background: #d4d8e3; }
.w .ln { height: 5px; border-radius: 3px; background: #e7eaf2; margin: 7px 8px 0; }
.w .ln.s { width: 55%; } .w .ln.m { width: 75%; } .w .ln.blue { background: #cfe0ff; }
.w.doc { left: 6%; top: 8%; width: 52%; height: 70%; }
.w.chat { left: 63%; top: 14%; width: 31%; height: 56%; }
.w .msg-l, .w .msg-r { height: 12px; border-radius: 6px; margin: 7px 8px 0; }
.w .msg-l { background: #eef1f8; width: 62%; }
.w .msg-r { background: #cfe0ff; width: 58%; margin-left: auto; }
/* окно-путешественник: из монитора на планшет (смещение задаёт скрипт: --tx, --ty, --ts) */
.w.travel { left: 22%; top: 22%; width: 16%; height: 24%; animation: travel 7s cubic-bezier(.65, 0, .35, 1) infinite; z-index: 3; transform-origin: 0 0; }
.cursor { position: absolute; width: 18px; height: 18px; z-index: 6; animation: cursor 7s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes travel {
  0%, 18% { transform: translate(0, 0); opacity: 1; }
  52%, 82% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--ts, 1)); opacity: 1; }
  92% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--ts, 1)); opacity: 0; }
  93% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes cursor {
  0%, 18% { transform: translate(0, 0); opacity: 1; }
  52%, 82% { transform: translate(var(--tx, 0), var(--ty, 0)); opacity: 1; }
  92% { transform: translate(var(--tx, 0), var(--ty, 0)); opacity: 0; }
  93% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
        background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: var(--text); font-size: 13px; font-weight: 600;
        box-shadow: 0 14px 30px -12px rgba(15, 40, 110, .45); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.chip.c1 { left: 0; top: 66%; } .chip.c2 { right: 2%; top: 2%; }

/* ---------- разделы ---------- */
section { padding: 100px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0 0 14px; }
h2 .g { color: var(--soft); }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 44px; max-width: 640px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.card.blue { background: linear-gradient(160deg, #5b93ff, #2f6bff); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.card.blue p { color: rgba(255, 255, 255, .88); }
.card.soft { background: linear-gradient(180deg, #f7f9ff, #eef2fc); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf0ff; color: var(--accent);
          font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.card.blue .step-n { background: rgba(255, 255, 255, .22); color: #fff; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eaf0ff; color: var(--accent); margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }

/* цифры */
.stats { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.shot { border-radius: 22px; background: linear-gradient(180deg, #eef3ff, #e3e9fa); padding: 28px; box-shadow: var(--shadow); }
.shot img { border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(15, 30, 80, .35); max-height: 520px; width: auto; margin: 0 auto;
            object-fit: cover; object-position: top; }
.stat { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stat:last-child { border-bottom: 0; }
.stat .num { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.stat .num small { font-size: 18px; color: var(--muted); margin-left: 2px; }
.stat h3 { margin: 0 0 4px; font-size: 20px; font-weight: 550; }
.stat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; text-align: left; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 20px; margin: 0; }
.plan .price { font-size: 38px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 0; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%;
                   background: #eaf0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f6bff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan .choose { margin-top: 24px; width: 100%; }
.plan.max { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
               padding: 4px 10px; border-radius: 999px; }
.plan .invoice { margin-top: 12px; font-size: 14px; text-align: center; }
.trial-pill { display: inline-flex; gap: 8px; align-items: center; background: #eaf0ff; color: var(--accent2); font-weight: 600; font-size: 14px;
              padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }

/* покупка */
.buy { max-width: 620px; margin: 0 auto; }
.buy .card { padding: 30px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 8px; }
.buy .card > label:first-child { margin-top: 0; }
input[type=email], input[type=text] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
       color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px;
             padding: 10px 14px; cursor: pointer; background: #fff; font-size: 15px; }
.seg label:has(input:checked) { border-color: var(--accent); background: #f3f7ff; }
.seg input { accent-color: var(--accent); margin: 0; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.pay:has(> .btn:only-child) { grid-template-columns: 1fr; }
.pay .btn { flex-direction: column; padding: 15px; gap: 4px; }
.pay .btn small { font-weight: 400; font-size: 12.5px; opacity: .85; }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.msg { margin-top: 12px; min-height: 1.5em; font-size: 15px; }
.msg.err { color: var(--err); }

/* скачать */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl .card { display: flex; flex-direction: column; gap: 12px; }
.dl .card .btn { align-self: flex-start; margin-top: auto; }
.dl .card p { margin-bottom: 8px; }

/* вопросы */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 17px; font-weight: 550; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: 6px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
                      transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 700px; }

/* финальный призыв */
.final { background: linear-gradient(180deg, #fff 0%, var(--lav) 30%, #e3e7f5 100%); padding: 110px 0 60px; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 560px; }
.final .cta-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.keys { position: absolute; right: 8%; top: 70px; width: 300px; height: 260px; pointer-events: none; }
.key { position: absolute; width: 104px; height: 104px; border-radius: 26px; display: grid; place-items: center; color: #a9b4d6;
       background: linear-gradient(145deg, #ffffff, #e2e7f6); box-shadow: 0 24px 40px -16px rgba(60, 80, 150, .45), inset 0 1px 0 #fff, inset 0 -6px 12px rgba(150, 165, 210, .25);
       animation: bob 6s ease-in-out infinite; }
.key svg { width: 42px; height: 42px; }
.key.k1 { left: 150px; top: 0; rotate: 10deg; }
.key.k2 { left: 30px; top: 120px; rotate: -12deg; animation-delay: -3s; color: #6f97ff; background: linear-gradient(145deg, #f4f7ff, #cfdcff); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* подвал */
footer { background: #e3e7f5; padding: 30px 0 34px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-top: 40px; border-top: 1px solid #d5dbec; }
.foot h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; font-weight: 600; }
.foot a { display: block; color: var(--muted); padding: 3px 0; }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot .logo { color: var(--text); margin-bottom: 12px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 50px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .7); border: 1px solid #d5dbec; border-radius: 999px;
          padding: 5px 12px; font-size: 12.5px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }
.status.up i { background: #22c55e; } .status.down i { background: var(--err); }

/* плавающая кнопка */
.float-dl { position: fixed; right: 22px; bottom: 22px; z-index: 15; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.float-dl.show { opacity: 1; transform: none; pointer-events: auto; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .w.travel, .cursor, .key { animation: none; }
}

/* вспомогательные страницы (оплата, оферта) */
.page header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.page main { padding-top: 64px; }
.doc { max-width: 760px; padding: 50px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: 34px; letter-spacing: -.02em; }
.keybox { font: 600 24px/1.2 Consolas, "Cascadia Mono", monospace; letter-spacing: .04em; padding: 18px 20px; border-radius: 14px;
          background: var(--bg2); border: 1px dashed var(--accent); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 900px) {
  nav a { display: none; }
  .grid3, .grid2, .plans, .dl, .stats, .foot { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .stage { height: 300px; margin-top: 40px; }
  .chip { display: none; }
  .keys { display: none; }
  section { padding: 70px 0; }
  .stat { grid-template-columns: 110px 1fr; }
  .stat .num { font-size: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 104px; }
  .hero p.sub { font-size: 16px; }
  .stage { height: 210px; }
  .head-right .btn { display: none; }
  .pay { grid-template-columns: 1fr; }
}
