/* Лендінг. Ті самі токени, що в застосунку — щоб перехід із сторінки
   в продукт не був переходом у інший продукт. */
:root{
  --bg:#FFFFFF; --soft:#F4F7F5; --ink:#0B0F0E; --muted:#5E6E68; --line:#E2E8E5;
  --accent:#0F6B54; --accent-ink:#FFFFFF; --accent-soft:#E6F1EC;
  --radius:18px; --radius-sm:12px;
  --sans:"Onest",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
/* Світла тема — за замовчуванням, незалежно від системних налаштувань.
   Темна вмикається тільки вручну перемикачем: сайт читають уперше, і він має
   виглядати однаково в усіх, а не по-різному залежно від налаштувань телефона. */
:root[data-theme="dark"]{
  --bg:#0A0C0B; --soft:#121614; --ink:#F2F5F3; --muted:#93A29B; --line:#222826;
  --accent:#39C093; --accent-ink:#04120D; --accent-soft:#12271F;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans);
  font-size:17px; line-height:1.55; -webkit-font-smoothing:antialiased}
.wrap{max-width:1080px; margin:0 auto; padding:0 20px}
a{color:var(--accent)}
h1,h2,h3,h4{letter-spacing:-.025em; line-height:1.15; margin:0 0 12px}
h1{font-size:clamp(30px,5.2vw,52px); font-weight:800}
h2{font-size:clamp(23px,3.2vw,33px); font-weight:700; margin-top:0}
h3{font-size:18px; font-weight:700}
p{margin:0 0 14px}
.muted{color:var(--muted)}
.small{font-size:14px}
.center{text-align:center}
.num,.r{font-family:var(--mono); font-variant-numeric:tabular-nums}

/* шапка */
.nav{position:sticky; top:0; z-index:30; background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line)}
.navin{display:flex; align-items:center; gap:22px; height:62px}
.logo{display:flex; align-items:center; gap:9px; color:inherit; text-decoration:none; font-size:16px}
.logo img{border-radius:7px}
.links{display:flex; gap:20px; margin-left:auto; font-size:15px}
.links a{color:var(--muted); text-decoration:none}
.links a:hover{color:var(--ink)}
@media(max-width:720px){ .links{display:none} }

.btn{display:inline-block; background:var(--accent); color:var(--accent-ink);
  padding:11px 20px; border-radius:999px; font-weight:600; font-size:15px; text-decoration:none}
.btn.small{padding:8px 16px; font-size:14px; margin-left:auto}
.links + .btn.small{margin-left:0}
.btn.big{padding:15px 30px; font-size:17px}
.btn:hover{filter:brightness(1.07)}

/* перший екран */
.hero{padding:70px 0 20px; text-align:center}
.hero h1{max-width:17ch; margin:0 auto 18px}
.lead{font-size:clamp(16px,2vw,19px); color:var(--muted); max-width:62ch; margin:0 auto 26px}
.cta{display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:46px}
.cta .muted{font-size:14px}

/* макет застосунку */
.mock{display:flex; justify-content:center; padding-bottom:10px}
.phone{width:320px; background:var(--soft); border:1px solid var(--line);
  border-radius:28px; padding:16px; display:flex; flex-direction:column; gap:10px; text-align:left}
.pcard{background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm); padding:13px 15px}
.pcard .k{font-size:12px; color:var(--muted)}
.pcard .big{font-size:27px; font-weight:800; letter-spacing:-.03em; margin:2px 0 4px;
  font-family:var(--mono)}
.pcard .big.sm{font-size:22px}
.pcard .ok{display:inline-block; background:var(--accent-soft); color:var(--accent);
  padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600}
.pcard .prow{display:flex; justify-content:space-between; gap:10px; font-size:14px;
  font-weight:600; margin:3px 0}
.meter{height:6px; background:var(--line); border-radius:99px; overflow:hidden; margin:6px 0}
.meter i{display:block; height:100%; background:var(--accent)}

/* смуги й сітки */
.band{background:var(--soft); border-block:1px solid var(--line); margin-top:50px}
.band.last{margin-bottom:0}
.sec{padding:56px 20px}
.pains{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:26px; padding:52px 0}
.pains h3{margin-bottom:6px}
.pains p{color:var(--muted); font-size:15.5px; margin:0}

.steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:26px}
.steps .n{width:32px; height:32px; border-radius:50%; background:var(--accent-soft);
  color:var(--accent); display:grid; place-items:center; font-weight:800; margin-bottom:12px}
.steps p{color:var(--muted); font-size:15.5px}

.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px}
.grid article{background:var(--bg); border:1px solid var(--line);
  border-radius:var(--radius); padding:20px}
.band .grid article{background:var(--bg)}
.grid p{color:var(--muted); font-size:15px; margin:0}

.cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px}
.card{display:block; background:var(--soft); border:1px solid var(--line);
  border-radius:var(--radius); padding:22px; text-decoration:none; color:inherit}
.card:hover{border-color:var(--accent)}
.card p{color:var(--muted); font-size:15px; margin:0}

/* питання */
.faq{max-width:760px}
.faq details{border-bottom:1px solid var(--line); padding:16px 0}
.faq summary{cursor:pointer; font-weight:600; font-size:17px; list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+'; float:right; color:var(--muted); font-weight:400}
.faq details[open] summary::after{content:'−'}
.faq p{color:var(--muted); margin:10px 0 0; font-size:16px}

/* документ */
.doc{max-width:800px}
.crumbs{font-size:14px; color:var(--muted); margin-bottom:14px}
.crumbs a{color:var(--muted)}
.doc h2{margin-top:38px; font-size:24px}
.doc table{width:100%; border-collapse:collapse; margin:16px 0 20px; font-size:15.5px}
.doc th{text-align:left; font-size:12.5px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); font-weight:600; padding:9px 10px; border-bottom:1px solid var(--line)}
.doc td{padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:top}
.doc td.r{text-align:right; font-family:var(--mono)}
.doc tbody tr:last-child td{border-bottom:0}
.note{background:var(--soft); border-left:3px solid var(--accent); border-radius:0 10px 10px 0;
  padding:13px 16px; font-size:15px; color:var(--muted)}
.dates{list-style:none; padding:0; margin:12px 0 18px}
.dates li{padding:9px 0; border-bottom:1px solid var(--line); font-size:16px}
.dates li:last-child{border-bottom:0}
.bullets{padding-left:20px; color:var(--muted); font-size:16px}
.bullets li{margin-bottom:10px}
.bullets b{color:var(--ink)}
.promo{background:var(--accent-soft); border-radius:var(--radius); padding:26px; margin-top:44px}
.promo h3{color:var(--accent)}
.promo p{color:var(--accent); opacity:.85; font-size:15.5px}

/* поп-ап */
.pop{position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.45);
  display:grid; place-items:center; padding:20px}
/* display у класі сильніший за [hidden] браузера — без цього рядка поп-ап
   видно одразу, хоч атрибут і стоїть */
.pop[hidden]{display:none}
.popbox{position:relative; background:var(--bg); border-radius:var(--radius);
  padding:30px; max-width:440px; width:100%; border:1px solid var(--line)}
.popx{position:absolute; top:12px; right:14px; background:none; border:0;
  font-size:26px; line-height:1; color:var(--muted); cursor:pointer}
.popbox h3{font-size:21px}
.popbox p{color:var(--muted); font-size:15px}
.popbtns{display:flex; flex-direction:column; gap:10px; margin-top:18px}
.popbtns button{text-align:left; padding:15px 18px; border-radius:var(--radius-sm);
  border:1.5px solid var(--line); background:var(--bg); color:inherit; cursor:pointer; font:inherit}
.popbtns button:hover{border-color:var(--accent); background:var(--accent-soft)}
.popbtns b{display:block; font-size:16px}
.popbtns span{display:block; font-size:13.5px; color:var(--muted); margin-top:2px}

/* підвал */
.foot{background:var(--soft); border-top:1px solid var(--line); padding:44px 0 34px; margin-top:0}
.footgrid{display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:30px; margin-bottom:28px}
.footgrid h4{font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted)}
.footgrid a{display:block; color:var(--muted); text-decoration:none; font-size:15px; padding:3px 0}
.footgrid a:hover{color:var(--ink)}
@media(max-width:700px){ .footgrid{grid-template-columns:1fr 1fr} .footgrid > :first-child{grid-column:1/-1} }

/* версія для бухгалтера */
body[data-aud="buh"] #buh{order:-1}
body[data-aud="buh"] .hero h1::after{content:''}

/* ── блог ─────────────────────────────────────────────── */
.cats{display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 28px}
.cat{padding:6px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--bg); color:var(--muted); text-decoration:none; font-size:14px; font-weight:600}
.cat.on{background:var(--accent-soft); border-color:transparent; color:var(--accent)}
.cat:hover{border-color:var(--accent)}

.posts{display:flex; flex-direction:column; gap:2px}
.post a{display:block; padding:22px 0; border-bottom:1px solid var(--line);
  text-decoration:none; color:inherit}
.post:last-child a{border-bottom:0}
.post h2{font-size:21px; margin:0 0 6px}
.post a:hover h2{color:var(--accent)}
.post p{color:var(--muted); font-size:16px; margin:0 0 8px}
.post .meta{font-size:13.5px; color:var(--muted); opacity:.8}

.post-full .meta{font-size:14px; color:var(--muted); margin-bottom:26px}
.post-full .body{font-size:17.5px; line-height:1.68}
.post-full .body h2{margin:38px 0 14px; font-size:25px; scroll-margin-top:80px}
.post-full .body h3{margin:28px 0 10px; font-size:19px}
.post-full .body p{margin:0 0 16px}
.post-full .body ul,.post-full .body ol{padding-left:22px; margin:0 0 18px}
.post-full .body li{margin-bottom:9px}
.post-full .body blockquote{margin:22px 0; padding:14px 18px; background:var(--soft);
  border-left:3px solid var(--accent); border-radius:0 10px 10px 0; color:var(--muted)}
.post-full .body blockquote p:last-child{margin:0}
.post-full .body table{width:100%; border-collapse:collapse; margin:20px 0; font-size:16px}
.post-full .body th{text-align:left; padding:10px 12px; border-bottom:1px solid var(--line);
  font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted)}
.post-full .body td{padding:11px 12px; border-bottom:1px solid var(--line)}
.post-full .body code{background:var(--soft); padding:2px 6px; border-radius:5px;
  font-family:var(--mono); font-size:.9em}
.post-full .body a{text-decoration:underline; text-underline-offset:2px}

.toc{background:var(--soft); border-radius:var(--radius); padding:20px 24px; margin:0 0 30px}
.toc b{display:block; font-size:13px; text-transform:uppercase; letter-spacing:.05em;
  color:var(--muted); margin-bottom:10px}
.toc ol{margin:0; padding-left:20px}
.toc li{margin-bottom:7px}
.toc a{color:var(--ink); text-decoration:none}
.toc a:hover{color:var(--accent)}

.related{margin-top:46px; padding-top:34px; border-top:1px solid var(--line)}
.related h2{font-size:22px}


/* перемикач теми */
.themebtn{display:grid; place-items:center; width:36px; height:36px; flex:none;
  border:1px solid var(--line); border-radius:50%; background:var(--bg);
  color:var(--muted); cursor:pointer; padding:0}
.themebtn:hover{color:var(--ink); border-color:var(--accent)}
.themebtn svg{width:17px; height:17px}
.themebtn .moon{display:none}
:root[data-theme="dark"] .themebtn .sun{display:none}
:root[data-theme="dark"] .themebtn .moon{display:block}
.navin .themebtn{margin-left:auto}
.navin .links + .themebtn{margin-left:0}
.navin .themebtn + .btn.small{margin-left:0}
