/* Лапуля: светлая тёплая тема бренда (кремовый + пастельно-зелёный), шрифт Nunito
   с собственного сервера, без внешних ресурсов. */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #FFF8F0;
  --surface: #F5EFE6;
  --card: #FFFFFF;
  --accent: #8FBF9F;
  --accent-deep: #5E9C72;
  --accent-ink: #3F7A55;
  --accent-soft: #E6F1E9;
  --ink: #2E2A24;
  --text: #3A2E26;
  --muted: #7E7367;
  --line: #EADFD2;
  --coral: #E0907E;
  --shadow: 0 10px 30px rgba(58, 46, 38, 0.10);
  --radius: 20px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.2vw, 52px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 0; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin: 5px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Шапка */
.top-bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 240, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.cta { background: var(--accent-deep); color: #FFFFFF; }
.nav a.cta:hover { background: var(--accent-ink); color: #FFFFFF; }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } }

/* Кнопки */
.btn { display: inline-block; background: var(--accent-deep); color: #FFFFFF; text-decoration: none; padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 0; cursor: pointer; box-shadow: 0 6px 16px rgba(94, 156, 114, 0.28); transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--accent-ink); color: #FFFFFF; transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--accent-ink); box-shadow: none; border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; pointer-events: none; transform: none; }

/* Герой */
.hero-wrap { background: radial-gradient(1200px 520px at 80% -10%, #E6F1E9 0%, rgba(230, 241, 233, 0) 60%), radial-gradient(900px 480px at -10% 20%, #FBE7DA 0%, rgba(251, 231, 218, 0) 55%), var(--bg); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 20px; color: var(--text); max-width: 560px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 14px; }
.stores .btn { min-width: 140px; text-align: center; }
.hero-note { font-size: 15px; color: var(--muted); }
.qr-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.qr { text-align: center; font-size: 12.5px; color: var(--muted); }
.qr img { width: 96px; height: 96px; display: block; margin: 0 auto 4px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; padding: 5px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 40px; } .qr-row { display: none; } .phone { width: 270px; transform: none; } .screen { min-height: 470px; } }

/* Макет телефона (HTML/CSS) */
.hero-phone { display: flex; justify-content: center; }
.phone { width: 290px; background: #1E1B17; border-radius: 42px; padding: 11px; box-shadow: 0 30px 60px rgba(58, 46, 38, 0.28); transform: rotate(2deg); }
.screen { background: var(--bg); border-radius: 32px; padding: 14px 14px 10px; min-height: 520px; display: flex; flex-direction: column; }
.screen .status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); padding: 2px 8px 10px; }
.screen .title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.screen .title b { font-size: 24px; color: var(--ink); }
.seg { display: flex; border: 1.5px solid var(--accent); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; }
.seg span { padding: 5px 11px; color: var(--ink); }
.seg span.on { background: var(--accent); }
.day { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 4px 6px; text-transform: uppercase; letter-spacing: .4px; }
.task { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.task .dot { width: 34px; height: 34px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 17px; background: var(--accent-soft); }
.task .dot.coral { background: #FBE7DA; }
.task .dot.sand { background: var(--surface); }
.task .tx { flex: 1; min-width: 0; }
.task .tx b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.task .tx span { font-size: 12px; color: var(--muted); }
.task .done { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 4px 9px; }
.tabbar { display: flex; justify-content: space-around; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.tabbar span.on { color: var(--accent-ink); font-weight: 700; }

/* Секции */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { font-size: 18px; color: var(--muted); }
.kicker { color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 8px 0 8px; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 15px; }
.trust b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-ink); }
.feature .ic svg { width: 24px; height: 24px; }
.feature p { color: var(--text); margin: 0; font-size: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 22px; background: var(--accent-deep); color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .sub { color: var(--muted); margin-bottom: 14px; }
.plan .big { font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.plan .big small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { position: relative; padding-left: 28px; margin: 9px 0; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("/assets/check.svg") center / 12px no-repeat; }
.plan .price-alt { color: var(--muted); font-size: 15px; margin-top: 6px; }
.plan .save { color: var(--accent-ink); font-weight: 700; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.compare th { background: var(--surface); color: var(--ink); font-size: 15px; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; white-space: nowrap; }
.compare .yes { color: var(--accent-ink); font-weight: 700; }
.compare-wrap { overflow-x: auto; }

/* Карточки контента, FAQ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 16px; }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent-deep); border-radius: 10px; padding: 12px 16px; margin: 16px 0 0; }
.muted { color: var(--muted); font-size: 15px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 24px; color: var(--accent-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text); }
.disclaimer { background: var(--surface); border-radius: 18px; padding: 22px 24px; color: var(--text); font-size: 15.5px; }
.cta-band { text-align: center; padding: 56px 22px; background: linear-gradient(135deg, #E6F1E9 0%, #FFF8F0 60%, #FBE7DA 100%); }
.cta-band .stores { justify-content: center; }

/* Внутренние страницы */
main.page { max-width: 820px; margin: 0 auto; padding: 36px 22px 24px; }
.status-card { text-align: center; }
.status-card .ic-big { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent-ink); }
.status-card .ic-big.warn { background: #FBE7DA; color: #B85C47; }
.status-card .ic-big svg { width: 36px; height: 36px; }
.stores-col { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 8px; }
.stores-col .btn { text-align: center; padding: 15px 20px; }
body.is-ios .store-android, body.is-ios .store-ru, body.is-android .store-ios { display: none; }
.invite-code { font-size: 36px; font-weight: 700; letter-spacing: 4px; margin: 4px 0 12px; color: var(--accent-ink); }
.price-note { font-size: 15px; color: var(--muted); }
.state-box { border-radius: 14px; padding: 14px 18px; background: var(--surface); margin: 16px 0; font-size: 16px; }
.state-box.err { background: #FBE7DA; }
.state-box[hidden] { display: none; }
.link-form label { display: block; font-weight: 700; margin: 4px 0 6px; color: var(--ink); }
.link-form input { display: block; width: 100%; max-width: 420px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--card); }
.link-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent-deep); }
.link-form .btn { margin-top: 14px; }
.link-form .btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
/* Оплата /pro: кнопки на --accent-ink (контраст AA), автопродление и согласие */
.btn.pay { background: var(--accent-ink); min-height: 48px; padding: 14px 24px; box-shadow: 0 6px 16px rgba(63, 122, 85, 0.28); }
.btn.pay:hover { background: var(--accent-deep); }
.btn.pay[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.btn[hidden] { display: none; }
.checkout-block { margin-top: 24px; padding: 24px 20px; background: var(--surface); border-radius: var(--radius); }
.checkout-block .muted { margin: 8px 0; }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 700; }
.check-row input { flex: none; width: 24px; height: 24px; margin: 10px; accent-color: var(--accent-ink); cursor: pointer; }
.check-row input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.check-row span { padding-top: 10px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.no-token .consent-block, .no-token .consent-offer, .no-recurring .auto-only { display: none; }
.no-token-only { display: none; }
.no-token .no-token-only { display: block; }
.is-manage .plans-card { display: none; }
.manage-card { padding: 24px 20px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Подвал */
footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; margin-top: 24px; }
footer .wrap { padding-top: 34px; padding-bottom: 40px; }
footer p { margin: 7px 0; }
footer a { color: var(--ink); }
footer .sep { margin: 0 8px; }
@media (max-width: 480px) { body { font-size: 16px; } .card { padding: 20px; } .plan { padding: 22px; } }
section[id], div[id] { scroll-margin-top: 72px; }

.mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-22 { margin-top: 22px; } .mt-36 { margin-top: 36px; }

/* cookie banner (17.2) */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 720px; margin: 0 auto; background: #FFF8F0; color: #3A2E26; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.5; }
.cookie-banner__text { margin: 0 0 12px; }
.cookie-banner__text a { color: var(--accent-ink); }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__btn { flex: 1 1 0; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid #5E9C72; background: #FFFFFF; color: #3A2E26; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-banner__btn:hover { background: var(--accent-soft); }
.cookie-banner__btn:focus-visible, .cookie-settings-link:focus-visible, .cookie-banner__text a:focus-visible { outline: 3px solid #5E9C72; outline-offset: 2px; }
.cookie-settings-link { display: block; margin: 7px 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .cookie-banner__actions { flex-direction: column; } }
