/* Service and accounting pages. All layout queries use the width remaining beside the catalogue menu. */
.shop-services {
  --shop-pad: clamp(20px, 4%, 48px);
  container-type: inline-size;
  background: var(--paper);
  color: var(--text);
}

.shop-services .shop-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--shop-pad);
}

.shop-services a:focus-visible,
.shop-services summary:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 4px;
}

.shop-services .shop-hero {
  padding: clamp(23px, 3.5cqw, 45px) 0 clamp(42px, 6cqw, 78px);
  background: var(--steel);
}

.shop-services .shop-crumb,
.shop-services .shop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.shop-services .shop-crumb {
  margin: 0 0 clamp(20px, 3.2cqw, 40px);
  font-size: var(--fs-14);
  color: var(--text-2);
}

.shop-services .shop-spread {
  display: grid;
  gap: 25px;
  align-items: center;
}

.shop-services .shop-intro h1 {
  max-width: 20ch;
  font-size: clamp(2.1rem, 5.15cqw, 3.8rem);
  line-height: 1.055;
  letter-spacing: -.035em;
}

.shop-services .shop-intro p,
.shop-services .shop-heading p {
  max-width: 61ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.75cqw, 1.2rem);
  line-height: 1.55;
}

.shop-services .shop-intro p { margin: 20px 0 22px; }
.shop-services .shop-actions { gap: 9px 18px; }
.shop-services .shop-actions .btn { min-height: 48px; }
.shop-services .shop-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--fs-15);
}

.shop-services .shop-photo {
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border-radius: var(--r-3);
  background: var(--ink);
}

.shop-services .shop-photo picture { display: block; flex: 1; }
.shop-services .shop-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.shop-services .shop-photo figcaption {
  margin: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-14);
  line-height: 1.45;
}

.shop-services .shop-section { padding-block: clamp(42px, 5.8cqw, 78px); }
.shop-services .shop-section + .shop-section { border-top: 1px solid var(--line); }
.shop-services .shop-dark { background: var(--ink); color: var(--on-ink); }
.shop-services .shop-steel { background: var(--steel); }

.shop-services .shop-heading { margin-bottom: clamp(22px, 2.9cqw, 36px); }
.shop-services .shop-heading h2 {
  color: inherit;
  font-size: clamp(1.75rem, 3.8cqw, 2.65rem);
  letter-spacing: -.03em;
  line-height: 1.12;
}
.shop-services .shop-heading p { margin: 13px 0 0; }
.shop-services .shop-dark .shop-heading p,
.shop-services .shop-dark .shop-pairs dd,
.shop-services .shop-case-main p { color: var(--on-ink-2); }
.shop-services :is(.shop-compare, .shop-case, .shop-stages) h3 {
  color: inherit;
  font-size: clamp(1.18rem, 2.2cqw, 1.5rem);
  line-height: 1.2;
}

.shop-services .shop-compare {
  display: grid;
  gap: 24px;
}
.shop-services .shop-compare article { border-top: 3px solid var(--ink); padding-top: 17px; }
.shop-services .shop-compare article:last-child { border-color: var(--accent); }
.shop-services .shop-compare p { margin: .75em 0 .35em; max-width: 51ch; color: var(--text-2); }

.shop-services .shop-case { display: grid; gap: 26px; align-items: start; }
.shop-services .shop-case-main p { margin: .6em 0 0; max-width: 54ch; }
.shop-services .shop-quantities { margin: 0; }
.shop-services .shop-quantities > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--ink-3);
}
.shop-services .shop-quantities dt { font-weight: 500; }
.shop-services .shop-quantities dd {
  flex: none;
  margin: 0;
  color: var(--on-ink);
  font: 600 var(--fs-24)/1.1 var(--f-mono);
}
.shop-services .shop-quantities dd small { font-size: var(--fs-14); }
.shop-services .shop-quantities > div:first-child { border-top: 3px solid var(--accent); }
.shop-services .shop-quantities > div:first-child dd { color: var(--accent); }
.shop-services .shop-after {
  max-width: 77ch;
  margin: 26px 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.shop-services .shop-after a { color: inherit; }
.shop-services .shop-dark a:focus-visible { outline-color: var(--accent); }
.shop-services .shop-pairs { margin: 0; }
.shop-services .shop-pairs > div {
  display: grid;
  gap: .35em 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.shop-services .shop-dark .shop-pairs > div { border-color: var(--ink-3); }
.shop-services .shop-pairs dt { font-family: var(--f-display); font-weight: 650; font-size: 1.13rem; }
.shop-services .shop-pairs dd { margin: 0; max-width: 72ch; color: var(--text-2); }

.shop-services .shop-stages {
  display: grid;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: stage;
}
.shop-services .shop-stages li { counter-increment: stage; border-top: 1px solid var(--line); padding-top: 14px; }
.shop-services .shop-stages li::before {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font: 600 var(--fs-15)/1.25 var(--f-mono);
  content: counter(stage, decimal-leading-zero);
}
.shop-services .shop-stages p { margin: .6em 0 0; color: var(--text-2); }

.shop-services .shop-related { display: grid; margin-top: 17px; }
.shop-services .shop-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 49px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.shop-services .shop-related a:hover { color: var(--accent-deep); }
.shop-services .shop-related svg { flex: none; color: var(--accent-deep); }
.shop-services .shop-faq details { border-top: 1px solid var(--line); }
.shop-services .shop-faq details:last-child { border-bottom: 1px solid var(--line); }
.shop-services .shop-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 13px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.shop-services .shop-faq summary::-webkit-details-marker { display: none; }
.shop-services .shop-faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg);
}
.shop-services .shop-faq details[open] summary::after { transform: rotate(225deg); }
.shop-services .shop-faq details p { max-width: 72ch; margin: 0 0 18px; color: var(--text-2); }

.shop-services .shop-ledger {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--paper);
}
.shop-services .shop-ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 17px 19px;
  background: var(--ink);
  color: var(--on-ink);
}
.shop-services .shop-ledger-head h3 { color: inherit; font-size: var(--fs-20); }
.shop-services .shop-ledger-head p {
  margin: 0;
  font: 500 var(--fs-14)/1.5 var(--f-mono);
  color: var(--on-ink-2);
}
.shop-services .shop-ledger-head p span { margin-inline: 2px; }
.shop-services .shop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-15);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.shop-services .shop-table th,
.shop-services .shop-table td { padding: 13px 9px; text-align: left; vertical-align: top; }
.shop-services .shop-table th:first-child { padding-left: 19px; }
.shop-services .shop-table th:last-child,
.shop-services .shop-table td:last-child { padding-right: 19px; }
.shop-services .shop-table thead { background: var(--steel); color: var(--text-2); }
.shop-services .shop-table thead th { font-size: var(--fs-14); font-weight: 600; }
.shop-services .shop-table tbody tr { border-top: 1px solid var(--line); }
.shop-services .shop-table tbody th { font-weight: 650; }
.shop-services .shop-table td > span { display: none; }
.shop-services .shop-table td b { font-family: var(--f-mono); font-weight: 500; }
.shop-services .shop-table .shop-mark { max-width: 32ch; color: var(--text-2); }
.shop-services .shop-table tbody tr:last-child { background: var(--accent-soft); }
.shop-services .shop-table tbody tr:last-child th { color: var(--accent-deep); }
.shop-services .shop-ledger-foot { margin: 0; padding: 14px 19px; border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-14); }
.shop-services .shop-verdict {
  display: grid;
  gap: 16px 26px;
  margin-top: 17px;
  padding: clamp(19px, 3cqw, 30px);
  border-radius: var(--r-3);
  background: var(--ink);
  color: var(--on-ink);
}
.shop-services .shop-verdict div > span { display: block; color: var(--on-ink-2); font-size: var(--fs-15); }
.shop-services .shop-verdict strong { display: block; color: var(--on-ink); font: 650 clamp(2.2rem,4.6cqw,3.7rem)/1.2 var(--f-display); }
.shop-services .shop-verdict strong small { color: var(--on-ink-2); font: 500 var(--fs-20)/1.2 var(--f-mono); }
.shop-services .shop-verdict p { margin: 0; max-width: 68ch; }
.shop-services .shop-verdict b { color: var(--on-ink); }

@container (min-width: 650px) {
  .shop-services .shop-compare,
  .shop-services .shop-case { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .shop-services .shop-pairs > div { grid-template-columns: minmax(185px,.8fr) minmax(0,1.8fr); }
  .shop-services .shop-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-services .shop-verdict { grid-template-columns: minmax(145px,.72fr) minmax(0,2fr); align-items: center; }
}
@container (min-width: 870px) {
  .shop-services--custom .shop-intro h1 { max-width: none; font-size: clamp(2.55rem,4.2cqw,3.25rem); }
  .shop-services--custom .shop-photo img { object-position: 65% center; }
  .shop-services .shop-spread { grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); gap: clamp(25px,3.9cqw,52px); }
  .shop-services .shop-photo picture { min-height: 245px; position: relative; }
  .shop-services .shop-photo img { position: absolute; inset: 0; }
  .shop-services .shop-stages { grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); }
}
@container (max-width: 740px) {
  .shop-services .shop-table, .shop-services .shop-table tbody { display: block; }
  .shop-services .shop-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .shop-services .shop-table tbody tr {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 9px 8px;
    padding: 16px;
  }
  .shop-services .shop-table tbody tr > :is(th,td) { display: block; padding: 0; }
  .shop-services .shop-table tbody th, .shop-services .shop-table .shop-mark { grid-column: 1/-1; max-width: none; }
  .shop-services .shop-table tbody th { margin-bottom: 3px; font-size: 1rem; }
  .shop-services .shop-table tbody th:first-child { padding-left: 0; }
  .shop-services .shop-table td > span { display: block; margin-bottom: 3px; font: 400 var(--fs-12)/1.2 var(--f-text); color: var(--text-2); }
  .shop-services .shop-table .shop-mark { margin-top: 4px; }
}
@container (max-width: 410px) {
  .shop-services .shop-table tbody tr { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px 7px; }
  .shop-services .shop-table tbody tr > td:nth-child(6) { display: flex; align-items: baseline; gap: 9px; grid-column: 1/-1; }
  .shop-services .shop-table tbody tr > td:nth-child(6) > span { display: inline; }
}
@media print {
  .shop-services .shop-dark, .shop-services .shop-verdict { color: var(--ink); background: var(--paper); }
  .shop-services .shop-section { padding-block: 24px; }
  .shop-services .shop-ledger, .shop-services .shop-table tr { break-inside: avoid; }
}
