*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Шрифт Rubik лежит рядом: тот же, что в вебаппе приложения */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/rubik-latin.woff2) format("woff2"); 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; }

/* Цвета приложения: webapp/assets/generated/theme.css */
:root {
    --primary: #D84315;
    --on-primary: #fff;
    --secondary: #1565C0;
    --success: #2E7D32;
    --warning: #F9A825;
    --radius: 22px;
    --radius-sm: 14px;
}
[data-theme="light"] {
    --bg: #F3F3F4;
    --bg-alt: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F0F0F2;
    --text: #17181A;
    --muted: #6A6C71;
    --outline: #E3E3E6;
    --nav-bg: rgba(243, 243, 244, 0.86);
    --phone-body: #17181A;
    --accent: #D84315;
    --link: #1565C0;
    --shadow: 0 30px 70px -20px rgba(216, 67, 21, 0.28), 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] {
    --bg: #12161C;
    --bg-alt: #171C23;
    --surface: #1C222A;
    --surface-2: #262D37;
    --text: #EEF1F5;
    --muted: #9AA4B2;
    --outline: #2A313B;
    --nav-bg: rgba(18, 22, 28, 0.86);
    --phone-body: #05070A;
    --accent: #F0592A;
    --link: #5B9BEA;
    --shadow: 0 30px 70px -20px rgba(240, 89, 42, 0.32), 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.55;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
    transition: background .3s, color .3s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.15; text-align: center; margin-bottom: 12px; text-wrap: balance; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; font-size: 1.05rem; text-wrap: balance; }

/* Появление при прокрутке; без скрипта блоки видны сразу */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===== Навигация ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--outline); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--outline); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-cta { background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 500; font-size: .9rem; padding: 9px 18px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(216, 67, 21, .4); }

/* ===== Герой ===== */
.hero { position: relative; padding: 132px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 780px; height: 780px; right: -220px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 67, 21, .16), transparent 68%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline); font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.hero-badge svg { width: 14px; height: 14px; color: var(--accent); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 20px; text-wrap: balance; }
.hero h1 span { color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--muted); max-width: 500px; margin-bottom: 32px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--outline); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn-store:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.btn-store svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-store small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.btn-store strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.btn-store.main { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-store.main small { color: rgba(255, 255, 255, .8); }
.hero-mockup { position: relative; display: flex; justify-content: center; }
.hero-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--card-shadow); font-size: .85rem; font-weight: 500; animation: bob 5s ease-in-out infinite; }
.hero-float svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.hero-float.f1 { top: 28%; right: -14px; }
.hero-float.f2 { top: 66%; left: -6px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

/* ===== Телефон ===== */
.phone { --pw: 280px; --ar: 9 / 16; width: var(--pw); aspect-ratio: var(--ar); padding: 8px; border-radius: 38px; background: var(--phone-body); box-shadow: var(--shadow); position: relative; flex-shrink: 0; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #000; z-index: 3; }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--surface-2); position: relative; }
.screen > img, .screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===== Как это работает ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px 24px 24px; counter-increment: s; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 600; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* ===== Демо ===== */
.demo { max-width: 640px; margin: 0 auto; }
.demo-phones { display: flex; justify-content: center; gap: 28px; }
.demo-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; flex: 0 1 280px; }
.demo-label { font-size: .88rem; font-weight: 500; padding: 5px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); transition: background .4s, color .4s; }
.demo-col.on .demo-label { background: var(--primary); color: var(--on-primary); }
.demo .phone { --pw: 100%; --ar: 390 / 844; border-radius: 34px; padding: 7px; transition: opacity .5s, transform .5s; }
.demo .screen { border-radius: 27px; }
.demo .screen > * { transition: filter .5s; }
.demo-col:not(.on) .phone { opacity: .62; transform: scale(.97); }
.demo-col:not(.on) .screen > video, .demo-col:not(.on) .screen > img { filter: saturate(.55) brightness(.88); }
.banner { position: absolute; left: 8px; right: 8px; top: 22px; z-index: 4; display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #17181A; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transform: translateY(-140%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.banner.show { transform: none; opacity: 1; }
.banner.tap { box-shadow: 0 0 0 3px rgba(216, 67, 21, .55), 0 8px 24px rgba(0, 0, 0, .28); }
.banner img { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.banner b { display: block; font-size: .72rem; line-height: 1.25; }
.banner span { display: block; font-size: .64rem; color: #5A5C61; line-height: 1.3; }
/* Экран помощника выключен, пока не придёт уведомление: .wake – экран блокировки с часами, .open – приложение открыто. */
.lock { position: absolute; inset: 0; z-index: 4; background: #000; transition: opacity .35s; }
.lock.open { opacity: 0; pointer-events: none; }
.lock-on { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; container-type: inline-size; color: #fff; text-align: center; background: radial-gradient(120% 80% at 30% 8%, #30405E 0%, #161D2A 55%, #0B0E14 100%); }
.lock.wake .lock-on { opacity: 1; }
.lock-date { margin-top: 19cqw; font-size: 5cqw; font-weight: 500; color: rgba(255, 255, 255, .8); }
.lock-time { font-size: 25cqw; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.lock .banner { top: 72cqw; transform: translateY(12px); }
.lock .banner.show { transform: none; }
.lock-hint { position: absolute; left: 0; right: 0; bottom: 6cqw; font-size: 3.8cqw; color: rgba(255, 255, 255, .6); }
.demo-caption { text-align: center; margin-top: 28px; min-height: 76px; }
.demo-caption p { font-size: 1.05rem; font-weight: 500; text-wrap: balance; }
.demo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.demo-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--outline); cursor: default; transition: background .3s, transform .3s; }
.demo-dots button.on { background: var(--primary); transform: scale(1.3); }
.demo.static .demo-dots button { cursor: pointer; }

/* ===== Возможности ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--accent); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--muted); }

/* ===== Где открыть ===== */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.platform { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px 18px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.platform:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.platform .pi { width: 40px; height: 40px; }
.platform h3 { font-size: 1.05rem; font-weight: 600; }
.platform p { font-size: .86rem; color: var(--muted); flex: 1; }
.platform .tag { align-self: flex-start; font-size: .72rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.platform .go { font-size: .8rem; font-weight: 500; color: var(--link); overflow-wrap: anywhere; text-decoration: none; }

/* ===== Скриншоты ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; justify-items: center; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 240px; }
.shot .phone { --pw: 100%; border-radius: 30px; padding: 6px; box-shadow: var(--card-shadow); }
.shot .phone::before { top: 11px; width: 9px; height: 9px; }
.shot .screen { border-radius: 24px; }
.shot figcaption { font-size: .88rem; color: var(--muted); text-align: center; text-wrap: balance; }

/* ===== Отличия ===== */
.diff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== Призыв и подвал ===== */
.cta { background: linear-gradient(135deg, #B93510, #D84315 55%, #E8693C); color: #fff; text-align: center; padding: 88px 0; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.cta p { opacity: .92; max-width: 560px; margin: 0 auto 32px; }
.cta .store-buttons { justify-content: center; }
.cta .btn-store { color: #17181A; background: #fff; border-color: #fff; }
.cta .btn-store small { color: #6A6C71; }
.cta .note { max-width: 640px; margin: 28px auto 0; font-size: .85rem; opacity: .85; }
.footer { padding: 36px 0; border-top: 1px solid var(--outline); }
.footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.footer-logo img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ===== Политика ===== */
.policy { padding: 120px 0 80px; }
.policy .container { max-width: 760px; }
.policy h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 20px; }
.policy h2 { font-size: 1.2rem; font-weight: 600; margin: 32px 0 10px; }
.policy p, .policy li { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.policy p { margin-bottom: 12px; }
.policy ul { margin: 0 0 12px 22px; }
.policy li { margin-bottom: 6px; }
.policy b { color: var(--text); }
.policy a { color: var(--link); }

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
    .features, .diff { grid-template-columns: repeat(2, 1fr); }
    .platforms { grid-template-columns: repeat(3, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hero { padding-top: 104px; }
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero-mockup { order: 2; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 72px 0; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .nav { padding: 0 16px; }
    .nav-cta { display: none; }
    .features, .diff, .steps { grid-template-columns: 1fr; }
    .platforms { grid-template-columns: repeat(2, 1fr); }
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 18px 16px; margin: 0 -18px; justify-items: initial; }
    .shot { flex: 0 0 64%; max-width: none; scroll-snap-align: center; }
    .store-buttons { flex-direction: column; align-items: stretch; }
    .btn-store { width: 100%; }
    .demo-phones { gap: 12px; }
    .demo .phone { border-radius: 24px; padding: 5px; }
    .demo .screen { border-radius: 19px; }
    .demo .phone::before { width: 7px; height: 7px; top: 9px; }
    .hero-float { display: none; }
    .banner { top: 16px; left: 5px; right: 5px; padding: 6px 7px; gap: 6px; border-radius: 11px; }
    .banner img { width: 20px; height: 20px; border-radius: 5px; }
    .banner b { font-size: .55rem; }
    .banner span { font-size: .5rem; }
}
@media (max-width: 400px) {
    .platforms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-float { animation: none; }
    * { transition-duration: .01ms !important; }
}
