/* Сайт на самому домені: презентація (`templates/site/landing.html`) та
 * інструкція (`templates/site/guide_*.html`).
 *
 * ОКРЕМИЙ ФАЙЛ, як `signup.css`: це вітрина й читання, більші шрифти й повітря.
 * Робочі екрани системи тримаються щільної шкали `--fs-*` — сюди вона не
 * просочується, бо все тут під класом `.site`. `app.css` підключено першим лише
 * заради знака (`.ekab-brand`) і скидання `box-sizing`.
 *
 * КОЛЬОРИ ЗНАКА: зелений і жовтий на темному графіті, як шапка системи.
 * СИНЬОГО НЕМАЄ — синьо-жовте читається як державний сайт. */

.site {
  --s-dark: #232624;
  --s-ink: #1d211e;
  --s-muted: #5d635e;
  --s-bg: #ffffff;
  --s-bg-alt: #f5f5f0;
  --s-line: #e3e4dd;
  --s-green: #2e7d32;
  --s-green-light: #66bb6a;
  --s-green-soft: #f1f7ec;
  --s-yellow: #ffd700;
  --s-yellow-soft: #fff7c2;
  --s-radius: 14px;
  --s-shadow: 0 18px 50px rgba(20, 30, 20, .16), 0 2px 8px rgba(20, 30, 20, .08);

  background: var(--s-bg);
  color: var(--s-ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site a { color: var(--s-green); }
.site h1, .site h2, .site h3, .site h4 { line-height: 1.2; margin: 0 0 .5em; color: inherit; }
.site img { max-width: 100%; display: block; }
/* `app.css` дає `main` робочий відступ сторінок системи — тут секції на всю ширину. */
/* ЛИШЕ ПРЯМИЙ НАЩАДОК <body>. Доти правило було `.site main` і, важче за
   `.g-main`, обнуляло відступи картки розділу інструкції — текст упирався в її
   краї (власник 30.09.2026). */
.site > main { padding: 0; }
.site > main.g-home { padding: 48px 16px 24px; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* ---------- Кнопки ---------- */
.btn-big {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 12px;
  background: var(--s-yellow); color: #1d211e !important; font-weight: 700; font-size: 17px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 215, 0, .35), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-big:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 215, 0, .45), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px;
  border-radius: 12px; font-weight: 600; text-decoration: none;
  color: var(--s-green) !important; border: 2px solid currentColor;
}
.hero .btn-ghost, .section-dark .btn-ghost, .final .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--s-yellow); }

.kicker {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: #e8f3e8; color: var(--s-green); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.kicker-light { background: rgba(255, 215, 0, .14); color: var(--s-yellow); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 38, 36, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header-in {
  /* Ширша за основну колонку (1200): знак, сім пунктів і дві кнопки разом
     потребують ~1180px, і в колонці 1200 вони впиралися одне в одне. */
  max-width: 1360px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 20px;
}
/* Однаковий `line-height` у всіх елементів ряду: інакше написи різної висоти
   стоять із зсувом по вертикалі, хоч їхні рамки й центровані. */
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; line-height: 1; flex: 0 0 auto; }
.site-logo .ekab-brand { line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; flex: 0 0 auto; }
.site-nav a { color: #d9ddd8 !important; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; line-height: 1; padding: 8px 0; }
.site-nav a:hover, .site-nav a.is-here { color: var(--s-yellow) !important; }
.site-cta {
  padding: 8px 16px; border-radius: 10px; background: var(--s-yellow);
  color: #1d211e !important; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
/* «Увійти» — контурна, щоб жовта «Спробувати» лишалась головною. */
.site-login {
  padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  color: #fff !important; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.site-login:hover { border-color: var(--s-yellow); color: var(--s-yellow) !important; }
/* Вісім пунктів меню й дві кнопки в рядок влазять лише на широкому екрані. На ноутбуці
   кнопка коротшає, щоб меню лишилось; ще нижче воно ховається, лишаються знак і кнопки
   (рядок не переноситься). */
@media (max-width: 1360px) {
  .cta-long { display: none; }
}
@media (max-width: 1240px) {
  .site-nav { display: none; }
  .site-login, .site-cta { margin-left: auto; }
  .site-login + .site-cta { margin-left: 0; }
}
/* Телефон: знак і кнопка мусять уміститися в один рядок, не налазячи одне на одне. */
@media (max-width: 480px) {
  .site-header-in { gap: 10px; }
  .site-logo { font-size: 18px; gap: 6px; }
  .site-logo img { width: 24px; height: 24px; }
  .site-cta { padding: 7px 10px; font-size: 13px; }
  .site-login { padding: 6px 10px; font-size: 13px; }
  /* Телефон: «Увійти» й «Спробувати» поруч зі знаком — лише коротко. */
  .cta-long { display: none; }
}

/* ---------- Герой ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(102, 187, 106, .28), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(255, 215, 0, .16), transparent 60%),
    linear-gradient(160deg, #1b1e1c 0%, #2b302c 100%);
}
.hero::after {  /* креслярська сітка */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-in {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 72px 16px 88px; display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.hero .hl { color: var(--s-yellow); }
.hero-lead { font-size: 19px; color: #cfd5cf; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #aeb6ae; font-size: 15px; }
.hero-facts li::before { content: "✓ "; color: var(--s-green-light); font-weight: 700; }
.hero-facts strong { color: #fff; }

.hero-shot { position: relative; perspective: 1600px; }
.hero-shot .browser { transform: rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .hero-shot .browser { transform: none; }
}

.browser {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.browser-sm { box-shadow: var(--s-shadow); border: 1px solid var(--s-line); }
.browser-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: #e9ebe6; border-bottom: 1px solid #d7d9d2;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9ccc4; }
.browser-bar i:first-child { background: #f06a5f; } .browser-bar i:nth-child(2) { background: #f5c04a; } .browser-bar i:nth-child(3) { background: #5cc15f; }
.browser-bar span { margin: 0 auto; padding: 2px 14px; border-radius: 6px; background: #fff; color: #6b706a; font-size: 12px; }

.chip {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 12px;
  background: #fff; color: var(--s-ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0,0,0,.28); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { color: var(--s-green); }
.chip-a { left: -18px; top: 18%; }
.chip-b { right: -10px; top: 46%; background: var(--s-green); color: #fff; animation-delay: -2s; }
.chip-c { left: 12%; bottom: -18px; background: var(--s-yellow); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .chip { display: none; } }

/* ---------- Смуга переваг ---------- */
.band { background: var(--s-green); color: #fff; }
.band-in {
  max-width: 1200px; margin: 0 auto; padding: 28px 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.band-item strong { display: block; font-size: 30px; font-weight: 800; color: var(--s-yellow); line-height: 1.1; }
.band-item span { color: #e3f1e3; font-size: 15px; }
@media (max-width: 860px) { .band-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Секції ---------- */
/* ФОН «КРЕСЛЕННЯ», як на першому екрані (рішення власника 30.09.2026): світлі
   блоки — з помітною (не кричущою) сіткою й м'яким світінням; ледь помітна
   не читалася (власник 30.09.2026), темні — як герой. Сітка
   44px однакова скрізь, тож блоки стикуються без шва в малюнку. */
.section {
  padding: 88px 0;
  background:
    radial-gradient(760px 380px at 100% 0%, rgba(102, 187, 106, .12), transparent 60%),
    linear-gradient(rgba(35, 38, 36, .11) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(35, 38, 36, .11) 1px, transparent 1px) 0 0 / 44px 44px,
    #fff;
}
.section-alt {
  background:
    radial-gradient(760px 380px at 0% 100%, rgba(255, 215, 0, .14), transparent 60%),
    linear-gradient(rgba(35, 38, 36, .12) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(35, 38, 36, .12) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--s-bg-alt);
}
.section-dark {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(102, 187, 106, .24), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(255, 215, 0, .14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #1b1e1c, #2b302c);
}
.section-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.01em; max-width: 820px; }
.section-lead { font-size: 18px; color: var(--s-muted); max-width: 720px; margin: 0 0 40px; }

/* ---------- Ланцюжок ---------- */
.chain {
  list-style: none; padding: 0; margin: 40px 0 0; counter-reset: c;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative;
}
.chain::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--s-green), var(--s-yellow), var(--s-green));
  background-size: 200% 100%; animation: flow 5s linear infinite;
}
@keyframes flow { to { background-position: -200% 0; } }
.chain li { position: relative; background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 74px 20px 22px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.chain-n {
  position: absolute; top: 6px; left: 20px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--s-green); color: #fff;
  font-weight: 800; font-size: 20px; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--s-yellow);
}
.chain h3 { font-size: 20px; }
.chain p { color: var(--s-muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) {
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain::before { left: 42px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto; }
}

/* ---------- Ціноутворення ---------- */
.price-flow { list-style: none; padding: 0; margin: 8px 0 44px; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: pf; }
.price-flow li {
  position: relative; flex: 1 1 150px; padding: 14px 16px 14px 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--s-line); counter-increment: pf;
}
.price-flow li::before {
  content: counter(pf); position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--s-green); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.price-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--s-green); font-weight: 800; }
.price-flow b { display: block; font-size: 16px; }
.price-flow span { color: var(--s-muted); font-size: 13.5px; }
.price-flow .price-flow-end { background: var(--s-yellow); border-color: #e6c200; }
.price-flow .price-flow-end::before { background: #1d211e; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
.pp { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--s-line); margin-bottom: 14px; }
.pp > span { font-size: 28px; line-height: 1; }
.pp h3 { font-size: 19px; margin-bottom: 6px; }
.pp p { margin: 0; color: var(--s-muted); font-size: 15px; }
.pp-accent { border: 2px solid var(--s-yellow); box-shadow: 0 10px 30px rgba(255, 215, 0, .18); }
.pricing-shots { display: grid; gap: 22px; }
.pricing-shots .g-zoom { display: block; cursor: zoom-in; }
.pricing-more { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .price-flow li::after { display: none; }
}

/* ---------- Можливості ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 48px;
  align-items: center; margin: 64px 0;
}
.feature-flip .feature-text { order: 2; }
.feature h3 { font-size: 28px; font-weight: 800; }
.feature p { font-size: 17px; color: var(--s-muted); }
.feature ul { list-style: none; padding: 0; margin: 16px 0; }
.feature li { padding: 5px 0 5px 30px; position: relative; }
.feature li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: #e8f3e8; color: var(--s-green); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 44px 0; }
  .feature-flip .feature-text { order: 0; }
}

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.mini { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 22px; transition: transform .2s, box-shadow .2s; }
.mini:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); }
.mini span { font-size: 28px; }
.mini h4 { margin: 8px 0 6px; font-size: 18px; }
.mini h4 small { font-size: 12px; font-weight: 600; color: var(--s-muted); background: var(--s-bg-alt); border-radius: 6px; padding: 2px 6px; vertical-align: middle; }
.mini p { margin: 0; color: var(--s-muted); font-size: 15px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Для кого ---------- */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.who-card { border-radius: var(--s-radius); padding: 26px 22px; background: linear-gradient(180deg, #f3f9f1, #fff); border: 1px solid #dcebd9; border-top: 5px solid var(--s-green); }
.who-card:nth-child(even) { border-top-color: var(--s-yellow); }
.who-card p { color: var(--s-muted); margin: 0; font-size: 15px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Під ваш процес ---------- */
.custom-big { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.custom-big p { color: #cfd5cf; font-size: 17px; }
.custom-steps { list-style: none; padding: 0; margin: 20px 0 0; }
.custom-steps li { padding: 8px 0; color: #e7ebe6; border-bottom: 1px solid rgba(255,255,255,.08); }
.custom-steps b { color: var(--s-yellow); }
.custom-cta-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255, 215, 0, .35); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.custom-cta-box p { margin: 0; }
@media (max-width: 860px) { .custom-big { grid-template-columns: minmax(0, 1fr); } }

/* Малий блок «Допрацюємо» — наприкінці кожного розділу інструкції. */
.custom-cta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  margin: 48px 0 24px; padding: 26px 28px; border-radius: 18px; color: #fff;
  background: linear-gradient(140deg, #1f2a20, #2e3a2f);
  border-left: 6px solid var(--s-yellow);
}
.custom-cta > div { flex: 1 1 420px; }
.custom-cta h3 { font-size: 24px; margin-bottom: 6px; }
.custom-cta p { margin: 0; color: #d3dad2; }
.custom-cta .kicker { background: rgba(255, 215, 0, .14); color: var(--s-yellow); }

/* ---------- Дані ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.trust-item span { font-size: 30px; }
.trust-item h4 { font-size: 18px; margin: 8px 0 4px; }
.trust-item p { margin: 0; color: var(--s-muted); font-size: 15px; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Спробувати й тарифи ---------- */
.trial { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--s-line); border-radius: 18px; padding: 28px; box-shadow: var(--s-shadow); margin-top: 28px; }
.trial-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; }
.trial-facts strong { display: block; font-size: 26px; color: var(--s-green); line-height: 1.1; }
.trial-facts span { color: var(--s-muted); font-size: 14px; }
.trial-steps { margin: 0; padding-left: 20px; color: var(--s-muted); }
@media (max-width: 960px) { .trial { grid-template-columns: minmax(0, 1fr); } .trial-facts { flex-wrap: wrap; } }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.tariff { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 22px; }
.tariff-price { font-size: 26px; font-weight: 800; color: var(--s-green); margin: 0 0 12px; }
.tariff-price small { font-size: 14px; color: var(--s-muted); font-weight: 500; }
.tariff ul { padding-left: 18px; margin: 0; color: var(--s-muted); }
.tariff-note { font-size: 14px; color: var(--s-muted); }

/* ---------- Питання ---------- */
.faq details { border-bottom: 1px solid var(--s-line); padding: 16px 0; max-width: 860px; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font-size: 26px; color: var(--s-green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--s-muted); margin: 10px 0 0; }

/* ---------- Фінал ---------- */
.final { background: radial-gradient(800px 360px at 50% 0%, rgba(255,215,0,.22), transparent 70%), var(--s-green); color: #fff; text-align: center; }
.final-in { max-width: 760px; margin: 0 auto; padding: 80px 16px; }
.final h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.final p { font-size: 19px; color: #e3f1e3; }
.final .hero-actions { justify-content: center; margin: 24px 0 0; }

/* ---------- Підвал ---------- */
.site-footer { background: var(--s-dark); color: #aab1aa; font-size: 15px; }
.site-footer-in { max-width: 1200px; margin: 0 auto; padding: 48px 16px 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer-brand { font-size: 22px; max-width: 360px; }
.site-footer-brand p { font-size: 15px; color: #aab1aa; }
.site-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer-cols a { display: block; color: #d6dbd5 !important; text-decoration: none; padding: 3px 0; }
.site-footer-cols a:hover { color: var(--s-yellow) !important; }
.site-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer-bottom .donate-line { margin: 0; }
.site-footer-bottom .donate-line a { color: var(--s-yellow) !important; }

/* ---------- Поява при прокрутці ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .chain::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
 * ІНСТРУКЦІЯ
 * ========================================================================= */
/* Інструкція — на темному «кресленні» першого екрана; сам текст — на білій
   картці. Фон нерухомий: сітка не повзе під текстом при прокрутці. */
.site-guide {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(102, 187, 106, .24), transparent 60%),
    radial-gradient(760px 460px at 0% 100%, rgba(255, 215, 0, .13), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #1b1e1c 0%, #2b302c 100%);
  background-attachment: fixed;
}
.site-guide .g-hero h1 { color: #fff; }
.site-guide .g-hero .lead { color: #cfd5cf; }
.site-guide .g-hero .kicker { background: rgba(255, 215, 0, .14); color: var(--s-yellow); }
.site-guide .g-part h2 { color: #b9c1b9; border-bottom-color: rgba(255, 255, 255, .14); }
.site-guide .g-card { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.site-guide .g-home > .custom-cta { border: 1px solid rgba(255, 215, 0, .35); border-left-width: 6px; }
.g-home { max-width: 1200px; margin: 0 auto; padding: 48px 16px 24px; }
.g-hero { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.g-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.lead { font-size: 18px; color: var(--s-muted); }

.g-search { position: relative; margin-top: 24px; }
.g-search input {
  width: 100%; height: 58px; padding: 0 22px 0 52px; font-size: 17px; border-radius: 16px;
  border: 2px solid var(--s-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%232e7d32' stroke-width='2.4'%3E%3Ccircle cx='9.5' cy='9.5' r='7'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") 18px center no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.g-search input:focus { outline: none; border-color: var(--s-green); }
.g-search-hits { position: absolute; z-index: 20; left: 0; right: 0; top: 64px; text-align: left; background: #fff; border-radius: 14px; box-shadow: var(--s-shadow); overflow: hidden; }
.g-search-hits a { display: block; padding: 12px 18px; text-decoration: none; color: var(--s-ink); border-bottom: 1px solid var(--s-line); }
.g-search-hits a:hover { background: var(--s-yellow-soft); }
.g-search-hits small { display: block; color: var(--s-muted); }
.g-search-hits mark { background: var(--s-yellow); padding: 0 2px; border-radius: 3px; }

.g-tour-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; margin: 0 auto 44px; max-width: 900px;
  border-radius: 18px; color: #fff !important; text-decoration: none;
  background: linear-gradient(140deg, var(--s-green), #1b5e20); box-shadow: var(--s-shadow);
  transition: transform .15s;
}
.g-tour-card:hover { transform: translateY(-3px); }
.g-tour-icon { font-size: 38px; }
.g-tour-card strong { display: block; font-size: 20px; }
.g-tour-card > span:nth-child(2) > span { color: #d9ecd9; }
.g-tour-go { margin-left: auto; padding: 10px 18px; border-radius: 10px; background: var(--s-yellow); color: #1d211e; font-weight: 800; white-space: nowrap; }

.g-part { margin: 0 0 36px; }
.g-part h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--s-muted); border-bottom: 2px solid var(--s-line); padding-bottom: 8px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.g-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--s-radius);
  background: #fff; border: 1px solid var(--s-line); text-decoration: none; color: var(--s-ink) !important;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.g-card:hover { transform: translateY(-3px); box-shadow: var(--s-shadow); border-color: var(--s-green-light); }
.g-card-icon { font-size: 28px; }
.g-card strong { font-size: 18px; }
.g-card span:last-child, .g-card > span:nth-child(3) { color: var(--s-muted); font-size: 14px; }
.g-card.is-soon { opacity: .78; }
.g-soon { position: absolute; top: 14px; right: 14px; font-size: 12px; font-style: normal; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--s-yellow-soft); color: #7a6300; }

/* Розділ: зміст зліва, текст справа. */
.g-layout { max-width: 1280px; margin: 0 auto; padding: 28px 16px 24px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
.g-side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; font-size: 14px; padding-right: 6px; }
.g-side-home { display: block; font-weight: 700; margin-bottom: 12px; text-decoration: none; color: var(--s-yellow) !important; }
.g-side-part { margin: 16px 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8f988f; }
.g-side-link { display: block; padding: 5px 10px; border-radius: 8px; color: #dfe4de !important; text-decoration: none; }
.g-side-link:hover { background: rgba(255, 255, 255, .08); }
.g-side-link.is-here { background: var(--s-green); color: #fff !important; font-weight: 700; }
.g-side-link.is-soon { color: #8b918a !important; }
.g-toc { margin: 4px 0 8px 14px; border-left: 2px solid rgba(255, 255, 255, .15); }
.g-toc a { display: block; padding: 3px 10px; color: #aeb6ae !important; text-decoration: none; font-size: 13px; }
.g-toc a:hover { color: #fff !important; }
.g-toc a.is-now { color: var(--s-yellow) !important; font-weight: 700; border-left: 2px solid var(--s-yellow); margin-left: -2px; }
@media (max-width: 960px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-side { position: static; max-height: none; display: none; }
}

.g-main { min-width: 0; background: #fff; border-radius: 18px; padding: 40px 48px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
@media (max-width: 700px) { .g-main { padding: 24px 18px; border-radius: 14px; } }
.g-crumbs { font-size: 14px; color: var(--s-muted); margin: 0 0 8px; }
.g-crumbs a { text-decoration: none; }
.g-main h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; display: flex; gap: 12px; align-items: center; }
.g-h1-icon { font-size: .9em; }

.g-task { margin: 44px 0 0; padding-top: 12px; border-top: 1px solid var(--s-line); }
.g-task h2 { font-size: 26px; font-weight: 800; position: relative; }
.g-anchor { position: absolute; left: -26px; opacity: 0; text-decoration: none; color: var(--s-muted) !important; }
.g-task h2:hover .g-anchor { opacity: 1; }
.g-goal { font-size: 17px; color: var(--s-muted); margin: -2px 0 20px; }

.g-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; margin: 22px 0; }
.g-step-n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--s-green); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 0 4px #e8f3e8;
}
.g-step h3 { font-size: 19px; margin: 7px 0 8px; }
.g-step-body > p, .g-step-body li { color: #333a34; }
.g-step-body ul, .g-step-body ol { padding-left: 20px; }

.g-shot { margin: 14px 0 6px; }
.g-shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--s-line); box-shadow: 0 10px 30px rgba(0,0,0,.08); cursor: zoom-in; }
.g-shot img { width: 100%; height: auto; }
.g-shot figcaption { font-size: 14px; color: var(--s-muted); margin-top: 8px; }
.g-shot-half { max-width: 560px; }

.g-benefit, .g-tip, .g-warn { margin: 16px 0; padding: 14px 18px; border-radius: 12px; font-size: 15.5px; }
.g-benefit { background: #eaf5ea; border-left: 5px solid var(--s-green); }
.g-benefit strong { color: var(--s-green); }
.g-tip { background: var(--s-yellow-soft); border-left: 5px solid var(--s-yellow); }
.g-warn { background: #fdecea; border-left: 5px solid #c62828; }
.g-warn strong { color: #b71c1c; }

.g-btn { display: inline-block; padding: 0 8px; border: 1px solid #969696; border-radius: 3px; background: #ebebeb; color: #282828; font-size: .88em; line-height: 1.6; white-space: nowrap; font-weight: 600; }
.g-x { display: inline-block; padding: 0 6px; color: #c0392b; font-weight: 600; border: 1px solid #c0392b; border-radius: 3px; line-height: 1.4; }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 5px; border: 1px solid #b9bdb6; border-bottom-width: 3px; background: #fafaf7; font: 600 .85em/1.6 "Segoe UI", system-ui, sans-serif; text-align: center; }
.g-perm { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f0f0ea; font-size: .85em; color: #555b55; white-space: nowrap; }
.g-go { font-weight: 700; text-decoration: none; }
.g-go:hover { text-decoration: underline; }

.g-flow { counter-reset: gf; list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 6px; }
.g-flow li { counter-increment: gf; position: relative; padding: 8px 12px 8px 44px; border-radius: 10px; background: var(--s-bg-alt); }
.g-flow li::before { content: counter(gf); position: absolute; left: 12px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--s-green); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.g-flow li:last-child { background: var(--s-yellow-soft); }

.g-soon-box { margin-top: 28px; padding: 22px 26px; border-radius: 14px; background: var(--s-yellow-soft); border: 1px dashed #d8bf2c; }

.g-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.g-map a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--s-line); text-decoration: none; color: var(--s-ink) !important; background: var(--s-bg-alt); }
.g-map a:hover { border-color: var(--s-green-light); background: #fff; }
.g-map b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s-green); color: #fff; flex: none; font-size: 14px; }

.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.g-pager a { display: block; padding: 16px 18px; border: 1px solid var(--s-line); border-radius: 12px; text-decoration: none; color: var(--s-ink) !important; font-weight: 700; }
.g-pager a:hover { border-color: var(--s-green); }
.g-pager span { display: block; font-size: 13px; font-weight: 500; color: var(--s-muted); }
.g-next { text-align: right; }

/* Кадри презентації теж збільшуються — підказуємо це курсором і легким підйомом. */
.feature-shot .g-zoom, .hero-shot .g-zoom { display: block; cursor: zoom-in; }
.feature-shot .browser { transition: transform .2s ease, box-shadow .2s ease; }
.feature-shot .browser:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 24px 60px rgba(20,30,20,.22); }
.g-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,18,16,.9); display: grid; place-items: center; padding: 2vh 2vw; cursor: zoom-out; animation: lb-in .18s ease; }
/* МАЙЖЕ НА ВЕСЬ ЕКРАН — і невеликі кадри теж (власник 30.09.2026): вписуємо в
   96 % вікна зі збереженням пропорцій, а не лишаємо рідного розміру. */
.g-lightbox img { width: 96vw; height: 96vh; object-fit: contain; }
@keyframes lb-in { from { opacity: 0; } }
.g-lightbox[hidden] { display: none; }
.g-lightbox img { border-radius: 8px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.g-lightbox button { position: absolute; top: 14px; right: 18px; font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer; }

/* ПОРІВНЯННЯ. Колонка «єКабінет» виділена тлом, а не кольором тексту: читається
   і на вузькому екрані, де таблиця прокручується вбік у власній рамці (сторінка
   вбік не їде). Шапки — по центру, як скрізь у системі. */
.compare-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--s-line); }
.compare thead th { text-align: center; vertical-align: middle; font-size: 14px; color: var(--s-muted); }
.compare tbody th { text-align: left; font-weight: 600; width: 30%; }
.compare td { color: var(--s-muted); text-align: center; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .compare-us { background: var(--s-yellow-soft); color: var(--s-ink); }
.compare thead .compare-us { color: var(--s-ink); font-weight: 800; }
.compare .yes { color: var(--s-green); font-weight: 600; }

/* «ЩО НОВОГО» — стрічка: дата ліворуч, зміна праворуч; на телефоні дата над текстом. */
.g-changes { list-style: none; max-width: 820px; margin: 0 auto 48px; padding: 8px 32px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
@media (max-width: 560px) { .g-changes { padding: 4px 18px; } }
.g-changes li:last-child { border-bottom: 0; }
.g-changes li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--s-line); }
.g-changes time { font-weight: 700; color: var(--s-green); padding-top: 3px; }
.g-changes h2 { font-size: 20px; margin: 0 0 6px; }
.g-changes p { margin: 0 0 8px; color: var(--s-muted); }
@media (max-width: 560px) { .g-changes li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.g-changes-link { text-align: center; margin: 0 0 32px; }
.site-guide .g-changes-link .more { color: var(--s-yellow); }

/* «Чи допомогла сторінка?» — тихий рядок перед блоком «Допрацюємо». */
.g-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding: 16px 20px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-bg-alt); }
.g-feedback span { font-weight: 600; margin-right: 6px; }
.g-feedback button { font: inherit; padding: 6px 14px; border: 1px solid var(--s-line); border-radius: 999px; background: #fff; cursor: pointer; }
.g-feedback button:hover { border-color: var(--s-green); }
.g-feedback output { color: var(--s-green); font-weight: 600; }

/* СТАТТІ — вузька колонка для читання, як у книжці: 70 знаків у рядку. */
/* Біла картка на темному тлі інструкції (`site-guide`), як `.g-main` розділу. Через
   `.site > main` — інакше загальне `.site > main { padding: 0 }` переважило б. */
/* КЕГЛЬ — НА 2 ПУНКТИ МЕНШИЙ ЗА ПРЕЗЕНТАЦІЮ (рішення власника 09.10.2026): 17px
   тексту й 26px підзаголовків читалися як інший сайт поруч із системою (14px).
   Уся стаття разом — текст, вступ, заголовки, блок «як це в єКабінеті». */
.site > main.a-main { max-width: 820px; margin: 28px auto 32px; padding: 40px 48px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-size: 14px; }
@media (max-width: 860px) { .site > main.a-main { margin: 16px; padding: 24px 18px; border-radius: 14px; } }
.a-main h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; margin: 8px 0 12px; }
.a-main .lead { font-size: 16px; }
.a-body { font-size: 15px; line-height: 1.65; }
.a-body h2 { font-size: 24px; margin: 36px 0 10px; }
.a-body h3 { font-size: 17px; margin: 24px 0 8px; }
.a-body li { margin: 6px 0; }
/* Таблиця порівняння в статті. На телефоні прокручується вбік у своїй рамці, а не
   розпирає сторінку. Перший стовпець — що порівнюємо: він стоїть на місці, щоб при
   прокрутці було видно, про що рядок. */
.a-body .cmp-wrap { overflow-x: auto; margin: 16px 0; }
.a-body table.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.a-body table.cmp th, .a-body table.cmp td { padding: 8px 10px; border: 1px solid var(--s-line); vertical-align: top; }
.a-body table.cmp th { text-align: center; vertical-align: middle; }
.a-body table.cmp thead th { background: var(--s-bg-alt); }
.a-body table.cmp tbody th { width: 22%; font-weight: 600; background: var(--s-bg-alt); }
.a-body table.cmp tr > th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: inset -1px 0 0 var(--s-line); }
.a-body table.cmp td:last-child { background: var(--s-green-soft); }
.a-cta { margin: 48px 0 32px; padding: 28px; border-radius: var(--s-radius); background: var(--s-yellow-soft); }
.a-cta h2 { margin: 0 0 8px; }
.a-cta ul { padding-left: 20px; }
.a-cta .btn-big, .a-cta .btn-ghost { margin: 12px 12px 0 0; }
.a-cta .btn-ghost { color: var(--s-ink); border-color: var(--s-ink); }
.a-more { display: grid; gap: 10px; margin: 0 0 32px; }
.a-more a { font-weight: 700; text-decoration: none; }
.a-more a:hover { text-decoration: underline; }
.a-cards { max-width: 1000px; margin: 0 auto 48px; }
/* Рубрика «Ви просили — ми зробили!»: секція над переліком на `/articles` і кікер над
   заголовком статті; посилання кікера веде до секції. */
.a-rubric { max-width: 1000px; margin-left: auto; margin-right: auto; }
.site-guide .a-rubric h2, .site-guide .a-rubric-rest { color: #fff; font-size: 24px; margin: 8px 0; }
.site-guide .a-rubric-rest { max-width: 1000px; margin: 8px auto; }
.a-rubric p { color: rgba(255, 255, 255, .78); margin: 0 0 16px; }
.a-rubric .a-cards { margin-bottom: 32px; }
.a-kicker { margin: 0; }
.a-kicker a { color: inherit; text-decoration: none; }
.a-kicker a:hover { text-decoration: underline; }
/* Формули у статті — не ламаються посеред виразу на широкому екрані. */
.a-body table.cmp code { white-space: nowrap; }
.a-day { color: var(--s-muted); font-style: normal; font-size: 13px; }

/* ШАБЛОНИ Й КАЛЬКУЛЯТОРИ (`app/freebies.py`). Поля й підсумок калькулятора — у тій самій
   вузькій колонці, що стаття; числа праворуч, як у кошторисі. */
.f-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 8px; }
.f-download span { color: var(--s-muted); font-size: 14px; }
.a-body table.cmp td.num { text-align: right; white-space: nowrap; }
.a-body table.cmp:has(td.num) tbody th { width: 38%; }
.a-body table.cmp td.f-bad { color: #b71c1c; font-weight: 700; }
.a-body table.cmp.f-narrow { width: auto; min-width: 0; }
.calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; margin: 0 0 16px; padding: 20px; border-radius: var(--s-radius); background: var(--s-yellow-soft); }
.calc label { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 14px; font-weight: 600; }
.calc input { box-sizing: border-box; width: 100%; padding: 8px 10px; font-size: 16px; text-align: right; background: #fff; border: 1px solid var(--s-line); border-radius: 8px; }
.calc-out { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.calc-out td { padding: 8px 10px; border-bottom: 1px solid var(--s-line); }
.calc-out td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.calc-out tr.is-total td { background: var(--s-green-soft); font-weight: 800; }
.calc-warn { padding: 10px 14px; border-radius: 8px; background: #fdecea; color: #b71c1c; font-weight: 600; }
.calc-warn[hidden] { display: none; }

/* ВІДЕО — у тій самій рамці браузера, що й кадри; на всю ширину секції. */
.video-frame { max-width: 1040px; margin: 28px auto 0; }
.video-frame video { display: block; width: 100%; height: auto; background: #1b1e1c; }

/* «Читайте також» під розділом інструкції й анонси статей на головній. */
.g-related { margin: 40px 0 0; padding: 18px 22px; border-left: 4px solid var(--s-green); background: var(--s-bg-alt); border-radius: 0 var(--s-radius) var(--s-radius) 0; }
.g-related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--s-muted); margin: 0 0 8px; }
.g-related a { display: block; font-weight: 700; text-decoration: none; margin: 4px 0; }
.g-related a:hover { text-decoration: underline; }
.a-teaser { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.a-teaser:hover { transform: translateY(-4px); box-shadow: var(--s-shadow); }
.a-teaser h3 { color: var(--s-ink); }
.a-teaser p { color: var(--s-muted); }
.trial-note { text-align: center; margin: 14px 0 0; }
.tariff-year { display: block; font-size: 14px; font-weight: 600; color: var(--s-ink); margin-top: 4px; }
.tariff-vat { margin: 16px 0 0; text-align: center; color: var(--s-muted); font-size: 14px; }
/* «Гнучка тарифна політика» — дрібніше за рядок про ПДВ і впритул під ним: запасний
   шлях, а не ще один заклик поруч із «Створити кабінет». */
.tariff-vat.tariff-custom { margin-top: 6px; font-size: 13px; }
.tariff-custom strong { color: var(--s-ink); font-weight: 600; }

/* «Для кого» у два ряди: сторони будівництва (три) і люди в них (чотири). */
.who-sub { margin: 32px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.who-sub + .who { margin-top: 12px; }
.who.who-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .who.who-3 { grid-template-columns: minmax(0, 1fr); } }
