/* ──────────────────────────────────────────────────────────────────────────
   iatrt-pages.css — page layout for the 2026-09 readability rework.
   Loaded after public.css + iatrt-redesign.css on every templated page.
   Owns: base type scale, the .sp-* section components used by
   service_page / locality_page / home_page templates. Legacy pages that
   don't use .sp-* classes are unaffected apart from the body type scale.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --sp-measure: 66ch;
  --sp-rule: rgba(var(--ink-rgb), 0.14);
  --sp-rule-soft: rgba(var(--ink-rgb), 0.09);
  --sp-radius: 22px;
}

/* ---- Base type scale ---------------------------------------------------- */
body {
  font-size: 17px;
  line-height: 1.6;
}

.page {
  padding-bottom: 0;
}

.container {
  width: min(1180px, calc(100% - 48px));
}

/* ---- Shared section chrome --------------------------------------------- */
.sp-section {
  padding: clamp(56px, 7vw, 100px) 0 0;
}

.sp-section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sp-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.sp-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.sp-section-head > p {
  margin: 18px 0 0;
  max-width: var(--sp-measure);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.sp-prose {
  max-width: var(--sp-measure);
}

.sp-prose p {
  margin: 0 0 1.1em;
  color: var(--text-2);
}

.sp-prose p:last-child {
  margin-bottom: 0;
}

/* ---- Header tweaks so 7 nav items fit on one line at 1280–1440 ---------- */
.brand-sub {
  white-space: nowrap;
}

.header-inner {
  gap: 14px;
}

.primary-nav {
  gap: 4px;
}

.primary-nav a {
  padding: 9px 11px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (min-width: 1081px) {
  .primary-nav {
    margin-inline-end: 124px;
  }
}

/* ---- Hero --------------------------------------------------------------- */
.sp-hero {
  padding: 36px 0 0;
}

.sp-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(250, 250, 248, 0.98), rgba(245, 243, 239, 0.96));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.sp-hero-main .sp-kicker {
  margin-bottom: 18px;
}

.sp-hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}

.sp-lead {
  margin: 0 0 16px;
  max-width: 44ch;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.42;
  font-weight: 500;
  color: var(--ink);
  text-wrap: pretty;
}

.sp-intro {
  margin: 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sp-hero-actions .button {
  min-height: 50px;
  padding: 14px 22px;
  font-size: 12px;
}

/* Facts panel — the "real shop" block: address, hours, phone, free quote */
.sp-facts {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 26px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--sp-radius);
  box-shadow: 0 24px 46px rgba(var(--ink-rgb), 0.18);
}

.sp-facts .sp-kicker {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}

.sp-facts-title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.sp-facts dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.sp-facts dl > div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.sp-facts dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--white);
}

.sp-facts dd a {
  color: var(--white);
  text-decoration: none;
}

.sp-facts dd a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.sp-facts dd.sp-facts-phone {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- "What we fix" menu ------------------------------------------------- */
.sp-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(40px, 5vw, 72px);
}

.sp-menu-item {
  padding-top: 20px;
  border-top: 1px solid var(--sp-rule);
}

.sp-menu-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
}

.sp-menu-item h3 a {
  color: inherit;
  text-decoration: none;
}

.sp-menu-item h3 a::after {
  content: " \2192";
  color: var(--accent);
  font-weight: 400;
}

.sp-menu-item h3 a:hover {
  color: var(--accent);
}

.sp-menu-item p {
  margin: 0;
  max-width: 48ch;
  color: var(--text-2);
}

.sp-menu-item ul {
  margin: 8px 0 0;
  padding-inline-start: 1.1em;
  color: var(--text-2);
}

.sp-menu-item li {
  margin: 4px 0;
}

.sp-menu-item .sp-more {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---- Steps -------------------------------------------------------------- */
.sp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(32px, 4vw, 56px);
}

.sp-step {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.sp-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.sp-step h3 {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  color: var(--ink);
}

.sp-step p {
  margin: 0;
  color: var(--text-2);
  max-width: 40ch;
}

/* ---- Prices ------------------------------------------------------------- */
.sp-prices {
  max-width: 760px;
}

.sp-price-list {
  margin: 0;
  border-top: 1px solid var(--sp-rule);
}

.sp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sp-rule);
}

.sp-price-row dt {
  margin: 0;
  color: var(--ink);
}

.sp-price-row dt small {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--text-3);
}

.sp-price-row dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.sp-price-note {
  margin: 18px 0 0;
  max-width: var(--sp-measure);
  font-size: 15.5px;
  color: var(--text-3);
}

/* ---- FAQ ---------------------------------------------------------------- */
.sp-faq {
  max-width: 780px;
}

.sp-faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--sp-rule);
}

.sp-faq-item:last-child {
  border-bottom: 1px solid var(--sp-rule);
}

.sp-faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}

.sp-faq-item p {
  margin: 0;
  max-width: var(--sp-measure);
  color: var(--text-2);
}

/* ---- Areas / chips ------------------------------------------------------ */
.sp-areas p {
  max-width: var(--sp-measure);
  margin: 0 0 20px;
  color: var(--text-2);
}

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-chips a {
  display: inline-block;
  padding: 9px 15px;
  background: var(--white);
  border: 1px solid var(--sp-rule);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.sp-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Related links row -------------------------------------------------- */
.sp-related {
  padding-top: clamp(40px, 5vw, 64px);
}

.sp-related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--sp-rule);
}

.sp-related-row .sp-kicker {
  margin: 0;
}

.sp-related-row a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.sp-related-row a:hover {
  color: var(--accent);
}

/* ---- Contact block spacing (existing .contact markup) ------------------ */
.sp-contact {
  margin-top: clamp(56px, 7vw, 100px);
  padding: 0 0 56px;
}

.sp-contact .contact-grid {
  gap: 24px;
}

.sp-contact .contact p,
.sp-contact .consultation-note p {
  font-size: 16px;
}

/* ---- Home-specific ------------------------------------------------------ */
.sp-home-hero h1 {
  max-width: 18ch;
}

.sp-home-hero .sp-lead {
  max-width: 40ch;
}

.sp-menu-item.sp-menu-link h3 {
  font-size: 28px;
}

.sp-band {
  margin-top: clamp(56px, 7vw, 100px);
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--sp-rule-soft);
  border-bottom: 1px solid var(--sp-rule-soft);
}

.sp-band .sp-section {
  padding-top: 0;
}

.sp-band + .sp-section {
  padding-top: clamp(48px, 6vw, 80px);
}

/* Utility: hidden-but-accessible already exists as .visually-hidden */

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .sp-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }
}

@media (max-width: 900px) {
  .sp-hero-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sp-facts {
    align-self: auto;
  }

  .sp-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1180px, calc(100% - 32px));
  }

  .sp-hero {
    padding-top: 20px;
  }

  .sp-hero-card {
    padding: 28px 22px 26px;
    border-radius: 20px;
  }

  .sp-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    max-width: none;
  }

  .sp-lead {
    font-size: 19px;
    max-width: none;
  }

  .sp-hero-actions .button {
    width: 100%;
  }

  .sp-menu {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .sp-menu-item h3,
  .sp-menu-item.sp-menu-link h3 {
    font-size: 24px;
  }

  .sp-facts {
    padding: 22px 20px 20px;
  }

  .sp-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sp-price-row dd {
    font-size: 22px;
  }

  .sp-related-row a {
    font-size: 18px;
  }

  .sp-contact {
    padding-bottom: 40px;
  }
}

