@font-face {
  font-family: Oswald;
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("assets/golos-lat.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url("assets/golos-cyr.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2116;
}
:root {
  --ink: #141414;
  --deep: #101010;
  --paper: #f3f1ec;
  --red: #ff5343;
  --muted: #c3beb7;
  --line: #464543;
  --dock: 0px;
  --gutter: clamp(18px, 4.8vw, 70px);
  scroll-padding-block: 12px calc(12px + var(--dock));
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding-bottom: var(--dock);
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.5 Golos, Arial, sans-serif;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.services :focus-visible { outline-color: var(--ink); }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: 0 auto auto 1rem; padding: 10px; color: var(--ink); background: var(--paper); transform: translateY(-130%); }
.skip:focus { transform: none; }

header { border-bottom: 1px solid var(--line); }
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font: italic 700 1.65rem/1 Oswald, sans-serif; letter-spacing: -.045em; }
.wordmark b { color: var(--red); }
.wordmark img { border-radius: 50%; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.site-nav a, .top-phone { display: inline-flex; position: relative; align-items: center; min-height: 44px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--paper); }
.top-phone { justify-self: end; font-weight: 650; white-space: nowrap; }
.top-phone:hover, .contact-phone:hover, .text-link:hover, .map-box a:hover, .credits a:hover, .credits summary:hover { color: var(--red); }

.hero { background: var(--deep); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 65px);
  padding-block: clamp(32px, 4.5vw, 64px);
}
h1, h2 { font-weight: 750; line-height: 1.04; letter-spacing: -.047em; }
h1 { font-size: clamp(2.32rem, 4.55vw, 4.125rem); }
h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.city { display: block; margin-top: .13em; font-size: .73em; letter-spacing: -.04em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; color: var(--muted); }
.hero-meta span { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.hero-photo { overflow: hidden; background: var(--ink); }
.hero-photo img { width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content; min-height: 50px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 3px;
  background: var(--red); color: var(--ink);
  font-weight: 660; line-height: 1.25; text-align: center;
}
.button:hover { background: #ff7568; }
.button.secondary { border-color: #9c9791; background: transparent; color: var(--paper); }
.button.secondary:hover { border-color: var(--red); color: var(--red); }
.text-link, .map-box a, .credits a, .credits summary { text-decoration: underline; text-underline-offset: .24em; }

.section-pad { padding-block: clamp(44px, 5.8vw, 80px); }
h2 { font-size: clamp(2.1rem, 4.1vw, 3.75rem); }
.services { background: var(--paper); color: var(--ink); }
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  grid-template-areas: "photo list";
  align-items: start;
  gap: clamp(24px, 4.4vw, 60px);
  margin-top: clamp(24px, 3vw, 38px);
}
.price-list { grid-area: list; }
.list-head, .price-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 12px;
  align-items: baseline;
  column-gap: clamp(8px, 1.5vw, 20px);
}
.list-head { padding-bottom: 10px; border-bottom: 1px solid #99938d; color: #595550; font-size: .875rem; }
.list-head span:last-child, .price { text-align: end; }
.price-list details { border-bottom: 1px solid #b7b2ac; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.price-list summary { align-items: center; min-height: 64px; padding-block: 14px; }
.price-list summary::after {
  content: ''; justify-self: center; width: 9px; height: 9px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.price-list details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.service-name { font-size: clamp(1.05rem, 1.45vw, 1.28rem); font-weight: 680; letter-spacing: -.025em; }
.price { color: #514d48; font-size: .95rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.price-list summary:is(:hover, :focus-visible) .service-name { color: #9e2f24; }
.price-list details p { padding-bottom: 16px; color: #494541; }
.work-photos { grid-area: photo; position: relative; aspect-ratio: 1.72; overflow: hidden; background: var(--ink); }
.work-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.work-photos .repair-photo { opacity: 1; }
.work-photos .oil-photo { object-position: 50% 49%; }
.work-photos .tyre-photo { object-position: 50% 55%; }
.price-layout:has(#maintenance[open], #tyres[open]) .repair-photo { opacity: 0; }
.price-layout:has(#maintenance[open]) .oil-photo,
.price-layout:has(#tyres[open]) .tyre-photo { opacity: 1; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 76px); align-items: center; }
address { margin: 20px 0 6px; font-style: normal; }
.contact-phone { display: inline-block; margin-top: 5px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; }
.hours { color: var(--muted); }
.contact-grid .actions { gap: 12px 20px; }
.map-box { min-width: 0; }
.map-box iframe { display: block; width: 100%; height: clamp(280px, 26vw, 355px); border: 1px solid var(--line); background: #242424; }
.map-box a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px 24px; padding-block: 18px; color: var(--muted); font-size: .94rem; }
.footer .wordmark { font-size: 1.4rem; color: var(--paper); }
.credits { justify-self: end; max-width: 52ch; }
.credits summary { width: fit-content; margin-inline-start: auto; }
.credits p { margin-top: 9px; font-size: .875rem; }
.mobile-actions { display: none; }

@media (max-width: 800px) {
  .price-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "photo"; gap: 16px; }
  .work-photos { max-height: 235px; aspect-ratio: 2.15; }
}
@media (max-width: 740px) {
  :root { --dock: calc(64px + env(safe-area-inset-bottom)); }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-top: 8px; }
  .wordmark { gap: 7px; font-size: 1.45rem; }
  .wordmark img { width: 29px; height: 29px; }
  .top-phone { font-size: .9rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 26px; border-top: 1px solid var(--line); }
  .site-nav a { min-height: 41px; font-size: .94rem; }
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-grid { padding-block: 32px 26px; }
  h1 { font-size: clamp(2.26rem, 8.6vw, 3.65rem); }
  .hero-meta { margin-top: 14px; font-size: .95rem; }
  .actions { margin-top: 18px; }
  .hero-photo img { max-height: 320px; object-fit: cover; }
  .mobile-actions {
    position: fixed; z-index: 2; inset: auto 0 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    min-height: var(--dock); border-top: 1px solid var(--line); background: var(--ink);
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  }
  .mobile-actions .button { width: 100%; min-height: 44px; padding: 8px 12px; }
}
@media (max-width: 520px) {
  .list-head { display: none; }
  .price-list { border-top: 1px solid #99938d; }
  .price-list summary { grid-template-columns: minmax(0, 1fr) 14px; gap: 3px 12px; min-height: 70px; }
  .price-list summary::after { grid-column: 2; grid-row: 1 / 3; }
  .price { grid-column: 1; text-align: start; font-size: .9rem; }
  .credits { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .credits summary { margin-inline-start: 0; }
  .footer-inner { grid-template-columns: 1fr auto; row-gap: 9px; }
}

@keyframes enter-section {
  from { opacity: .65; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes uncover-photo {
  from { clip-path: inset(0 8% 0 0); transform: scale(1.025); }
  to { clip-path: inset(0); transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
  .hero-photo img { animation: uncover-photo 540ms cubic-bezier(.2,.7,.25,1) both; }
  .city { animation: enter-section 360ms 50ms backwards; }
  .intro .actions { animation: enter-section 360ms 110ms backwards; }
  .in-view .price-list details, .contact-grid.in-view address { animation: enter-section 320ms ease-out backwards; }
  .in-view .price-list details:nth-of-type(2) { animation-delay: 50ms; }
  .in-view .price-list details:nth-of-type(3) { animation-delay: 100ms; }
  .price-list details[open] p { animation: enter-section 180ms ease-out; }
  .work-photos img { transition: opacity 270ms ease-in-out; }
  .price-list summary::after, .service-name { transition: transform 190ms ease, color 160ms ease; }
  .site-nav a::after {
    content: ''; position: absolute; inset: auto 0 5px; height: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: left; transition: transform 180ms ease-out;
  }
  .site-nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
  .button { transition: transform 150ms ease, color 150ms, background-color 150ms, border-color 150ms; }
  .button:active { transform: scale(.975); }
  .text-link, .map-box a { transition: text-underline-offset 160ms ease, color 160ms; }
  :is(.text-link, .map-box a):is(:hover, :focus-visible) { text-underline-offset: .42em; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .price-list details { interpolate-size: allow-keywords; }
    .price-list details::details-content {
      block-size: 0; overflow: hidden;
      transition: block-size 220ms ease, content-visibility 220ms allow-discrete;
    }
    .price-list details[open]::details-content { block-size: auto; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .price-list summary:is(:hover, :focus-visible) .service-name { transform: translateX(4px); }
  .button:hover:not(:active) { transform: translateY(-2px); }
}
