/* SEO pages of Ґазда Хатки: comparison and review article. Same frame as the landing (header, footer, type),
   a reading column for the text and a wide column for the table. Tokens only (ds-theme-warm). */
/* Same local fonts as the landing (landing/style.css). */
@font-face {
  font-family: 'Hatky Onest';
  src: url('/shared-ui/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Hatky Lora';
  src: url('/shared-ui/lora.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
body {
  margin: 0;
  background: var(--ds-canvas);
  color: var(--ds-ink);
  font-family: var(--ds-font);
  font-size: var(--ds-text-md);
  line-height: var(--ds-leading-body);
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}

/* ---- Frame, as on the landing ---- */
.wrap {
  max-width: calc(var(--ds-space-16) * 19);
  margin: 0 auto;
  padding-inline: var(--ds-space-10);
}
.eyebrow {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
.display {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-medium);
  letter-spacing: -0.02em;
  line-height: var(--ds-leading-tight);
  text-wrap: balance;
}
.lead {
  font-size: var(--ds-text-lg);
  color: var(--ds-muted);
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ds-canvas);
  border-bottom: 1px solid var(--ds-line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-6);
  min-height: var(--ds-space-16);
}
.logo img {
  display: block;
  height: var(--ds-space-8);
  width: auto;
}
.head-nav {
  display: flex;
  gap: var(--ds-space-1);
  margin-inline: auto;
}
.head-nav a {
  padding: var(--ds-space-2) var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-text-sm);
  text-decoration: none;
  color: var(--ds-muted);
}
.head-nav a:hover,
.head-nav a[aria-current='page'] {
  background: var(--ds-soft);
  color: var(--ds-ink);
}
.head-actions {
  display: flex;
  gap: var(--ds-space-2);
  align-items: center;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ds-space-6);
  padding-block: var(--ds-space-8) var(--ds-space-12);
  border-top: 1px solid var(--ds-line);
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.foot-brand {
  display: grid;
  gap: var(--ds-space-2);
}
.foot-tagline {
  margin-top: var(--ds-space-2);
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-regular);
  color: var(--ds-ink);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
}

/* ---- Page ---- */
.seo-page {
  --reading: calc(var(--ds-space-16) * 12);
  padding-block: var(--ds-space-8) 0;
}
.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  max-width: var(--reading);
  margin: 0 auto;
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.seo-crumbs a {
  text-decoration: none;
}
.seo-crumbs a:hover {
  color: var(--ds-ink);
  text-decoration: underline;
}
.seo-hero {
  display: grid;
  justify-items: start;
  gap: var(--ds-space-5);
  max-width: var(--reading);
  margin: var(--ds-space-10) auto var(--ds-space-12);
}
.seo-hero h1 {
  font-size: var(--ds-text-3xl);
}
.seo-body {
  display: grid;
  gap: var(--ds-space-12);
  max-width: var(--reading);
  margin: 0 auto;
}
.seo-body > p {
  font-size: var(--ds-text-lg);
}
.seo-section {
  display: grid;
  gap: var(--ds-space-5);
}
.seo-section h2 {
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-2xl);
  font-weight: var(--ds-weight-medium);
  line-height: var(--ds-leading-snug);
  letter-spacing: -0.01em;
}
/* The table takes the whole width of the page, wider than the reading column. */
.seo-wide {
  --wide: min(calc(100vw - var(--ds-space-10) * 2), calc(var(--ds-space-16) * 17));
  width: var(--wide);
  margin-inline: calc((100% - var(--wide)) / 2);
}
.seo-wide > h2,
.seo-wide > .seo-more {
  width: 100%;
  max-width: var(--reading);
  justify-self: center;
}
.seo-list {
  display: grid;
  gap: var(--ds-space-3);
  padding-left: var(--ds-space-6);
}
.seo-list li::marker {
  color: var(--ds-muted);
}
.seo-more {
  padding: var(--ds-space-4) var(--ds-space-5);
  border-radius: var(--ds-radius-md);
  background: var(--ds-soft);
}
.seo-more a,
.seo-body p a {
  text-underline-offset: 3px;
}

/* ---- Comparison table: wraps text, keeps the row names on screen while scrolling sideways ---- */
.seo-table .ds-table {
  white-space: normal;
  font-size: var(--ds-text-sm);
  min-width: calc(var(--ds-space-16) * 13);
}
.seo-table .ds-table caption {
  font-size: var(--ds-text-xs);
}
.seo-table thead th,
.seo-table thead td {
  background: var(--ds-soft);
  color: var(--ds-ink);
  vertical-align: bottom;
}
.seo-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 22%;
  background: var(--ds-paper);
  color: var(--ds-ink);
  vertical-align: top;
}
.seo-table thead td {
  position: sticky;
  left: 0;
  z-index: 1;
}
.seo-table td {
  vertical-align: top;
  background: var(--ds-paper);
}
.seo-table thead th:first-of-type,
.seo-table td[data-own='true'] {
  background: var(--ds-accent-soft);
}
.seo-table-hint {
  display: none;
  margin-bottom: var(--ds-space-2);
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
}
.seo-note {
  font-size: var(--ds-text-xs);
  color: var(--ds-muted);
  max-width: var(--reading);
}

/* ---- One system in the article ---- */
.seo-system {
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-6);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.seo-system h3 {
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-weight-semibold);
}
.seo-facts {
  display: grid;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-2);
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-line);
}
.seo-facts dt {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

/* ---- Pictures: phone screenshots side by side at their size, desktop ones across the column ---- */
.seo-figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-6);
  margin-top: var(--ds-space-2);
}
.seo-figure {
  display: grid;
  gap: var(--ds-space-3);
  align-content: start;
  margin: 0;
}
.seo-figure[data-kind='wide'] {
  flex: 1 1 100%;
}
.seo-figure[data-kind='phone'] {
  flex: 0 1 calc(var(--ds-space-16) * 4);
}
.seo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-paper);
}
.seo-figure[data-kind='phone'] img {
  border-radius: var(--ds-radius-panel);
}
/* Pictures from other systems' sites already show a device: no border or background of our own,
   and smaller than our own screenshots. */
.seo-figure[data-frame='own'] img {
  border: 0;
  background: none;
}
.seo-figure[data-frame='own'][data-kind='wide'] {
  max-width: calc(var(--ds-space-16) * 9);
}
.seo-figure[data-frame='own'][data-kind='phone'] img {
  max-width: calc(var(--ds-space-16) * 4);
}
.seo-figure figcaption,
.seo-flow-figure figcaption {
  font-size: var(--ds-text-sm);
  color: var(--ds-muted);
}
.seo-cover {
  max-width: var(--reading);
  margin: 0 auto var(--ds-space-12);
}
.seo-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ds-radius-panel);
}

/* ---- «Як заявка потрапляє до господаря» ---- */
.seo-flow-figure {
  display: grid;
  gap: var(--ds-space-3);
  margin: var(--ds-space-2) 0 0;
}
.seo-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--ds-space-3);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.seo-flow li {
  position: relative;
  display: grid;
  gap: var(--ds-space-2);
  align-content: start;
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-paper);
  font-size: var(--ds-text-sm);
  counter-increment: step;
}
.seo-flow li::before {
  content: counter(step);
  font-family: var(--ds-font-display);
  font-size: var(--ds-text-xl);
  color: var(--ds-muted);
}
.seo-flow li span:not(.ds-badge) {
  color: var(--ds-muted);
}

/* ---- FAQ ---- */
.seo-section .ds-accordion-item > summary {
  font-size: var(--ds-text-lg);
}
.seo-section .ds-accordion-content {
  color: var(--ds-ink);
}

/* ---- Final call to action, the landing's green block without the drawing ---- */
.seo-cta {
  display: grid;
  justify-items: center;
  gap: var(--ds-space-5);
  margin-block: var(--ds-space-16);
  padding: var(--ds-space-16) var(--ds-space-8);
  border-radius: calc(var(--ds-radius-panel) + var(--ds-space-2));
  background: var(--ds-accent);
  color: var(--ds-paper);
  text-align: center;
}
.seo-cta h2 {
  font-size: var(--ds-text-3xl);
}
.seo-cta p {
  max-width: calc(var(--ds-space-16) * 9);
  opacity: 0.85;
}
.seo-cta .ds-button[data-variant='secondary'] {
  background: var(--ds-paper);
  color: var(--ds-ink);
  border-color: var(--ds-paper);
}

/* ---- Phone ---- */
@media (max-width: 760px) {
  .wrap {
    padding-inline: var(--ds-space-4);
  }
  .head-row {
    gap: var(--ds-space-2);
  }
  .head-nav,
  .seo-login {
    display: none;
  }
  .head-actions {
    margin-left: auto;
  }
  .seo-hero {
    margin-block: var(--ds-space-6) var(--ds-space-8);
  }
  .seo-hero h1 {
    font-size: var(--ds-text-2xl);
  }
  .seo-hero .ds-button {
    width: 100%;
  }
  .seo-body {
    gap: var(--ds-space-10);
  }
  .seo-body > p,
  .lead {
    font-size: var(--ds-text-md);
  }
  .seo-section h2 {
    font-size: var(--ds-text-xl);
  }
  .seo-wide {
    --wide: 100%;
  }
  .seo-table .ds-table {
    min-width: calc(var(--ds-space-16) * 10);
  }
  .seo-table-hint {
    display: block;
  }
  .seo-table tbody th {
    width: auto;
    min-width: calc(var(--ds-space-16) * 2);
  }
  .seo-system {
    padding: var(--ds-space-5);
  }
  .seo-flow {
    grid-template-columns: 1fr;
  }
  .seo-flow li {
    grid-template-columns: auto 1fr;
    column-gap: var(--ds-space-3);
  }
  .seo-flow li::before {
    grid-row: span 3;
  }
  .seo-figure[data-kind='phone'] {
    flex-basis: 100%;
  }
  .seo-cover {
    margin-bottom: var(--ds-space-8);
  }
  .seo-cta {
    margin-block: var(--ds-space-12);
    padding: var(--ds-space-12) var(--ds-space-5);
  }
  .seo-cta h2 {
    font-size: var(--ds-text-2xl);
  }
}
