/* QMD · service.css — rules for the generated static pages only (service pages and the ru/ kz/ en/ entry pages).
   Loaded after styles.css; tokens, header, footer, .service-list, .about, .contact, .facts come from there. */

/* Breadcrumb: mono, home › services › page */
.crumbs { margin-bottom: 40px; color: var(--ink-dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: '›'; margin: 0 10px; color: var(--ink-dim); font-size: 13px; line-height: 1; }
.crumbs a { color: var(--ink-muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.crumbs li:first-child a::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 10px; background: var(--signal); vertical-align: 1px; }
.crumbs [aria-current] { color: var(--ink); padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(46vw, 420px); }

/* Service hero: long Kazakh titles must wrap inside a 390 px viewport */
.service-hero h1 { overflow-wrap: break-word; hyphens: manual; }
.service-hero .lead { text-wrap: pretty; }

/* "What to provide" as a checklist */
.service-body .checklist li { display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; align-items: start; }
.service-body .checklist li::before { content: ''; width: 12px; height: 12px; margin-top: 6px; border: 1px solid var(--ink-muted); border-radius: 2px; background: linear-gradient(var(--canvas), var(--canvas)) padding-box; }
.service-body .checklist li:hover::before { border-color: var(--signal); }
/* Steps keep their order visible */
.service-body .steps ul { counter-reset: step; }
.service-body .steps li { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; }
.service-body .steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-dim); padding-top: 4px; }
.service-body ul:empty::after { content: '—'; display: block; padding: 12px 0; color: var(--ink-dim); border-top: 1px solid var(--hairline); }

/* Prev / next service */
.service-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--hairline); }
.service-pager > * { display: grid; gap: 14px; align-content: start; padding: 44px var(--gutter) 56px; min-width: 0; }
.service-pager > :last-child { border-left: 1px solid var(--hairline); text-align: right; justify-items: end; }
.service-pager .mono { color: var(--ink-dim); }
.service-pager h3 { font-size: clamp(20px, 2vw, 26px); max-width: 420px; transition: color 0.2s; }
.service-pager a:hover h3 { color: var(--signal); }
.service-pager .pager-empty { color: var(--ink-dim); opacity: 0.6; }

/* Entry pages (ru/, kz/, en/): the home copy as a plain, scroll-only document */
.entry-hero { position: relative; overflow: hidden; padding: 40px var(--gutter) 110px; min-height: calc(100svh - var(--header) - 40px); display: flex; flex-direction: column; justify-content: flex-end; }
.entry-hero .corner-tl { position: static; display: grid; gap: 6px; color: var(--ink-dim); margin-bottom: auto; padding-bottom: 60px; }
.entry-hero .corner-tl span:first-child { color: var(--ink-muted); }
.entry-hero h1 { font-size: clamp(34px, 6.2vw, 92px); max-width: 1180px; overflow-wrap: break-word; }
.entry-hero .lead { font-size: 20px; color: var(--ink-muted); max-width: 640px; margin: 28px 0 34px; text-wrap: pretty; }
.entry-hero .big-word { color: #e9edef06; font-size: clamp(160px, 28vw, 420px); right: -0.06em; bottom: -0.22em; }
.entry-hero .big-word span { color: #d8432f14; }
.interactive-note { margin-top: 18px; font-size: 13px; color: var(--ink-dim); max-width: 520px; }
.entry-page .service-list a { grid-template-columns: 70px 1fr auto 28px; }
.contact-ways { display: grid; gap: 24px; align-content: start; }
.contact-ways h3 { color: var(--ink-dim); font-weight: 400; }
.contact-ways .facts { margin: 0; padding: 0; border: 0; }
.contact-ways .facts dd a { border-bottom: 1px solid var(--hairline); transition: border-color 0.2s; }
.contact-ways .facts dd a:hover { border-bottom-color: var(--ink); }
.contact-ways .actions { margin-top: 12px; }

@media (max-width: 760px) {
  .crumbs { margin-bottom: 28px; }
  .crumbs [aria-current] { max-width: 100%; white-space: normal; }
  .service-hero h1 { font-size: clamp(27px, 7.4vw, 36px); }
  .service-pager { grid-template-columns: 1fr; }
  .service-pager > * { padding: 32px var(--gutter) 40px; }
  .service-pager > :last-child { border-left: 0; border-top: 1px solid var(--hairline); text-align: left; justify-items: start; }
  .entry-hero { padding-bottom: 70px; min-height: 0; }
  .entry-hero .corner-tl { padding-bottom: 44px; }
  .entry-hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .entry-hero .lead { font-size: 17px; }
  .entry-hero .big-word { font-size: 160px; }
  .entry-page .service-list a { grid-template-columns: 30px 1fr 20px; }
}

/* Catalog list for static pages (moved here from styles.css when the home catalog became a rail). */
.service-list { list-style: none; margin: 56px 0 0; padding: 0; }
.service-list a { display: grid; grid-template-columns: 70px 1fr auto 28px; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--hairline); transition: transform 0.25s; }
.service-list li:last-child a { border-bottom: 1px solid var(--hairline); }
.service-list a:hover { transform: translateX(12px); }
.service-list a:focus-visible { outline-offset: -2px; }
.service-list h3 { font-size: 22px; }
.service-list a > span:first-child { color: var(--ink-dim); }
.service-list .status { color: var(--ink-muted); }
.service-list .status.accent { color: var(--signal); }
.service-list a::after { content: '+'; font-size: 24px; color: var(--ink-dim); transition: transform 0.25s, color 0.25s; }
.service-list a:hover::after { transform: rotate(90deg); color: var(--signal); }
.service-list p { margin-top: 8px; color: var(--ink-muted); font-size: 14px; max-width: 560px; }
@media (max-width: 760px) { .service-list a { grid-template-columns: 30px 1fr 20px; } .service-list .status { display: none; } }
