/* Лендінг кабінету відправника Укрпошти — легкий CSS без білд-кроку */
:root {
  --up-yellow: #ffd200;
  --up-dark: #1a1a1a;
  --ink: #16181d;
  --muted: #5b616e;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 12px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: #0b63d6; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .04s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--up-yellow); color: var(--up-dark); border-color: #eac200; }
.btn-primary:hover { background: #ffd94d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

/* Sections */
main { display: block; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #fffdf2 0%, #ffffff 70%);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Хлібні крихти. Видима пара до розмітки BreadcrumbList: Google показує крихти в сніпеті
   замість голого URL, але розмітку без видимого відповідника вважає розходженням змісту
   й розмітки. Тому обидві частини або є разом, або їх немає. */
.crumbs {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a6b00;
  background: #fff4cc;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 32px; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin: 0; }

/* Lists */
ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--ink);
}
ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--up-yellow);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #eac200;
}
ul.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 15px;
  width: 5px;
  height: 9px;
  border: solid var(--up-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Numbered steps (HowTo) */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 780px; }
ol.steps li {
  position: relative;
  counter-increment: step;
  padding: 10px 0 10px 52px;
  min-height: 36px;
  color: var(--muted);
}
ol.steps li + li { border-top: 1px solid var(--line); }
ol.steps li strong { color: var(--ink); }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--up-dark);
  background: var(--up-yellow);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #eac200;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: start; }
.plan {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--up-yellow); box-shadow: 0 0 0 3px #fff4cc, var(--shadow); }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.02em; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .plan-note { color: var(--muted); margin: 0 0 18px; }
.plan.soon { background: var(--bg-soft); opacity: .92; }
.badge-soon {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: #eef0f3; padding: 4px 10px; border-radius: 999px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { margin-bottom: 6px; }
.faq-item p { color: var(--muted); margin: 0; }

/* Code */
code, kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

/* CTA band */
.cta-band { background: var(--up-dark); color: #fff; text-align: center; border: none; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9ccd4; max-width: 640px; margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--bg-soft); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #8a909c; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Calc table (pricing example) */
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th, .calc-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.calc-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
}
.calc-table tbody tr:last-child td { border-bottom: none; }

/* Юридичні документи (генеруються site/build.js з legal/*.md) — довгий суцільний текст */
.legal-doc { max-width: 780px; line-height: 1.7; }
.legal-doc h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 24px; letter-spacing: -0.02em; }
.legal-doc h2 { margin: 40px 0 12px; }
.legal-doc h3 { margin: 28px 0 8px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 0 0 16px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* Flowchart (posibnyk/) — inline-SVG схема повного циклу, обгортка.
   Внутрішні стилі схеми (.flow-svg, .flow-node*, .flow-node-alt*) переїхали в inline-<style>
   ВСЕРЕДИНІ самого <svg> (site/partials/flow.svg): схему інлайнить і лендінг, і кабінетний
   рендер (react-markdown), куди цей site.css не входить, — тож стилі мусять їхати разом зі
   схемою. Тут лишається тільки центрування обгортки <div class="flow-diagram">. */
.flow-diagram { max-width: 560px; margin: 8px auto 0; }

/* Виноски (callout) — акцентований блок пояснення */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--up-yellow);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  max-width: 820px;
}
.callout p { margin: 0 0 12px; }
.callout p:last-child { margin-bottom: 0; }

/* Код-блоки прикладів (api-dokumentatsiya/) — темна панель із заголовком мови й кнопкою copy.
   Глобальний стиль code/kbd (світлий фон, рамка) всередині .code-block скидається. */
.code-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1a1d23;
  overflow: hidden;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #22262e;
  border-bottom: 1px solid #2e333c;
}
.code-lang {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9aa3b2;
  font-weight: 700;
}
.code-copy {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #cfd4dd;
  background: transparent;
  border: 1px solid #3a404b;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
}
.code-copy:hover { background: #2e333c; color: #fff; }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-block pre code {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  color: #e6e8ec;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

/* Стрічка вкладок мов (curl/Python/C#) над групою прикладів */
.lang-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.lang-tabs .lang-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
}
.lang-tabs .lang-tab:hover { color: var(--ink); text-decoration: none; }
