/* ABC Home Expert — homepage v3.
   Values follow the Pencil mockups "Home v3 — Desktop (graphite, H1 variant)" (1440), "Home v3 — Tablet (768)"
   and "Home v3 — Mobile (390)". Desktop first: the base rules are the desktop layout; each block ends with
   @media (max-width: 1199.98px) for tablets (768–1199, 32px side margins) and (max-width: 767.98px) for phones
   (20px side margins; 576–767 stretches the phone layout). The page works down to 320px.
   Exceptions: the hero puts the copy and the video side by side again from 992px; under 360px the sticky bar
   and the projects carousel tighten.
   Pencil draws strokes centred on the edge and does not count them in the layout,
   so boxes with a 1px border get 1px less padding to keep content where the mockup has it. */

:root {
  --navy: #202938;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --text: #222222;
  --text-body: #333333;
  --text-2: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --placeholder: #6b7280;
  --error: #dc2626; /* form errors only: 4.83:1 on white, 4.62:1 on --bg-alt */
  --on-dark-2: rgba(255, 255, 255, .8);
  --on-dark-muted: rgba(255, 255, 255, .7);
  --line-dark: rgba(255, 255, 255, .12);
  --card-dark: rgba(255, 255, 255, .05);
  --overlay: rgba(32, 41, 56, .8);
  --on-media: rgba(255, 255, 255, .9);
  --lift: 0 5px 15px rgba(0, 0, 0, .1);
}

/* ---------- Fonts ----------
   The web font has its own family name, "Inter Web": with plain "Inter" a browser may draw the page
   with an Inter installed on the visitor's computer (another version) instead of the fallback below.
   Inter is served from this site (variable woff2, latin subset, all weights in one file) and preloaded in <head>.
   Until it arrives the page is drawn in "Inter Fallback": Arial scaled to Inter's widths and vertical metrics,
   per weight, tuned on this page's text so every block breaks into the same lines (audit/tune-fallback.mjs). Lines then break the same way
   and nothing moves when Inter replaces it. ascent/descent = Inter's 96.88% / 24.12% divided by size-adjust. */

@font-face {
  font-family: "Inter Web";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-v20.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 100 549;
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.60%; ascent-override: 90.88%; descent-override: 22.63%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 550 649;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.60%; ascent-override: 95.35%; descent-override: 23.74%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 650 749;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 100.90%; ascent-override: 96.01%; descent-override: 23.91%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 750 849;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 104.30%; ascent-override: 92.88%; descent-override: 23.13%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 850 1000;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 105.60%; ascent-override: 91.74%; descent-override: 22.84%; line-gap-override: 0%;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Web", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
cite { font-style: normal; }
.i, .i-fill { display: block; flex: none; }
.is-pending { cursor: default; }

/* ---------- Type roles ----------
   Line heights are the mockup ratios rounded to whole pixels per line,
   which is how Pencil lays out text (52 × 1.05 = 54.6 → 55, 15 × 1.5 = 22.5 → 23). */

.t-display { font-size: 52px; font-weight: 800; line-height: 55px; letter-spacing: -1px; }
.t-h2      { font-size: 40px; font-weight: 800; line-height: 44px; letter-spacing: -.5px; }
.t-title-l { font-size: 24px; font-weight: 700; line-height: 29px; }
.t-h3      { font-size: 20px; font-weight: 700; line-height: 24px; }
.t-card    { font-size: 17px; font-weight: 700; line-height: 24px; }
.t-lead    { font-size: 18px; line-height: 27px; }
.t-body    { font-size: 16px; line-height: 24px; }
.t-body-s  { font-size: 15px; line-height: 23px; }
.t-body-xs { font-size: 14px; line-height: 21px; }
.t-meta    { font-size: 13px; line-height: 18px; }
.t-kicker  { font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; }
.t-label   { font-size: 14px; font-weight: 600; line-height: 17px; }
/* 19px, not 18: bold text from 18.66px (14pt) is "large" in WCAG 1.4.3, so white on #ea580c (3.56:1) meets its 3:1 */
.t-button  { font-size: 19px; font-weight: 700; line-height: 22px; }
.t-link    { font-size: 15px; font-weight: 700; line-height: 18px; }

/* Tablets and phones: only H1, H2 and the form titles change size, every other role stays */
@media (max-width: 1199.98px) {
  .t-display { font-size: 44px; line-height: 46px; letter-spacing: -1px; }
  .t-h2      { font-size: 34px; line-height: 37px; letter-spacing: -.5px; }
}
@media (max-width: 767.98px) {
  .t-display { font-size: 34px; line-height: 37px; letter-spacing: -.5px; }
  .t-h2      { font-size: 28px; line-height: 32px; letter-spacing: -.3px; }
  .t-title-l { font-size: 22px; line-height: 26px; }
}
/* Very narrow phones (under 360px, e.g. the first iPhone SE): every H1 steps down to 31/34, so long names such as
   "ABC Home Expert" fit the 280px column (the user's decision, 2026-09-28) */
@media (max-width: 359.98px) {
  .t-display { font-size: 31px; line-height: 34px; }
}

/* ---------- Layout ---------- */

.container { position: relative; width: 1140px; margin: 0 auto; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 1199.98px) {
  .container { width: auto; margin: 0 32px; }
  .section { padding: 64px 0; }
  .stack { gap: 32px; }
}
@media (max-width: 767.98px) {
  .container { margin: 0 20px; }
  .section { padding: 56px 0; }
  .stack--m24 { gap: 24px; }
}

/* Skip link: the first Tab stop, visible only when focused (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 300; padding: 12px 16px; border-radius: 8px;
  background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; line-height: 20px;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- Shared elements ---------- */

.kicker { display: flex; align-items: center; gap: 12px; color: var(--accent-strong); }
.kicker::before { content: ""; flex: none; width: 24px; height: 2px; background: var(--accent); }
.kicker--dark { color: var(--accent); }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.head-row--g48 { gap: 48px; }
.head-row__text { flex: none; width: 620px; display: flex; flex-direction: column; }
.head-row__text--w640 { width: 640px; }
.head-row__text--g10 { gap: 10px; }
.head-row__text--g12 { gap: 12px; }
.head-row__text--g14 { gap: 14px; }
.head-row__intro { flex: none; width: 420px; color: var(--text-2); }
.head-row__intro--dark { color: var(--on-dark-2); }
.head-row__sub { color: var(--text-2); }
/* Tablets and phones: the heading block, then the intro (or the link / button) under it */
@media (max-width: 1199.98px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .head-row--btn { gap: 20px; }
  .head-row__text, .head-row__text--w640, .head-row__intro { flex: none; width: auto; align-self: stretch; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; text-align: center;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn--primary { padding: 16px 24px; background: var(--accent-strong); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(234, 88, 12, .3); }
.btn--block { display: flex; width: 100%; padding: 16px; }
/* A 2px navy frame inside the edge (the user, 2026-10-12: the mockup's frame, centred on the edge, stood 1px outside
   and made the button look bigger than an orange one beside it). The padding is 1px less than with the old 1px
   border, so the button keeps its size. */
.btn--outline {
  flex: none; padding: 10px 18px;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--navy); transition: color .2s; }
.link-arrow--light { color: #fff; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow.is-pending:hover { color: var(--navy); }
.link-arrow.is-pending:hover .i { transform: none; }

.check-dot {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-strong); color: #fff;
}
.checklist { display: flex; flex-direction: column; gap: 10px; }
/* The dot sits on the first text line when an item wraps: (23px line - 22px dot) / 2; the CTA list uses 24px lines */
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist .check-dot { margin-top: .5px; }
.checklist--cta .check-dot { margin-top: 1px; }

.pill {
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 10px; border-radius: 6px;
  background: var(--overlay); color: #fff;
}
.pill--sm { left: 12px; bottom: 12px; padding: 5px 9px; }

/* Rating star: Material Symbols Rounded "star_rate", filled, inline SVG (20px and 24px optical sizes) */
.star { display: block; flex: none; color: var(--accent); }
.stars { display: flex; gap: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* Keeps a hyphenated word on one line ("walk-ins" is never split as "walk- / ins") */
.nowrap { white-space: nowrap; }

/* ---------- 0. Header ----------
   One markup for every width. 1200px and wider: info bar 40 + line 1 + main row 80 = 121px.
   768–1199: the menu wraps to its own row, 160px. Below 768: one 64px row, the menu opens full screen.
   Closed dropdowns are hidden with visibility, so their links take no Tab stops. */

.hdr { position: relative; z-index: 50; background: var(--navy); color: #fff; }
.hdr :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr__top { border-bottom: 1px solid var(--line-dark); }
/* Heights are minimums and rows may wrap: with larger text spacing (WCAG 1.4.12) the header grows instead of overlapping */
.hdr__top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; min-height: 40px; }
.hdr__addr, .hdr__hours { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--on-dark-2); }
.hdr__addr .i, .hdr__hours .i { color: var(--accent); }
/* The address and "Get directions" are one link to Google Maps; below 1200 only the arrow shows, the words stay for screen readers */
.hdr__addr { border-radius: 4px; transition: color .2s; }
.hdr__addr:hover { color: #fff; }
.hdr__dir { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-weight: 600; color: var(--accent); }
.hdr__dir .i { transition: transform .2s; }
.hdr__addr:hover .hdr__dir .i { transform: translate(2px, -2px); }
.hdr__hours { margin-right: auto; }
.hdr__socials { display: flex; gap: 10px; }
.hdr__social {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: var(--card-dark); color: #fff;
  transition: background-color .2s, color .2s;
}
.hdr__social:hover { background: rgba(255, 255, 255, .1); color: var(--accent); }

.hdr__main-in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.hdr__logo { flex: none; border-radius: 4px; }
.hdr__logo img { width: 107px; height: 57px; transition: transform .3s; }
.hdr__logo:hover img { transform: scale(1.02); }
.hdr__phone {
  flex: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 4px;
  font-size: 18px; font-weight: 700; line-height: 22px; color: #fff; white-space: nowrap; transition: color .2s;
}
.hdr__phone .i { color: var(--accent); }
.hdr__phone:hover { color: var(--accent); }
.hdr__cta { flex: none; height: 52px; padding: 0 22px; }
.hdr__burger { display: none; }

/* Wide screens: the drawer wrapper drops out of the layout and the nav sits in the row */
.drawer { display: contents; }
.drawer__head, .drawer__bar, .drawer__title, .drawer__contact, .nav__arrow, .drop__arrow, .mega__all-m { display: none; }
.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
/* The visible part of an item ("head"): a link, a button, or for Catalog both. As on the live site, on hover or while
   its menu is open it gets a light plate, orange text and a soft orange glow, and a 2px orange bar slides out from the
   middle to 80%. The live 2px lift and 5% zoom are left out at the user's request. */
.nav__head {
  position: relative; display: flex; align-items: center; border-radius: 8px; color: #fff;
  transition: color .4s cubic-bezier(.4, 0, .2, 1), background-color .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}
.nav__head::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--accent); transform: translateX(-50%); transition: width .3s ease;
}
.nav__item:hover > .nav__head, .nav__item.is-open > .nav__head {
  background: rgba(255, 255, 255, .1); color: var(--accent); box-shadow: 0 4px 12px rgba(249, 115, 22, .15);
}
.nav__item:hover > .nav__head::after, .nav__item.is-open > .nav__head::after,
.nav__head.is-current::after { width: 80%; }
.nav__link, .nav__toggle {
  display: flex; align-items: center; gap: 8px; padding: 15px 18px; border: 0; border-radius: 8px; background: none;
  font-size: 16px; font-weight: 600; line-height: 18px; color: inherit;
}
.nav__link--split { padding-right: 6px; }
.nav__toggle--split { padding-left: 0; }
.nav__toggle--split .nav__toggle-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.nav__chev { transition: transform .3s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }

.sub {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 60;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item.is-open > .sub { visibility: visible; opacity: 1; transform: none; }

/* As on the live site, the panel opens with the groups only (205 + 2px border); pointing at a group slides the rest
   (links and picture) out to the right. The columns keep their widths; the panel's width clips them. Only sliding out
   is animated: the panel folds back after it has faded out (main.js). overflow: clip, not only hidden: a clipping box
   can't be scrolled, so a fast Tab into a link during the slide doesn't shift the columns sideways. */
.mega {
  display: grid; grid-template-columns: 205px 265px 230px; width: 207px; min-height: 270px; overflow: hidden; overflow: clip;
  border: 1px solid var(--line-dark); border-radius: 12px; background: var(--navy); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.mega.is-wide { width: 702px; transition: opacity .2s, transform .2s, visibility .2s, width .2s linear; }
.mega__groups { grid-column: 1; padding: 6px 0; }
.mega__btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 43px; padding: 0 12px 0 20px; border: 0; background: none; text-align: left;
  font-size: 16px; line-height: 19px; color: #fff; transition: color .2s, background-color .2s;
}
/* The vertical bar grows from the middle, as the main menu's bar grows from the centre */
.mega__btn::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  background: var(--accent); transform: translateY(-50%); transition: height .3s ease;
}
.mega__chev { color: var(--on-dark-muted); }
/* Live-site highlight: an orange tint fading to the right */
.mega__group.is-active > .mega__btn { background: linear-gradient(to right, rgba(249, 115, 22, .1), rgba(249, 115, 22, .05) 50%, transparent); color: var(--accent); }
.mega__group.is-active > .mega__btn::before { height: 31px; }
.mega__group.is-active .mega__chev { color: var(--accent); }
.mega__links { display: none; position: absolute; left: 205px; top: 0; width: 265px; padding: 20px; }
.mega__group.is-active > .mega__links { display: block; }
.mega__title { margin-bottom: 12px; font-size: 16px; font-weight: 600; line-height: 22px; letter-spacing: .5px; color: var(--accent); }
.mega__links ul { display: flex; flex-direction: column; }
/* As on the live site: the pointed or focused link turns orange with a 5px dot, and the right column shows its picture */
.mega__links a {
  position: relative; display: block; padding: 4px 15px; border-radius: 4px;
  font-size: 16px; line-height: 19px; color: var(--on-dark-2); transition: color .3s;
}
/* Dot centred on the first line: 4px padding + 19px / 2 */
.mega__links a::before {
  content: ""; position: absolute; left: 0; top: 13.5px; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(249, 115, 22, .5); opacity: 0; transform: translateY(-50%); transition: opacity .3s;
}
.mega__links a:hover, .mega__links a.is-active { color: var(--accent); }
.mega__links a:hover::before, .mega__links a.is-active::before { opacity: 1; }
.mega__aside {
  grid-column: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 15px;
}
.mega__img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.mega__img[hidden], .mega__logo[hidden] { display: none; }
.mega__all { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; font-size: 15px; font-weight: 700; line-height: 18px; color: var(--accent); }
.mega__all .i { transition: transform .2s; }
.mega__all:hover .i { transform: translateX(3px); }

/* Services: the list and, as in Catalog, a right column that shows the pointed service's photo. The list is as wide as
   its longest item plus 20px on each side, but no narrower than the Catalog groups column (205px), so a renamed service
   still fits. The menu opens with the list only: the photo column sits past the panel's edge (margin-right: -230px,
   clipped); pointing at a service slides it out (margin 0 in .2s), as the live site grows its picture column. */
.drop {
  display: flex; width: max-content; overflow: hidden; overflow: clip; border: 1px solid var(--line-dark); border-radius: 12px;
  background: var(--navy); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.drop__list { flex: none; min-width: 205px; padding: 8px 0; }
/* Services look and behave like the Catalog groups: an orange tint, orange text and a vertical bar growing from the middle */
.drop__list a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 43px; padding: 0 20px; font-size: 16px; line-height: 19px; color: #fff; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.drop__list a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  background: var(--accent); transform: translateY(-50%); transition: height .3s ease;
}
.drop__list a:hover, .drop__list a.is-active { background: linear-gradient(to right, rgba(249, 115, 22, .1), rgba(249, 115, 22, .05) 50%, transparent); color: var(--accent); }
.drop__list a:hover::before, .drop__list a.is-active::before { height: 31px; }
.drop__aside { flex: none; display: flex; align-items: center; justify-content: center; width: 230px; margin-right: -230px; padding: 15px; }
.drop.is-wide .drop__aside { margin-right: 0; transition: margin-right .2s linear; }
.drop__img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.drop__img[hidden], .drop__logo[hidden] { display: none; }

/* 768–1199: two rows. Top: logo and button. Under a full-width line: the menu from the logo's left edge, the phone on the right. */
@media (max-width: 1199.98px) {
  .hdr .container { width: auto; margin: 0 32px; }
  .hdr__top-in { gap: 4px 20px; }
  .hdr__dir { margin-left: 0; }
  .hdr__dir-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The button spans the two right columns and sits at the right edge, so its width never widens the phone's column
     and never takes room from the menu in the row below. */
  .hdr__main-in {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo cta cta" "nav nav phone";
    gap: 0 20px; min-height: 0; padding-top: 8px;
  }
  .hdr__main-in::after {
    content: ""; grid-row: 2; grid-column: 1 / -1; align-self: start;
    height: 1px; margin: 7px -32px 0; background: var(--line-dark);
  }
  .hdr__logo { grid-area: logo; }
  .hdr__cta { grid-area: cta; justify-self: end; height: 48px; padding: 0 20px; }
  /* -12px = the menu item padding, so "Home" starts at the logo's left edge */
  .nav { grid-area: nav; margin: 8px 0 0 -12px; }
  .nav__list { justify-content: flex-start; }
  .nav__link, .nav__toggle { padding: 14px 12px; }
  .nav__link--split { padding-right: 6px; }
  .nav__toggle--split { padding-left: 0; }
  .hdr__phone { grid-area: phone; margin-top: 8px; font-size: 16px; line-height: 20px; }
  /* The Catalog panel (207px, 702px once a group is chosen) hangs from the left edge of the header row, under the menu */
  .nav__item--mega { position: static; }
  .mega { left: 0; }
}
/* Tablets: the hours show only what fits on one line next to the address and the socials, about 10px to spare:
   "· walk-ins welcome" from 850px (fits from 836), "· evenings & weekends by appointment" from 1090px (fits from 1081).
   Measured for this text at 13px Inter; re-measure if the text changes. From 1200 the whole line fits (12px to spare). */
@media (max-width: 1089.98px) { .hdr__appt { display: none; } }
@media (max-width: 849.98px) { .hdr__walkin { display: none; } }

/* Below 768: one row with the logo and the menu button; the menu opens full screen */
@media (max-width: 767.98px) {
  .hdr__top, .hdr__phone, .hdr__cta { display: none; }
  .hdr .container { margin: 0 12px 0 20px; }
  .hdr__main-in { display: flex; min-height: 64px; padding-top: 0; }
  .hdr__main-in::after { display: none; }
  .hdr__logo img, .drawer__logo { width: 84px; height: 45px; }
  .hdr__burger {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: var(--card-dark); color: #fff;
  }

  .drawer {
    position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain; background: var(--navy);
    visibility: hidden; transform: translateX(100%); transition: transform .3s, visibility 0s .3s;
  }
  /* Visible at once when opening, so focus can move inside; hidden only after the slide when closing */
  .drawer.is-open { visibility: visible; transform: none; transition: transform .3s; }
  .drawer__head { display: flex; align-items: center; flex: none; height: 64px; padding: 0 12px 0 20px; }
  .drawer__logo[hidden], .drawer__back[hidden] { display: none; }
  .drawer__back {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 0; border: 0; border-radius: 8px;
    background: none; font-size: 16px; font-weight: 600; line-height: 18px; color: #fff;
  }
  .drawer__close {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; border-radius: 8px; background: none; color: #fff;
  }
  .drawer__bar { display: block; flex: none; height: 3px; background: rgba(255, 255, 255, .08); }
  .drawer__bar span { display: block; width: calc(100% * var(--depth, 1) / 3); height: 100%; background: var(--accent); transition: width .3s; }
  .drawer__title { display: block; font-size: 20px; font-weight: 600; line-height: 28px; }

  .nav { flex: none; margin: 0; padding: 20px 20px 12px; border: 0; }
  .nav > .drawer__title { margin-bottom: 10px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav__item { flex-direction: column; align-items: stretch; }
  /* Menu cards: no hover plate or bar on phones */
  .nav__head--split { display: contents; }
  .nav__head::after { display: none; }
  .nav__link, .nav__toggle, .mega__all, .mega__btn, .drop__list a {
    justify-content: space-between; width: 100%; height: 50px; padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(255, 255, 255, .03);
    font-size: 16px; font-weight: 600; line-height: 18px; color: #fff; text-align: left;
  }
  .nav__item:hover > .nav__head, .nav__item.is-open > .nav__head { background: rgba(255, 255, 255, .03); color: #fff; box-shadow: none; }
  .nav__link--split, .nav__chev { display: none; }
  .nav__toggle--split .nav__toggle-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .nav__arrow, .drop__arrow { display: block; color: var(--on-dark-muted); }

  .sub { position: static; display: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .drawer[data-level] .nav > .drawer__title,
  .drawer[data-level] .nav__item:not(.is-current),
  .drawer[data-level] .nav__item.is-current > .nav__head,
  .drawer[data-level] .drawer__contact { display: none; }
  .drawer[data-level] .nav__item.is-current > .sub { display: flex; flex-direction: column; gap: 10px; }
  .sub > .drawer__title { order: -2; }

  .mega, .drop, .mega.is-wide {
    width: auto; min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; transition: none;
  }
  .mega__aside { order: -1; padding: 0; background: none; }
  .mega__logo, .mega__img, .mega__title, .mega__all-d, .mega__btn::before, .mega__links a::before,
  .drop__aside, .drop__list a::before { display: none; }
  .mega__all-m { display: inline; }
  .mega__all { color: var(--accent); }
  .mega__groups { display: flex; flex-direction: column; gap: 10px; padding: 0; }
  .mega__group.is-active > .mega__btn { background: rgba(255, 255, 255, .03); color: #fff; }
  .mega__group.is-active .mega__chev { color: var(--on-dark-muted); }
  .mega__chev { transition: transform .2s; }
  .mega__group.is-expanded > .mega__btn { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
  .mega__group.is-expanded .mega__chev { color: #fff; transform: rotate(90deg); }
  .mega__links, .mega__group.is-active > .mega__links {
    position: static; display: none; width: auto; margin-top: 10px; padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  }
  .mega__group.is-expanded > .mega__links { display: block; }
  .mega__links ul, .drop__list { display: flex; flex-direction: column; gap: 8px; }
  .drop__list { width: auto; padding: 0; gap: 10px; }
  .mega__links a {
    display: flex; align-items: center; height: 44px; padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(255, 255, 255, .02);
    font-size: 15px; font-weight: 600; color: #fff;
  }

  .drawer__contact { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 20px; }
  .drawer__contact::before { content: ""; height: 1px; background: var(--line-dark); }
  .drawer__row { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: #fff; }
  .drawer__row--muted { color: var(--on-dark-2); }
  .drawer__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
  .drawer__phone { font-size: 18px; font-weight: 700; line-height: 22px; }
  .drawer__socials { display: flex; gap: 10px; }
  .drawer__social {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: var(--card-dark); color: #fff;
  }
  .drawer__cta { height: 48px; padding: 0 16px; }
}
html.menu-open { overflow: hidden; }

/* Reduced motion: menus appear without sliding or fading */
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__bar span, .sub, .mega.is-wide, .drop.is-wide .drop__aside, .nav__chev, .mega__chev, .nav__head::after,
  .mega__btn::before, .drop__list a::before { transition: none; }
  .hdr__logo:hover img, .mega__all:hover .i, .hdr__addr:hover .hdr__dir .i { transform: none; }
  .btn__spin { animation: none; }
}

/* ---------- Free estimate dialog (shared component) ---------- */

.emodal {
  width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--text); overflow: auto;
}
.emodal::backdrop { background: rgba(15, 20, 30, .7); }
.emodal__form { position: relative; background: #fff; }
.emodal__form .t-title-l { padding-right: 44px; }
/* The title only takes focus when the dialog opens (not a control, not in the Tab order), so no focus ring */
.emodal__title:focus { outline: none; }
.emodal__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); transition: background-color .2s, color .2s;
}
.emodal__close:hover { background: var(--bg-alt); color: var(--text); }
@media (max-width: 575.98px) { .emodal__form { padding: 24px 20px; } }

/* ---------- 1. Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: var(--navy); color: #fff; }
.hero__wm {
  position: absolute; left: calc(50% + 40px); top: -40px;
  font-size: 300px; font-weight: 900; line-height: 1; letter-spacing: -12px;
  color: rgba(255, 255, 255, .04); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.hero__inner { display: flex; flex-direction: column; gap: 56px; }
.hero__row { display: flex; align-items: center; gap: 64px; }
.hero__copy { flex: none; width: 560px; display: flex; flex-direction: column; gap: 24px; }
.hero__sub { color: var(--on-dark-2); }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { color: var(--accent); }
.hero__video { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__caption .t-meta { color: var(--on-dark-muted); }

.poster {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: #111827; cursor: pointer;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster--hero { height: 300px; }
.poster--hero::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line-dark); border-radius: inherit; pointer-events: none;
}
.poster--card { height: 240px; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  transition: transform .2s;
}
.play--lg { width: 80px; height: 80px; background: var(--accent-strong); color: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.play--sm { width: 60px; height: 60px; background: var(--on-media); color: var(--navy); }
.poster:hover .play, .video:hover .play { transform: translate(-50%, -50%) scale(1.08); }

.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-top: 35px; border-top: 1px solid var(--line-dark);
}
/* 3px bar centred on the column edge, text 20px from the edge */
.promise {
  display: flex; flex-direction: column; gap: 8px;
  margin-left: -1.5px; padding: 0 24px 0 18.5px;
  border-left: 3px solid var(--accent);
}
.promise__big { font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -1.5px; color: var(--accent); }
.promise .t-body-xs { color: var(--on-dark-muted); }

/* Tablets: the copy above a full-width 16:9 video, the three promises stay in a row */
@media (max-width: 1199.98px) {
  .hero { padding: 56px 0 48px; }
  .hero__wm { left: calc(50% + 6px); top: -28px; font-size: 220px; letter-spacing: -9px; }
  .hero__inner { gap: 48px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero__copy { width: auto; }
  .hero__video { flex: none; }
  .poster--hero { height: auto; aspect-ratio: 16 / 9; }
  .promises { align-items: start; gap: 24px; padding-top: 31px; }
  .promise { padding-right: 16px; }
  .promise__big { font-size: 44px; letter-spacing: -1.4px; }
}
/* 992–1199 (tablets in landscape, small laptops): the copy and the video side by side as on desktop,
   so the video does not fill the first screen; tablet type sizes stay */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero__row { flex-direction: row; align-items: center; gap: 40px; }
  .hero__copy, .hero__video { flex: 1 1 0; }
}
/* Phones: everything in one column, a full-width button, trust items and promises one per line */
@media (max-width: 767.98px) {
  .hero { padding: 40px 0 48px; }
  .hero__wm { left: calc(50% - 25px); top: -18px; font-size: 160px; letter-spacing: -6px; }
  .hero__inner { gap: 40px; }
  .hero__row { gap: 32px; }
  .hero__copy { gap: 20px; }
  .hero__copy .btn { width: 100%; }
  .trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .play--lg { width: 64px; height: 64px; }
  .play--lg .i { width: 24px; height: 24px; }
  .hero__caption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promise { padding-right: 0; }
  .promise__big { font-size: 40px; letter-spacing: -1.2px; }
}

/* ---------- 2. As easy as ABC + form ---------- */

.abc { display: flex; align-items: flex-start; gap: 80px; }
.abc__steps { flex: none; width: 560px; display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; gap: 24px; }
.step__letter { flex: none; width: 56px; font-size: 72px; font-weight: 900; line-height: 65px; letter-spacing: -3px; color: var(--accent); }
.step__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.step__text .t-body-s { color: var(--text-2); }

.form-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: 12px; background: var(--bg-alt); color: var(--text);
}
.form-card--white { flex: none; width: 440px; gap: 12px; padding: 28px; background: #fff; }
#estimate { scroll-margin-top: 24px; }
.form-card__sub, .form-card__micro { color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
/* Name and phone are required, so only the optional field is marked (the space + 1px = the mockup's 5px) */
.field__opt { margin-left: 1px; font-weight: 400; color: var(--text-2); }
.input {
  display: block; width: 100%; height: 45px; margin: 0; padding: 12px 13px;
  border: 1px solid var(--border); border-radius: 8px; outline: none;
  background: #fff; color: var(--text); font-size: 16px; line-height: 19px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(32, 41, 56, .12); }
.input--43 { height: 43px; padding: 11px 13px; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 44px; color: var(--placeholder);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 18px 18px;
}
.select.is-chosen { color: var(--text); }

/* Tablets: steps and form side by side in two equal columns (a grid: with flex the form's padding
   would widen its column); fields 48px tall for touch */
@media (max-width: 1199.98px) {
  .abc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 32px; }
  .abc__steps { width: auto; gap: 28px; }
  .step { gap: 16px; }
  .step__letter { width: 44px; font-size: 60px; line-height: 54px; letter-spacing: -2.5px; }
  .form-card { padding: 24px; }
  .input, .input--43 { height: 48px; }
}
/* Phones: the form under the steps */
@media (max-width: 767.98px) {
  .abc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .step__letter { width: 40px; font-size: 52px; line-height: 47px; letter-spacing: -2px; }
  .form-card { padding: 20px; }
  /* 12px sides keep "Get Free Estimate & Design" on one line down to 360px screens */
  .form-card .btn--block { padding: 16px 12px; }
}

/* Form states (Pencil board "Form states", C:\ABC\home-v3\form-states.png).
   Error: the 2px red frame is a 1px border + a 1px ring, as the mockup centres its 2px stroke on the edge. */
.field.is-invalid .input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 1px var(--error), 0 0 0 4px rgba(220, 38, 38, .15); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 20px; color: var(--error); }
.field__error .i { flex: none; margin-top: 2px; }
/* Couldn't send: a white box with a red frame above the button (1px border, so 1px less padding than the mockup's 12/14) */
.form-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--error); border-radius: 8px; background: #fff; font-size: 14px; line-height: 20px; color: var(--error);
}
.form-alert .i { flex: none; margin-top: 1px; }
.form-alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* Sending: a spinner and "Sending…"; the button stays orange and ignores repeat presses */
.btn.is-sending { gap: 10px; cursor: progress; }
.btn.is-sending:hover { transform: none; box-shadow: none; }
.btn__spin { animation: btn-spin .8s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
/* Sent: the thank-you replaces the fields inside the same card, which keeps its height (set in main.js) */
.form-card.is-done { justify-content: center; }
.form-card.is-done > :not(.form-done, .emodal__close, [data-form-status]) { display: none; }
.form-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.form-done__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(234, 88, 12, .1); color: var(--accent-strong);
}
.form-done__title:focus { outline: none; }
.form-done__text { max-width: 380px; color: var(--text-2); }
.form-done__line { width: 120px; height: 1px; background: var(--border-light); }
.form-done__sooner { font-size: 14px; line-height: 20px; color: var(--text-2); }
.form-done__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 22px; color: var(--navy); white-space: nowrap; }
.form-done__phone .i { color: var(--accent-strong); }
.form-done__hours, .form-done__preview { color: var(--text-2); }

/* ---------- 3. Services ---------- */

.umbrella {
  display: flex; align-items: center; gap: 40px;
  padding: 36px 36px 36px 40px; border-radius: 12px; overflow: hidden;
  background: var(--navy); color: #fff;
}
.umbrella__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.umbrella__title { font-size: 34px; font-weight: 800; line-height: 37px; letter-spacing: -.5px; }
.umbrella__lead { color: var(--on-dark-2); }
.umbrella .checklist { padding: 4px 0; }
.umbrella__photo { position: relative; flex: none; width: 500px; height: 350px; border-radius: 8px; overflow: hidden; }
.umbrella__photo img { width: 100%; height: 100%; object-fit: cover; }

.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* The whole card is clickable through the title link stretched over it */
.room {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  min-height: 347px; padding: 13px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.room:hover { transform: translateY(-5px); box-shadow: var(--lift); }
.room__link::after { content: ""; position: absolute; inset: -1px; border-radius: 12px; }
.room__link:focus-visible { outline: none; }
.room:has(.room__link:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.room__photo { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.room__head { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; }
.room__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.room__arrow { color: var(--navy); }
.ticks { display: flex; flex-direction: column; gap: 6px; }
.ticks li { display: flex; gap: 8px; color: var(--text-body); }
.ticks .i { color: var(--accent-strong); }
/* Icon centred on the first text line: (21px line - 14px icon) / 2 */
.ticks li > .i { flex: none; margin-top: 3.5px; }

/* Tablets: the general contractor band stacks (text, then a full-width photo), room cards 2 × 2 */
@media (max-width: 1199.98px) {
  .umbrella { flex-direction: column; align-items: stretch; gap: 28px; padding: 32px; }
  .umbrella__title { font-size: 30px; line-height: 33px; }
  .umbrella__photo { width: auto; height: 300px; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room { min-height: 0; }
  .room__photo { height: 170px; }
}
/* Phones: one column; the photo label may wrap onto two lines */
@media (max-width: 767.98px) {
  .umbrella { gap: 24px; padding: 28px 20px 20px; }
  .umbrella__title { font-size: 26px; line-height: 30px; letter-spacing: -.3px; }
  .umbrella__photo { height: 220px; }
  .umbrella .pill { right: 16px; }
  .rooms { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .room__photo { height: 160px; }
}

/* ---------- 4. Catalog ---------- */

.directory { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: start; }
/* 2px navy line centred on the top edge, content 14px below it */
.group { display: flex; flex-direction: column; gap: 10px; margin-top: -1px; padding-top: 13px; border-top: 2px solid var(--navy); }
/* The arrow sits on the first line when a title wraps (narrow phones) */
.group__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: var(--text); }
.group__title .i { flex: none; margin-top: 4px; color: var(--navy); }
.group__items { display: flex; flex-direction: column; gap: 6px; color: var(--text-body); }
.group__items a { transition: color .2s; }
.group__items a:hover { color: var(--accent); }
.directory__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.directory__note { color: var(--text-2); }
@media (max-width: 1199.98px) {
  .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .group__items { gap: 10px; }
}
/* Phones: two columns, links spaced wider for touch */
@media (max-width: 767.98px) {
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .group__items { gap: 12px; }
  .directory__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 5. Team ---------- */

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.person__photo { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; }
.person__text { display: flex; flex-direction: column; gap: 6px; }
.person__role { color: var(--accent); }
.person__desc { color: var(--on-dark-2); }
/* Portraits keep about the desktop 267 × 320 proportion; the exact ratios are the mockup's 164 × 196 (768) and 167 × 200 (390) */
@media (max-width: 1199.98px) {
  .team { gap: 16px; }
  .person__photo { height: auto; aspect-ratio: 164 / 196; }
}
@media (max-width: 767.98px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .person__photo { aspect-ratio: 167 / 200; }
}

/* ---------- 6. Projects ---------- */

.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 12px; }
.project__photo { position: relative; height: 190px; border-radius: 12px; overflow: hidden; }
.project__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project__photo img { transform: scale(1.05); }
.project .t-card { transition: color .2s; }
.project:hover .t-card { color: var(--accent-strong); }
.project__meta { color: var(--text-2); }
.projects-wrap { display: flex; flex-direction: column; gap: 16px; }
.dots { display: none; }
@media (max-width: 1199.98px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .project__photo { height: auto; aspect-ratio: 43 / 30; }
}
/* Phones: a swipe carousel of 280px cards that runs to the screen edge, the next card peeking in
   (on phones under 356px the card narrows so that 40px of the next card still shows).
   4px of padding above and below keeps focus outlines from being cut by the scroll box. */
@media (max-width: 767.98px) {
  .projects {
    display: flex; gap: 16px; margin: -4px -20px; padding: 4px 20px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .projects::-webkit-scrollbar { display: none; }
  .project { flex: none; width: min(280px, 100% - 36px); scroll-snap-align: start; }
  .project__photo { aspect-ratio: auto; height: 200px; }
  .dots { display: flex; align-items: center; gap: 6px; }
  .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: width .2s, background-color .2s; }
  .dot.is-active { width: 18px; background: var(--navy); }
}

/* ---------- 7. Reviews ---------- */

.reviews { display: flex; align-items: flex-start; gap: 32px; }
.gsum { flex: none; width: 250px; display: flex; flex-direction: column; gap: 10px; }
.gsum__num { font-size: 96px; font-weight: 900; line-height: 86px; letter-spacing: -4px; color: var(--text); }
.gsum__label { font-weight: 600; color: var(--text); }
.gsum__note { color: var(--text-2); }
.gsum__link { margin-top: 6px; }
.quotes { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.quote { display: flex; flex-direction: column; gap: 14px; padding: 4px 24px 4px 23px; border-left: 1px solid var(--border-light); }
.quote__text { color: var(--text-body); }
.quote__author { display: flex; flex-direction: column; gap: 1px; }
.quote__name { font-size: 15px; font-weight: 700; line-height: 23px; color: var(--text); }
.quote__meta { color: var(--text-2); }

.platforms { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.platforms__label { color: var(--text-2); }
.platform-bar { display: flex; gap: 12px; }
.platform {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 65px; padding: 13px 15px;
  border: 1px solid var(--border-light); border-radius: 8px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
/* Yelp's "Project photos & reviews" is wider than an equal fifth, so the light bar sizes cards by content */
.platform-bar--light .platform { flex: 1 1 auto; }
.platform:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.platform.is-pending:hover { transform: none; box-shadow: none; }
.platform__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.platform__logo {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 32px; height: 32px; border-radius: 8px; color: #fff;
}
.platform__logo img { width: 32px; height: 32px; }
.platform__logo--google { background: #4285f4; }
.platform__logo--facebook { background: #0866ff; }
.platform__logo--angi { background: #ff6153; font-size: 16px; font-weight: 800; line-height: 1; }
.platform__logo--yelp { background: #ff1a1a; }
.platform__logo--bbb { background: #005a78; }
.platform__text { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.platform__row { display: flex; align-items: center; gap: 4px; }
.platform__name { font-size: 14px; font-weight: 700; line-height: 17px; color: var(--text); }
.platform__rating { font-size: 14px; font-weight: 800; line-height: 17px; color: var(--text); }
.platform__meta { color: var(--text-2); }
.platform__arrow { color: var(--navy); }

.platform-bar--dark .platform { min-height: 61px; padding: 11px 13px; border-color: var(--line-dark); background: var(--card-dark); }
.platform-bar--dark .platform:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.platform-bar--dark .platform__name,
.platform-bar--dark .platform__rating { color: #fff; }
.platform-bar--dark .platform__meta,
.platform-bar--dark .platform__arrow { color: var(--on-dark-muted); }

/* Tablets: the Google summary on the left, quotes one under another; platform cards 3 + 2 */
@media (max-width: 1199.98px) {
  .gsum { width: 200px; }
  .gsum__num { font-size: 84px; line-height: 76px; letter-spacing: -3.5px; }
  .quotes { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .quote { padding-right: 0; }
  .platform-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .platform-bar .platform { grid-column: span 2; }
  .platform-bar .platform:nth-child(n + 4) { grid-column: span 3; }
}
/* Phones: the summary above the quotes, one platform card per row */
@media (max-width: 767.98px) {
  .reviews { flex-direction: column; align-items: stretch; }
  .gsum { width: auto; }
  .gsum__num { font-size: 72px; line-height: 65px; letter-spacing: -3px; }
  .quote { padding-left: 19px; }
  .platform-bar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .platform-bar .platform, .platform-bar .platform:nth-child(n + 4) { grid-column: auto; }
}

/* ---------- 8. Videos ---------- */

.filters { display: flex; gap: 8px; }
.filter {
  padding: 7px 13px; border: 1px solid var(--border); border-radius: 18px;
  background: #fff; color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video {
  display: flex; flex-direction: column; gap: 14px;
  padding: 0; border: 0; background: none; color: inherit; text-align: left;
}
.video[hidden] { display: none; }
.video__caption { display: flex; flex-direction: column; gap: 4px; }
.video__caption .t-card { transition: color .2s; }
.video:hover .video__caption .t-card { color: var(--accent-strong); }
.video__meta { color: var(--text-2); }

/* Tablets: 16:9 thumbnails, the first video across the full width and two under it; touch-size button and pills */
@media (max-width: 1199.98px) {
  .head-row .btn--outline { max-width: 100%; padding: 13px 18px; }
  .filters { flex-wrap: wrap; }
  .filter { padding: 9px 13px; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .videos .video:first-child { grid-column: 1 / -1; }
  .poster--card { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
  .filter { padding: 9px 11px; }
  .videos { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. FAQ and blog ---------- */

.faqblog { display: flex; align-items: flex-start; gap: 64px; }
.faq { flex: none; width: 620px; display: flex; flex-direction: column; gap: 28px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: 8px; background: #fff; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; list-style: none; cursor: pointer; color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .t-card { flex: 1; min-width: 0; transition: color .2s; }
.faq__q:hover .t-card { color: var(--accent-strong); }
.faq__chev { color: var(--text-2); transition: transform .2s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-2); }

.blog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.blog__list { display: flex; flex-direction: column; gap: 20px; }
.article { display: flex; align-items: center; gap: 16px; }
.article img { flex: none; width: 184px; height: 124px; object-fit: cover; border-radius: 8px; }
.article__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.article .t-card { transition: color .2s; }
.article:hover .t-card { color: var(--accent-strong); }
.article__date { color: var(--text-2); }

/* Tablets: FAQ above the blog; the three articles as cards in a row */
@media (max-width: 1199.98px) {
  .faqblog { flex-direction: column; align-items: stretch; gap: 56px; }
  .faq { width: auto; }
  .blog { padding-top: 0; }
  .blog__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .article { flex-direction: column; align-items: stretch; gap: 12px; }
  .article img { width: 100%; height: auto; aspect-ratio: 224 / 150; }
}
/* Phones: tighter questions, articles as rows with small thumbnails */
@media (max-width: 767.98px) {
  .faqblog { gap: 48px; }
  .faq { gap: 24px; }
  .faq__q { padding: 16px; }
  .faq__a { padding: 0 16px 18px; }
  .blog__list { display: flex; flex-direction: column; gap: 16px; }
  .article { flex-direction: row; align-items: center; gap: 14px; }
  .article img { width: 120px; height: 80px; aspect-ratio: auto; }
}

/* ---------- 10. Final CTA ---------- */

.cta__row { display: flex; align-items: flex-start; justify-content: space-between; }
.cta__text { flex: none; width: 600px; display: flex; flex-direction: column; gap: 20px; }
.cta__kicker { color: var(--accent); }
.checklist--cta { gap: 12px; }
.cta__phone {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-size: 26px; font-weight: 800; line-height: 31px; color: #fff;
  transition: color .2s;
}
.cta__phone:hover { color: var(--accent); }

/* Areas we serve: a native <details> panel, collapsed by default */
.areas { border: 1px solid var(--line-dark); border-radius: 12px; background: var(--card-dark); }
.areas__summary {
  display: grid; grid-template-columns: 44px 1fr auto; column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 21px 23px; cursor: pointer; list-style: none;
}
.areas__summary::-webkit-details-marker { display: none; }
.areas__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.areas__pin {
  grid-row: 1 / span 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent);
}
.areas__title { grid-column: 2; align-self: end; font-size: 20px; font-weight: 700; line-height: 24px; color: #fff; }
.areas__note { grid-column: 2; align-self: start; color: var(--on-dark-2); }
.areas__toggle {
  grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff;
  transition: border-color .2s;
}
.areas__summary:hover .areas__toggle { border-color: rgba(255, 255, 255, .45); }
.areas__less, .areas[open] .areas__more { display: none; }
.areas[open] .areas__less { display: inline; }
.areas__chev { transition: transform .2s; }
.areas[open] .areas__chev { transform: rotate(180deg); }
/* Any number of towns: alphabetical top to bottom in 6 columns */
/* Row gap as padding, not margin: WebKit counts margins at column breaks when balancing columns */
.areas__list { columns: 6; column-gap: 24px; margin: -1px 23px 0; padding: 16px 0 23px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); }
.areas__list li { break-inside: avoid; padding: 4px 0; }
.areas__foot { display: none; }

/* Tablets: text and form side by side (form 340px), towns in 4 columns */
@media (max-width: 1199.98px) {
  .cta .stack { gap: 40px; }
  .cta__row { gap: 24px; }
  .cta__text { flex: 1 1 0; width: auto; min-width: 0; }
  .form-card--white { flex: none; width: 340px; }
  .areas__list { columns: 4; }
}
/* Phones: the form under the text; the areas panel gets a compact header with a round toggle,
   and "Don't see your town?" shows under the open list */
@media (max-width: 767.98px) {
  .cta__row { flex-direction: column; align-items: stretch; gap: 32px; }
  .cta__text { flex: none; }
  .form-card--white { width: auto; }
  .areas__summary { grid-template-columns: 40px minmax(0, 1fr) 36px; column-gap: 12px; row-gap: 2px; padding: 15px; }
  /* open: 20px from the header to the divider (the mockup panel's gap) */
  .areas[open] .areas__summary { padding-bottom: 21px; }
  .areas__pin { width: 40px; height: 40px; }
  .areas__pin .i { width: 20px; height: 20px; }
  .areas__note { font-size: 14px; line-height: 21px; color: var(--on-dark-muted); }
  .areas__note-more { display: none; }
  .areas__toggle { justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
  .areas__toggle .areas__more, .areas__toggle .areas__less {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .areas__list { columns: 2; column-gap: 16px; margin: -1px 15px 0; padding: 16px 0 0; }
  .areas__foot { display: block; margin: 0 15px; padding: 16px 0 19px; color: var(--on-dark-2); }
}

/* ---------- 11. Footer ---------- */

.footer { padding: 64px 0 32px; background: var(--navy); color: #fff; }
.footer .container { display: flex; flex-direction: column; gap: 32px; }
.footer__cols { display: flex; gap: 40px; }
.footer__brand { flex: none; width: 340px; display: flex; flex-direction: column; gap: 18px; }
.logo { display: flex; flex-direction: column; gap: 2px; align-self: flex-start; }
.logo__abc { font-size: 26px; font-weight: 800; line-height: 1; color: #fff; }
.logo__sub { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-muted); }
.footer__tagline { color: var(--on-dark-2); }
.socials { display: flex; gap: 10px; padding-top: 6px; }
.social {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff;
  transition: transform .2s, background-color .2s, color .2s;
}
.social:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); color: var(--accent); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col--200 { flex: none; width: 200px; }
.footer__col--160 { flex: none; width: 160px; }
.footer__visit { flex: 1; min-width: 0; }
.footer__links { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; color: var(--on-dark-2); }
.footer__links a, .visit a, .footer__legal a { transition: color .2s; }
.footer__links a:hover, .visit a:hover, .footer__legal a:hover { color: var(--accent); }
.footer__links a.is-pending:hover, .footer__legal a.is-pending:hover { color: inherit; }
.visit { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; color: var(--on-dark-2); }
.visit li { display: flex; gap: 10px; }
.visit .i { color: var(--accent); }
/* Icon centred on the first text line: (23px line - 16px icon) / 2 */
.visit li > .i { flex: none; margin-top: 3.5px; }
.visit__phone { font-weight: 700; color: #fff; }
/* The Get directions arrow is white like its label (orange on hover), not an orange list icon */
.visit .link-arrow .i { color: inherit; }
.visit li.visit__dir { padding-top: 4px; }
.footer__line { height: 1px; background: var(--line-dark); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; color: var(--on-dark-muted); }
.footer__legal { display: flex; gap: 24px; }

/* Tablets: the brand across the top, then Services, Company and Visit us in three columns; 44px social circles */
@media (max-width: 1199.98px) {
  .footer { padding: 56px 0 32px; }
  .footer .container { gap: 28px; }
  .footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; width: auto; }
  .footer__col--200, .footer__col--160 { width: auto; }
  .socials { gap: 12px; }
  .social { width: 44px; height: 44px; }
}
/* Phones: Services and Company side by side, Visit us under them; the bottom padding leaves room
   for the 72px sticky bar (32 + 72 = 104) */
@media (max-width: 767.98px) {
  .footer { padding: 48px 0 calc(104px + env(safe-area-inset-bottom)); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .footer__visit { grid-column: 1 / -1; }
  .footer__links { gap: 12px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 14. Sticky bar (phones only) ---------- */

.stickybar { display: none; }
@media (max-width: 767.98px) {
  .stickybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light); background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
    transition: transform .2s;
  }
  /* Hidden while a form field has focus: the on-screen keyboard leaves little room (main.js) */
  .stickybar.is-hidden { transform: translateY(calc(100% + 16px)); }
  /* min-height, not height: with larger text or text spacing a label may wrap and the button grows */
  .stickybar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 8px; font-size: 19px; font-weight: 700; line-height: 22px; }
  /* 2px navy frame inside the button's edge (the user, 2026-10-12: with the mockup's frame centred on the edge, 1px of
     it stood outside and the button looked bigger than "Free estimate") */
  .stickybar__call { gap: 8px; border: 2px solid var(--navy); background: #fff; color: var(--navy); }
  /* the same 2px border (transparent), so both buttons share the width equally */
  .stickybar__cta { border: 2px solid transparent; }
}
/* Phones under 360px: a smaller gap and padding keep "Free estimate" on one line at 19px */
@media (max-width: 359.98px) {
  .stickybar { gap: 8px; }
  .stickybar .btn { padding: 0 4px; }
}
/* Narrower still: phones with larger text (an Android font size or page zoom; the user's Pixel 9 Pro showed the page
   293 CSS px wide, 2026-10-12). The bar's labels and the contact sheet's buttons step down a size at a time, so they
   stay on one line (measured: the largest size that fits at each width). The text is still physically large there. */
@media (max-width: 339.98px) { .stickybar .btn { font-size: 18px; } }
@media (max-width: 319.98px) { .stickybar .btn { font-size: 17px; } .csheet__opt { font-size: 18px; } }
@media (max-width: 299.98px) { .stickybar .btn { font-size: 16px; } .csheet__opt { font-size: 17px; } }
@media (max-width: 289.98px) { .stickybar .btn { font-size: 15px; } .csheet__opt { font-size: 16px; } }
/* The contact sheet (the client, 2026-10-12): "Call or text us" opens it from the bottom of the screen (a native
   <dialog>, main.js). White, the top corners 16; the title (title-l) and the cross 44 as in the filters' panel; two
   full-width buttons 54 tall, 12 apart: call (orange) and send a text (the bar's navy frame, inside the edge). The home-indicator area
   stays clear under them. It slides up in 0.2 s and back down the same way when it closes (main.js sets .is-closing
   and closes the dialog when the slide ends), the dark backdrop fading in and out with it. */
.csheet {
  width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: auto 0 0; padding: 0;
  border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--text);
}
.csheet::backdrop { background: rgba(15, 20, 30, .7); }
.csheet[open] { animation: csheet-up .2s ease-out; }
.csheet[open]::backdrop { animation: csheet-fade-in .2s ease-out; }
.csheet.is-closing { animation: csheet-down .2s ease-in forwards; }
.csheet.is-closing::backdrop { animation: csheet-fade-out .2s ease-in forwards; }
@keyframes csheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes csheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes csheet-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes csheet-fade-out { from { opacity: 1; } to { opacity: 0; } }
.csheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 8px 4px 20px; }
.csheet__close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text-2); transition: background-color .2s, color .2s;
}
.csheet__close:hover { background: var(--bg-alt); color: var(--text); }
.csheet__close:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.csheet__body { display: flex; flex-direction: column; gap: 12px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); }
.csheet__opt { width: 100%; min-height: 54px; gap: 10px; }
/* the frame inside the edge, as the bar's button: both buttons exactly as wide */
.csheet__opt--text { border: 2px solid var(--navy); background: #fff; color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .csheet[open], .csheet[open]::backdrop, .csheet.is-closing, .csheet.is-closing::backdrop { animation: none; }
}
/* Keyboard focus never lands under the bar (WCAG 2.4.11, the amendment of 2026-10-01): when the page scrolls to a
   focused element, it keeps 88px clear at the bottom (the bar's 73 and a gap) plus the iPhone's home-indicator area */
@media (max-width: 767.98px) {
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
/* Back to top (phones; Kitchen v4 for now, the user 2026-10-16): a round 44 button at the right, 12 above the sticky
   bar. main.js shows it while the invisible zone over the first two screens is out of view; it goes with the bar while
   a form field has focus. Hidden without JavaScript. On a page with the button (html.has-to-top: a plain class, no
   :has()), 56 more stay clear at the bottom, so keyboard focus never lands under it either (WCAG 2.4.11). */
.to-top-zone { position: absolute; top: 0; left: 0; width: 1px; height: 200vh; pointer-events: none; }
.to-top { display: none; }
@media (max-width: 767.98px) {
  .to-top {
    position: fixed; right: 16px; bottom: calc(85px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--border-light); border-radius: 50%; background: #fff; color: var(--navy);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
  .stickybar.is-hidden ~ .to-top { opacity: 0; visibility: hidden; }
  .to-top:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
  html.has-to-top { scroll-padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ----------
   Visitors who turned on "reduce motion" in their system get no smooth scrolling
   and nothing moves on hover. Colour changes stay. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--primary:hover, .room:hover, .platform:hover, .social:hover,
  .link-arrow:hover .i, .project:hover .project__photo img { transform: none; }
  .poster:hover .play, .video:hover .play { transform: translate(-50%, -50%); }
  .faq__chev, .areas__chev, .stickybar, .dot, .to-top { transition: none; }
}
/* ---------- Video modal ---------- */

.vmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.vmodal[hidden] { display: none; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 30, .88); }
.vmodal__box { position: relative; width: min(1100px, 88vw); aspect-ratio: 16 / 9; }
.vmodal__frame { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: #000; }
.vmodal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vmodal__close {
  position: absolute; right: 0; top: -56px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s;
}
.vmodal__close:hover { background: rgba(255, 255, 255, .24); }
body.has-modal { overflow: hidden; }

/* ---------- Inner pages (from the contacts page, 2026-09-27) ----------
   Everything below only adds new classes: the rules above belong to the homepage, which was handed to the
   programmer on 2026-09-26 and does not change. Same breakpoints: 1199.98px (tablet) and 767.98px (phone). */

/* Headings that wrap get lines of about equal length, so no single word hangs on the last line
   ("What happens after / you contact us"). Browsers without text-wrap: balance simply wrap as usual. */
.balance { text-wrap: balance; }

/* A link inside running text: underlined, so it differs from the text by more than colour (WCAG 1.4.1) */
.inline-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.inline-link:hover { color: var(--accent); }

/* Breadcrumbs (meta role). The Home link gets 3px above and below, so its target is 24px tall (WCAG 2.5.8). */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.crumbs a { padding: 3px 0; border-radius: 4px; transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { font-weight: 600; color: var(--text); }

/* The breadcrumbs' row with "Share" at the right (product pages and blog articles, 2026-10-10): a navy text button
   with the share icon, 44 tall to tap without making the row taller; shown by main.js. Under 768 the crumbs keep the
   row's width and the button its own. */
.crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crumbs-row > .crumbs { min-width: 0; }
.share { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; margin: -12px -4px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--navy); cursor: pointer; white-space: nowrap; }
.share[hidden] { display: none; }
.share:hover .share__text { text-decoration: underline; text-underline-offset: 3px; }
.share:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* Inner page hero: light, breadcrumbs above the content (as drawn for the catalog hub: 40 / 72, gap 28) */
.page-hero { padding: 40px 0 72px; background: var(--bg-alt); }
.page-hero__in { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1199.98px) {
  .page-hero { padding: 32px 0 56px; }
  .page-hero__in { gap: 24px; }
}
@media (max-width: 767.98px) {
  .page-hero { padding: 24px 0 48px; }
  .page-hero__in { gap: 20px; }
}

/* A textarea in the input style: three lines tall, the visitor can drag it taller. The base styles give only
   buttons, inputs and selects the page font, so the textarea gets it here (browsers default it to monospace). */
.input.input--area { height: auto; min-height: 96px; padding: 11px 13px; font-family: inherit; line-height: 24px; resize: vertical; }

/* ---------- Contacts page ---------- */

/* First screen. 1200+: the title on the left with the contact form and the ratings under it; the navy showroom card
   on the right, as tall as the three. 768–1199: title, the card (photo on its left), the form, the ratings.
   Phones: title, the card (contacts first, the photo under them), the form, the ratings. */
.contact-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto auto 1fr;
  grid-template-areas: "intro card" "form card" "rates card"; gap: 32px 64px;
}
.contact-hero__intro { grid-area: intro; display: flex; flex-direction: column; gap: 20px; }
/* The H1 keeps "ABC Home Expert" on one line (non-breaking spaces in the markup; the user's request). Only if it
   cannot fit at all (user text spacing, WCAG 1.4.12) may it break inside a word instead of running off the screen. */
.contact-hero__title { overflow-wrap: break-word; }
.contact-hero__lead { color: var(--text-2); }

/* Navy showroom card: the photo on top, then the contacts. The only place on the page with the hours. */
.contact-card { grid-area: card; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--navy); color: #fff; }
/* 1200+: the photo takes what the contacts leave of the left column's height (title, form and ratings: about 390 at
   1440), at least 190 */
.contact-card__photo { position: relative; flex: 1 1 auto; min-height: 190px; margin: 0; background: #111827; }
.contact-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-card__body { display: flex; flex-direction: column; gap: 24px; padding: 28px 32px 32px; font-style: normal; }
.contact-card__call { display: flex; flex-direction: column; gap: 6px; }
.contact-card__call .cta__phone .i { color: var(--accent); }
.contact-card__label { color: var(--accent); }
.contact-card__list { display: flex; flex-direction: column; gap: 18px; padding-top: 23px; border-top: 1px solid var(--line-dark); }
.contact-card__row { display: flex; align-items: flex-start; gap: 14px; }
.contact-card__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
/* The first text line (23px) centred on the 36px circle */
.contact-card__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-top: 6.5px; }
.contact-card__value { color: #fff; }
a.contact-card__value { font-weight: 700; overflow-wrap: anywhere; transition: color .2s; }
a.contact-card__value:hover { color: var(--accent); }
.contact-card__note { color: var(--on-dark-muted); }
.contact-card__dir { margin-top: 4px; }
/* The social profiles close the card under a hairline: the label, then the footer's round buttons right after it
   (under the label when the card is too narrow for both) */
.contact-card__follow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding-top: 23px; border-top: 1px solid var(--line-dark);
}
/* 10 between the buttons (the footer's desktop gap) keeps the label and the four 44px buttons on one line at 390 */
.contact-card__follow .socials { gap: 10px; padding-top: 0; }
/* Links on navy get the header's orange focus ring */
.contact-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.contact-card .social:focus-visible { border-radius: 50%; }

/* Contact form (not the estimate form): name and phone side by side, the button next to the note */
.contact-form { grid-area: form; align-self: start; width: auto; gap: 16px; border: 1px solid var(--border-light); }
#contact-form { scroll-margin-top: 24px; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.contact-form__foot .btn { flex: none; }
.contact-form__foot .form-card__micro { flex: 1; min-width: 0; }
/* "We couldn't send…" (main.js puts it right before the button) takes a row of its own above the button and the note */
.contact-form__foot .form-alert { flex: 1 0 100%; }

/* The platform cards with every rating, under the form (the homepage's light platform row). 1200+: in the left
   column as 3 + 2, the homepage's tablet arrangement. */
.contact-rates { grid-area: rates; }
@media (min-width: 1200px) {
  .contact-rates .platform-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .contact-rates .platform { grid-column: span 2; }
  .contact-rates .platform:nth-child(n + 4) { grid-column: span 3; }
}

@media (max-width: 1199.98px) {
  .contact-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "card" "form" "rates"; gap: 32px; }
  .contact-card { flex-direction: row; }
  .contact-card__photo { flex: 0 0 42%; min-height: 0; }
  .contact-card__body { flex: 1; min-width: 0; }
}
@media (max-width: 767.98px) {
  .contact-hero { gap: 24px; }
  .contact-card { flex-direction: column; }
  .contact-card__photo { order: 2; flex: none; height: 200px; }
  .contact-card__body { padding: 24px 20px; }
  .contact-form__row { grid-template-columns: minmax(0, 1fr); }
  .contact-form__foot { flex-direction: column; align-items: stretch; }
  .contact-form__foot .btn { padding: 16px 12px; }
}

/* What happens next: three steps on one line, small numbered circles joined by a hairline from each circle to the
   next; phones: one under another, the line runs down. Numbers 19/700 (button role): white on #ea580c passes as
   large text. */
.steps-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps-line__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.steps-line__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%;
  background: var(--accent-strong); color: #fff; font-size: 19px; font-weight: 700; line-height: 1;
}
.steps-line__step:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: -20px; height: 2px; background: var(--border-light); }
.steps-line__step .t-body-s { color: var(--text-2); }
@media (max-width: 1199.98px) {
  .steps-line { gap: 24px; }
  .steps-line__step:not(:last-child)::after { right: -12px; }
}
@media (max-width: 767.98px) {
  .steps-line { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-line__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .steps-line__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .steps-line__step > .t-h3 { padding-top: 8px; }
  .steps-line__step:not(:last-child)::after { top: 52px; bottom: -16px; left: 19px; right: auto; width: 2px; height: auto; }
}

/* About us (a white section right after the first screen): a photo inside the showroom on the left, as tall as the
   text, and the text with three plain cards (what ABC offers; no links) on the right. The first screen above has its
   photo on the right, so the two alternate; in the markup the photo comes after the text (order: -1 moves it).
   Card: white, border #e5e7eb, radius 12; a 44 circle rgba(249,115,22,.12) with a 22px accent icon (as the Areas
   pin), title card 17/700, text body-s text-2. Tablets: one column, the photo 16:9 under the cards; phones: 4:3. */
.about { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: stretch; }
.about__text { display: flex; flex-direction: column; gap: 16px; }
.about__lead { color: var(--text-2); }
.about__lead strong { font-weight: 700; color: var(--text); }
.about__list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.about__item {
  display: flex; align-items: center; gap: 16px; padding: 15px 19px 15px 15px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff;
}
.about__ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(249, 115, 22, .12); color: var(--accent);
}
.about__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.about__body .t-card { color: var(--text); }
.about__desc { color: var(--text-2); }
.about__photo { order: -1; display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 12px; background: #111827; }
@media (max-width: 1199.98px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__photo { order: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
  .about__item { gap: 14px; padding: 13px 15px 13px 13px; }
  .about__photo { aspect-ratio: 4 / 3; }
}

/* Visit our showroom: the map across the container with a white card over its right side (the map's own place card
   sits top left); tablets and phones: the card under the map */
.visit-map { position: relative; }
/* The map box shows the address until main.js puts the Google map in (the visitor is within 300px of it) */
.map-box { position: relative; height: 520px; overflow: hidden; border-radius: 12px; background: var(--bg-alt); }
/* On a grey section (the contacts page) the placeholder is white */
.section--alt .map-box { background: #fff; }
.map-box__hold {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; color: var(--text-2);
}
.map-box__hold .i { color: var(--accent); }
.map-box iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; }
/* Tab moves into the map: its focus ring is drawn inside the edge, because the box clips anything outside it.
   Chromium matches neither :focus nor :focus-visible on a cross-origin iframe, so main.js adds .is-focused. */
.map-box iframe:focus, .map-box.is-focused iframe { outline: 2px solid var(--navy); outline-offset: -2px; }
.visit-card {
  position: absolute; top: 50%; right: 32px; width: 400px; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 27px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff; box-shadow: var(--lift);
}
.visit-card__text { color: var(--text-2); }
.visit-card__list { display: flex; flex-direction: column; gap: 10px; color: var(--text-body); }
.visit-card__list li { display: flex; align-items: flex-start; gap: 10px; }
/* Icon centred on the first text line: (23px line - 18px icon) / 2 */
.visit-card__list .i { flex: none; margin-top: 2.5px; color: var(--accent); }
/* Only the catalog link: directions are the Google map's own "Open in Maps" button (the user, 2026-09-28) */
.visit-card__actions { display: flex; padding-top: 6px; }
@media (max-width: 1199.98px) {
  .map-box { height: 360px; }
  .visit-card { position: static; width: auto; margin-top: 16px; transform: none; box-shadow: none; }
}
@media (max-width: 767.98px) {
  .map-box { height: 280px; }
  .visit-card { margin-top: 12px; padding: 19px; }
}

/* FAQ (a white section): the heading on the left, the homepage FAQ items on the right on #f9fafb, as the towns panel */
.faq-page { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-page .faq__item { background: var(--bg-alt); }
.faq-page__head { display: flex; flex-direction: column; gap: 12px; }
.faq-page__intro { padding-top: 4px; color: var(--text-2); }
@media (max-width: 1199.98px) {
  .faq-page { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767.98px) {
  .faq-page { gap: 24px; }
}

/* Areas we serve: the towns in a light panel, alphabetical top to bottom in 6 / 4 / 2 columns */
.towns { padding: 28px 32px; border-radius: 12px; background: var(--bg-alt); }
/* Row gap as padding, not margin: WebKit counts margins at column breaks when balancing columns */
.towns__list { columns: 6; column-gap: 24px; color: var(--text-body); }
.towns__list li { break-inside: avoid; padding: 4px 0; }
.towns__foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); color: var(--text-2); }
@media (max-width: 1199.98px) {
  .towns { padding: 24px; }
  .towns__list { columns: 4; }
}
@media (max-width: 767.98px) {
  .towns { padding: 20px; }
  .towns__list { columns: 2; column-gap: 16px; }
}

/* ---------- Catalog hub ---------- */

/* First screen: the copy (560) on the left, centred on the showroom photo on the right (the photo at least 420 tall,
   taller if the copy is); tablets and phones: the photo under the copy (360 / 240), phones: both buttons full width.
   No hours / phone / address chips: the header right above shows them. */
.hub-hero { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: stretch; }
.hub-hero__copy { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hub-hero__lead { color: var(--text-2); }
.hub-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* "Get directions" as tall as the orange button next to it, 54 at every width (the user, 2026-09-29): buttons in one
   group share one height, the fill sets the order. 16 + 18 + 16 + the 2px border twice. */
.hub-hero__actions .btn--outline { padding: 16px 18px; }
.hub-hero__photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 12px; background: #111827; }
/* A <picture> around the photo (Kitchen v4: phone-sized cuts) adds no box: the photo stays the grid's item. Its
   <source> must be hidden: through display: contents it became a grid item of its own (the browser shows <source> as a
   block), took the photo's cell and pushed the photo under the copy (the user's screenshot, 2026-10-16). Hiding it
   does not change which file the browser picks. */
.hub-hero__pic { display: contents; }
.hub-hero__pic > source { display: none; }
@media (max-width: 1199.98px) {
  .hub-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hub-hero__photo { height: 360px; min-height: 0; }
}
@media (max-width: 767.98px) {
  .hub-hero { gap: 28px; }
  .hub-hero__copy { gap: 18px; }
  .hub-hero__actions { flex-direction: column; align-items: stretch; align-self: stretch; }
  /* 12px sides, as the contacts form button: from 360px up the label stays on one line */
  .hub-hero__actions .btn--primary { padding-left: 12px; padding-right: 12px; }
  .hub-hero__photo { height: 240px; }
}

/* Categories: no section H2 (the user removed "Browse by category", 2026-09-29). The section opens with a "Jump to"
   row: the label (label, text-2) and the anchor chips, 8×12 around the text on desktop, 10×11 and 11×14 on tablets
   and phones (as in the mockup, so that they are at least 37 tall there). Each group: the title (an H2 in the
   title-l role) and a description (body, text-2, up to 720), then photo cards linking to the category pages:
   4 columns, tablets 3, phones 2. Card: photo 170 / 150 / 120, radius 12; the title (card) with an arrow; hover: the
   photo zooms to 1.05, the title turns accent-strong. The section closes with a line on what else the suppliers have
   (body, text-2, the lead-in in text 600), under a hairline. */
.hub-anchors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-anchors__label { margin-right: 4px; color: var(--text-2); }
.hub-anchor { padding: 8px 12px; border-radius: 18px; background: var(--bg-alt); color: var(--text); transition: background-color .2s, color .2s; }
.hub-anchor:hover { background: var(--navy); color: #fff; }
.hub-group { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.hub-group__head { display: flex; flex-direction: column; gap: 8px; }
.hub-group__desc { max-width: 720px; color: var(--text-2); }
.hub-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; }
.hub-card__photo { display: block; height: 170px; overflow: hidden; border-radius: 12px; background: var(--bg-alt); }
.hub-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hub-card:hover .hub-card__photo img { transform: scale(1.05); }
.hub-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hub-card__title .t-card { transition: color .2s; }
.hub-card:hover .t-card { color: var(--accent-strong); }
/* The arrow centred on the first title line: (24 - 18) / 2 */
.hub-card__title .i { flex: none; margin-top: 3px; color: var(--navy); }
.hub-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 12px; }
.hub-more { padding-top: 24px; border-top: 1px solid var(--border-light); color: var(--text-2); }
.hub-more strong { font-weight: 600; color: var(--text); }
@media (max-width: 1199.98px) {
  .hub-anchor { padding: 10px 11px; }
  .hub-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .hub-card__photo { height: 150px; }
}
@media (max-width: 767.98px) {
  .hub-anchor { padding: 11px 14px; }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .hub-card__photo { height: 120px; }
}
/* Reduced motion, as on the homepage: nothing moves on hover, the colour change stays */
@media (prefers-reduced-motion: reduce) {
  .hub-card:hover .hub-card__photo img { transform: none; }
}

/* Three ways (to plan your kitchen & bath design): the kicker and the H2 in the shared .head-row__text; white cards
   on grey; a 44 circle rgba(249,115,22,.12) with a 22px accent icon (as the
   contacts About cards), the title (h3) and the text (body-s, text-2). Tablets: three in a row, padding 20;
   phones: one under another. */
.hub-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hub-way { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 12px; background: #fff; }
.hub-way__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
.hub-way__text { color: var(--text-2); }
@media (max-width: 1199.98px) {
  .hub-ways { gap: 16px; }
  .hub-way { padding: 20px; }
}
@media (max-width: 767.98px) {
  .hub-ways { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- Project pages (from 2026-09-29) ----------
   One page per project of "Our work". The first screen holds the title and, right under it, the photos and video in
   groups (the new kitchen with its large first photo, the old kitchen, the floor plan and 3D design, the video); then
   (in .work-blocks) the story with the materials, the appliances and a Free Estimate button, the review and more
   projects, then the shared Final CTA. Photos are 5:3 (the live site's 1700x1020), WebP; every photo that opens the
   viewer is a link to its full size, and no photo is shown twice on the page. */

/* The blocks between the first screen (grey) and the Final CTA alternate white and grey by position, starting with
   white, so a block that is switched off (the review) never leaves two blocks of one colour side by side. The story's
   details card is grey on a white block and white on a grey one. */
.work-blocks > .section:nth-child(even) { background: var(--bg-alt); }
.work-blocks > .section:nth-child(even) .work-aside { background: #fff; }

/* The title: the H1 runs the full width (up to 1000), so an H1 with a long town wraps without moving anything; under it
   the facts. The photos follow at the first screen's own gap (28), so the main photo shows on a laptop. */
.work-title { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.work-title .t-display { max-width: 1000px; }
/* The facts: an orange circle with the icon (as the contact card rows), the label (meta, text-2) over the value */
.work-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.work-facts__item { display: flex; align-items: center; gap: 10px; }
.work-facts__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
.work-facts__text { display: flex; flex-direction: column; gap: 2px; }
.work-facts__label { color: var(--text-2); }
@media (max-width: 767.98px) {
  .work-title { gap: 18px; }
  .work-facts { gap: 14px 24px; }
}

/* Photos: groups one under another, each on rows of its own: the new kitchen without a heading, then the others with
   an H2 in the title-l role over their tiles, as the catalog hub's groups (.hub-group), without descriptions. Tiles
   are 5:3, 3 in a row (phones 2), all one size except the new kitchen's first photo and the video; a short last row
   stays short. A tile is a link to the photo's full size or, for the video, a button with the homepage's play button.
   A slight zoom on hover, the navy focus ring. */
.work-groups { display: flex; flex-direction: column; gap: 40px; }
.work-group { display: flex; flex-direction: column; gap: 20px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* The new kitchen's first photo is large: two columns by two rows, with the next two photos one above the other beside
   it. It needs those two to fill its rows, so with fewer than 3 photos it stays the one size. Its image is laid over
   the tile, so the image's own size cannot stretch the rows. Phones: the full width, 5:3. */
.work-grid--cover > li:first-child { position: relative; }
.work-grid--cover > li:first-child:nth-last-child(n+3) { grid-column: span 2; grid-row: span 2; }
.work-grid--cover > li:first-child:nth-last-child(n+3) .work-shot { height: 100%; aspect-ratio: auto; }
.work-grid--cover > li:first-child:nth-last-child(n+3) img { position: absolute; inset: 0; }
/* "View all 14 photos": phones only, a white button on the main photo's lower right corner; it opens the viewer at the
   first photo (the photo itself does the same, the button shows that the photos open large) */
.work-all { display: none; }
.work-shot {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 3; padding: 0; border: 0; overflow: hidden;
  border-radius: 12px; background: #111827; cursor: zoom-in;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-shot:hover img { transform: scale(1.04); }
.work-shot:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
/* The floor plan is a drawing on white: a hairline frame keeps its edge */
.work-shot--plan { border: 1px solid var(--border-light); background: #fff; }
/* The video: two columns wide and 16:9, as the YouTube poster (phones: the full width), with the homepage's big orange
   play button (as on its large video poster) and its length in the site's pill on the lower right corner, as on
   YouTube */
.work-grid--video > li { grid-column: span 2; }
.work-shot--video { aspect-ratio: 16 / 9; cursor: pointer; }
.work-shot--video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.work-shot__time { left: auto; right: 12px; }
@media (max-width: 1199.98px) {
  .work-groups { gap: 32px; }
  .work-group { gap: 16px; }
  .work-grid { gap: 12px; }
}
@media (max-width: 767.98px) {
  .work-groups { gap: 28px; }
  .work-group { gap: 14px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .work-grid--cover > li:first-child, .work-grid--cover > li:first-child:nth-last-child(n+3), .work-grid--video > li { grid-column: 1 / -1; grid-row: auto; }
  .work-grid--cover > li:first-child:nth-last-child(n+3) .work-shot { height: auto; aspect-ratio: 5 / 3; }
  .work-grid--cover > li:first-child:nth-last-child(n+3) img { position: static; }
  .work-all {
    position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px;
    border: 0; border-radius: 8px; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(15, 20, 30, .25); cursor: pointer;
  }
  .work-all:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
  .work-shot--video .play--lg { width: 64px; height: 64px; }
}

/* The story: the text (parts up to 680) on the left, the details card (360, grey) on the right; tablets and phones:
   the card under the text. The text opens with the overview (no heading), then the parts with their H3s. The card: the
   materials as small tiles, 2 in a row, then the appliances as a dot list and the Free Estimate button. */
.work-story { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.work-story__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.work-story__head { display: flex; flex-direction: column; gap: 12px; }
.work-story__intro { max-width: 680px; color: var(--text-body); }
.work-story__part { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.work-story__part .t-body { color: var(--text-body); }
.work-aside { display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: 12px; background: var(--bg-alt); }
.work-aside__part { display: flex; flex-direction: column; gap: 12px; }
.work-aside__list { display: flex; flex-direction: column; gap: 8px; }
.work-aside__list li { position: relative; padding-left: 18px; }
.work-aside__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* The button: the full width of the card, 12px more space above it than between the list's lines */
.work-aside__cta { margin-top: 12px; }
/* A material tile: the close-up (27:17, radius 8), the name (label; the arrow after its last word when the tile links
   to the catalog), and for the backsplash the note (meta, text-2). The whole tile is the link. */
.work-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.work-swatch { display: flex; flex-direction: column; gap: 8px; border-radius: 8px; }
.work-swatch__photo { display: block; aspect-ratio: 27 / 17; overflow: hidden; border-radius: 8px; background: #111827; }
.work-swatch__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-swatch__name { color: var(--text); transition: color .2s; }
.work-swatch__name .i { display: inline-block; margin-left: 4px; vertical-align: -2px; color: var(--navy); transition: transform .2s; }
.work-swatch__note { margin-top: -4px; color: var(--text-2); }
a.work-swatch:hover .work-swatch__photo img { transform: scale(1.05); }
a.work-swatch:hover .work-swatch__name { color: var(--accent-strong); }
a.work-swatch:hover .work-swatch__name .i { transform: translateX(3px); }
a.work-swatch:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
@media (max-width: 1199.98px) {
  .work-story { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
/* Tablets: the card is full width, so the materials and the appliances sit side by side in it */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .work-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
@media (max-width: 767.98px) {
  .work-story { gap: 32px; }
  .work-story__text { gap: 24px; }
  .work-aside { padding: 24px 20px; }
}

/* More projects: the homepage's project cards, three in a row with 5:3 photos (the homepage's own sizes and the phone
   carousel widths are reset here); phones: one under another. */
.work-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-more .project__photo { height: auto; aspect-ratio: 5 / 3; }
.work-more .project:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 1199.98px) {
  .work-more { gap: 16px; }
}
@media (max-width: 767.98px) {
  .work-more { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .work-more .project { width: auto; }
  .work-more .project__photo { height: auto; aspect-ratio: 5 / 3; }
}

/* Client review (optional, like the video): a tinted circle (56, the facts' orange tint) with a quote mark on the
   left, then the kicker, the stars, the quote (lead, text colour, up to 720), the name (label) with the project line
   (meta, text-2), and the link to all the reviews. No H2. Phones: the circle above the text. */
.work-review { display: grid; grid-template-columns: 56px minmax(0, 720px); gap: 32px; align-items: start; }
.work-review__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
.work-review__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.work-review__figure { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.work-review__quote { margin: 0; }
.work-review__quote .t-lead { color: var(--text); }
.work-review__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.work-review__meta { color: var(--text-2); }
@media (max-width: 767.98px) {
  .work-review { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .work-review__mark { width: 48px; height: 48px; }
}

/* Reduced motion, as on the homepage: nothing moves on hover, the colour change stays */
@media (prefers-reduced-motion: reduce) {
  .work-shot:hover img, a.work-swatch:hover .work-swatch__photo img, a.work-swatch:hover .work-swatch__name .i { transform: none; }
  .work-shot--video:hover .play { transform: translate(-50%, -50%); }
}

/* Photo viewer: a native dialog over the whole screen on a near-black backdrop; the count and the close button on
   top, the photo as large as fits with its caption (the alt text) under it, the round arrows on the sides (phones:
   under the photo). The buttons get the header's orange focus ring. */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15, 20, 30, .96); color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(15, 20, 30, .96); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 24px; }
.lightbox__count { color: var(--on-dark-2); }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox__figure { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 96px 32px; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); border-radius: 8px; user-select: none; }
.lightbox__cap { max-width: 760px; text-align: center; color: var(--on-dark-2); }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox.is-single .lightbox__nav { display: none; }
@media (max-width: 767.98px) {
  .lightbox__bar { padding: 12px 12px 12px 20px; }
  .lightbox__figure { padding: 0 0 92px; }
  .lightbox__img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); border-radius: 0; }
  .lightbox__cap { padding: 0 20px; }
  .lightbox__nav { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- "Our work" list and its category pages (from 2026-09-30) ----------
   One template for /our-work (all projects), /our-work/kitchens and /our-work/bathrooms: the first screen (light)
   holds the title, the project types as links and the projects, newest first, in one grid; a category page ends with
   a link to its service page. The user chose the grid without a large project on top (variant B, 2026-09-30). */

/* The title: the H1, a line about the projects (lead, text-2, up to 680) and the project types as pill links: white
   with a hairline, the current one navy (as the homepage's video filters), 36 tall */
.work-list-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.work-list-head__lead { max-width: 680px; color: var(--text-2); }
.work-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.work-cat {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 18px;
  background: #fff; color: var(--text); transition: background-color .2s, border-color .2s, color .2s;
}
.work-cat:hover { border-color: var(--navy); }
.work-cat[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.work-cat:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* The grid: 3 in a row (tablets 2, phones 1). A card is one link: the photo (5:3, radius 12, the homepage's
   BEFORE / AFTER pill), the title (h2 in the h3 role), the excerpt (body-s, text-2) and the time (meta, text-2, the
   timer icon in orange). A slight zoom and the orange title on hover, the navy focus ring.
   The excerpt is shown whole, not cut to two lines: a cut hid its end on phones and tablets, and more of it when a
   visitor widens the text spacing (WCAG 1.4.12). The admin keeps it short instead (up to 120 characters: 2–3 lines). */
.work-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 12px; }
.work-card { display: flex; flex-direction: column; height: 100%; border-radius: 12px; }
.work-card__photo { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; margin-bottom: 16px; border-radius: 12px; background: #111827; }
.work-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card__title { transition: color .2s; }
.work-card__text { margin-top: 8px; color: var(--text-2); }
/* The time sits at the card's foot, so the cards of one row keep it on one line whatever their excerpt's length */
.work-card__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--text-2); }
.work-card__meta .i { color: var(--accent); }
a.work-card:hover .work-card__photo img { transform: scale(1.04); }
a.work-card:hover .work-card__title { color: var(--accent-strong); }
.work-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
/* A category page's link to its service page, under the grid: 40 below the cards, as the grid is below the title */
.work-list-link { margin-top: 12px; }
@media (max-width: 1199.98px) {
  .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
@media (max-width: 767.98px) {
  .work-list-head { gap: 18px; }
  .work-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 8px; }
  .work-card__photo { margin-bottom: 14px; }
  .work-list-link { margin-top: 8px; }
}
/* Pages of the list (2026-10-01; none yet: 12 projects fit on one page): when a list has more than 12 projects, a row
   of page links under the grid, centred: "Previous" (not on the first page), the page numbers as the project types'
   pills (the current one navy, aria-current="page"), "Next" (not on the last page). Plain links (?page=2), so search
   follows them. On a category page it stands between the grid and the service link. */
.work-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.work-pager .work-cat { justify-content: center; min-width: 36px; padding: 8px 12px; }
/* "Previous" and "Next" as tall as the page pills (2026-10-07, the blog list, where the row first shows): an easier tap
   on phones, the look unchanged */
.work-pager .link-arrow { align-self: center; min-height: 36px; margin: 0 8px; }
.work-pager__prev:hover .i { transform: translateX(-3px); }
/* Reduced motion, as on the homepage: nothing moves on hover, the colour change stays */
@media (prefers-reduced-motion: reduce) {
  a.work-card:hover .work-card__photo img, .work-pager__prev:hover .i { transform: none; }
}

/* ---------- Homepage "Recent remodeling projects": project pages and types (2026-10-01) ----------
   The homepage edit approved by the user: the cards are the 4 latest projects of "Our work", each linking to its page,
   with the time from design to finish under the name (the timer in orange, as on the "Our work" cards); the heading
   row ends with the project types as the list's pill links (.work-cat) and then "All projects" (on tablets and phones
   under the heading, from the left edge; the link wraps to its own line when the row is too narrow). Only new classes:
   the homepage's own rules above stay as handed off. */
.projects-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.projects-nav__types { display: flex; flex-wrap: wrap; gap: 8px; }
.projects-nav .link-arrow { align-self: center; }
.project__time { display: inline-flex; align-items: center; gap: 6px; }
.project__time .i { flex: none; color: var(--accent); }

/* ---------- Blog article (from 2026-10-01) ----------
   The article page of the blog: the first screen (breadcrumbs, H1, standfirst, byline, cover), the text column with
   the contents and the estimate card beside it from 1200, then projects of its kind and more articles. No Final CTA in
   the blog (the user, 2026-10-06): the article asks for the estimate itself (the estimate card, the ABC card at the end).
   The text gets its look from .prose, so whatever the author writes (paragraphs, headings, lists, photos, links) is
   styled without classes; the blocks the author adds have their own classes (.post-summary, .prose-tip, .prose-quote,
   .prose-table, .prose-pair, .prose-project, .prose-faq). Best practice behind it (sources in
   C:\ABC\news\decisions.md): about 70 characters a line and line spacing over 1.5 (Baymard, WCAG 1.4.8), a summary at
   the top, in-page contents, short lists, callouts, informative photos with captions (NN/g), tables with a caption,
   row and column headers and stripes (GOV.UK, NN/g). */

/* First screen: the H1 up to 1000, the standfirst (one sentence that says what the article gives: larger than the text,
   text-2), the byline (the author's photo, name and role; the date with its label and the read time), the cover */
.post-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.post-head .t-display { max-width: 1000px; }
.post-dek { max-width: 760px; font-size: 21px; line-height: 32px; color: var(--text-2); }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 4px; }
.post-byline__who { display: flex; align-items: center; gap: 12px; }
.post-byline__photo { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--border-light); }
.post-byline__name { display: flex; flex-direction: column; gap: 2px; }
.post-byline__role, .post-byline__meta { color: var(--text-2); }
.post-byline__meta { display: flex; flex-wrap: wrap; }
.post-byline__meta > span + span::before { content: "·"; margin: 0 10px; }
/* The cover: rounded, a link that opens the photo viewer; under 992 across the width under the byline, 2:1 (phones 3:2) */
.post-cover a { display: block; overflow: hidden; border-radius: 12px; background: #111827; cursor: zoom-in; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.post-cover a:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
/* The first screen's layout, variant Б (the user's choice, 2026-10-07): from 992 the cover stands beside the title, the
   standfirst and the byline (3:2, 0.8 of the title's column, centred with it), with less space under it, so the text
   (Key takeaways) starts on the first screen of a laptop; under 992 the cover follows the byline */
.post-hero__row { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 992px) {
  .post-hero { padding-bottom: 56px; }
  .post-hero + .post-body { padding-top: 56px; }
  .post-hero .post-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 48px; }
  .post-hero .post-cover img { aspect-ratio: 3 / 2; }
}
@media (max-width: 1199.98px) { .post-hero__row { gap: 24px; } }
@media (max-width: 767.98px) { .post-hero__row { gap: 20px; } }

/* The text (680) and, from 1200, the column on the right (300) that stays in view: the contents and the estimate card */
.post-layout { display: grid; grid-template-columns: minmax(0, 680px) 300px; justify-content: space-between; align-items: start; }
.post-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.post-toc { display: flex; flex-direction: column; gap: 14px; }
.post-toc__title { color: var(--text-2); }
/* The contents: a hairline on the left; the section being read gets the orange bar and navy text (main.js) */
.post-toc__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border-light); }
.post-toc__list a { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 16px; font-size: 15px; line-height: 21px; color: var(--text-2); transition: color .2s; }
.post-toc__list a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: transparent; transition: background-color .2s; }
.post-toc__list a:hover { color: var(--text); }
.post-toc__list a[aria-current="true"] { color: var(--navy); font-weight: 600; }
.post-toc__list a[aria-current="true"]::before { background: var(--accent); }
.post-toc__list a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.post-toc__num { flex: none; width: 22px; font-variant-numeric: tabular-nums; }
.post-aside__cta { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 12px; background: var(--navy); color: #fff; }
.post-aside__sub { color: var(--on-dark-2); }
.post-aside__cta .btn { margin-top: 10px; }

/* The text: 18 / 30 (phones 17 / 28), the first paragraph larger; 24 between blocks, more above a section heading */
.prose { min-width: 0; counter-reset: post-section; font-size: 18px; line-height: 30px; color: var(--text-body); }
.prose > * + * { margin-top: 24px; }
.prose-lead { font-size: 21px; line-height: 32px; color: var(--text); }
.prose > h2 { margin-top: 64px; font-size: 28px; font-weight: 800; line-height: 32px; letter-spacing: -.3px; color: var(--text); scroll-margin-top: 24px; }
.prose > h2 + * { margin-top: 16px; }
/* Numbered sections (a switch per article; closing sections such as the conclusion and the questions are .prose-plain):
   the number in orange at 24 / 800, large text, so it meets the 3:1 contrast of large text */
.prose--numbered > h2:not(.prose-plain)::before { counter-increment: post-section; content: counter(post-section, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: 24px; font-weight: 800; line-height: 28px; color: var(--accent-strong); }
.prose h3 { margin-top: 40px; font-size: 21px; font-weight: 700; line-height: 28px; color: var(--text); }
.prose h3 + * { margin-top: 12px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a:not([class]) { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: rgba(32, 41, 56, .35); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.prose a:not([class]):hover { color: var(--accent-strong); text-decoration-color: currentColor; }
/* Lists: orange dots; numbered steps in navy circles (in the text and in the ABC card) */
.prose > ul { display: flex; flex-direction: column; gap: 12px; }
.prose > ul > li { position: relative; padding-left: 28px; }
.prose > ul > li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose > ol, .prose-abc__steps { display: flex; flex-direction: column; gap: 16px; padding: 0; list-style: none; counter-reset: post-step; }
.prose > ol > li, .prose-abc__steps > li { position: relative; min-height: 32px; padding-left: 48px; counter-increment: post-step; }
.prose > ol > li::before, .prose-abc__steps > li::before { content: counter(post-step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
/* Photos: the text width, 3:2, rounded, the caption under them (text-2); a link that opens the photo viewer */
.prose-figure a { display: block; overflow: hidden; border-radius: 12px; background: #111827; cursor: zoom-in; }
.prose-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.prose-figure a:hover img { transform: scale(1.02); }
.prose-figure a:focus-visible, .prose-pair__shot:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.prose figcaption { margin-top: 12px; font-size: 15px; line-height: 23px; color: var(--text-2); }
/* The photo's source, only when its licence asks for one (2026-10-07): after the caption, smaller and lighter
   (#6b7280 on white, 4.8:1) */
.prose-credit { font-size: 13px; line-height: 18px; color: var(--placeholder); }
/* Before and after: two photos side by side with the site's pills, one caption under both */
.prose-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose-pair__shot { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #111827; cursor: zoom-in; }
.prose-pair__shot img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .4s; }
.prose-pair__shot:hover img { transform: scale(1.03); }
.prose-pair figcaption { grid-column: 1 / -1; margin-top: 0; }
/* Key takeaways: the summary on top (NN/g: a distinct box with a descriptive title), a grey card with an orange bar */
.post-summary { padding: 28px 32px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-alt); }
.post-summary__title { margin-bottom: 16px; color: var(--navy); }
.post-summary .checklist { gap: 12px; font-size: 16px; line-height: 24px; color: var(--text); }
/* An ABC tip: an orange-tinted card with a light bulb (the title in navy: orange text this small would miss 4.5:1) */
.prose-tip { display: flex; gap: 16px; padding: 20px 24px; border-radius: 12px; background: rgba(249, 115, 22, .08); }
.prose-tip__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(249, 115, 22, .16); color: var(--accent-strong); }
.prose-tip__text { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 26px; color: var(--text); }
.prose-tip__title { color: var(--navy); }
/* A quote with its person: grey card, the orange quote mark, the words larger, the person's photo, name and role */
.prose-quote { display: flex; flex-direction: column; gap: 16px; padding: 28px 32px; border-radius: 12px; background: var(--bg-alt); }
.prose-quote__mark { color: var(--accent); }
.prose-quote blockquote { margin: 0; }
.prose-quote blockquote p { font-size: 21px; line-height: 32px; color: var(--text); }
.prose-quote .prose-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.prose-quote__by img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.prose-quote__who { display: flex; flex-direction: column; gap: 2px; }
.prose-quote__who .t-label { color: var(--text); }
/* A table (rules of 2026-10-07, tried on the live blog's 5 tables): a title on top only when the table needs one (a
   figure's caption that labels the table and stays in place while the table scrolls; a table right under the heading
   that names it is labelled by that heading instead, so the name is not repeated), a navy header row, row headers in
   bold (they wrap: real names run to 30+ characters), stripes, numbers right-aligned in figures of one width. Tables
   of 3 or more columns keep 600px and scroll sideways on narrow screens (the box is focusable, so the keyboard can
   scroll it), the first column staying in place on phones; 2-column tables fit the screen. */
.prose-table { overflow: hidden; border: 1px solid var(--border-light); border-radius: 12px; }
.prose-table .prose-table__title { margin: 0; padding: 16px 20px; font-size: 17px; font-weight: 700; line-height: 24px; color: var(--text); }
.prose-table__scroll { overflow-x: auto; }
.prose-table__scroll:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.prose-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prose-table table:has(tr > :nth-child(3)) { min-width: 600px; }
.prose-table th, .prose-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.prose-table thead th { background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; }
.prose-table tbody tr > * { background: #fff; }
.prose-table tbody tr:nth-child(even) > * { background: var(--bg-alt); }
.prose-table tbody th { font-weight: 700; color: var(--text); }
/* Numbers (GOV.UK): the site gives .prose-table__num to a column whose cells are all numbers, its header included, and
   to a column right-aligned in Markdown (---:) */
.prose-table .prose-table__num { text-align: right; font-variant-numeric: tabular-nums; }
/* An ABC project: one link, the project's photo on the left (phones: on top), the kicker, the name, the time */
.prose-project { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; padding: 12px; border: 1px solid var(--border-light); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.prose-project:hover { border-color: var(--border); box-shadow: var(--lift); }
.prose-project:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.prose-project__photo { display: block; overflow: hidden; aspect-ratio: 5 / 3; border-radius: 10px; background: #111827; }
.prose-project__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prose-project:hover .prose-project__photo img { transform: scale(1.04); }
.prose-project__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 12px; }
.prose-project__title { color: var(--text); transition: color .2s; }
.prose-project:hover .prose-project__title { color: var(--accent-strong); }
.prose-project__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.prose-project__meta .i { color: var(--accent); }
.prose-project__more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); }
/* Questions and answers: the homepage's question, grey on the white text */
.prose-faq { display: flex; flex-direction: column; gap: 10px; }
.prose-faq .faq__item { background: var(--bg-alt); }
.prose-faq .faq__a { font-size: 16px; line-height: 26px; }
/* About the author, at the end: the byline's name links here (Google: a byline should lead to the author's
   background); the photo, name and role are in the byline already, so this card holds only what is new: who they are */
.post-author { display: flex; flex-direction: column; gap: 10px; margin-top: 64px; padding: 24px 28px; border-radius: 12px; background: var(--bg-alt); scroll-margin-top: 24px; }
.post-author__bio { color: var(--text-body); }
.post-byline__link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(32, 41, 56, .35); text-underline-offset: 3px; transition: color .2s; }
.post-byline__link:hover { color: var(--accent-strong); }
.post-byline__link:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
/* The ABC card at the very end of the article (2026-10-07: the offer kept apart from the text): a white card with a
   border, as the ABC project card in the text; the kicker "ABC HOME EXPERT", the title, the steps, the estimate line */
.prose > .prose-abc { margin-top: 32px; }
.prose-abc { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 32px; border: 1px solid var(--border-light); border-radius: 16px; background: #fff; }
.prose-abc .kicker { margin-bottom: -6px; }
.prose-abc__title { color: var(--text); }
.prose-abc__steps { margin: 0; }
/* The estimate line in the ABC card: it opens the estimate window, as large as an H3 (a link stands out when it is
   larger than the text around it). Inline, so the arrow follows the last word when it wraps. */
.prose-abc .prose-next { margin-top: 4px; }
/* The link to the topic's service page under the estimate line (2026-10-09): the project page's link, 8 under the line */
.prose-abc__service { margin-top: -8px; }
.prose-next .link-arrow { display: inline; font-size: 21px; font-weight: 700; line-height: 28px; }
.prose-next .link-arrow .i { display: inline-block; margin-left: 8px; vertical-align: -3px; }
.prose-next .link-arrow:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
/* Under 1200 the contents fold into one line above the text and the estimate card sits in the text */
.post-toc-m, .post-cta-inline { display: none; }

/* Article cards: photo 5:3, the date and read time, the title, the excerpt. One card in two grids: the blog list
   (.post-cards--list, 2026-10-07: in the first screen, as the "Our work" list's grid, 40 below the title; every card at
   every width, whole cards on phones too) and "More … ideas" after an article (.post-cards--more: tablets show two,
   phones turn them into rows). */
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.post-cards--list { margin-top: 12px; }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: 12px; }
.post-card__photo { display: block; aspect-ratio: 5 / 3; overflow: hidden; margin-bottom: 16px; border-radius: 12px; background: #111827; }
.post-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card__meta { display: flex; flex-wrap: wrap; margin-bottom: 8px; color: var(--text-2); }
.post-card__meta > * + *::before { content: "·"; margin: 0 8px; }
.post-card__title { transition: color .2s; }
.post-card__text { margin-top: 8px; color: var(--text-2); }
a.post-card:hover .post-card__photo img { transform: scale(1.04); }
a.post-card:hover .post-card__title { color: var(--accent-strong); }
.post-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.post-related { margin-top: 0; }

@media (max-width: 1199.98px) {
  .post-layout { grid-template-columns: minmax(0, 680px); }
  .post-aside { display: none; }
  .post-toc-m { display: block; border: 1px solid var(--border-light); border-radius: 12px; }
  .post-toc-m__summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; list-style: none; cursor: pointer; color: var(--text); }
  .post-toc-m__summary::-webkit-details-marker { display: none; }
  .post-toc-m__summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 12px; }
  .post-toc-m__chev { margin-left: auto; color: var(--text-2); transition: transform .2s; }
  .post-toc-m[open] .post-toc-m__chev { transform: rotate(180deg); }
  .post-toc-m .post-toc__list { margin: 0 18px 16px; }
  .post-cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; border-radius: 12px; background: var(--navy); color: #fff; }
  .post-cta-inline__text { display: flex; flex-direction: column; gap: 6px; }
  .post-cta-inline__sub { color: var(--on-dark-2); }
  .post-cta-inline__btn { flex: none; }
}
/* Tablets: two cards in a row; after an article the third is hidden (it would stand alone in a row of its own) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .post-cards--more > li:nth-child(n+3), .post-related > li:nth-child(n+3) { display: none; }
}
@media (max-width: 767.98px) {
  .post-dek { font-size: 18px; line-height: 27px; }
  .post-byline { gap: 10px 20px; }
  .post-cover img { aspect-ratio: 3 / 2; }
  .prose { font-size: 17px; line-height: 28px; }
  .prose-lead { font-size: 19px; line-height: 29px; }
  .prose > * + * { margin-top: 20px; }
  .prose > h2 { margin-top: 48px; font-size: 24px; line-height: 29px; letter-spacing: 0; }
  .prose--numbered > h2:not(.prose-plain)::before { font-size: 20px; line-height: 24px; }
  .post-summary, .prose-quote { padding: 24px 20px; }
  .prose-quote blockquote p { font-size: 19px; line-height: 29px; }
  .prose-tip { padding: 18px 16px; gap: 14px; }
  .prose-table tbody th, .prose-table thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: inset -1px 0 0 var(--border-light); }
  .prose-project { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .prose-project__text { padding: 0 8px 8px; }
  .post-author { padding: 20px; }
  .post-cta-inline { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .prose-abc { padding: 24px 20px; }
  /* Phones (2026-10-07): the blocks after the article stay short. Projects scroll sideways as on the homepage (280px
     cards, the next one peeking in, dots from main.js [data-carousel]) without the excerpt; more articles become rows
     with a 120x80 photo, as the homepage's "From the blog", without the excerpt. 4px of padding above and below keeps
     focus outlines from being cut by the scroll box. */
  .post-related {
    display: flex; gap: 16px; margin: -4px -20px; padding: 4px 20px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .post-related::-webkit-scrollbar { display: none; }
  .post-related > li { flex: none; width: min(280px, 100% - 36px); scroll-snap-align: start; }
  .post-related .work-card__text { display: none; }
  .post-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-cards--list { margin-top: 8px; }
  .post-card__photo { margin-bottom: 14px; }
  .post-cards--more { gap: 16px; }
  .post-cards--more .post-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-content: center; gap: 4px 14px; }
  .post-cards--more .post-card__photo { grid-row: 1 / span 2; align-self: center; width: 120px; height: 80px; aspect-ratio: auto; margin-bottom: 0; border-radius: 8px; }
  .post-cards--more .post-card__meta { grid-column: 2; align-self: end; margin-bottom: 0; }
  .post-cards--more .post-card__title { grid-column: 2; align-self: start; font-size: 17px; line-height: 24px; }
  .post-cards--more .post-card__text { display: none; }
}
/* Reduced motion, as on the homepage: nothing moves on hover, the colour change stays */
@media (prefers-reduced-motion: reduce) {
  .prose-figure a:hover img, .prose-pair__shot:hover img, .prose-project:hover .prose-project__photo img, a.post-card:hover .post-card__photo img { transform: none; }
}

/* ---------- Catalog category and its selection pages (from 2026-10-09) ----------
   One template for the 18 category pages (/catalog/{category}.html) and the selection pages, which show part of a
   category's products (/catalog/shaker-kitchen-cabinets.html). The first screen (light, as the "Our work" and blog
   lists) holds the breadcrumbs, the H1, the lead, the category and its selections as the project types' pill links
   (.work-cats, the current one navy), the filter bar, all the products and the service band under them; then the
   description, the projects and the questions, white and grey in turn (.cat-blocks), and the Final CTA. Written by
   gen-catalog.mjs; the filters and "Show more" by main.js. */

/* The filter bar, 40 under the title as the lists' grids: from 768px a button per filter type that opens its values
   under it, shaped as the site's form fields (white, hairline, radius 8, 40 tall), so it reads as a control and not as
   the pill links of the selections above it; the number of products on the right (role="status"). A type with values
   chosen gets a navy border and their number in a navy circle. Phones: one "Filters" button (44 tall) opens the
   full-screen panel. */
.cat-list { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cat-bar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter { position: relative; }
.cat-filter__btn, .cat-bar__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 12px 10px 14px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.cat-filter__btn:hover, .cat-bar__open:hover, .cat-filter__btn[aria-expanded="true"] { border-color: var(--navy); }
.cat-filter__btn.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cat-filter__btn .i { color: var(--text-2); transition: transform .2s; }
.cat-filter__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.cat-filter__btn:focus-visible, .cat-bar__open:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat-filter__n {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.cat-filter__n[hidden] { display: none; }
.cat-bar__open { display: none; }
.cat-bar__open .i { color: var(--navy); }
/* "Popular" (the live "Most popular"): a filter with one value, so a toggle instead of a list, at the start of the bar.
   The filter buttons' box with the checkbox, the name (label role) and the number of popular products; chosen: the
   navy border, as a type with values chosen. */
.cat-opt.cat-toggle { min-height: 40px; padding: 0 12px; border: 1px solid var(--border); background: #fff; transition: border-color .2s, box-shadow .2s; }
.cat-opt.cat-toggle:hover { border-color: var(--navy); background: #fff; }
.cat-opt.cat-toggle.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cat-opt.cat-toggle.is-off:hover { border-color: var(--border); }
.cat-toggle .cat-opt__label { font-size: 14px; font-weight: 600; line-height: 17px; }
.cat-bar__count { margin-left: auto; color: var(--text-2); }

/* A type's values: a white card under its button (radius 12, the site's lift shadow), a value per row, 40 tall: the
   checkbox (20; its edge #6b7280 keeps 3:1 against white, WCAG 1.4.11; navy with a white tick when chosen), the colour
   swatch for colours, the name, the number of products on the right. A value that would show nothing is disabled and
   greyed out. Windows high contrast gets the browser's own checkbox. */
.cat-filter__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 240px; max-height: min(420px, 60vh); overflow-y: auto;
  padding: 8px; border: 1px solid var(--border-light); border-radius: 12px; background: #fff; box-shadow: var(--lift);
}
.cat-opts { min-width: 0; margin: 0; padding: 0; border: 0; }
.cat-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer; transition: background-color .2s; }
.cat-opt:hover { background: var(--bg-alt); }
.cat-opt__box {
  flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--placeholder); border-radius: 4px; background: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.cat-opt__box:checked {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cat-opt__box:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat-opt__sw { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .2); }
.cat-opt__label { flex: 1; min-width: 0; font-size: 15px; line-height: 23px; color: var(--text); }
.cat-opt__n { flex: none; font-size: 13px; line-height: 18px; color: var(--text-2); }
.cat-opt.is-off { cursor: default; opacity: .45; }
.cat-opt.is-off:hover { background: none; }
.cat-opt.is-off .cat-opt__box { cursor: default; }
@media (forced-colors: active) {
  .cat-opt__box { -webkit-appearance: auto; appearance: auto; }
}

/* The values chosen, under the bar: navy pills with a cross (each removes its value) and "Clear all" */
.cat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cat-chips[hidden] { display: none; }
.cat-chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px 6px 14px;
  border: 0; border-radius: 16px; background: var(--navy); color: #fff; transition: background-color .2s;
}
.cat-chip:hover { background: #111827; }
.cat-chip:focus-visible, .cat-chips__clear:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat-chips__clear { padding: 6px 0; border: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.cat-chips__clear:hover { color: var(--accent); }

/* The products: 4 in a row (tablets 3, phones 2), 24 apart (16, 12). A card is one link and one white card, as the
   site's light cards (hairline #e5e7eb, radius 12; the user, 2026-10-09: the name belongs in the card): the photo across
   its top (square), POPULAR with the site's orange rating star in its top left corner (8 from the photo's edges, level
   with the "i"; no NEW pill), then the name (card role), centred, with no line above it (the user: the line looked
   wrong), the rest of the card's height held by it, so the cards of a row end level. Hover: the lift shadow and a
   darker hairline, as the article's project card, a slight zoom of the photo and the orange name. */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cat-grid > [hidden] { display: none; }
.cat-card {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.cat-card__photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.cat-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card__photo .pill { z-index: 1; top: 12px; bottom: auto; left: 8px; }
.cat-pill { display: inline-flex; align-items: center; gap: 4px; padding-left: 7px; }
/* overflow-wrap: a long word of a real name (HANDCRAFTED, combimeters) breaks inside the card on 320–360 px phones with
   WCAG 1.4.12 text spacing instead of sticking out (the programmer's find on the test copy, taken over 2026-10-12) */
.cat-card__name {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 16px 16px;
  text-align: center; overflow-wrap: anywhere; transition: color .2s;
}
a.cat-card:hover { border-color: var(--border); box-shadow: var(--lift); }
a.cat-card:hover .cat-card__photo img { transform: scale(1.04); }
a.cat-card:hover .cat-card__name { color: var(--accent-strong); }
.cat-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Characteristics on a card (2026-10-09, in place of the live catalog's corner panel): a round "i" button (32, the pills'
   navy at .8, white icon; navy when pointed at or open) 8 from the photo's top right corner (9 from the card's edge,
   with its hairline), beside the card's link. Pointing at it (devices with a mouse) or a click / tap shows the panel
   over the whole photo, inside the card's hairline: solid navy (at .94 the POPULAR pill showed through), the
   characteristics one under another, the name (meta, white at .8) over the value (label, white); 52 kept free on the
   right for the button, which turns into a cross while the panel is held open. The panel stays while pointed at, Esc
   hides it (WCAG 1.4.13), a click on it opens the product. The focus ring is orange: it shows on the photo and on navy.
   The card item is a column, so the card fills the row's height. */
.cat-item { position: relative; display: flex; flex-direction: column; }
.cat-info {
  position: absolute; top: 9px; right: 9px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 0; border-radius: 50%; background: var(--overlay); color: #fff; transition: background-color .2s;
}
.cat-info:hover, .cat-item.is-open .cat-info { background: var(--navy); }
.cat-info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-info__close, .cat-item.is-open .cat-info__open { display: none; }
.cat-item.is-open .cat-info__close { display: block; }
.cat-spec {
  position: absolute; top: 1px; left: 1px; right: 1px; z-index: 2; aspect-ratio: 1; overflow-y: auto;
  padding: 16px 52px 16px 16px; border-radius: 11px 11px 0 0; background: var(--navy); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
}
.cat-item.is-open .cat-spec { opacity: 1; visibility: visible; transition: opacity .2s; }
@media (hover: hover) {
  .cat-info:hover ~ .cat-spec, .cat-spec:hover { opacity: 1; visibility: visible; transition: opacity .2s; }
}
.cat-item.is-calm .cat-spec { opacity: 0; visibility: hidden; }
.cat-spec__list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cat-spec__row dt { color: var(--on-dark-2); }
.cat-spec__row dd { margin: 2px 0 0; color: #fff; }

/* The service band (2026-10-09): the article's inline estimate card (navy, radius 12, the question in the H3 role, a
   line under it, the orange button on the right) at the grid's full width, under the products and "Show N more" (the
   client, 2026-10-12: not between the product rows); 40 below them (the list's gap 20 + 20). The button opens the
   category's service page. */
.cat-service {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 20px;
  padding: 28px 32px; border-radius: 12px; background: var(--navy); color: #fff;
}
.cat-service__text { display: flex; flex-direction: column; gap: 6px; }
.cat-service__sub { color: var(--on-dark-2); }
.cat-service__btn { flex: none; }

/* Nothing found (only from an old or edited address: the bar never offers a choice that finds nothing), and
   "Show N more" with how many show, centred under the grid */
.cat-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 0; }
.cat-loadmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.cat-empty[hidden], .cat-loadmore[hidden] { display: none; }
.cat-loadmore__count { color: var(--text-2); }

/* Phones: the filters in a full-screen panel (a native <dialog>): the title and the close button on top, the types one
   under another (a fieldset each, its name as the legend), rows 44 tall; at the bottom, always in view, "Clear all" and
   the orange button with the number of products. The choice applies at once; the button only closes the panel. */
.cat-sheet {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #fff; color: var(--text);
}
.cat-sheet[open] { display: flex; flex-direction: column; }
.cat-sheet::backdrop { background: rgba(15, 20, 30, .7); }
.cat-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--border-light); }
.cat-sheet__close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text-2); transition: background-color .2s, color .2s;
}
.cat-sheet__close:hover { background: var(--bg-alt); color: var(--text); }
.cat-sheet__close:focus-visible, .cat-sheet__show:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 24px; }
.cat-sheet__group { padding: 16px 0 8px; border-bottom: 1px solid var(--border-light); }
.cat-sheet__group:last-child { border-bottom: 0; }
.cat-sheet__group > legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; }
.cat-sheet__group > legend + * { clear: both; }
.cat-sheet .cat-opt { min-height: 44px; padding: 0 4px; }
.cat-sheet__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-light);
}
.cat-sheet__show { flex: 1 1 auto; max-width: 280px; }

/* The blocks after the products (the description, the projects, the questions) alternate white and grey by position,
   white first, as the project page's blocks: a block left out never leaves two of one colour side by side. The
   questions' items are grey on white (the contacts page) and white on grey (the homepage). */
.cat-blocks > .section:nth-child(even) { background: var(--bg-alt); }
.cat-blocks > .section:nth-child(even) .faq__item { background: #fff; }

/* The description: the kicker and the H2 (12 apart, as the site's section heads), then the admin's text blocks, an H3
   (title-l) and its text each, two columns from 1200px; one column up to 680 below */
.cat-about__head { display: flex; flex-direction: column; gap: 12px; }
.cat-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.cat-about__item { display: flex; flex-direction: column; gap: 12px; }
.cat-about__item p { color: var(--text-body); }

/* Questions: the contacts page's layout; an answer of several paragraphs keeps 10 between them */
.cat-faq .faq__a p + p { margin-top: 10px; }

@media (max-width: 1199.98px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cat-about { grid-template-columns: minmax(0, 680px); gap: 40px; }
}
@media (max-width: 767.98px) {
  .cat-list { gap: 16px; margin-top: 8px; }
  .cat-bar__filters { display: none; }
  .cat-bar__open { display: inline-flex; min-height: 44px; padding: 12px 16px 12px 14px; }
  .cat-chip { min-height: 36px; border-radius: 18px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card__name { padding: 12px 10px 14px; }
  .cat-spec { padding: 12px 46px 12px 12px; }
  .cat-spec__list { gap: 8px; }
  .cat-service { flex-direction: column; align-items: stretch; margin-top: 16px; padding: 24px 20px; }
  .cat-about { gap: 32px; }
}
/* Reduced motion, as on the homepage: nothing moves on hover, the colour change stays */
@media (prefers-reduced-motion: reduce) {
  a.cat-card:hover .cat-card__photo img { transform: none; }
  .cat-filter__btn .i { transition: none; }
}

/* ---------- Catalog product page (2026-10-10, gen-product.mjs) ----------
   Built from the project page (the title with its facts, the photo groups and the viewer, the story with the details
   card) and the category (the cards, the questions, the projects). */
/* The title: the H1 and the facts as on the project page; the lead (up to 760) between them. The estimate button
   stands under the lines about the product (the client, 2026-10-12; phones: the full width) */
.prod-lead { max-width: 760px; color: var(--text-body); }
.prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.work-grid > li[hidden] { display: none; }
/* The details card: the category's attributes, the name (meta, text-2) beside the value (label), hairlines between
   the rows. It is grey on a white block and white on a grey one. */
.cat-blocks > .section:nth-child(even) .work-aside { background: #fff; }
.prod-specs__list { display: flex; flex-direction: column; margin: 0; }
.prod-specs__row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.prod-specs__row:first-child { border-top: 0; padding-top: 4px; }
.prod-specs__row dt { color: var(--text-2); }
.prod-specs__row dd { margin: 0; }
/* Product photos on a white canvas (cabinets, sinks, flooring; the category field «Photos: fit», variant B of
   2026-10-10): the stone's 5:3 tiles with the whole photo inside on white and a hairline, never cut */
.prod-fit .work-shot { border: 1px solid var(--border-light); background: #fff; }
.prod-fit .work-shot img { object-fit: contain; }
/* The first screen (the user's choice of 2026-10-10, as most competitors' product pages): under 992 the title, then
   the main photo at the full width (5:3); from 992 the photo (4:3) stands left of the title (the title's column 0.8 of
   the photo's, as the blog article's cover column), both from the top. "View all N photos" on it at every width (the
   white button of the project page's phones). */
.prod-top { display: flex; flex-direction: column; gap: 28px; }
.prod-top__photo { display: flex; flex-direction: column; gap: 8px; }
.prod-main { position: relative; }
.prod-main .work-all {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px;
  border: 0; border-radius: 8px; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(15, 20, 30, .25); cursor: pointer;
}
.prod-main .work-all:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* The gallery's arrows and counter (2026-10-10, as Superior's): white round buttons 44 at the sides, centred on the
   photo, the navy chevron; the counter (meta, white on a dark pill) at the top right. Shown by main.js. A swipe goes
   sideways only (the page still scrolls up and down). The thumbnail of the photo shown has a navy frame. */
.prod-main .work-shot { touch-action: pan-y; }
.prod-main__nav {
  position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(15, 20, 30, .25); cursor: pointer;
}
.prod-main__nav[hidden], .prod-main__count[hidden] { display: none; }
.prod-main__nav--prev { left: 12px; }
.prod-main__nav--next { right: 12px; }
.prod-main__nav:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.prod-main__count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; pointer-events: none; }
.prod-thumb[aria-current]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--navy); border-radius: inherit; pointer-events: none; }
/* Small thumbnails (as the competitors' galleries, the user: «сильно большие миниатюры»): five 4:3 cells in a row, the
   fifth with "+N" (label, white) on a dark veil; the rest hidden in the page for the viewer. A group's name (an H2 in
   the label role, text-2) stands over its strip; under the main photo it comes 12 below the photo. */
.prod-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.prod-thumbs > li[hidden] { display: none; }
/* A product with one photo has no strip (README, 2026-10-13): the list keeps its link for the viewer, hidden */
.prod-thumbs[hidden] { display: none; }
.prod-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #111827; cursor: zoom-in; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-thumb:hover img { transform: scale(1.04); }
.prod-thumb:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.prod-thumb__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 24, 39, .55); color: #fff; }
.prod-fit .prod-thumb { border: 1px solid var(--border-light); background: #fff; }
.prod-fit .prod-thumb img { object-fit: contain; }
.prod-group__title { color: var(--text-2); }
.prod-main + .prod-group__title { margin-top: 4px; }
.prod-groups { display: grid; gap: 24px 48px; }
.prod-group { display: flex; flex-direction: column; gap: 8px; }
/* Lines about the product: a navy icon, a bold start (text) and the rest (text-body), 10 apart, the estimate button
   under them. From 992 under the title beside the photo; on phones and tablets after the photos, so the main photo
   stays on the first screen. */
.prod-assure { display: flex; flex-direction: column; gap: 10px; }
.prod-assure li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; color: var(--text-body); }
.prod-assure .i { margin-top: 1px; color: var(--navy); }
.prod-assure strong { color: var(--text); font-weight: 600; }
.prod-assure .inline-link { white-space: nowrap; }
@media (min-width: 992px) {
  .prod-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; gap: 24px 48px; }
  .prod-top__photo { grid-row: 1 / span 3; grid-column: 1; }
  .prod-top > .prod-title, .prod-top > .prod-assure, .prod-top > .prod-actions { grid-column: 2; }
  .prod-top__photo .work-shot { aspect-ratio: 4 / 3; }
  .prod-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) { .prod-top { gap: 24px; } }
@media (max-width: 767.98px) {
  .prod-top { gap: 20px; }
  .prod-main .work-all { right: 10px; bottom: 10px; }
  .prod-main__nav { width: 36px; height: 36px; margin-top: -18px; }
  .prod-main__nav--prev { left: 8px; }
  .prod-main__nav--next { right: 8px; }
  .prod-main__count { top: 8px; right: 8px; }
  .prod-thumbs { gap: 6px; }
  .prod-thumb { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .prod-thumb:hover img { transform: none; } }
/* The questions beside the description (2026-10-10), in the project page's grey card: the homepage's FAQ items, white,
   a question in the label role (the card's title is the larger one), tighter than on a full-width block; the first
   open */
.prod-faq .faq__q { gap: 12px; padding: 14px 16px; }
.prod-faq .faq__q .t-label { flex: 1; min-width: 0; transition: color .2s; }
.prod-faq .faq__q:hover .t-label { color: var(--accent-strong); }
.prod-faq .faq__a { padding: 0 16px 16px; }
.prod-faq .faq__a > * + * { margin-top: 10px; }
.prod-faq .faq__a .prod-list { gap: 6px; color: var(--text-2); }
.prod-faq .faq__a .prod-list li::before { top: 9px; }
@media (prefers-reduced-motion: reduce) { .prod-faq .faq__q .t-label { transition: none; } }
/* A list inside the description (the cabinets' construction): the details card's dots */
.prod-list { display: flex; flex-direction: column; gap: 8px; color: var(--text-body); }
.prod-list li { position: relative; padding-left: 18px; }
.prod-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Similar: the category's cards, 4 in a row down to tablets (16 apart there), 2 on phones */
.prod-similar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* The estimate window's line naming the product (main.js) */
.emodal__topic { color: var(--text); }
.emodal__topic[hidden] { display: none; }
@media (max-width: 1199.98px) {
  .prod-similar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
/* Tablets: the details card is full width under the text; its one part keeps its rows in a column up to 680 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .work-aside.prod-specs { display: flex; }
  .prod-specs .work-aside__part { max-width: 680px; }
}
@media (max-width: 767.98px) {
  .prod-actions { flex-direction: column; align-items: stretch; align-self: stretch; gap: 12px; }
  .prod-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- The 404 page (2026-10-13) ----------
   One light screen: the kicker ERROR 404, the H1, a line, the estimate and homepage buttons (the catalog hub's pair,
   54 tall; full width on phones), then the site's main sections as link cards and the phone. The cards are the hub's
   "Three ways" cards made into links: white, radius 12, a hairline, the orange icon circle 44, the name (card role),
   a line (text-2) and the navy arrow; on hover the lift shadow, a darker hairline, the name orange. 3 in a row, 2 on
   tablets, 1 on phones. */
.nf__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; }
.nf__lead { color: var(--text-2); }
.nf__nav { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.nf__label { color: var(--text-2); }
.nf-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nf-link {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px 20px 20px 24px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.nf-link:hover { border-color: var(--border); box-shadow: var(--lift); }
.nf-link:hover .nf-link__title { color: var(--accent-strong); }
.nf-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.nf-link__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
.nf-link__text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nf-link__title { transition: color .2s; }
.nf-link__sub { color: var(--text-2); }
.nf-link__arrow { flex: none; color: var(--navy); }
.nf__call { color: var(--text-2); }
@media (max-width: 1199.98px) {
  .nf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 767.98px) {
  .nf__head { gap: 18px; }
  .nf-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nf-link { gap: 14px; padding: 16px; }
}
/* ---------- Home Remodeling page (2026-10-13) ----------
   The site's main services page, the former General Contractor page (/services/home-remodeling.html). The first
   screen is the catalog hub's (.hub-hero); the blocks after it alternate white and grey by position, white first, as
   on the project and category pages, so a block left out never leaves two of one colour side by side. Cards and
   question items are grey on a white block and white on a grey one. */
.hr-blocks > .section:nth-child(even) { background: var(--bg-alt); }
.hr-blocks > .section:nth-child(even) .faq__item,
.hr-blocks > .section:nth-child(even) .hr-type { background: #fff; }
/* A block's heading without a line beside it: the kicker and the H2, 12 apart (the site's section heads) */
.hr-head { display: flex; flex-direction: column; gap: 12px; }

/* Services: six link cards, 3 in a row (tablets 2, phones 1). A card is one link: white, a hairline, radius 12; the
   orange icon circle (44, as the contacts About cards), the name (h3 role, its first line centred on the circle) over
   a line (body-s, text-2), the navy arrow at the right (down for a block of this page, right for another page).
   Hover: the lift shadow, a darker hairline, the name accent-strong. Pending links (pages to come) don't react. */
.hr-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hr-service {
  display: flex; align-items: flex-start; gap: 16px; height: 100%; padding: 23px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.hr-service:hover { border-color: var(--border); box-shadow: var(--lift); }
.hr-service:hover .hr-service__title { color: var(--accent-strong); }
.hr-service.is-pending:hover { border-color: var(--border-light); box-shadow: none; }
.hr-service.is-pending:hover .hr-service__title { color: var(--text); }
.hr-service:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.hr-service__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
/* (44 - 24) / 2: the name's first line on the circle's middle */
.hr-service__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.hr-service__title { transition: color .2s; }
.hr-service__sub { color: var(--text-2); }
/* (44 - 18) / 2 */
.hr-service__arrow { flex: none; margin-top: 13px; color: var(--navy); }

/* Whole-home remodeling: the photo on the left (520), as tall as the text (at least 420); the text on the right: the
   heading, the lead (text-2) and four points with the orange check dots, each a name (card role) over a line
   (body-s, text-2). Tablets and phones: the photo under the text, 16:9 (phones 4:3). */
.hr-whole { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 64px; align-items: stretch; }
.hr-whole__text { display: flex; flex-direction: column; gap: 20px; }
.hr-whole__lead { color: var(--text-2); }
.hr-whole__photo { order: -1; width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 12px; background: #111827; }
.hr-points { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.hr-points li { display: flex; align-items: flex-start; gap: 12px; }
/* (24 - 22) / 2: the dot on the name's line */
.hr-points .check-dot { margin-top: 1px; }
.hr-points__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-points__text { color: var(--text-2); }

/* Home additions: the kinds as three cards in a row (phones: one under another), radius 12, padding 24; the orange
   icon circle, the name (h3) and a line (body-s, text-2), as the catalog hub's "Three ways" */
.hr-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hr-type { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 12px; background: var(--bg-alt); }
.hr-type__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 115, 22, .12); color: var(--accent); }
.hr-type__text { color: var(--text-2); }

/* One contractor, one contract: the heading (420) on the left, the five points on the right as rows between
   hairlines: a navy icon (22, on the name's line), the name (card role) over a line (body-s, text-2). Tablets and
   phones: the heading above the list. */
.hr-scope { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: start; }
.hr-scope__intro { padding-top: 4px; color: var(--text-2); }
.hr-scope__list { display: flex; flex-direction: column; }
.hr-scope__item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.hr-scope__item:first-child { padding-top: 0; border-top: 0; }
.hr-scope__item:last-child { padding-bottom: 0; }
.hr-scope__item > .i { flex: none; margin-top: 1px; color: var(--navy); }
.hr-scope__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-scope__text { color: var(--text-2); }

/* How a home remodel works: the contacts page's steps line with five steps, in one row from 1200 (24 apart, the line
   ends 12 short of the next circle); tablets and phones: one under another, the line runs down (the contacts page's
   phone layout), up to 680 wide. The catalog band under the steps: the category pages' service band, 40 below. */
.steps-line--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps-line--5 .steps-line__step:not(:last-child)::after { right: -12px; }
.hr-band { margin-top: 0; }

@media (max-width: 1199.98px) {
  .hr-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hr-whole { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hr-whole__photo { order: 0; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hr-types { gap: 16px; }
  .hr-type { padding: 20px; }
  .hr-scope { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps-line--5 { grid-template-columns: minmax(0, 680px); gap: 28px; }
  .steps-line--5 .steps-line__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .steps-line--5 .steps-line__num { grid-row: 1 / span 2; margin-bottom: 0; }
  .steps-line--5 .steps-line__step > .t-h3 { padding-top: 8px; }
  .steps-line--5 .steps-line__step:not(:last-child)::after { top: 52px; bottom: -16px; left: 19px; right: auto; width: 2px; height: auto; }
}
@media (max-width: 767.98px) {
  .hr-services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hr-service { gap: 14px; padding: 15px; }
  .hr-whole { gap: 28px; }
  .hr-whole__photo { aspect-ratio: 4 / 3; }
  .hr-types { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hr-scope { gap: 24px; }
  .hr-scope__item { gap: 14px; padding: 16px 0; }
}
/* ---------- Single service page (Kitchen Remodeling, 2026-10-15) ----------
   The template of the single-service pages (Kitchen first; Bathroom, Basement and Other Services after it): one story
   in the order of the homeowner's questions, with ABC's own kitchens as the proof. The first screen is the catalog
   hub's (.hub-hero), the steps the Home Remodeling mockup's .steps-line--5, the materials the hub's .hub-cards, the
   questions the contacts page's layout. The blocks after the first screen alternate white and grey by position, white
   first, so a block left out never leaves two of one colour side by side; cards are grey on white and white on grey. */
.svc-blocks > .section:nth-child(even) { background: var(--bg-alt); }
.svc-blocks > .section:nth-child(even) .faq__item,
.svc-blocks > .section:nth-child(even) .svc-review,
.svc-blocks > .section:nth-child(even) .hub-card__photo { background: #fff; }
/* A block's heading without a line beside it: the kicker and the H2, 12 apart (the site's section heads) */
.svc-head { display: flex; flex-direction: column; gap: 12px; }

/* Kinds of kitchens: four cards, each an ABC kitchen photo (4:3, radius 12), the name (h3) and a line (body-s,
   text-2); tablets 2 in a row, phones 1 */
.svc-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc-kind { display: flex; flex-direction: column; gap: 10px; }
.svc-kind__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; border-radius: 12px; background: var(--bg-alt); }
.svc-kind__text { color: var(--text-2); }

/* Before / 3D design / after: each kitchen its name (h3) and a line (body-s, text-2) on the left, "View project" on
   the right, then the three photos in a row: the project page's photo links (.work-shot, they open the photo viewer)
   at 4:3 with the site's small pill in the corner. Tablets: the link under the line. Phones: the photos scroll
   sideways, 280 wide with the next one peeking in (the homepage projects' carousel), the dots under them (main.js,
   data-carousel). */
.svc-ba { display: flex; flex-direction: column; gap: 48px; }
.svc-ba__item { display: flex; flex-direction: column; gap: 20px; }
.svc-ba__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.svc-ba__title { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.svc-ba__text { color: var(--text-2); }
.svc-ba__head .link-arrow { flex: none; }
.svc-ba__shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-shot.svc-ba__shot { aspect-ratio: 4 / 3; }

/* Materials: the hub's photo cards (4 in a row; tablets and phones 2 × 2), then the showroom line with the client's
   hours wording (its address and hours in text colour) and the link to the full catalog, under a hairline */
.svc-visit { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.svc-visit__text { color: var(--text-2); }
.svc-visit__hours { display: block; margin-top: 4px; font-weight: 600; color: var(--text); }
.svc-visit .link-arrow { flex: none; }

/* Reviews: three cards in a row from 1200 — the stars, the reviewer's words (body), the name (label) and the project
   line (meta, text-2) — one under another below */
.svc-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-reviews > li { display: flex; }
.svc-review { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 24px; border-radius: 12px; background: var(--bg-alt); }
.svc-review__quote { flex: 1; margin: 0; }
.svc-review__quote .t-body { color: var(--text-body); }
.svc-review__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.svc-review__meta { color: var(--text-2); }

@media (max-width: 1199.98px) {
  .svc-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .svc-ba { gap: 40px; }
  .svc-ba__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .svc-blocks .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-reviews { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc-review { padding: 20px; }
}
@media (max-width: 767.98px) {
  .svc-kinds { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-ba { gap: 36px; }
  .svc-ba__item { gap: 16px; }
  .svc-ba__shots {
    display: flex; gap: 12px; margin: -4px -20px; padding: 4px 20px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .svc-ba__shots::-webkit-scrollbar { display: none; }
  .svc-ba__cell { flex: none; width: min(280px, 100% - 36px); scroll-snap-align: start; }
  .svc-visit { flex-direction: column; align-items: flex-start; }
}

/* ---------- Single service page v2 (Kitchen Remodeling, 2026-10-15) ----------
   The second mockup of the single-service template, kitchen-remodeling-v2.html (the user turned v1 down the same day as
   "однотипные" blocks; v1 stays at kitchen-remodeling.html). Each block follows a group of what homeowners search about
   a kitchen remodel and has its own form: layout tabs with plan pictograms, a stepper that switches one frame, a photo
   with numbered points, a less / more comparison, a two-part timeline, one large review beside two short ones, the
   area map. White and grey alternate by position (.svc-blocks, v1); cards are grey on white and white on grey. */
.svc-blocks > .section:nth-child(even) .svc-quote,
.svc-blocks > .section:nth-child(even) .svc-cost__panel,
.svc-blocks > .section:nth-child(even) .svc-map,
.svc-blocks > .section:nth-child(even) .svc-note,
.svc-blocks > .section:nth-child(even) .svc-phase--light,
.svc-blocks > .section:nth-child(even) .svc-chip { background: #fff; }
.svc-blocks > .section:nth-child(even) .svc-map__city-base { fill: #fff; }

/* First screen: the hub's, with the Google rating under the buttons (a link to the reviews block) */
.svc-rate { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; color: var(--text-2); transition: color .2s; }
.svc-rate strong { font-weight: 700; color: var(--text); }
.svc-rate:hover { color: var(--accent-strong); }

/* Heads: centred (the kicker, the H2 and a line under it, up to 760) or stacked on the left */
.svc-center { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; text-align: center; }
.svc-center__intro, .svc-head__intro { color: var(--text-2); }

/* Tabs (main.js, [data-tabs]): only the chosen panel shows (an author display value would beat the hidden attribute,
   so it is restated); the panel fades in */
.svc-tabs [role="tabpanel"][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .svc-tabs [role="tabpanel"] { animation: svc-fade .3s ease-out; }
}
@keyframes svc-fade { from { opacity: 0; } }

/* Kitchen layouts: seven tabs in a row, each a plan pictogram (the room, the cabinet runs, seats) and the name; the
   chosen one navy. The panel: the photo (4:3) left, the layout's name, the text and the designer's note (an orange
   rule on the left) right. */
.svc-layouts { display: flex; flex-direction: column; gap: 32px; }
.svc-ltabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.svc-ltab {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 14px 6px 12px;
  border: 1px solid var(--border-light); border-radius: 12px; background: #fff; color: var(--text); text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.svc-ltab:hover { border-color: var(--navy); }
.svc-ltab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc-ltab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.svc-ltab__plan { display: block; flex: none; width: 48px; height: 40px; color: var(--navy); }
.svc-ltab[aria-selected="true"] .svc-ltab__plan { color: #fff; }
.svc-ltab__plan .wall { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .45; }
.svc-ltab__plan .wall--open { stroke-dasharray: 2 3; }
.svc-ltab__plan .run { fill: currentColor; }
.svc-ltab__plan .seat { fill: currentColor; opacity: .6; }
.svc-lpanel { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 48px; align-items: center; }
.svc-lpanel:focus-visible { outline: 2px solid var(--navy); outline-offset: 8px; border-radius: 12px; }
.svc-lpanel__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--bg-alt); }
.svc-lpanel__text { display: flex; flex-direction: column; gap: 16px; }
.svc-lpanel__text > .t-body { color: var(--text-body); }
.svc-note { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--bg-alt); }
.svc-note__label { display: flex; align-items: center; gap: 8px; color: var(--navy); }
.svc-note__label .i { color: var(--accent-strong); }
.svc-note .t-body-s { color: var(--text-body); }

/* Kitchen remodel design in 3D: the head and a vertical stepper (numbers joined by a line; the chosen step a white
   card with a navy number) left, the frame right: the photo link (the project pages' .work-shot at 4:3, the plan on
   white) and its caption, two lines kept for it so "View this project" does not jump */
.svc-design { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; align-items: center; }
.svc-design__side { display: flex; flex-direction: column; gap: 32px; }
.svc-dsteps { position: relative; display: flex; flex-direction: column; gap: 4px; }
.svc-dsteps::before { content: ""; position: absolute; left: 33px; top: 30px; bottom: 30px; width: 2px; background: var(--border); }
.svc-dstep {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left;
  transition: background-color .2s, box-shadow .2s;
}
.svc-dstep__num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--border); border-radius: 50%;
  background: var(--bg-alt); color: var(--text-2); font-size: 15px; font-weight: 700; line-height: 1;
  transition: background-color .2s, border-color .2s, color .2s;
}
.svc-dstep .t-card { transition: color .2s; }
.svc-dstep:hover .t-card { color: var(--accent-strong); }
.svc-dstep:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc-dstep[aria-selected="true"] { background: #fff; box-shadow: var(--lift); }
.svc-dstep[aria-selected="true"] .svc-dstep__num { border-color: var(--navy); background: var(--navy); color: #fff; }
.svc-frame { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.svc-frame__panel { display: flex; flex-direction: column; gap: 14px; }
.work-shot.svc-frame__shot { aspect-ratio: 4 / 3; }
.svc-frame__cap { min-height: 48px; color: var(--text-2); }

/* Cabinets and countertops: the photo at 5:3 with the numbered points (navy, a white ring; hover: an orange halo),
   then the eight parts in four columns: the number and the name, the text, the catalog chips */
.svc-hot { position: relative; overflow: hidden; border-radius: 12px; background: var(--bg-alt); }
.svc-hot__img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.svc-hot__pin {
  position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 32px; height: 32px;
  margin: -16px 0 0 -16px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s;
}
.svc-hot__pin:hover { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(249, 115, 22, .6); }
.svc-hot__pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc-plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; margin: 0; padding: 0; list-style: none; }
.svc-pitem { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.svc-pitem:target { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 8px; }
/* The number on the heading's first line when the heading wraps (28px circle, 24px line) */
.svc-pitem__head { display: flex; align-items: flex-start; gap: 10px; }
.svc-pitem__head .t-card { padding-top: 2px; }
.svc-pitem__num {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
}
.svc-pitem__text { color: var(--text-2); }
.svc-pitem__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svc-chip {
  display: inline-block; padding: 7px 12px; border-radius: 16px; background: var(--bg-alt); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 18px; transition: background-color .2s, color .2s;
}
.svc-chip:hover { background: var(--navy); color: #fff; }

/* Cost: the centred head, then the rows on a panel: the choice, what costs less (text-2), what costs more (text),
   under the "Costs less / Costs more" heads; each cell's own label is for screen readers here and shows on phones */
.svc-cost { display: flex; flex-direction: column; gap: 40px; }
.svc-cost__panel { padding: 8px 32px; border-radius: 12px; background: var(--bg-alt); }
.svc-cost__cols, .svc-cost__row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.svc-cost__cols { padding: 18px 0 14px; color: var(--text-2); }
.svc-cost__col { display: flex; align-items: center; gap: 6px; }
.svc-cost__col .i, .svc-cost__tag .i { color: var(--accent-strong); }
.svc-cost__row { align-items: baseline; padding: 18px 0; border-top: 1px solid var(--border-light); }
.svc-cost__less { color: var(--text-2); }
.svc-cost__more { color: var(--text); }
.svc-cost__tag {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.svc-cost__foot { display: flex; align-items: center; justify-content: center; gap: 16px 32px; }
.svc-cost__note { max-width: 560px; color: var(--text-2); }
/* The button keeps its one line: in the row with the note, the note gives way, not the button (2026-10-17: at 768 the
   label wrapped to two lines, 76 px tall) */
.svc-cost__foot .btn { flex: none; }

/* Process: the head beside the steps, held in view while they scroll (from 1200); two cards, "Before work starts"
   light and "In your kitchen" navy, each a numbered timeline (orange numbers joined by a line) */
.svc-process { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 64px; align-items: start; }
.svc-process__head { position: sticky; top: 32px; }
.svc-phases { display: flex; flex-direction: column; gap: 24px; }
.svc-phase { padding: 32px 36px; border-radius: 12px; }
.svc-phase--light { background: var(--bg-alt); }
.svc-phase--dark { background: var(--navy); color: #fff; }
.svc-phase__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.svc-phase__tag { color: var(--accent-strong); }
.svc-phase--dark .svc-phase__tag { color: var(--accent); }
.svc-phase__steps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.svc-phase__step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 18px; }
.svc-phase__step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: -16px; width: 2px; background: var(--border); }
.svc-phase--dark .svc-phase__step:not(:last-child)::after { background: var(--line-dark); }
/* 19px, as the steps line: white on orange is large text there (WCAG 1.4.3) */
.svc-phase__num {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-strong); color: #fff; font-size: 19px; font-weight: 700; line-height: 1;
}
.svc-phase__name { padding-top: 6px; }
.svc-phase__text { color: var(--text-2); }
.svc-phase--dark .svc-phase__text { color: var(--on-dark-2); }

/* Reviews: the head with the line and the Google link on the right; one large review (the quote mark, 20/30 text)
   beside two short ones */
.svc-rhead { flex: none; display: flex; flex-direction: column; gap: 12px; width: 420px; }
.svc-rhead__intro { color: var(--text-2); }
.svc-quotes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.svc-quote { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 12px; background: var(--bg-alt); }
.svc-quote--big { grid-row: 1 / span 2; gap: 20px; padding: 40px; }
.svc-quote__mark { color: var(--accent); }
.svc-quote__text p { color: var(--text-body); }
.svc-quote--big .svc-quote__text p { font-size: 20px; line-height: 30px; }
.svc-quote__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; }
.svc-quote__meta { color: var(--text-2); }

/* Showroom: the head, the line, the address / hours / phone (orange icons) and "Get directions" (54, as the hub's)
   left; the area map on a panel right (the counties grey, the city hatched out, the showroom's orange pin) */
.svc-show { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center; }
.svc-show__info { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.svc-show__text { color: var(--text-2); }
.svc-show__list { display: flex; flex-direction: column; gap: 14px; color: var(--text-body); }
.svc-show__list li { display: flex; align-items: flex-start; gap: 12px; }
.svc-show__list .i { margin-top: 2px; color: var(--accent-strong); }
.svc-show__dir { padding: 16px 18px; }
.svc-map { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 12px; background: var(--bg-alt); }
.svc-map__svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.svc-map__counties path { fill: #e2e5e9; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.svc-map__city-base { fill: var(--bg-alt); }
.svc-map__city { fill: url(#svc-map-hatch); stroke: #b8bec6; stroke-width: 1; stroke-linejoin: round; }
.svc-map__labels text { fill: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-anchor: middle; }
.svc-map__labels .svc-map__water { font-style: italic; font-weight: 400; letter-spacing: 0; text-anchor: end; }
.svc-map__halo { fill: rgba(234, 88, 12, .22); }
.svc-map__dot { fill: var(--accent-strong); stroke: #fff; stroke-width: 2; }
.svc-map__pin text { fill: var(--navy); font-size: 13px; font-weight: 700; }
.svc-map__cap { color: var(--text-2); text-align: center; }

@media (max-width: 1199.98px) {
  .svc-ltabs { gap: 6px; }
  .svc-lpanel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .svc-design { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
  .svc-hot__pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 14px; }
  .svc-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .svc-cost__panel { padding: 8px 24px; }
  .svc-cost__cols, .svc-cost__row { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .svc-process { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .svc-process__head { position: static; }
  .svc-phase { padding: 28px; }
  .svc-rhead { width: auto; align-self: stretch; }
  .svc-quote--big { padding: 32px; }
  .svc-show { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
}
@media (max-width: 991.98px) {
  .svc-lpanel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc-design { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-quotes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc-quote--big { grid-row: auto; }
  .svc-show { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767.98px) {
  .svc-layouts { gap: 24px; }
  .svc-ltabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-ltab { gap: 6px; padding: 10px 4px 8px; }
  .svc-ltab__plan { width: 40px; height: 34px; }
  .svc-ltab .t-label { font-size: 13px; line-height: 16px; }
  .svc-lpanel { gap: 20px; }
  .svc-note { padding: 14px 16px; }
  .svc-dstep { padding: 10px 12px; }
  .svc-dsteps::before { left: 29px; top: 28px; bottom: 28px; }
  .svc-frame__cap { min-height: 72px; }
  .svc-hot__pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 13px; }
  .svc-plist { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .svc-cost { gap: 32px; }
  .svc-cost__panel { padding: 4px 20px; }
  .svc-cost__cols { display: none; }
  .svc-cost__row:first-child { border-top: 0; }
  .svc-cost__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 16px 0; }
  .svc-cost__name { grid-column: 1 / -1; }
  .svc-cost__tag {
    position: static; display: flex; align-items: center; gap: 4px; width: auto; height: auto; margin: 0 0 4px;
    overflow: visible; clip: auto; clip-path: none; white-space: normal; color: var(--text-2);
  }
  .svc-cost__foot { flex-direction: column; align-items: stretch; }
  .svc-phase { padding: 24px 20px; }
  .svc-phase__head { margin-bottom: 22px; }
  .svc-phase__step { column-gap: 14px; }
  .svc-quote { padding: 24px 20px; }
  .svc-quote--big { padding: 28px 20px; gap: 16px; }
  .svc-quote--big .svc-quote__text p { font-size: 18px; line-height: 27px; }
  .svc-map { padding: 16px; }
  .svc-map__svg { max-width: none; }
  .svc-map__labels text { font-size: 18px; }
  .svc-map__labels .svc-map__water { font-size: 17px; }
  .svc-map__pin text { font-size: 20px; }
}
@media (max-width: 359.98px) {
  .svc-ltab { padding: 10px 2px 8px; }
  .svc-ltab .t-label { font-size: 12px; line-height: 15px; }
  .svc-frame__cap { min-height: 96px; }
  .svc-cost__row { grid-template-columns: minmax(0, 1fr); }
  .svc-map__labels text { font-size: 22px; }
  .svc-map__labels .svc-map__water { font-size: 17px; }
  .svc-map__pin text { font-size: 24px; }
}

/* ---------- Single service page v3 (Kitchen Remodeling, 2026-10-16) ----------
   kitchen-remodeling-v3.html: v2's blocks (above) in a new order, with three new parts: two paragraphs and the trust
   badges on the first screen, the works a kitchen remodel includes (v2's photo with points, then the works done before
   the finish in a light band), and the homepage's catalog directory under the showroom. */
.svc-blocks > .section:nth-child(even) .svc-prep { background: #fff; }
.svc-blocks > .section:nth-child(even) .svc-prep__icon { background: var(--bg-alt); }

/* First screen: the two paragraphs (lead, then body, both text-2) and the badges under the buttons, in one row from 768:
   the Google rating (one star, a link to the reviews), BBB A+ (the BBB card's logo), Licensed & insured (an orange shield) */
.svc-hero-text { display: flex; flex-direction: column; gap: 12px; }
.svc-hero-text p { color: var(--text-2); }
.svc-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 4px; }
.svc-trust > li { display: flex; }
.svc-trust__item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-body); font-size: 15px; line-height: 23px; transition: color .2s; }
.svc-trust__item strong { font-weight: 700; color: var(--text); }
.svc-trust__item img { flex: none; width: 24px; height: 24px; }
.svc-trust__item .i, .svc-trust__item .star { color: var(--accent-strong); }
a.svc-trust__item:hover { color: var(--accent-strong); }

/* The works done before the finish: a light band, the kicker, then three works in a row, each an icon in a white circle,
   the name (h3) and a line (body-s, text-2); tablets and phones one under another */
.svc-prep { display: flex; flex-direction: column; gap: 20px; padding: 28px 32px; border-radius: 12px; background: var(--bg-alt); }
.svc-prep__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.svc-prep__item { display: flex; align-items: flex-start; gap: 14px; }
.svc-prep__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent-strong); }
.svc-prep__body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.svc-prep__body .t-body-s { color: var(--text-2); }

/* The catalog under the showroom: a hairline, the kicker, the homepage's directory with five sections (tablets 3,
   phones 2), its foot */
.svc-cat { display: flex; flex-direction: column; gap: 22px; padding-top: 36px; border-top: 1px solid var(--border-light); }
.svc-cat .directory { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1199.98px) {
  .svc-cat .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-prep { padding: 24px; }
}
@media (max-width: 991.98px) {
  .svc-prep__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 767.98px) {
  .svc-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .svc-prep { padding: 20px; }
  .svc-cat { padding-top: 28px; }
  .svc-cat .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Single service page v4 (Kitchen Remodeling v4, 2026-10-16) ----------
   The page as the client's path (the user's sketch): an advantages strip under the first screen, then the path, "as
   easy as ABC": its start with a track of the three steps (in-page links), step A (the free estimate), step B (the
   layouts, the materials, the 3D design), step C (the build). Each step's first block opens with a step header: a
   lettered dot and the step's kicker. From 1280 px a line runs down the left margin through the path, the dots sit on
   it and a check mark closes it after the final walkthrough; narrower, a small A–B–C track in the step header stands in
   for the line. The other blocks of a step say their step in the kicker. Cards are grey on white and white on grey. */
.svc4-adv-sec { padding: 44px 0; }
.svc4-adv-in { display: flex; flex-direction: column; gap: 20px; }
.svc4-adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.svc4-adv__item { display: flex; align-items: flex-start; gap: 14px; }
.svc4-adv__icon, .svc4-mile__icon, .svc4-finish__icon { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--accent-strong); }
.svc4-adv__icon { width: 44px; height: 44px; }
.svc4-adv__body { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.svc4-adv__text { color: var(--text-2); }
.svc4-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

/* The step header: the lettered dot, the kicker and (below 1280 px) the small A–B–C track */
.svc4-step { display: flex; align-items: center; gap: 12px; }
.svc4-step .kicker::before { display: none; }
.svc4-step__dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 20px; font-weight: 800; line-height: 1; }
.svc4-mini { display: flex; align-items: center; gap: 16px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.svc4-mini li { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--accent-strong); border-radius: 50%; color: var(--accent-strong); font-size: 11px; font-weight: 800; line-height: 1; }
.svc4-mini li + li::before { content: ""; position: absolute; right: calc(100% + 2px); top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--accent-strong); }
.svc4-mini .is-on { background: var(--accent-strong); color: #fff; }

/* The path's start: the heading and the track of the three steps */
.svc4-intro__in { display: grid; grid-template-columns: minmax(0, 1fr) 620px; gap: 48px; align-items: center; }
.svc4-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.svc4-track::before { content: ""; position: absolute; top: 26px; left: 16.67%; right: 16.67%; height: 4px; border-radius: 2px; background: var(--accent-strong); }
.svc4-track__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-radius: 8px; }
.svc4-track__dot { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 26px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 6px var(--ring, #fff); transition: transform .2s; }
.svc4-track__name { color: var(--text); transition: color .2s; }
.svc4-track__cap { color: var(--text-2); }
.svc4-track__step:hover .svc4-track__name { color: var(--accent-strong); }
.svc4-track__step:hover .svc4-track__dot { transform: scale(1.06); }
.svc4-track__step:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Step A: the head with the button, then what happens after the request */
.svc4-est { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.svc4-est__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.svc4-est__actions .link-arrow { align-self: center; }
.svc4-est__actions .link-arrow:hover .i { transform: translateY(3px); }
/* the steps in order (the user, 2026-10-16: numbers, no icons, so the page's "icon + text" lists are not all alike):
   a large number (the H2 role) in the accent colour, the steps parted by thin lines */
.svc4-est__steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.svc4-est__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px 0; border-top: 1px solid var(--border-light); }
.svc4-est__step:first-child { padding-top: 0; border-top: 0; }
.svc4-est__step:last-child { padding-bottom: 0; }
.svc4-est__num { color: var(--accent-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.svc4-est__body { display: flex; flex-direction: column; gap: 6px; }
.svc4-est__body .t-body-s { color: var(--text-2); }

/* Step B: the materials */
.svc4-mat { display: flex; flex-direction: column; gap: 32px; }
.svc4-mat__lead { color: var(--text); }
/* v5: five sections (no lifts since 2026-10-16), five columns on wide screens; tablets 3 and phones 2 as the base */
@media (min-width: 1200px) {
  .directory--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Step C: the contract and the permits, the works (v3's classes), the final walkthrough */
.svc4-miles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc4-mile, .svc4-finish { display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px; border-radius: 12px; background: var(--bg-alt); }
.svc4-mile__icon, .svc4-finish__icon { width: 48px; height: 48px; background: #fff; }
.svc4-mile__body, .svc4-finish__body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.svc4-mile__body .t-body-s, .svc4-finish__body .t-body-s { color: var(--text-2); }
.svc4-build .svc-prep__list { margin: 0; padding: 0; list-style: none; }
/* v5 (2026-10-17): four works before the finishes (demolition, walls, plumbing and gas, electrical): four in a row on
   wide screens, two by two on small laptops, one column below 992 as the base list */
.svc-prep__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; }
@media (max-width: 1199.98px) { .svc-prep__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .svc-prep__list--4 { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Grey sections: white cards, grey icon circles, grey rings around the dots */
.svc-blocks > .section:nth-child(even) { --ring: var(--bg-alt); }
.svc-blocks > .section:nth-child(even) .svc4-mile,
.svc-blocks > .section:nth-child(even) .svc4-finish { background: #fff; }
.svc-blocks > .section:nth-child(even) .svc4-mile__icon,
.svc-blocks > .section:nth-child(even) .svc4-finish__icon { background: var(--bg-alt); }
.svc-blocks > .section:nth-child(even) .svc4-adv__icon { background: #fff; }
/* v5 (2026-10-16): the 3D design block comes before the materials and lands on a white section, so its chosen step
   turns gray like the other cards on white */
.svc-blocks > .svc4-on-path:nth-child(odd) .svc-dstep[aria-selected="true"] { background: var(--bg-alt); box-shadow: none; }

/* The path's line, from 1280 px: in the left margin, from step A's dot to the check mark after the walkthrough;
   the step dots sit on it, the kicker's dash leads from the dot to the text */
@media (min-width: 1280px) {
  .svc4-on-path { position: relative; }
  .svc4-on-path::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% - 1140px) / 2 - 42px); width: 4px; background: var(--accent-strong); }
  .svc4-path-first::before { top: 90px; }
  .svc4-path-last::before { bottom: 80px; }
  .svc4-path-last > .container::after { content: ""; position: absolute; left: -63px; bottom: -23px; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 6px var(--ring, #fff);
    background: var(--accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 24px no-repeat; }
  .svc4-step__dot { position: absolute; left: -63px; width: 46px; height: 46px; font-size: 24px; box-shadow: 0 0 0 6px var(--ring, #fff); }
  .svc4-step .kicker::before { display: block; }
  .svc4-mini { display: none; }
}
@media (max-width: 1199.98px) {
  .svc4-adv { gap: 28px 24px; }
  .svc4-adv__item { flex-direction: column; gap: 12px; }
  .svc4-adv__body { padding-top: 0; }
  .svc4-intro__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .svc4-est { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
}
@media (max-width: 991.98px) {
  .svc4-est { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767.98px) {
  .svc4-adv-sec { padding: 36px 0; }
  .svc4-adv { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc4-adv__item { flex-direction: row; gap: 14px; }
  .svc4-adv__body { padding-top: 2px; }
  .svc4-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
  .svc4-mini { grid-column: 2; margin: 0; gap: 12px; }
  .svc4-mini li + li::before { width: 12px; }
  .svc4-track { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .svc4-track::before { top: 28px; bottom: 28px; left: 26px; right: auto; width: 4px; height: auto; }
  .svc4-track__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; text-align: left; }
  .svc4-track__dot { grid-row: span 2; margin: 0; }
  .svc4-track__name { align-self: end; }
  .svc4-track__cap { align-self: start; }
  .svc4-miles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc4-mile, .svc4-finish { padding: 20px; }
}

/* ---------- Kitchen Remodeling v6: the client's PDF (2026-10-17) ----------
   The client's «ABC_Kitchen_Modern_Premium_Visual_Final.pdf» coded at the user's word, in our system: its blocks, order
   and texts; our roles, the two oranges, navy, radii, buttons, kickers, the FAQ item. Cards carry the 3 px accent bar on
   the left (the homepage promises' border token), square on the bar's side. Only on kitchen-remodeling-v6.html. */

/* First screen: navy; on tablet and phone the navy stops at 60 % of the photo and the button sits on white (as in the PDF) */
.k6-hero { padding: 40px 0 72px; background: var(--navy); color: #fff; }
.k6-hero__in { display: flex; flex-direction: column; gap: 28px; }
.k6-hero .crumbs li { color: var(--on-dark-muted); }
.k6-hero .crumbs [aria-current] { color: #fff; }
.k6-hero__grid { display: grid; grid-template-columns: 560px minmax(0, 1fr); grid-template-areas: "copy photo" "cta photo"; gap: 28px 64px; align-items: start; }
.k6-hero__copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.k6-hero__copy p { margin: 0; }
.k6-hero__text { color: var(--on-dark-2); }
.k6-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 4px 0 0; padding: 0; list-style: none; }
.k6-trust li { display: flex; align-items: center; gap: 8px; }
.k6-trust .i { flex: none; color: var(--accent); }
.k6-hero__photo { grid-area: photo; position: relative; align-self: stretch; }
.k6-hero__photo picture { display: block; height: 100%; }
.k6-hero__photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover; border-radius: 12px; }
.k6-hero__cta { grid-area: cta; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.k6-hero__cta p { margin: 0; }
.k6-hero__note { color: var(--on-dark-muted); }
.k6-btn { gap: 8px; }

/* Sections, cards and bands */
.k6 .cat-service { margin-top: 0; }
.k6-head-only .head-row__intro { align-self: flex-end; }
.k6-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.k6-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k6-cards--areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k6-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 22px 21px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: #fff; }
.k6:not(.section--alt) .k6-card { background: var(--bg-alt); }
.k6-card h3, .k6-card p { margin: 0; }
.k6-card p { color: var(--text-2); }
.k6-card--wide { grid-column: 1 / -1; }

/* Before and after: two pairs of photos with our small pills */
.k6-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.k6-ba__pair { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.k6-ba__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.k6-ba__shot { position: relative; }
.k6-ba__shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.k6-ba__cap { color: var(--text-2); }
.k6-more { align-self: flex-start; }

/* Materials: photo, then the text with the accent bar */
.k6-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.k6-mat { display: flex; flex-direction: column; gap: 14px; }
.k6-mat img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.k6-mat__text { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 3px solid var(--accent); }
.k6-mat__text h3, .k6-mat__text p { margin: 0; }
.k6-mat__text p { color: var(--text-2); }

/* Costs: two starting budgets (the big numbers' role: 48 / 44 / 40, 900, accent-strong), the note, the factors */
.k6-prices-wrap { display: flex; flex-direction: column; gap: 16px; }
.k6-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.k6-price { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 12px; background: #fff; }
.k6-price h3, .k6-price p { margin: 0; }
.k6-price__num { margin-top: 10px !important; color: var(--accent-strong); font-size: 48px; font-weight: 900; line-height: 48px; letter-spacing: -1.5px; }
.k6-price__label, .k6-price__text, .k6-note { color: var(--text-2); }
.k6-note { margin: 0; }
.k6-subhead { margin-top: 24px; }
.k6-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.k6-lm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; padding: 0 22px 20px; }
.k6-lm p { margin: 0; }
.k6-lm .t-body-xs { color: var(--text-2); }
.k6-lm__label { margin-bottom: 6px !important; color: var(--accent-strong); }

/* Construction: the inspections note and fourteen steps, 7 + 7 on desktop */
.k6-inspect { margin: 0; padding: 16px 20px; border-radius: 12px; background: var(--bg-alt); color: var(--text-2); }
.k6-inspect strong { font-weight: 600; color: var(--text); }
.k6-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 10px 16px; align-items: start; }
.k6-steps .faq__item { background: var(--bg-alt); }
.k6-step { display: flex; align-items: baseline; gap: 14px; flex: 1; min-width: 0; }
.k6-step__num { flex: none; color: var(--accent-strong); }
.k6-step__a { padding-left: 52px; }

/* FAQ on grey: white items */
.k6-faq .faq__item { background: #fff; }

/* Showroom on navy and the closing call */
.k6-visit .head-row__intro, .k6-final__text { color: var(--on-dark-2); }
.k6-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.k6-visit__photo { display: block; width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }
.k6-visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.k6-visit__rows { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.k6-visit__rows li { display: flex; align-items: flex-start; gap: 12px; }
.k6-visit__rows .i { flex: none; margin-top: 3px; color: var(--accent); }
.k6-visit__tel { color: #fff; font-weight: 700; }
.k6-visit__tel:hover { color: var(--accent); }
.k6-btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff; transition: background-color .2s; }
.k6-btn-light:hover { background: rgba(255, 255, 255, .09); }
.k6-final { border-top: 1px solid var(--line-dark); }
.k6-final__in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; }
.k6-final__in p { margin: 0; }
.k6-final .kicker::before { display: none; }

@media (max-width: 1199.98px) {
  .k6-hero { padding: 32px 0 0; }
  .k6-hero__in { gap: 24px; }
  .k6-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "photo" "cta"; gap: 0; }
  .k6-hero__photo { margin-top: 28px; }
  .k6-hero__photo img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .k6-hero__photo::before { content: ""; position: absolute; top: 60%; right: 0; bottom: 0; left: 0; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
  .k6-hero__cta { position: relative; align-items: center; padding: 24px 0 56px; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); text-align: center; }
  .k6-hero__note { color: var(--text-2); }
  .k6-cards, .k6-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k6-cards--steps { grid-template-columns: minmax(0, 1fr); }
  .k6-ba { grid-template-columns: minmax(0, 1fr); }
  .k6-mat img { height: 150px; }
  .k6-price__num { font-size: 44px; line-height: 44px; letter-spacing: -1.4px; }
  .k6-factors { grid-template-columns: minmax(0, 1fr); }
  .k6-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .k6-subhead { margin-top: 16px; }
  .k6-visit__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .k6-visit__photo { height: 340px; }
}
@media (max-width: 767.98px) {
  .k6-hero { padding-top: 24px; }
  .k6-hero__in { gap: 20px; }
  .k6-hero__copy { gap: 14px; }
  .k6-hero__photo { margin-top: 24px; }
  .k6-hero__cta { align-items: stretch; padding: 20px 0 48px; }
  .k6-btn { padding-left: 12px; padding-right: 12px; }
  .k6-cards { gap: 12px; }
  .k6-card { padding: 16px 14px 16px 13px; }
  .k6-cards--areas { grid-template-columns: minmax(0, 1fr); }
  .k6-ba__shots { gap: 10px; }
  .k6-more { align-self: stretch; }
  .k6-mats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .k6-mat img { height: 120px; }
  .k6-mat__text { padding-left: 11px; }
  .k6-prices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .k6-price { padding: 20px; }
  .k6-price__num { font-size: 40px; line-height: 40px; letter-spacing: -1.2px; }
  .k6-lm { gap: 12px 16px; padding: 0 16px 18px; }
  .k6-step__a { padding-left: 46px; }
  .k6-visit__photo { height: 240px; }
  .k6-visit__info { align-items: stretch; }
}

/* Kitchen v5's materials (2026-10-24, the user: a photo for each of the five groups): the group's photo above its navy
   line, like the catalog hub's category cards (the hub's photos, radius 12, 27:17); the line and the title keep the
   group's 13 px gap below the line. Only on kitchen-remodeling-v5.html (.directory--photos). */
.directory--photos .group { margin-top: 0; padding-top: 0; border-top: 0; }
.directory--photos .group__photo { display: block; width: 100%; height: auto; aspect-ratio: 27 / 17; margin-bottom: 4px; object-fit: cover; border-radius: 12px; background: var(--bg-alt); }
.directory--photos .group__title { padding-top: 13px; border-top: 2px solid var(--navy); }

/* Kitchen v5's ABC difference (2026-11-16, the user: v6's items in v5's design): the seventh item, «One-Stop Kitchen
   Remodeling», spans the row, as the wide card in v6. */
.svc4-adv__item--wide { grid-column: 1 / -1; }

/* Kitchen v5's path (2026-11-16, v6's longer step texts; brandbook: a marker stands by the first line): on phones each
   step's circle stands at the top, by its title, and the line runs from circle to circle, step by step (the list's own
   line would run on below the last circle). The 6 px gaps at both ends match the circles' ring. Only v5 (.svc4-track--long). */
@media (max-width: 767.98px) {
  .svc4-track--long::before { display: none; }
  .svc4-track--long > li { position: relative; }
  .svc4-track--long > li:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 62px; bottom: -14px; width: 4px; border-radius: 2px; background: var(--accent-strong); }
  .svc4-track--long .svc4-track__dot { align-self: start; }
}

/* Kitchen v5's first screen on navy, as v6's (2026-11-16, the user). The brandbook's navy colours: the white H1, the
   kicker in accent (kicker--dark in the markup), the text on-dark-2, the crumbs on-dark-muted with the current page
   white, the trust row's icons in accent; the secondary button a white 20 % frame (as the controls on navy), filled
   white on hover (the light page's navy fill turned round). Only kitchen-remodeling-v5.html. */
.page-hero.svc5-hero--navy { background: var(--navy); color: #fff; }
.svc5-hero--navy h1 { color: #fff; }
.svc5-hero--navy .crumbs li { color: var(--on-dark-muted); }
.svc5-hero--navy .crumbs [aria-current] { color: #fff; }
.svc5-hero--navy .svc-hero-text p { color: var(--on-dark-2); }
.svc5-hero--navy .btn--outline { border-color: rgba(255, 255, 255, .2); color: #fff; }
.svc5-hero--navy .btn--outline:hover { border-color: #fff; background: #fff; color: var(--navy); }
.svc5-hero--navy .svc-trust__item { color: var(--on-dark-2); }
.svc5-hero--navy .svc-trust__item strong { color: #fff; }
.svc5-hero--navy .svc-trust__item .i, .svc5-hero--navy .svc-trust__item .star { color: var(--accent); }
.svc5-hero--navy a.svc-trust__item:hover { color: var(--accent); }

/* Kitchen v5's «AS EASY AS ABC» with v6's «HOW WE MANAGE YOUR PROJECT» (2026-11-16, the user): one column on every
   width — the head, the A·B·C track across the whole width (v6's longer step texts get three wide columns), then the
   kicker and three cards in step C's card design (One contract, Permits & Inspections, Approved Changes); three in a
   row from 1200 px, stacked below. Only kitchen-remodeling-v5.html. */
.svc4-intro--wide .svc4-intro__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.svc4-manage { display: flex; flex-direction: column; gap: 20px; }
.svc4-miles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) {
  .svc4-intro--wide .svc4-intro__in { gap: 36px; }
  .svc4-miles--3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Kitchen v5's step C with v6's fourteen steps (2026-11-16, the user): six works before the finishes in the grey panel,
   three to a row from 992 px, two from 768 px, one on phones. Only kitchen-remodeling-v5.html. */
.svc-prep__list--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
@media (max-width: 991.98px) {
  .svc-prep__list--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .svc-prep__list--6 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Kitchen v5's cost block with v6's «KITCHEN REMODELING COSTS» and «COST FACTORS» merged (2026-11-16, the user): the two
   starting budgets as cards (the figure as on v6: 48/48, 900, accent-strong), grey on a white section and white on a grey
   one, like the factors' panel; the factors' part (H3, line, panel) as one group; the estimate line with its title in
   the foot. Only kitchen-remodeling-v5.html. */
.svc-prices-wrap { display: flex; flex-direction: column; gap: 16px; }
.svc-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.svc-price { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 12px; background: var(--bg-alt); }
.svc-blocks > .section:nth-child(even) .svc-price { background: #fff; }
.svc-price h3, .svc-price p { margin: 0; }
/* the figure takes our h2 role (t-h2 in the markup; the user, 2026-11-16: the style ours), in accent-strong */
.svc-price__num { margin-top: 10px !important; color: var(--accent-strong); }
.svc-price__label, .svc-price__text, .svc-prices__note { color: var(--text-2); }
.svc-prices__note { margin: 0; }
.svc-cost__factors { display: flex; flex-direction: column; gap: 24px; }
.svc-cost__note--band { display: flex; flex-direction: column; gap: 6px; }
.svc-cost__note--band .t-card { color: var(--text); }
/* all on the left (2026-11-16, the user): the estimate line on the left, the button on the right, as in the service band */
.svc-cost__foot--left { justify-content: space-between; }
@media (max-width: 767.98px) {
  .svc-prices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc-price { padding: 20px; }
  .svc-cost__factors { gap: 20px; }
}

/* Phone folds (Kitchen v5, 2026-11-16, the user: long texts «под спойлер» on phones). main.js adds the buttons below 768 px
   only: the title of a [data-fold] item becomes a button with a chevron (the title's own role and colour, a 48 px tap
   area without moving the layout), a [data-fold-group] list gets one link-style button after it. Folded parts are hidden
   whatever their own display. */
[data-fold-body][hidden] { display: none !important; }
.fold__btn { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.fold__btn::after { content: ""; position: absolute; inset: -12px 0; }
.fold__btn:focus-visible, .fold__all:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.fold__chev { flex: none; margin-top: 3px; color: var(--accent-strong); transition: transform .2s; }
.fold__btn[aria-expanded="true"] .fold__chev, .fold__all[aria-expanded="true"] .fold__chev { transform: rotate(180deg); }
.svc-pitem__head > [data-fold-title] { flex: 1; min-width: 0; }
/* the differences' text column takes the row, so a title's chevron sits at the right edge as in the other folds */
@media (max-width: 767.98px) {
  .svc4-adv__item[data-fold] .svc4-adv__body { flex: 1; min-width: 0; }
}
.fold__all { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; margin: -12px 0 0; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; }
.fold__all:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .fold__chev { transition: none; }
}

/* Kitchen v7 (2026-11-16, the user: «Нарисуй это в версии 7»): v5 made shorter on phones. Parts merged into one block
   (step B's materials and cost after its 3D design) keep a part's gap, smaller than a section's. The reviews, now in the
   projects block, scroll one by one on phones (a swipe row with the next card peeking; focusable, as a scroll region
   must be). The management cards fold like the other cards (their text column takes the row). Only v7's markup uses
   these classes. */
.svc7-part { margin-top: 72px; }
.svc7-reviews { margin-top: 24px; }
/* the materials' folding wrapper keeps the block's gap between the groups and the catalog link; folded (all its parts
   hidden) it takes no room, so the «Show materials» button follows the line at the block's usual gap */
.svc7-fold-group { display: flex; flex-direction: column; gap: 32px; }
.svc7-fold-group:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 1199.98px) {
  .svc7-part { margin-top: 56px; }
}
@media (max-width: 767.98px) {
  .svc7-part { margin-top: 44px; }
  .svc7-reviews .quotes { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  .svc7-reviews .quotes::-webkit-scrollbar { display: none; }
  .svc7-reviews .quote { flex: 0 0 84%; scroll-snap-align: start; }
  /* the site's carousel dots (main.js adds them after a [data-carousel] row), as under the project cards */
  .svc7-reviews .dots { margin-top: 16px; }
  .svc4-mile[data-fold] .svc4-mile__body { flex: 1; min-width: 0; }
}
.svc7-reviews .quotes:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Kitchen v8 (2026-11-17): v5 with the user's changes — the materials in the 3D design's block, no photo in the
   services, six questions (step A left and came back as on v5: «Возвращаем всетаки шаг а как в пятой версии»). The
   materials sit at a part's gap (smaller than a section's). Only v8's markup uses this class. */
.svc8-part { margin-top: 72px; }
@media (max-width: 1199.98px) {
  .svc8-part { margin-top: 56px; }
}
@media (max-width: 767.98px) {
  .svc8-part { margin-top: 44px; }
}

/* Kitchen v8 (2026-11-17), the user's choices from the sketches: the first block «2 — надзаголовок и H1 над фото» and
   the projects «3. Список с миниатюрами». Below 1200 px (one column) the first block's photo stands right under the H1:
   the text column gives up its box (display: contents) and the grid orders its parts — kicker, H1, photo, text, buttons,
   badges — at the column's own gap; from 1200 px it is v5's (text left, photo right). On phones the projects are a
   list: a 4:3 thumbnail on the left, the title (the t-card role's size) and the weeks on the right, rules between them;
   no sideways scroll; tablets and desktop as on v5. Only v8's markup uses these classes. */
@media (max-width: 1199.98px) {
  .svc8-hero .hub-hero { gap: 20px; }
  .svc8-hero .hub-hero__copy { display: contents; }
  .svc8-hero .hub-hero__copy > .kicker { order: 1; }
  .svc8-hero .hub-hero__copy > h1 { order: 2; }
  .svc8-hero .hub-hero__photo { order: 3; }
  .svc8-hero .hub-hero__copy > .svc-hero-text { order: 4; }
  .svc8-hero .hub-hero__copy > .hub-hero__actions { order: 5; }
  .svc8-hero .hub-hero__copy > .svc-trust { order: 6; }
}
@media (max-width: 767.98px) {
  .svc8-hero .hub-hero { gap: 18px; }
  .svc8-projects.post-related { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .svc8-projects.post-related > li { width: auto; padding: 16px 0; border-top: 1px solid var(--border); scroll-snap-align: none; }
  .svc8-projects.post-related > li:last-child { border-bottom: 1px solid var(--border); }
  .svc8-projects .work-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start; height: auto; }
  .svc8-projects .work-card__photo { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
  .svc8-projects .work-card__title { font-size: 17px; line-height: 24px; }
  .svc8-projects .work-card__meta { margin: 0; padding: 0; }
  .svc8-projects .pill { display: none; }
}

/* Kitchen v8 (2026-11-17), the user: «All kitchen projects наверное лучше под миниатюрами?» → «Переставить»; «Блок на
   телефоне AS EASY AS ABC, как на первом варианте». Below 1200 px «All kitchen projects» shows under the projects (its
   second copy after the list; the head's copy shows from 1200 px, right of the heading). On phones the AS EASY AS ABC
   steps are grey cards (radius 12) with the letter in a 44 px circle and the title, no connecting line; their texts stay
   under «Show details»; the How we manage items lose their cards (the icon's circle grey on the white block). Tablets
   and desktop as on v5. Only v8's markup uses these classes. */
.svc8-work__more { display: none; }
@media (max-width: 1199.98px) {
  .svc8-work .head-row > .link-arrow { display: none; }
  .svc8-work__more { display: inline-flex; }
}
@media (max-width: 767.98px) {
  .svc8-abc .svc4-track { gap: 12px; }
  .svc8-abc .svc4-track > li:not(:last-child)::after { display: none; }
  .svc8-abc .svc4-track__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 20px; border-radius: 12px; background: var(--bg-alt); text-align: left; }
  .svc8-abc .svc4-track__dot { grid-row: span 2; width: 44px; height: 44px; margin: 0; font-size: 20px; box-shadow: none; }
  .svc8-abc .svc4-miles--3 { gap: 20px; }
  .svc8-abc .svc4-mile { padding: 0; border-radius: 0; background: none; }
  .svc8-abc .svc4-mile__icon { background: var(--bg-alt); }
}

/* Kitchen v8 (2026-11-17), the user: «Это должно наверное быть под пунктами?» → «Переставить на телефоне и планшете под
   пункты». Below 992 px, where step A is one column, its estimate button and «Visit the showroom» stand under the three
   items (a second copy of the actions after the list, at the block's gap); from 992 px the head's copy shows, beside
   the items. Only v8's markup uses these classes. */
.svc8-est__more { display: none; }
@media (max-width: 991.98px) {
  .svc8-est .svc4-head > .svc4-est__actions { display: none; }
  .svc8-est__more { display: flex; margin-top: 0; }
}

/* Kitchen v8 (2026-11-17), the user: «…прикольную белую полоску при переключении, куда она делась?» → «Вернуть белую
   полоску с тенью в блоке 3D». The 3D design's chosen tab is the white strip with its shadow (the --lift token) on any
   block — also on the white one, where v5's path rule makes it grey without a shadow. Only v8's markup uses this class. */
.svc-blocks > .svc4-on-path.svc8-design:nth-child(n) .svc-dstep[aria-selected="true"] { background: #fff; box-shadow: var(--lift); }

/* Kitchen v8 (2026-11-17), the 3D design's four tabs where the block is one column (below 992 px). The user: «В мобильной
   версии вертикальное расположение шагов нелогично» → «Оставляй как есть только перенеси под фото» → «Шаги в этом блоке
   на мобильной всё-таки сделать так как ты рекомендовал» (the sketch's variant 1, dsteps-mobile-sketch.mjs): a stepper
   in a row above the photo — four circles on the grey line, the names under them (the sketch's 13 / 17 px, 600), the
   chosen step's circle and name navy, no strip. The markup and the order are v5's (head, tabs, photo, caption, «View
   this project»). From 992 px as on v5: the tabs left of the photo, the chosen one the white strip. */
@media (max-width: 991.98px) {
  .svc8-design .svc-dsteps { flex-direction: row; gap: 0; }
  .svc8-design .svc-dsteps::before { top: 18px; bottom: auto; left: 12.5%; right: 12.5%; width: auto; height: 2px; }
  .svc8-design .svc-dstep { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 8px; padding: 0 2px; text-align: center; }
  .svc-blocks > .svc4-on-path.svc8-design:nth-child(n) .svc-dstep[aria-selected="true"] { background: none; box-shadow: none; }
  .svc8-design .svc-dstep .t-card { font-size: 13px; line-height: 17px; font-weight: 600; color: var(--text-2); }
  .svc8-design .svc-dstep[aria-selected="true"] .t-card { color: var(--navy); font-weight: 700; }
}

/* Kitchen v8 (2026-11-17), the user: «Перенести в Kitchen remodeling showroom» («Areas we serve» from the shared block).
   The list of towns closes the showroom block under the showroom and its map, at a section's inner gap (40 / 32 px),
   in light colours: a white card with the light border on the grey block (as the map's card beside it), the pin's
   circle grey with the orange icon, the title and the towns in text colours, the toggle with the grey border (navy on
   hover). Its phone layout is the shared block's. Only v8's markup uses this class. */
.svc8-areas { margin-top: 40px; border-color: var(--border-light); background: #fff; }
.svc8-areas .areas__pin { background: var(--bg-alt); color: var(--accent-strong); }
.svc8-areas .areas__title { color: var(--text); }
.svc8-areas .areas__note, .svc8-areas .areas__foot { color: var(--text-2); }
.svc8-areas .areas__toggle { border-color: var(--border); color: var(--navy); }
.svc8-areas .areas__summary:hover .areas__toggle { border-color: var(--navy); }
.svc8-areas .areas__list { border-top-color: var(--border-light); color: var(--text-body); }
@media (max-width: 1199.98px) {
  .svc8-areas { margin-top: 32px; }
}

/* Kitchen v8 (2026-11-17), the user: «добавить гарантию в конец шага C». Step C ends with two cards of the same kind:
   the final touch-ups and walkthrough, then the warranty (the shared block's words). From 992 px they stand side by side
   at the cards' gap (16 px), below it one under another (12 px). Only v8's markup uses this class. */
.svc8-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) {
  .svc8-end { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Kitchen v8 (2026-11-17), the user: «Kitchen remodeling services блоки не готов, сейчас смотрится плохо» → «Делай то
   что рекомендуешь» (services-sketch.mjs, variant 2). Step C's 13 works are one line of steps: each number a 36 px navy
   dot, a 2 px grey line from one dot down to the next, the title and the text right of the line. From 768 px two
   columns, 1–7 and 8–13 (each column's last step without a line); below one column. The items, their texts and their
   phone folds are v5's. Only v8's markup uses this class. */
.svc8-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; column-gap: 64px; margin: 0; padding: 0; list-style: none; }
.svc8-steps > li { position: relative; gap: 6px; padding: 0 0 28px 52px; }
.svc8-steps > li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.svc8-steps > li:nth-child(7)::before, .svc8-steps > li:last-child::before { display: none; }
.svc8-steps .svc-pitem__head { display: block; min-height: 36px; }
.svc8-steps .svc-pitem__num { position: absolute; left: 0; top: 0; width: 36px; height: 36px; font-size: 15px; }
.svc8-steps .svc-pitem__head .t-card { padding-top: 6px; }
@media (max-width: 767.98px) {
  .svc8-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .svc8-steps > li { padding-bottom: 20px; }
  .svc8-steps > li:nth-child(7)::before { display: block; }
}

/* ---------- Legal pages: Privacy Policy, Terms of Service (2026-11-18) ----------
   The simplest inner page (the user: «максимально простыми но в общей стилистике сайта»): the inner pages' light first
   screen (.page-hero: crumbs, H1, the date of the last update) and the blog's text column (.prose, 680) on white. The
   sections are short (1–2 paragraphs), so they stand 48 apart instead of the articles' 64. */
.legal-head { display: flex; flex-direction: column; gap: 12px; }
.legal-head__date { color: var(--text-2); }
.legal { max-width: 680px; }
.legal > h2 { margin-top: 48px; }
