/* Сайт Süfrə — бренд: ночной синий #1C2541, гранатовая точка #B3262E, шафран #E0A23B, фон #FBF7F4 */
:root {
    --navy: #1C2541; --nar: #B3262E; --saffron: #E0A23B;
    --bg: #FBF7F4; --surface: #ffffff; --soft: #F3EEE9; --text: #1C2541; --muted: #5d6478; --line: #E8E1DA;
    --accent: #1C2541; --accent-text: #ffffff; --green: #0f9d6e; --green-soft: #e7f8f1; --red: #c62f2f; --red-soft: #fdecec;
    --shadow: 0 1px 2px rgba(28,37,65,.05), 0 10px 30px rgba(28,37,65,.08);
    --radius: 20px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #10141f; --surface: #181e2c; --soft: #1e2536; --text: #eef0f6; --muted: #a2a9bb; --line: #2a3246;
    --accent: #eef0f6; --accent-text: #11151f; --green: #34d399; --green-soft: #12352b; --red: #f87171; --red-soft: #3d1717; --shadow: none; } }
:root[data-theme="dark"] {
    --bg: #10141f; --surface: #181e2c; --soft: #1e2536; --text: #eef0f6; --muted: #a2a9bb; --line: #2a3246;
    --accent: #eef0f6; --accent-text: #11151f; --green: #34d399; --green-soft: #12352b; --red: #f87171; --red-soft: #3d1717; --shadow: none; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* знак «s.» */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.logo .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; padding-bottom: 3px; }
.logo .mark i { color: #e0525a; font-style: normal; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav .links { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.nav .links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav .links a:hover { color: var(--text); }
.nav .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; }
.lang button { border: none; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 9px; border-radius: 9px; min-height: 32px; }
.lang button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; }
.mnav { display: none; }
@media (max-width: 900px) {
    .nav .links, .nav .right .hide-m { display: none; }
    .burger { display: inline-flex; align-items: center; justify-content: center; }
    .mnav.on { display: grid; gap: 4px; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
    .mnav a { text-decoration: none; font-weight: 700; padding: 12px 4px; border-radius: 10px; }
}

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn.main { background: var(--nar); border-color: var(--nar); color: #fff; }
.btn.dark { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* первый экран */
.hero { padding: 56px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--muted); }
.pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--nar); }
h1.title { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -1.6px; margin: 18px 0 16px; font-weight: 800; }
h1.title em { font-style: normal; color: var(--nar); }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--green); font-weight: 800; }
.shots { position: relative; padding: 0 0 40px 0; }
.laptop { border-radius: 16px; background: #0d1220; padding: 10px 10px 14px; box-shadow: 0 30px 60px rgba(28,37,65,.25); }
.laptop img { border-radius: 8px; width: 100%; }
.laptop::after { content: ""; display: block; height: 6px; margin: 10px -24px -20px; background: #c9cfdb; border-radius: 0 0 14px 14px; }
.phone { position: absolute; right: -10px; bottom: -6px; width: 30%; border-radius: 26px; background: #0d1220; padding: 7px; box-shadow: 0 24px 50px rgba(28,37,65,.3); }
.phone img { border-radius: 20px; }
@media (max-width: 900px) { .hero { padding-top: 28px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } .phone { right: 0; } }

/* полоса преимуществ */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 10px; }
.strip > div { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.strip .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--nar); }
.strip b { display: block; font-size: 16px; margin-bottom: 4px; }
.strip span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }

/* разделы */
section.block { padding: 70px 0 10px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--nar); }
h2.h { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -1px; margin: 8px 0 12px; font-weight: 800; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 30px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.3px; }
.feat p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.feat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.feat li::before { content: "•"; color: var(--nar); font-weight: 900; margin-right: 8px; }
.soon { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--muted); margin-left: 6px; vertical-align: middle; }

/* большой раздел с картинкой */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.rev > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 1px; }
.frame { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(28,37,65,.18); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.rev > :first-child { order: 0; } }

/* демо-меню в телефоне */
.demo-box { background: var(--navy); color: #fff; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.demo-box .kicker { color: var(--saffron); }
.demo-box .sub { color: #c4cad8; }
.demo-phone { width: 320px; height: 640px; border-radius: 40px; background: #05070d; padding: 10px; justify-self: center; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.demo-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: #fff; }
.qr { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: #c4cad8; font-size: 14px; }
.qr img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }
@media (max-width: 900px) { .demo-box { grid-template-columns: 1fr; padding: 28px 20px; } .demo-phone { display: none; } .qr { display: none; } }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: st; content: counter(st); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--nar); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* требования */
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.req .card b { display: block; margin: 8px 0 4px; }
.req .card span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .req { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .req { grid-template-columns: 1fr; } }

/* вопросы */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--nar); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* финальный призыв */
.final { margin: 70px 0 0; background: linear-gradient(135deg, #1C2541, #2b3866); color: #fff; border-radius: 28px; padding: 50px 30px; text-align: center; }
.final h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; letter-spacing: -.8px; }
.final p { color: #c4cad8; margin: 0 auto 24px; max-width: 560px; }
.final .cta { justify-content: center; }
.final .btn:not(.main) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

footer.bot { margin-top: 60px; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.bot .wrap { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; }
footer.bot .grow { flex: 1; }
footer.bot a { text-decoration: none; }

/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); text-decoration: none; transition: transform .15s; }
.wa:hover { transform: scale(1.06); }

/* формы (кабинет) */
.auth { max-width: 520px; margin: 30px auto 0; }
.seg { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 14px; margin-bottom: 18px; }
.seg button { flex: 1; min-height: 42px; border: none; border-radius: 11px; background: none; color: var(--muted); font-weight: 700; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
label.l { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 6px; }
.input, select.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--nar) 40%, transparent); border-color: var(--nar); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); text-align: left; color: var(--text); }
.opt b { display: block; font-size: 15px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt.on { border-color: var(--nar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nar) 18%, transparent); }
.note { padding: 12px 14px; border-radius: 13px; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 14px; margin-top: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.status { display: flex; gap: 16px; align-items: flex-start; }
.status .big-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: var(--soft); }
.code { font: 800 26px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 1px; background: var(--soft); border-radius: 12px; padding: 10px 14px; display: inline-block; margin-top: 6px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.dl:first-child { border-top: none; }
.dl .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl .grow { flex: 1; min-width: 0; }
.dl .grow b { display: block; }
.dl .grow span { font-size: 13px; color: var(--muted); }
ol.howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
ol.howto b { color: var(--text); }
.skeleton { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface), var(--soft), var(--surface)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; z-index: 60; font-weight: 600; }
.toast.on { opacity: 1; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
