/* Inner page styles — reuse styles.css base */

/*
 * Декоративний "/" перед H1 — через ::before, не в DOM-тексті.
 * H1 у markup чистий — Google бачить тільки реальний заголовок.
 * Стиль матчиться з прибраним <span class="out">/</span>.
 */
h1.has-slash::before {
	content: "/";
	color: var(--muted);
	font-weight: 400;
	margin-right: 0.04em;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--dim); }
.breadcrumbs .current { color: var(--text); }

/* Page hero */
.page-hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 50%; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
  filter: blur(60px);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  position: relative;
  align-items: end;
}
.page-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.page-tag .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent-glow);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.page-hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.page-hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 16px;
}
.page-hero-side p {
  font-size: 17px;
  line-height: 1.55;
  color: #C8C5BE;
}

/* Stat bar — cell row */
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.statbar-cell {
  padding: 32px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.statbar-cell:last-child { border-right: 0; }
.statbar-cell .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.statbar-cell .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.statbar-cell .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* Long content blocks */
.content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 80px 0;
}
.content-aside {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 100px;
  align-self: start;
}
.content-aside .marker {
  display: flex; gap: 12px; align-items: center;
}
.content-aside .marker .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.content-aside h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-top: 12px;
  line-height: 1.15;
}
.content-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-inline: auto;
}
.content-body p {
  font-size: 18px;
  line-height: 1.55;
  color: #C8C5BE;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}
.content-body p strong { color: var(--text); font-weight: 600; }
.content-body p em { color: var(--accent); font-style: normal; }
.content-body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto;
  line-height: 1.15;
  max-width: 720px;
  width: 100%;
}
.content-body ul,
.content-body ol {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  padding-inline-start: 24px;
  color: #C8C5BE;
  font-size: 18px;
  line-height: 1.55;
}
.content-body ul li,
.content-body ol li { margin-bottom: 8px; }

/* Inline figures у Portfolio WYSIWYG */
.port-fig { margin: 0; }
.port-fig img {
  width: 100%; height: auto;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.port-fig figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

.port-fig-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.port-fig-row img {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.port-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-items: center;
}
.port-icons img {
  width: 96px; height: auto;
  display: block;
}
@media (max-width: 640px) {
  .port-icons { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 28px 0; }
  .port-icons img { width: 72px; }
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: var(--text) !important;
  font-weight: 500;
  max-width: 900px !important;
}

/* Bullets / capabilities grid */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .3s ease;
}
.cap:hover { background: var(--surface); }
.cap .cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.cap h5 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.cap p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Pricing card / package */
.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pack {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .3s ease;
  position: relative;
}
.pack:hover { background: var(--surface); }
.pack.featured { background: rgba(0, 224, 138, 0.04); }
.pack.featured::before {
  content: "Найпопулярніший";
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.pack .pack-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pack .pack-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pack .pack-price .cur { color: var(--muted); font-size: 24px; }
.pack .pack-price .per { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: block; margin-top: 6px; letter-spacing: 0.06em; }
.pack ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #C8C5BE;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.pack ul li {
  display: flex; gap: 10px; align-items: baseline;
}
.pack ul li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}
.pack .pack-cta {
  margin-top: auto;
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: all .25s ease;
}
.pack .pack-cta:hover { border-color: var(--accent); color: var(--accent); }
.pack.featured .pack-cta {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.pack.featured .pack-cta:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Quote block */
.quote {
  padding: 64px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  background: var(--bg-2);
}
.quote .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote .meta .name {
  font-family: var(--font-display);
  text-transform: none;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
}
.quote blockquote::before { content: "« "; color: var(--accent); }
.quote blockquote::after { content: " »"; color: var(--accent); }

/* Case visual */
.case-visual {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px var(--gutter);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(0, 224, 138, 0.04) 12px,
    rgba(0, 224, 138, 0.04) 13px
  );
  pointer-events: none;
}

/* Case visual with real image — full-bleed hero image variant */
.case-visual:has(.case-visual-img) {
  padding: 0;
  background: transparent;
  border-top: none;
  border-bottom: none;
}
.case-visual:has(.case-visual-img)::after { display: none; }
.case-visual-img {
  width: 100%;
  height: 85vh;
  max-height: 800px;
  min-height: 480px;
  object-fit: cover;
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
@media (max-width: 768px) {
  .case-visual-img { height: 60vh; min-height: 360px; }
}
.case-visual-inner {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 64px;
  text-align: center;
  background: var(--bg);
}
.case-visual-inner .placeholder-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.case-visual-inner .placeholder-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.case-visual-inner .placeholder-title .accent { color: var(--accent); font-style: italic; font-weight: 400; }

/* Chart placeholder */
.chart {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}
.chart-info h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.chart-info p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.chart-graph {
  height: 280px;
  position: relative;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chart-graph svg { width: 100%; height: 100%; display: block; }
.chart-graph .grid-line {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}
.chart-graph .axis-label {
  fill: var(--dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

/* Timeline */
.timeline {
  border-top: 1px solid var(--line);
  padding: 64px var(--gutter);
}
.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}
.timeline-row .when .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.timeline-row h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.timeline-row p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 720px; }

/* Other cases / next */
.next-cases {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.next-case {
  padding: 48px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s ease;
  cursor: pointer;
}
.next-case:last-child { border-right: 0; }
.next-case:hover { background: var(--surface); }
.next-case .next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.next-case h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color .3s ease;
}
.next-case:hover h3 { color: var(--accent); }
.next-case .next-arrow {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.next-case:hover .next-arrow { color: var(--accent); }

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color .3s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .ico {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  transition: transform .3s ease;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner {
  padding: 0 var(--gutter) 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 800px;
}

/* ============================================
   Icon grids — Для кого / Хто працює / Що входить
   ============================================ */
.icon-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.icon-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.icon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.icon-cell {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  transition: background .3s ease;
}
.icon-cell:hover { background: var(--surface); }

.icon-cell .ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  background: var(--bg-2);
}
.icon-cell .lab {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.icon-cell .sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Process — numbered timeline groups */
.process-intro {
  padding: 24px var(--gutter) 32px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  border-top: 1px solid var(--line);
}
.process-group-label {
  padding: 24px var(--gutter) 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px) {
  .icon-grid.cols-4,
  .icon-grid.cols-5,
  .icon-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .icon-cell { padding: 24px; }
}

@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar-cell:nth-child(2) { border-right: 0; }
  .content { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .content-aside { position: static; }
  .cap-grid { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--gutter); }
  .chart { grid-template-columns: 1fr; gap: 24px; }
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
  .next-cases { grid-template-columns: 1fr; }
  .next-case { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-visual-inner { padding: 32px 16px; }
  .case-visual-inner .placeholder-title { font-size: 32px; }
}

/* =============================================================
   MOBILE TYPOGRAPHY SAFETY NET — щоб текст не вилазив на 320–560px
   ============================================================= */
@media (max-width: 560px) {
  /* Headings break long Cyrillic words якщо треба */
  h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Page heros (всередині інних сторінок) */
  .page-hero h1,
  .ct-hero h1,
  .kr-hero h1,
  .sv-hero h1,
  .pf-hero h1 {
    font-size: clamp(40px, 11vw, 64px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;
  }

  /* Service archive secondary headings */
  .sv-cat-head h2 { font-size: clamp(32px, 8vw, 56px) !important; }

  /* Karera + Services + Portfolio archive — додаткові H2/CTA */
  .why-head h2,
  .hire-head h2 { font-size: clamp(32px, 8vw, 56px) !important; }
  .kr-cta h2,
  .sv-cta h2,
  .pf-cta h2 { font-size: clamp(40px, 11vw, 72px) !important; }
  .team-bar .cell .v { font-size: clamp(28px, 7vw, 42px) !important; }

  /* Контакти у hero — щоб довгі email/телефони не ламали layout */
  .contact-info,
  .ct-status .group .val,
  .footer-mobile-channels .ch-val { word-break: break-all; overflow-wrap: anywhere; }

  /* Breadcrumbs — wrap при довгих шляхах */
  .breadcrumbs {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 10px;
    padding: 16px 0 12px;
  }
  .breadcrumbs .current { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 380px) {
  /* Найвужчі екрани (iPhone SE / Galaxy S8 ~360px) */
  .page-hero h1,
  .ct-hero h1,
  .kr-hero h1,
  .sv-hero h1,
  .pf-hero h1 {
    font-size: 38px !important;
  }
  .kr-cta h2,
  .sv-cta h2,
  .cta h2 { font-size: 40px !important; }

  :root { --gutter: 16px; }
}

/* ============================================================================
   Legal pages: privacy-policy, terms, cookies, about (default page.php template)
   Чиста типографія а-ля Stripe/Vercel docs — для довгого читання
   Префікс .lp- щоб не конфліктувати з іншими .page-hero конструкціями
   ============================================================================ */

/* HERO */
.lp-hero {
  position: relative;
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,224,138,0.06), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  max-width: 760px;
  z-index: 1;
}
.lp-hero .page-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.lp-hero .page-breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.lp-hero .page-breadcrumbs a:hover { color: var(--accent); }
.lp-hero .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.lp-hero .page-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0,224,138,0.5);
}
.lp-hero .page-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

/* CONTENT WRAPPER */
.page-content-section {
  padding: 56px 0 120px;
  background: var(--bg);
}
.page-content-wrap {
  max-width: 760px;            /* читабельна довжина рядка (~75 символів) */
  margin: 0 auto;
}
.page-content {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: #C9C7C2;
}
.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child { margin-bottom: 0; }

/* Date meta — перший абзац типу "Дата оновлення: …" */
.page-content > p:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.012);
  display: inline-block;
}
.page-content > p:first-child em {
  font-style: normal;
  color: var(--muted);
}

/* PARAGRAPHS */
.page-content p {
  margin: 0 0 22px;
}
.page-content p em {
  color: var(--muted);
  font-style: italic;
}
.page-content strong {
  color: var(--text);
  font-weight: 600;
}
.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,224,138,0.35);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.page-content a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* H2 — розділювач між секціями */
.page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 72px 0 22px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.page-content h2:first-child {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}
.page-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

/* LISTS */
.page-content ul,
.page-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.page-content li {
  margin-bottom: 10px;
  padding-left: 6px;
  line-height: 1.65;
}
.page-content ul li::marker {
  color: var(--accent);
  font-size: 0.9em;
}
.page-content ol li::marker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 500;
}

/* HR */
.page-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* TABLE */
.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.012);
}
.page-content thead {
  background: rgba(0,224,138,0.04);
}
.page-content th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.page-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
  font-size: 14px;
}
.page-content tbody tr:last-child td { border-bottom: none; }
.page-content tbody tr:hover { background: rgba(0,224,138,0.025); }

/* CODE */
.page-content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255,255,255,0.05);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid rgba(0,224,138,0.1);
}

/* BLOCKQUOTE */
.page-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(0,224,138,0.04);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}
.page-content blockquote p:last-child { margin-bottom: 0; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .lp-hero { padding: 72px 0 40px; }
  .page-content-section { padding: 40px 0 80px; }
  .page-content { font-size: 15px; }
  .page-content h2 {
    margin: 56px 0 18px;
    padding-top: 28px;
    font-size: 22px;
  }
  .page-content h3 { margin: 28px 0 10px; font-size: 17px; }
  .page-content table { font-size: 13px; }
  .page-content th, .page-content td { padding: 10px 12px; font-size: 13px; }
  .page-content > p:first-child {
    margin-bottom: 40px;
    display: block;
  }
}
@media (max-width: 540px) {
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lp-hero .page-h1 { font-size: 32px; }
}
