/* Mechanika Samochodowa, Warzyce. Billboard blue, signal red, white. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #2335a6;
  --blue-deep: #17247a;
  --navy: #0c1646;
  --red: #d3212b;
  --red-dark: #b01a23;
  --white: #ffffff;
  --tint: #eef1fa;
  --line: #d3d9ee;
  --ink: #121936;
  --muted: #475079;
  --on-blue: #e6eaff;
  --open: #17803f;

  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--blue) var(--tint);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--white); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.advice :focus-visible, .contact :focus-visible, .foot :focus-visible, .hero__media :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.top__in {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__name { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; text-transform: uppercase; font-stretch: 78%; font-weight: 800; }
.brand__name span { font-size: 0.98rem; letter-spacing: 0.16em; color: var(--navy); }
.brand__name strong { background: var(--red); color: var(--white); font-weight: 800; font-size: 1.28rem; letter-spacing: 0.02em; padding: 4px 9px 5px; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { background: var(--tint); color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  font-weight: 800; text-decoration: none;
  border-radius: 10px; padding: 0 20px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 46px; font-size: 1.02rem; white-space: nowrap; }

.call {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--red); color: var(--white); text-decoration: none;
  border-radius: 14px; padding: 12px 28px 12px 14px;
  min-height: 76px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.call:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.4); }
.call:active { transform: translateY(0); }
.call__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--red);
  display: grid; place-items: center; flex: none;
}
.call__icon .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.call__text { display: flex; flex-direction: column; line-height: 1.1; }
.call__label { font-size: 0.9rem; font-weight: 600; opacity: 0.92; }
.call__num {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 800; font-stretch: 90%;
  letter-spacing: 0.01em; font-variant-numeric: tabular-nums; margin-top: 4px;
}
.call--xl { min-height: 92px; padding-right: 36px; }
.call--xl .call__icon { width: 62px; height: 62px; }
.call--xl .call__num { font-size: clamp(2rem, 4.4vw, 3rem); }

.route, .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.route:hover, .link:hover { color: var(--red); }
.route .ico, .link .ico { transition: transform 0.25s var(--ease); }
.route:hover .ico, .link:hover .ico { transform: translateX(4px); }
.link--light { color: var(--white); }
.link--light:hover { color: var(--white); text-decoration-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: min(760px, calc(100svh - var(--header-h)));
  background: var(--white);
}
.hero__copy {
  padding: clamp(32px, 4.4vw, 64px) clamp(24px, 5vw, 72px) clamp(32px, 4.4vw, 56px) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  font-stretch: 78%;
  font-weight: 800;
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
  max-width: 14ch;
}
.hero__lead {
  margin-top: 18px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; text-wrap: pretty;
}

.bars { margin-top: 26px; display: grid; gap: 8px; justify-items: start; }
.bars a {
  display: inline-block; background: var(--red); color: var(--white);
  font-stretch: 78%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.45rem, 2.9vw, 2.2rem); line-height: 1; letter-spacing: 0.01em;
  padding: 10px 18px 11px; text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.bars a:hover { background: var(--red-dark); transform: translateX(6px); }

.dots { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.dots li {
  position: relative; padding-left: 22px;
  font-stretch: 88%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; color: var(--ink);
}
.dots li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; background: var(--blue);
}

.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

.hero__media {
  background: var(--blue);
  min-height: 420px;
}

/* ---------- Photo slots ---------- */
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--blue);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600; font-size: 0.95rem; text-align: center; padding: 24px;
}
.photo__ph .ico { width: 44px; height: 44px; stroke-width: 1.6; }
.photo--dark .photo__ph { background: var(--blue-deep); }
.photo--tall { aspect-ratio: 1 / 1; border-radius: 14px; }
.hero__media .photo__ph { background: #2f42b8; }

.status {
  position: absolute; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 1rem;
  padding: 14px 20px; border-radius: 12px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-state="open"] .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(23, 128, 63, 0.18); }
.status[data-state="closed"] .status__dot { background: var(--red); }
.status[data-state="holiday"] .status__dot { background: var(--red); }

/* ---------- Facts strip ---------- */
.facts { background: var(--navy); color: var(--white); }
.facts__in {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px;
  padding-block: 20px;
}
.facts p { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.facts .ico { color: #ff6a72; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.facts strong { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section__head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2 {
  font-stretch: 80%; font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.005em;
  color: var(--navy); text-wrap: balance;
}
.section__head p { margin-top: 16px; color: var(--muted); font-size: 1.15rem; text-wrap: pretty; }

/* Services */
.svc { border-top: 2px solid var(--navy); }
.svc__row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding-block: clamp(24px, 3.4vw, 38px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc__name { font-stretch: 80%; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: 0.005em; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); }
.svc__main p { margin-top: 12px; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.svc__row--main { padding-block: clamp(30px, 4.4vw, 52px); }
.svc__row--main .svc__name span {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); padding: 9px 16px 10px;
}
.svc__row--main .svc__main p { font-size: 1.15rem; }
.svc__row:not(.svc__row--main) .svc__name span { position: relative; padding-left: 24px; }
.svc__row:not(.svc__row--main) .svc__name span::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 13px; height: 13px; border-radius: 50%; background: var(--blue);
}
.svc__quote p { font-size: 1.05rem; color: var(--ink); text-wrap: pretty; }
.svc__quote p::before { content: "„"; }
.svc__quote p::after { content: "”"; }
.svc__quote footer, .review footer, .advice__quotes footer { margin-top: 8px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.svc__note { font-weight: 700; color: var(--blue); align-self: center; }

/* Advice */
.advice { background: var(--blue); color: var(--white); }
.advice h2 { color: var(--white); }
.advice__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.advice__lead { margin-top: 22px; font-size: 1.2rem; color: var(--on-blue); max-width: 52ch; text-wrap: pretty; }
.dots--light { margin-top: 28px; flex-direction: column; gap: 12px; }
.dots--light li { text-transform: none; font-stretch: 100%; font-weight: 600; font-size: 1.1rem; letter-spacing: 0; color: var(--white); }
.dots--light li::before { background: #ff6a72; top: 0.45em; }
.advice__media { grid-column: 2; grid-row: 1; }
.advice__quotes {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28); margin-top: clamp(8px, 2vw, 24px);
}
.advice__quotes blockquote { padding: 28px clamp(16px, 2.4vw, 32px) 0 0; }
.advice__quotes blockquote + blockquote { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid rgba(255, 255, 255, 0.28); }
.advice__quotes p { font-size: 1.12rem; line-height: 1.5; text-wrap: pretty; }
.advice__quotes p::before { content: "„"; }
.advice__quotes p::after { content: "”"; }
.advice__quotes footer { color: var(--on-blue); }

/* Reviews */
.reviews { background: var(--tint); }
.review p { text-wrap: pretty; }
.review p::before { content: "„"; }
.review p::after { content: "”"; }
.review--lead { margin-bottom: clamp(36px, 5vw, 64px); }
.review--lead p {
  font-stretch: 80%; font-weight: 800; color: var(--navy);
  font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.005em;
  max-width: 22ch; text-wrap: balance;
}
.review--lead footer { margin-top: 16px; font-size: 1rem; }
.review__cols { columns: 3 300px; column-gap: clamp(24px, 3.4vw, 48px); }
.review__cols .review {
  break-inside: avoid; margin-bottom: 28px;
  padding-top: 18px; border-top: 2px solid var(--blue);
}
.review__cols .review p { font-size: 1.05rem; }
.reviews__more { margin-top: clamp(16px, 3vw, 32px); }


.photo__cap {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
  background: var(--white); color: var(--ink);
  padding: 12px 18px; border-radius: 10px; font-size: 0.95rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}
.photo__cap strong { font-size: 1.1rem; font-weight: 800; color: var(--navy); }

/* Gallery carousel */
.gallery { padding-inline: 0; overflow: hidden; }
.gallery__head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery__head p { max-width: 52ch; }
.gal__ctrl { display: flex; gap: 10px; flex: none; }
.gal__ctrl[hidden] { display: none; }
.gal__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.gal__btn .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.gal__btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.gal__btn:disabled { opacity: 0.3; cursor: default; }

.gal {
  --slide: min(420px, 78vw);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.gal::-webkit-scrollbar { display: none; }
.gal__track { display: flex; gap: 16px; width: max-content; padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.gal__slide {
  flex: none; width: var(--slide); aspect-ratio: 4 / 3;
  border-radius: 14px; scroll-snap-align: start;
}
.gal__slide:nth-child(even) .photo__ph { background: #2f42b8; }
.gal__slide:nth-child(3n) .photo__ph { background: var(--blue-deep); }

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); max-width: 18ch; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px); align-items: stretch;
}
.contact__lead { margin-top: 20px; font-size: 1.2rem; color: #d5dbf5; max-width: 46ch; text-wrap: pretty; }
.contact .call { margin-top: 34px; }
.info { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.info > div:last-child { grid-column: 1 / -1; max-width: 460px; }
.info dt { font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; color: #ff8a90; margin-bottom: 10px; }
.info dd { font-size: 1.12rem; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-weight: 400; }
.hours td { font-weight: 700; text-align: right; padding-left: 16px; white-space: nowrap; }
.contact__media { border-radius: 14px; min-height: 380px; }

/* Footer */
.foot { background: #080f33; color: #b9c1e6; font-size: 0.95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px; }
.foot strong { color: var(--white); }
.foot a { color: var(--white); text-underline-offset: 3px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; align-items: center; }

/* ---------- Motion: one entrance, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .bars li, .dots, .hero__cta, .status {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__lead { animation-delay: 0.08s; }
  .bars li:nth-child(1) { animation-delay: 0.18s; }
  .bars li:nth-child(2) { animation-delay: 0.26s; }
  .dots { animation-delay: 0.34s; }
  .hero__cta { animation-delay: 0.42s; }
  .status { animation-delay: 0.55s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 40px var(--gutter) 36px; }
  .hero__title { max-width: 16ch; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .svc__row { grid-template-columns: 1fr; }
  .advice__grid { grid-template-columns: 1fr; }
  .advice__media { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .advice__quotes { grid-template-columns: 1fr; }
  .advice__quotes blockquote, .advice__quotes blockquote + blockquote { padding: 22px 0 0; border-left: 0; }
  .gallery__head { align-items: flex-start; flex-direction: column; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__media { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .brand__name span { font-size: 0.86rem; }
  .brand__name strong { font-size: 1.1rem; padding: 3px 8px 4px; }
  .top__in { gap: 12px; }
  .btn--sm { padding: 0 14px; font-size: 0.98rem; }
  .btn--sm .ico { display: none; }
  .call, .call--xl { display: flex; width: 100%; padding-right: 20px; }
  .facts__in { flex-direction: column; gap: 10px; }
  .status { font-size: 0.92rem; padding: 11px 14px; }
}
