:root {
  --peach: #f26b1d;
  --peach-dark: #d9560c;
  --peach-soft: #fff1e6;
  --bg: #fffaf6;
  --card: #ffffff;
  --text: #2b2118;
  --muted: #7d6d60;
  --line: #f1e3d6;
  --ok: #2f9e44;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(242, 107, 29, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--peach-dark); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--peach-dark); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; transition: transform .1s ease, background .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--peach); color: #fff; box-shadow: 0 6px 16px rgba(242, 107, 29, .3); }
.btn-primary:hover { background: var(--peach-dark); }
.btn-ghost { background: var(--peach-soft); color: var(--peach-dark); }
.btn-ghost:hover { background: #ffe4cf; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: var(--peach); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { background: radial-gradient(circle at 30% 30%, #ffd9bd, #ffb27a 60%, #ff9a52); border-radius: 36px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.hero-art img { width: 58%; filter: drop-shadow(0 18px 24px rgba(160, 60, 0, .25)); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* sections */
section { padding: 56px 0; }
h2 { font-size: 32px; margin: 0 0 28px; letter-spacing: -.01em; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.icon { font-size: 30px; }
.step-num { width: 38px; height: 38px; border-radius: 12px; background: var(--peach-soft); color: var(--peach-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* pricing */
.price-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.price-card.best { border: 2px solid var(--peach); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; right: 20px; background: var(--peach); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 40px; font-weight: 800; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-card ul { margin: 6px 0 14px; padding-left: 20px; color: var(--muted); }

/* apps */
.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px; font-weight: 600; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--peach); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* forms */
.form-card { max-width: 520px; margin: 48px auto; }
label { display: block; font-weight: 700; margin: 16px 0 8px; }
input[type=email], input[type=text] { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; }
input:focus { outline: 2px solid #ffc9a3; border-color: var(--peach); }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 600; margin: 0; }
.option input { accent-color: var(--peach); width: 18px; height: 18px; }
.option:has(input:checked) { border-color: var(--peach); background: var(--peach-soft); }
.option .muted { margin-left: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--peach); }
.error { background: #fff0f0; color: #c92a2a; border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.success { background: #ebfbee; color: #2b8a3e; border-radius: 12px; padding: 12px 14px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -5000px; }
.linkbox { background: var(--peach-soft); border-radius: 12px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--peach-soft); border-top-color: var(--peach); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* center button, disabled */
.center-cta { text-align: center; margin-top: 24px; }
.btn[aria-disabled="true"], .btn:disabled { background: #eee4dc; color: #a39284; box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-tg { background: #2aabee; color: #fff; box-shadow: 0 6px 16px rgba(42, 171, 238, .3); }
.btn-tg:hover { background: #1c93d1; }
.pay-buttons { display: grid; gap: 10px; margin-top: 20px; }
.pay-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -4px; }

/* status */
.status-list { display: grid; gap: 10px; margin: 20px 0; }
.status-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #b8aa9d; flex: none; }
.dot.up { background: var(--ok); box-shadow: 0 0 0 4px #ebfbee; }
.dot.down { background: #e03131; box-shadow: 0 0 0 4px #fff0f0; }
.status-row .state { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 14px; }
.status-summary { padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.status-summary.ok { background: #ebfbee; color: #2b8a3e; }
.status-summary.bad { background: #fff4e6; color: #d9480f; }

/* guide */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; font-size: 15px; color: var(--text); }
.tab.active { background: var(--peach); border-color: var(--peach); color: #fff; }
.device { display: none; }
.device.active { display: block; }
.app-card { margin-bottom: 14px; }
.app-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.app-card .tag { font-size: 12px; font-weight: 700; color: var(--peach-dark); background: var(--peach-soft); padding: 3px 8px; border-radius: 999px; }
.app-card ol { margin: 10px 0 0; padding-left: 20px; color: #4a3d33; }
.app-card li { margin-bottom: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.support-box { text-align: center; margin: 32px 0 8px; }
.support-box p { color: var(--muted); margin: 10px 0 0; }

/* legal */
.legal { max-width: 800px; margin: 40px auto; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin: 28px 0 10px; }
.legal p, .legal li { color: #4a3d33; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--peach-dark); }
.footer .copy { margin-left: auto; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { width: 160px; margin: 0 auto; order: -1; border-radius: 28px; }
  .hero h1 { font-size: 30px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  h2 { font-size: 26px; }
  .footer .copy { margin-left: 0; }
}


/* ===== v5: calm motion, logo as the hero ===== */
:root { --ease: cubic-bezier(.22,1,.36,1); --slow: .9s; --mid: .5s; }
body { overflow-x: hidden; }
/* мягкий фон: одно пятно, едва заметное движение */
body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; width: 640px; height: 640px; border-radius: 50%;
  top: -260px; right: -200px; background: radial-gradient(circle, rgba(255,196,150,.45), transparent 65%);
  animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px); } }

/* шапка */
.header { transition: box-shadow var(--mid) var(--ease), background var(--mid) var(--ease); }
.header.scrolled { box-shadow: 0 6px 24px rgba(160,70,10,.06); background: rgba(255,250,246,.96); }
.header .wrap { transition: height var(--mid) var(--ease); }
.header.scrolled .wrap { height: 56px; }
.logo img { width: 42px; height: 34px; object-fit: contain; }
.nav a { position: relative; transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--peach);
  transform: scaleX(0); transform-origin: left; transition: transform var(--mid) var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

/* кнопки: только лёгкий подъём и тень */
.btn { transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), background .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .12s; }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(242,107,29,.30); }

/* главный экран: логотип — главный герой, без рамки */
.hero-art { background: none; border: 0; box-shadow: none; aspect-ratio: auto; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,190,140,.35), transparent 70%); animation: breathe 6s ease-in-out infinite; }
.hero-art img { position: relative; z-index: 1; width: 100%; max-width: 420px; filter: none; animation: artIn 1.2s var(--ease) both; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
@keyframes artIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* карточки */
.card, details, .status-row, .chip, .tab, .option, input { transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(160,70,10,.08); border-color: #fbd9c1; }
.step-num { transition: background .3s var(--ease), color .3s var(--ease); }
.card:hover .step-num { background: var(--peach); color: #fff; }
.chip:hover, .tab:hover { border-color: var(--peach); }
details:hover { border-color: #fbd9c1; }
details[open] { box-shadow: 0 8px 22px rgba(160,70,10,.06); }
summary::after { display: inline-block; transition: transform var(--mid) var(--ease); }
details[open] summary::after { content: "+"; transform: rotate(45deg); }
details .faq-body { overflow: hidden; transition: height var(--mid) var(--ease); }
.status-row:hover { transform: translateX(2px); }
.dot.up { animation: live 3s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(47,158,68,.07); } }
.device.active { animation: fadeUp var(--mid) var(--ease) both; }

/* появление */
main > * { animation: fadeUp var(--slow) var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero-art { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
