/*
 * „Куриери“: the courier pages under /couriers (owner 2026-10-22). They load landing.css
 * first and reuse its tokens and parts -- header, footer, .steps, .ticks, .rows, .legal-list, .btn,
 * .device -- so this file holds only the guide's own layout: the title band, the
 * reading column, the facts card, the screenshot beside the text, the closing ask and the other guides.
 */

/* Footer at the bottom of a short page, as on the legal pages. */
body:has(> .guide-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body:has(> .guide-page) > .guide-page {
  flex: 1 0 auto;
  width: 100%;
}

body:has(> .guide-page) .site-header {
  border-bottom-color: var(--line);
}

.guide-page {
  padding: 0 0 80px;
}

.guide-wrap {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* The title band. */
.guide-hero {
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}


.guide-hero .eyebrow {
  margin: 0 0 12px;
}

.guide-page h1 {
  margin: 0 0 14px;
  font-size: var(--fs-2);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.guide-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-4);
  line-height: 1.55;
  text-wrap: pretty;
}

/* The reading column. */
.guide-body {
  padding-top: 40px;
}

.guide-section + .guide-section {
  margin-top: 52px;
}

.guide-page h2 {
  margin: 0 0 14px;
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.guide-section > p,
.guide-text > p {
  max-width: 64ch;
  line-height: 1.65;
}

.guide-section > p + p,
.guide-text > p + p,
.guide-section > p + .ticks,
.guide-text > p + .ticks,
.guide-section > .ticks + p,
.guide-section > .steps + p {
  margin-top: 14px;
}

.guide-section > p + .steps,
.guide-section > p + .rows {
  margin-top: 18px;
}

.guide-page .steps {
  max-width: none;
}

.guide-page .step__text {
  line-height: 1.55;
}

.guide-page .ticks li {
  line-height: 1.55;
}

/* Names of the app's own buttons and settings, as the merchant will see them. */
.ui {
  color: var(--ink);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.guide-page a:not(.btn) {
  color: var(--green-deep);
  font-weight: var(--fw-medium);
  text-underline-offset: 3px;
}

/* „Накратко“: the guide's facts in the legal pages' card (a label and one line each). */
.guide-facts {
  margin-top: 0;
}

.guide-facts .legal-list dd {
  color: var(--ink);
}

/* One fact the merchant must not miss. */
.guide-note {
  max-width: 64ch;
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--mint);
  color: var(--ink);
  line-height: 1.55;
}

/* A screenshot beside its text: under it on phones, to its right from 760 px. */
.guide-split {
  display: grid;
  gap: 28px;
  align-items: start;
}

.guide-shot {
  margin: 0;
}

.guide-shot .device--phone {
  --device-w: min(72vw, 280px);
}

.guide-shot figcaption {
  max-width: 300px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: var(--fs-6);
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 760px) {
  .guide-split {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .guide-shot .device--phone {
    --device-w: 280px;
  }
}

/*
 * The closing ask: the landing page's one lead CTA, the live checkout second. In the request form's own
 * green (.scene--finale, owner 2026-10-22), and its buttons react as the form's do: the lead one white like
 * „Създайте профил“, mint under the pointer; the second outlined in white; both press in (.btn:active).
 */
.guide-ask {
  --focus: #ffffff;
  display: grid;
  gap: 18px;
  margin-top: 56px;
  padding: 28px 24px;
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--finale-top) 0%, var(--finale-bottom) 100%);
  color: #ffffff;
}

.guide-ask + .guide-section {
  margin-top: 52px;
}

.guide-ask h2 {
  margin: 0;
  color: #ffffff;
}

.guide-ask p {
  color: #ffffff;
  line-height: 1.55;
}

.guide-ask__actions {
  display: grid;
  gap: 12px;
}

.guide-ask .btn {
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

.guide-ask .btn:active {
  background: var(--mint);
}

.guide-ask .btn--quiet {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.guide-ask .btn--quiet:active {
  background: rgba(255, 255, 255, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .guide-ask .btn:hover {
    background: var(--mint);
  }

  .guide-ask .btn--quiet:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 640px) {
  .guide-ask {
    padding: 36px 40px;
  }

  .guide-ask__actions {
    grid-auto-flow: column;
    justify-content: start;
  }
}

/* The other guides: a card each. */
.guide-cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* An odd last card takes the whole row rather than half of it. */
  .guide-cards > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.guide-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}

.guide-card__mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 40px;
  margin-bottom: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.guide-card__mark img {
  width: auto;
  max-width: 100%;
  max-height: 26px;
  object-fit: contain;
}

.guide-card__mark .icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-card h3 {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.5;
}

/* The whole card is the link. */
.guide-page .guide-card a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card a::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.guide-card:has(a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .guide-card:hover {
    box-shadow: 0 0 0 1.5px var(--green), var(--shadow-card);
  }

  .guide-card:hover h3 {
    color: var(--green-deep);
  }
}

/* The contact line on the hub. */

/* „Въпроси? Пишете ни на …“ as on the legal pages, the same distance below the content. */
.guide-page .legal-contact {
  margin-top: 40px;
}
