/* Serwis maszynek fryzjerskich – Tomasz Niezgoda */

@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/bitter.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("/assets/fonts/bitter-italic.woff") format("woff");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans.woff") format("woff");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --ink: #1F1F1F;
  --ink-2: #2E2E2E;
  --steel: #4A4A4A;
  --muted: #5F5F5F;
  --bg: #F6F5F3;
  --paper: #EFEDEA;
  --grid: rgba(60, 50, 45, .08);
  --grid-fine: rgba(60, 50, 45, .04);
  --white: #FFFFFF;
  --line: #E7E4E0;
  --line-dark: #3A3A3A;
  --tag: #C92C18;
  --tag-deep: #A92210;
  --tag-soft: #FDECEA;

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --measure: 68ch;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tag-deep); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font: 600 1rem/1 var(--sans);
  border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--tag); color: var(--white); border-color: var(--tag); }
.btn-primary:hover { background: var(--tag-deep); border-color: var(--tag-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.06rem; }
.btn:active { transform: translateY(1px); }

/* Header */
.header { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; display: block; }
.brand-sub { display: block; white-space: nowrap; font-size: .85rem; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { margin: 0; }
.nav a { display: block; white-space: nowrap; padding: 10px 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 4px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--tag); border-radius: 0; }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--r); width: 48px; height: 48px; cursor: pointer; padding: 0; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* Breadcrumbs */
.crumbs { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-dark); opacity: .5; }
.crumbs a { color: var(--muted); }

/* Drawing-sheet background: the workshop's technical drawing */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center -1px;
}

/* Home hero */
.hero { padding: 44px 0 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 12px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: .45em; max-width: 11em; }
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.27rem); color: var(--steel); max-width: 31em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-hours { color: var(--muted); font-size: .95rem; margin: 0; }
.hero-art { margin: 0 -6px; }

/* Exploded clipper */
.xv { width: 100%; height: auto; overflow: visible; }
.xv .f { fill: var(--white); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; transition: fill .2s ease; }
.xv .f-steel { fill: #E6E3DF; }
.xv .f-steel2 { fill: #D3CEC8; }
.xv .f-tag { fill: var(--tag); }
.xv-teeth line { stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; }
.xv-teeth-s line { stroke-width: 2.6; }
.xv-thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .5; }
.xv-stroke { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.xv-ribs line { stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; opacity: .4; }
.xv-shine { fill: var(--white); opacity: .85; }
.xv-cable { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.xv-axis { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 16 5 3 5; opacity: .55; }
.xv-path { fill: none; stroke: var(--steel); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .75; }
.xv-lead { fill: none; stroke: var(--steel); stroke-width: 1; }
.xv-dot { fill: var(--ink); }
.xv-label { font: 600 17px var(--sans); fill: var(--ink); }
.xv-sub { font: 400 14px var(--sans); fill: var(--muted); }
.xv-link { cursor: pointer; }
.xv-link:hover .f:not(.f-tag), .xv-link:focus-visible .f:not(.f-tag) { fill: var(--tag-soft); }
.xv-link:hover .xv-label, .xv-link:focus-visible .xv-label { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .xv .xp { animation: xp-in 1.05s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(.25s + var(--d, 0s)); }
  .xv .xc { animation: xc-in .6s ease-out 1.2s both; }
}
@keyframes xp-in { from { transform: translate(var(--dx, 0px), var(--dy, 0px)); opacity: 0; } }
@keyframes xc-in { from { opacity: 0; } }

/* Proof row under the hero */
.proof { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.proof li { margin: 0; padding: 18px 14px 24px 0; display: grid; gap: 3px; align-content: start; }
.proof li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
.proof strong { font-family: var(--serif); font-size: 1.18rem; line-height: 1.2; }
.proof span { color: var(--muted); font-size: .94rem; line-height: 1.35; }
.proof a { color: var(--ink); }

/* Diagnostic bench */
.diag-section { background: var(--white); border-bottom: 1px solid var(--line); }
.bench { display: grid; gap: 28px; align-items: start; }
.bench h2 { margin-bottom: 8px; }
.bench-hint { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.symptoms { display: flex; flex-wrap: wrap; gap: 10px; }
.symptom {
  font: 500 1rem/1.2 var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 12px 18px; cursor: pointer; text-align: left;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.symptom:hover { border-color: var(--steel); }
.symptom[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* The repair tag – signature element */
.tag {
  position: relative;
  background: var(--tag-soft);
  color: var(--ink);
  padding: 30px 24px 24px 24px;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  border-radius: 0 0 6px 6px;
}
.tag::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px var(--tag);
}
.tag-string { display: block; width: 80px; height: 26px; margin: 0 auto -2px; color: var(--steel); }
.tag p:last-child { margin-bottom: 0; }
.tag-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin: 6px 0 12px; line-height: 1.2; }
.tag-label { font-weight: 700; font-size: .92rem; margin: 0 0 2px; }
.tag-text { margin: 0 0 12px; }
.tag a:not(.btn) { color: var(--ink); }
.tag .btn-primary { background: var(--tag); color: var(--white); border-color: var(--tag); }
.tag .btn-primary:hover { background: var(--tag-deep); border-color: var(--tag-deep); }
.tag .btn-ghost { border-color: var(--ink); }
.tag-hours { font-size: .9rem; margin: 12px 0 0 !important; }
.tag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.diag-result { min-width: 0; }
.tag-ghost { background: var(--bg); color: var(--muted); }
.tag-ghost::before { box-shadow: 0 0 0 4px var(--line); }
.tag-ghost .tag-title { color: var(--steel); }
.diag-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.tag.is-new { animation: swing .5s ease-out; transform-origin: 50% -26px; }
@keyframes swing { 0% { transform: rotate(-3deg); } 55% { transform: rotate(1.4deg); } 100% { transform: rotate(0); } }

/* Without JavaScript: symptom answers as plain accordions */
.diag-static { margin-top: 4px; }
.js .diag-static { display: none; }
html:not(.js) .bench-hint, html:not(.js) .symptoms, html:not(.js) #diag-result { display: none; }
.diag-static details { border-top: 1px solid var(--line); padding: 12px 0; }
.diag-static details:last-child { border-bottom: 1px solid var(--line); }
.diag-static summary { font-weight: 600; cursor: pointer; }
.diag-static details p { margin: 8px 0 0; color: var(--steel); }
.diag-static details a { color: var(--ink); }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #E2E2E2; }
.cta-band { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink a { color: var(--white); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-ink .section-head p { color: #BDBDBD; }

/* Services list – rows, not cards */
.services { display: grid; gap: 0 48px; }
.service { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.service-icon { width: 56px; height: 56px; padding: 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.service:hover .service-icon { background: var(--tag-soft); border-color: var(--tag); }
.service h3 { margin: 0 0 4px; font-size: 1.2rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { text-decoration: underline; }
.service p { margin: 0; color: var(--muted); }

/* Process – a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { margin: 0; counter-increment: step; padding-top: 18px; border-top: 1px solid var(--ink); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 14px;
  font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--tag-deep);
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
.section-ink .steps p { color: #BDBDBD; }

.brands { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 44px; list-style: none; padding: 0; margin: 0; }
.prose .brands { grid-template-columns: repeat(auto-fill, minmax(6em, max-content)); }
.brands li { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--steel); letter-spacing: -0.01em; }

.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }

/* Photos (optional) */
.photo { margin: 0 0 28px; }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line); }
.photo-aside { margin: 0; }

/* Two-column feature split */
.split { display: grid; gap: 40px; align-items: start; }
.quote { margin: 0; padding: 0 0 0 22px; border-left: 4px solid var(--tag); }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin-bottom: 8px; }
.quote footer { color: var(--muted); font-size: .95rem; }
.prose .quote { margin-bottom: 20px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.facts strong { font-family: var(--serif); font-size: 1.1rem; }
.facts span { color: var(--muted); }
.section-ink .facts li { border-color: var(--line-dark); }
.section-ink .facts span { color: #BDBDBD; }


/* Article list */
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.posts li { margin: 0; border-top: 1px solid var(--line); }
.posts a { display: block; padding: 20px 0; text-decoration: none; color: var(--ink); }
.posts a:hover .post-title { text-decoration: underline; }
.post-title { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; display: block; margin-bottom: 4px; line-height: 1.3; }
.post-desc { color: var(--muted); display: block; }

/* CTA band */
.cta { display: grid; gap: 24px; align-items: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.page-band { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.page-band .crumbs { padding-top: 22px; }
.page-head { padding: 22px 0 40px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.022em; max-width: 15em; }
.page-head .lead { font-size: 1.2rem; color: var(--steel); max-width: 40em; margin: 0; }
.page-meta { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.page-grid { display: grid; gap: 40px; padding: 40px 0 72px; }
.prose { max-width: var(--measure); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 32px 26px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--tag-deep); }
.prose ol li::marker { color: var(--steel); font-weight: 700; }
.prose .brands { margin: 0 0 14px; }
.prose .note {
  background: var(--tag-soft); border-left: 4px solid var(--tag-deep);
  padding: 16px 18px; border-radius: 0 6px 6px 0; margin: 1.4em 0;
}
.prose .note p:last-child { margin-bottom: 0; }
.prose .warn { background: #FBE3DD; border-left-color: #B3412A; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--bg); }
.summary { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 10px; }
.summary li { margin: 0; padding: 12px 14px 12px 42px; position: relative; background: var(--bg); border-radius: 8px; color: var(--steel); line-height: 1.45; }
.summary li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--tag) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.summary strong { color: var(--ink); }
.steps-inline { counter-reset: s; list-style: none; padding: 0; }
.steps-inline li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps-inline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tag); color: var(--white); font: 700 .95rem/30px var(--serif); text-align: center; }
.faq h3 { font-size: 1.12rem; margin-bottom: 4px; }
.faq p { color: var(--steel); }

.aside { display: grid; gap: 22px; align-content: start; }
.aside-tag h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.aside-tag p { margin-bottom: 10px; font-size: .98rem; }
.aside-tag .btn { width: 100%; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 14px; }
.aside-box h2 { font-size: 1.1rem; margin-bottom: 10px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; border-top: 1px solid var(--line); }
.aside-box li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); line-height: 1.35; }
.aside-box li a:hover { text-decoration: underline; }

/* Contact form */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid #CFCAC4; border-radius: var(--r);
  padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--tag); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--steel); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; margin: 0; }
.form-status.ok { color: #1E6B3A; }
.form-status.err { color: #A3341F; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-lines li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-lines strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.contact-lines a { color: var(--ink); }
.contact-lines li { color: var(--muted); font-size: .95rem; }
.contact-lines strong { color: var(--ink); }
.aside-box p { margin-bottom: 12px; }

/* Footer */
.footer { background: var(--ink); color: #BDBDBD; padding: 56px 0 32px; font-size: .97rem; border-top: 1px solid var(--line-dark); }
.footer a { color: #EAEAEA; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0 0 8px; }
.footer-grid { display: grid; gap: 32px; }
.footer-base { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(30, 42, 51, .97); border-top: 1px solid var(--line-dark);
  transition: transform .22s ease, visibility 0s;
}
.callbar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
.callbar .btn { min-height: 48px; padding: 0 12px; }

/* Error page */
.notfound { padding: 80px 0 100px; max-width: 40em; }

/* Breakpoints */
@media (max-width: 1199px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(30, 42, 51, .12); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 0 20px 12px; gap: 0; }
  .nav li:first-child a { border-top: 0; }
  .nav a { padding: 14px 4px; border-top: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--tag); padding-left: 14px; }
}
@media (max-width: 1199px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header { position: static; }
  html:not(.js) { scroll-padding-top: 0; }
  html:not(.js) .header-in { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .nav { display: block; position: static; box-shadow: none; border: 0; width: 100%; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  html:not(.js) .nav a { border-top: 0; padding: 8px 10px 8px 0; }
}
@media (max-width: 759px) {
  .crumbs li:last-child { display: none; }
  .header-call { display: none; }
  .footer { padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art { margin: 8px -12px 0; }
  .xv-label { font-size: 23px; }
  .xv-sub { display: none; }
  .prose { padding: 24px 18px; border-left: 0; border-right: 0; border-radius: 0; margin-inline: -20px; }
  .brand-sub { font-size: .8rem; }
}
@media (min-width: 760px) {
  .callbar { display: none; }
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof li + li { border-left: 1px solid var(--line); padding-left: 22px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cta { grid-template-columns: 1fr auto; }
}
@media (min-width: 980px) {
  .hero { padding: 64px 0 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; }
  .hero-art { margin: 0 -20px 0 0; }
  .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .page-grid { padding-top: 0; margin-top: -26px; }
  .page-band { padding-bottom: 34px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .prose { padding: 44px 48px; }
  .aside { position: sticky; top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .header, .callbar, .footer, .aside, .nav-toggle { display: none !important; }
  .prose { border: 0; padding: 0; }
}

/* About page: key numbers and timeline */
.prose .about-stats { list-style: none; padding: 0; margin: 0 0 2.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prose .about-stats li { margin: 0; padding: 14px 16px; background: var(--bg); border-left: 4px solid var(--tag); border-radius: 0 8px 8px 0; display: grid; gap: 2px; align-content: start; }
.about-stats strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.about-stats span { color: var(--muted); font-size: .94rem; line-height: 1.35; }
@media (min-width: 760px) { .prose .about-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prose .timeline { list-style: none; padding: 0 0 0 26px; margin: 0 0 1.8em; border-left: 2px solid var(--line); }
.prose .timeline li { position: relative; margin: 0 0 18px; }
.prose .timeline li:last-child { margin-bottom: 0; }
.prose .timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--tag); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--ink); }
.timeline strong { font-family: var(--serif); font-size: 1.08rem; }
.timeline p { margin: 2px 0 0; }
/* Price list */
.prose .price-table td:last-child strong { font-family: var(--serif); white-space: nowrap; }
.prose .price-table td:first-child { width: 60%; }

/* Google rating, map (click to load) and the contact section on the home page */
.rating { margin: 22px 0 12px; }
.rating a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink); text-decoration: none; }
.rating a:hover .rating-text { text-decoration: underline; }
.rating-score { font: 700 1.6rem/1 var(--serif); }
.rating-stars { color: #F4B400; letter-spacing: 2px; font-size: 1.1rem; }
.rating-text { color: var(--muted); }
.map { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.map.is-loaded { aspect-ratio: 4 / 3; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-ph { display: grid; justify-items: center; gap: 10px; padding: 24px 16px; text-align: center; }
.map-ph svg { width: 34px; height: 34px; color: var(--tag); }
.map-ph p { margin: 0; }
.map-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 280px; }
.map-actions .btn { min-height: 46px; width: 100%; white-space: nowrap; padding: 0 14px; }
.map-note { font-size: .85rem; color: var(--muted); }
.aside-box .map { margin-bottom: 8px; }
.contact-home .cta-actions { margin: 18px 0 22px; }
.contact-home .contact-lines { margin-bottom: 22px; }
.contact-form-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; }
.contact-form-box h3 { margin-bottom: 14px; }
.contact-form-box .field input, .contact-form-box .field textarea { background: var(--white); }
@media (min-width: 760px) {
  .contact-form-box { padding: 28px; }
  .map.is-loaded { aspect-ratio: 16 / 10; }
}
@media (max-width: 479px) {
  .prose .price-table th, .prose .price-table td { padding: 10px 8px; }
  .prose .price-table td:first-child { width: auto; }
  .prose .price-table td:last-child strong { white-space: normal; }
}
/* Exploded clipper: hint + link-like labels; on phones it moves below the symptom picker */
.art-hint { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.hero-art .art-hint { text-align: center; }
.xv-link .xv-label { fill: var(--tag-deep); }
.diag-art { display: none; }
.diag-art h3 { margin: 8px 0 4px; }
@media (max-width: 759px) {
  .hero-art { display: none; }
  .diag-art { display: block; grid-column: 1 / -1; }
}
/* Home: brand tiles, balanced two-column sections */
.split-center { align-items: center; }
.split-stretch { align-items: stretch; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.link-list li { margin: 0; }
.brands-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brands-wall li { display: grid; place-items: center; min-height: 92px; padding: 10px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: clamp(1.15rem, 2.2vw, 1.7rem); text-align: center; }
.facts-grid { margin-top: 26px; }
.review-card { display: flex; flex-direction: column; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px; }
.review-card .rating { margin-top: 0; }
.review-card .review-cta { margin-bottom: 0; }
@media (min-width: 560px) {
  .facts-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .facts-grid li:nth-child(-n+2) { border-top-color: var(--ink); }
}
@media (max-width: 559px) {
  .facts-grid li:first-child { border-top-color: var(--ink); }
  .brands-wall li { min-height: 68px; }
}
@media (min-width: 760px) {
  .review-card { padding: 36px 40px; }
}
@media (min-width: 760px) {
  .posts-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
@media (min-width: 980px) {
  .posts-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
