/* Graphic audit refinements, September 2026.
   Loaded after the legacy stylesheet; shared by CS and EN, without route changes. */
:root {
  --ui-button-radius: 8px;
  --ui-card-radius: 12px;
  --ui-text-muted: #59574f;
}

.home-master h1,
.content-page .page-hero-content h1 {
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.home-master h2,
.home-master .seasonal-campaign-card h2,
.home-master .master-verification h2 {
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-master h3,
.content-page h2,
.content-page h3 {
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.content-page .page-main h2,
.content-page .article-content h2 {
  margin-top: 40px;
  padding-top: 0;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.content-page .page-main h2::before,
.content-page .article-content h2::before {
  display: none;
}

.content-page .page-main > h2 {
  margin: 24px 0 0;
}

.content-page .page-main > .eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.content-page .page-main > :is(ul, ol) > li,
.content-page .seo-landing > :is(ul, ol) > li,
.content-page .article-content > :is(ul, ol) > li {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

.content-page .page-main li strong,
.content-page .faq-list summary {
  font-weight: 700;
}

.home-master .btn,
.content-page .btn,
.content-page .page-hero .btn,
.master-hero-phone,
.cookie-consent .btn {
  min-height: 52px;
  padding: 13px 20px;
  border-radius: var(--ui-button-radius);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: center;
}

.home-master .master-hero-actions .btn,
.home-master .master-hero-phone {
  min-height: 60px;
}

.content-page .page-hero {
  min-height: 540px;
}

.content-page .page-hero-content {
  padding: 64px min(38%, 460px) 60px 0;
}

.content-page .page-hero-content h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(42px, 4.3vw, 62px);
}

.content-page .page-hero-content p:not(.eyebrow) {
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.6;
}

.content-page > .section {
  padding-block: clamp(48px, 6vw, 80px);
}

.content-page .page-grid {
  gap: clamp(32px, 4.5vw, 64px);
}

.content-page .page-aside {
  border-radius: var(--ui-card-radius);
}

/* Keep the prices and case evidence near the page introduction. */
.content-page:is(.pricing-page, .repair-examples-page) .page-hero {
  min-height: 0;
}

.content-page:is(.pricing-page, .repair-examples-page) .page-hero-content {
  padding-block: 44px;
}

.content-page.pricing-page > .section,
.content-page.repair-examples-page > .section {
  padding-block: 40px;
}

.content-page.pricing-page .page-main > h2:first-of-type {
  margin: 0;
}

.content-page.pricing-page .page-main > h2:first-of-type + p {
  font-size: 16px;
  line-height: 1.6;
}

.content-page .price-row,
.tyre-price-list .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 36%);
  align-items: baseline;
  gap: 12px;
  min-height: 54px;
  padding: 14px 2px;
}

.content-page .price-row span,
.tyre-price-list .price-row span {
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.content-page .price-row strong,
.tyre-price-list .price-row strong {
  display: block;
  min-width: 0;
  width: auto;
  padding: 0;
  justify-self: stretch;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.content-page .article-callout.new-tyres-callout {
  margin-block: 28px;
  padding: 24px;
  border-left-width: 3px;
  border-radius: var(--ui-card-radius);
}

.content-page .new-tyres-callout .eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.content-page .new-tyres-callout h2 {
  margin: 0 0 14px;
  padding: 0;
  font-size: clamp(28px, 3vw, 36px);
}

.content-page .new-tyres-callout p:not(.eyebrow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.content-page .new-tyres-callout .new-tyres-steps {
  counter-reset: tyre-step;
  gap: 20px;
  margin: 22px 0 0;
}

.content-page .new-tyres-callout .new-tyres-steps li {
  position: relative;
  display: block;
  padding: 0 0 0 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

.content-page .new-tyres-callout .new-tyres-steps li::before {
  counter-increment: tyre-step;
  content: counter(tyre-step);
  position: absolute;
  inset: 1px auto auto 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e4dfd2;
  color: #35332f;
  font: 700 12px/1 var(--font-body);
}

.new-tyres-steps strong,
.new-tyres-steps span {
  display: block;
}

.new-tyres-steps span {
  margin-top: 3px;
  color: var(--ui-text-muted);
  font-weight: 400;
}

.new-tyres-callout .seasonal-inline-actions {
  margin-top: 22px;
}

.content-page .page-main .article-update {
  display: flex;
  gap: 4px 14px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.article-update a { font-weight: 600; }

.content-page .tyre-answer-box { margin-top: 0; }
.content-page .tyre-answer-box h2 { margin-top: 12px; }

.repair-examples-page .section-heading.compact {
  max-width: 72ch;
  margin-bottom: 24px;
  text-align: left;
}

.repair-examples-page .section-heading.compact p { font-size: 15px; }

.repair-examples-page .case-study-card {
  overflow: hidden;
  border-radius: var(--ui-card-radius);
}

.repair-examples-page :is(.before-after-pair, .repair-photo-story) img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Crop the existing documentary collage to its undamaged right-hand photo.
   No synthetic workshop imagery and no changes to the source evidence. */
.content-page .tyre-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  overflow: hidden;
}

.content-page .tyre-hero-photo .page-hero-image {
  inset: 0 auto 0 -100%;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.content-page .page-hero:has(.tyre-hero-photo) .page-hero-shade {
  background: linear-gradient(90deg, #090909 40%, rgba(9, 9, 9, 0.62) 66%, rgba(9, 9, 9, 0.24));
}

/* Grouped links stay in the HTML and remain available without JavaScript. */
.related-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}

.content-page .related-group h3 {
  margin: 0 0 12px;
  color: #fff;
  font: 700 16px/1.4 var(--font-body);
  letter-spacing: 0;
}

.content-page > .section:has(.related-section) .related-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
}

.content-page > .section:has(.related-section) .related-links a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #d3d0c9;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.content-page > .section:has(.related-section) .related-links a:is(:hover, :focus-visible) {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-page > .section:has(.related-section) .related-group:has(a:nth-child(7)) .related-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.9fr 1fr;
  gap: 28px;
}

.site-footer .footer-inner > * { min-width: 0; }
.site-footer .footer-inner p { margin-block: 8px 16px; }
.site-footer .footer-inner :is(a, span, p, button) {
  color: #c6c3bc;
  font-size: 14px;
  line-height: 1.55;
}

.site-footer .footer-inner a { overflow-wrap: anywhere; }
.site-footer .footer-inner nav > a,
.site-footer .footer-inner .footer-link-button {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 7px 0;
  font-weight: 400;
}

.site-footer .footer-inner :is(a, button):is(:hover, :focus-visible) {
  color: var(--yellow);
}

.site-footer .footer-contact > a { min-height: 40px; }

.home-master .master-enquiry-layout { gap: 40px; }
.home-master .master-enquiry-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
.home-master .master-enquiry-copy > p:not(.master-eyebrow) { margin-bottom: 8px; }
.home-master .master-enquiry-copy > a { margin-top: 0; }

.home-master .master-form .field-help {
  color: var(--ui-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-master .master-form .contact-fields-note.is-invalid { color: #b42318; }

.home-master-page #objednavka .master-form .contact-fields-note {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

#enquiry-title:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  /* One header offset, not scroll-padding plus another scroll-margin. */
  html { scroll-padding-top: calc(84px + env(safe-area-inset-top)); }
  section[id], article[id], .price-tabs[id], .home-master-page #objednavka {
    scroll-margin-top: 0;
  }
  .content-page .page-hero-content { padding-right: 12%; }
  .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-master .master-enquiry-layout { gap: 24px; }
  .home-master .master-enquiry-copy { position: static; margin-bottom: 0; }
}

@media (max-width: 640px) {
  .home-master .master-hero h1 {
    font-size: clamp(42px, 12.2vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.035em;
  }
  .home-master h2,
  .home-master .seasonal-campaign-card h2,
  .home-master .master-verification h2 {
    font-size: clamp(32px, 9vw, 40px);
  }
  .content-page .page-hero { min-height: 0; }
  .content-page .page-hero-content {
    width: calc(100% - 40px);
    padding: 42px 0 36px;
  }
  .content-page .page-hero-content h1 {
    font-size: clamp(34px, 9.3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
  .content-page .page-hero-content p:not(.eyebrow) { font-size: 16px; }
  .content-page:is(.pricing-page, .repair-examples-page) .page-hero-content { padding-block: 30px; }
  .content-page .page-main h2,
  .content-page .article-content h2 { font-size: 28px; }
  .content-page .price-row { gap: 10px; padding-block: 12px; }
  .content-page .price-row span,
  .content-page .price-row strong { font-size: 15px; }
  .content-page .article-callout.new-tyres-callout { padding: 20px; }
  .content-page .new-tyres-callout h2 { font-size: 28px; }
  .content-page .new-tyres-callout .new-tyres-steps { grid-template-columns: 1fr; gap: 14px; }
  .content-page .tyre-hero-photo { width: 100%; }
  .content-page .page-hero:has(.tyre-hero-photo) .page-hero-shade { background: rgba(9, 9, 9, 0.76); }
  .content-page > .section:has(.related-section) .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .related-groups { grid-template-columns: 1fr; gap: 24px; }
  .home-master .master-enquiry-copy h2 { max-width: 18ch; font-size: 32px; }
  .home-master .master-enquiry-copy > p:not(.master-eyebrow) { font-size: 16px; }
  .home-master-page.home-redesign #main.home-master #objednavka.master-enquiry { padding-block: 40px; }
  .site-footer .footer-inner { gap: 28px 20px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact { grid-column: 1 / -1; }
  .site-footer { padding-block: 44px; }
}
