/* MotoMax art direction 2.0. Existing CMS layout is intentionally retained. */
:root {
  --ink: #222426;
  --muted: #646568;
  --paper: #f6f4ef;
  --line: #d7d5cf;
  --dark: #1b1e20;
  --accent: #d7d5cf;
  --sans: Manrope, Arial, sans-serif;
  --serif: "Bodoni Moda", Georgia, serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-cinema: cubic-bezier(0.22, 0.61, 0.24, 1);
  --motion-fast: 180ms;
  --motion-medium: 420ms;
  --motion-cinema: 880ms;
}
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.055em;
}
h1,
h2 {
  line-height: 1.06;
}
h2 {
  font-size: clamp(38px, 4.2vw, 68px);
}
h3 {
  font-size: 27px;
}
a,
button {
  transition:
    color var(--motion-fast),
    background-color var(--motion-fast),
    border-color var(--motion-fast);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #777d84;
  outline-offset: 5px;
}
.wrap {
  width: min(1760px, calc(100% - 112px));
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  margin-bottom: 21px;
}
.btn {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.01em;
  font-weight: 600;
  border-color: var(--ink);
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: #41454a;
  border-color: #41454a;
}
.btn.light {
  background: #f6f4ef;
  border-color: #f6f4ef;
  color: #25272a;
}
.btn.light:hover {
  background: #dcdedb;
  border-color: #dcdedb;
}
.btn.outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.text-link {
  position: relative;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  line-height: 1.5;
  display: inline-block;
}
.text-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0.4);
  transition: transform 350ms var(--ease-out);
}
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}
/* A wordmark, not a decorative icon. */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.brand img {
  width: 180px;
  height: auto;
  object-fit: contain;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  font-weight: 400;
}
.brand-compact img {
  width: 70px;
}
.brand-compact .brand-tagline {
  display: none;
}
.logo {
  display: block;
  font-size: initial;
  letter-spacing: normal;
  line-height: 1;
}
.top-note {
  background: #e9e7e1;
  color: #595c5f;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 5px 18px;
  line-height: 1.5;
}
#header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 220ms,
    border-color 220ms;
}
#header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 3px 14px #17191b06;
}
.nav {
  height: 102px;
  gap: 40px;
}
.nav-links {
  gap: 44px;
  font-size: 12px;
}
.nav-links > a {
  position: relative;
  padding: 8px 0;
}
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav-links > a:hover::after,
.nav-links > a.active::after {
  transform: scaleX(1);
}
.nav-links a.active {
  border: 0;
  padding-bottom: 8px;
}
.nav .contact-link {
  padding: 11px 24px;
  min-height: 44px;
  border-color: #a5a6a4;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav .contact-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mobile-contact {
  display: none;
}
.menu-lines {
  display: block;
  width: 22px;
  height: 12px;
  border-top: 1px solid;
  border-bottom: 1px solid;
  transition:
    transform 240ms,
    height 240ms;
}
.menu[aria-expanded="true"] .menu-lines {
  height: 0;
  transform: rotate(-45deg);
}
/* Cinematic master composition. The left side is the photograph's negative space. */
.hero.cinematic {
  display: block;
  border: 0;
  position: relative;
  isolation: isolate;
  background: #11171c;
  color: #f6f4ef;
  min-height: 0;
  height: clamp(650px, 49vw, 1560px);
  max-height: none;
  overflow: hidden;
}
.cinematic .hero-visual {
  display: block;
  position: absolute;
  inset: 0;
  min-height: 0;
  background: #11171c;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.cinematic .hero-visual img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  max-width: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #11171cf5 0%,
    #11171cba 20%,
    #11171c22 48%,
    transparent 65%
  );
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.cinematic .hero-copy {
  padding: 0 0 45px;
  display: block;
  width: 39%;
  max-width: 650px;
  align-self: center;
}
.cinematic .eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: #dededb;
  margin-bottom: 28px;
}
.cinematic h1 {
  font-family: var(--serif);
  font-size: clamp(76px, 7.3vw, 190px);
  letter-spacing: -0.055em;
  line-height: 0.99;
  font-weight: 400;
  margin-bottom: 28px;
}
.cinematic h1 span {
  color: #c6c8c9;
}
.cinematic .intro {
  font-size: 13px;
  line-height: 1.8;
  color: #d7d8d8;
  max-width: 340px;
  margin-bottom: 28px;
}
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #d7d9da;
}
.hero-caption small {
  font-size: 10px;
}
.discovery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.discovery-bar p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.discovery-bar .count {
  margin-left: 18px;
  font-size: 11px;
  color: var(--muted);
}
.section {
  padding: 88px 0;
}
.section-head {
  align-items: end;
  margin-bottom: 42px;
  gap: 60px;
}
.section-head .eyebrow {
  margin-bottom: 17px;
}
.section-aside {
  max-width: 350px;
}
.section-head p {
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.section-aside .text-link {
  font-size: 12px;
}
.cards {
  gap: 30px;
}
.car {
  min-width: 0;
}
.car-link {
  display: block;
}
.car-photo {
  aspect-ratio: 1.38;
  isolation: isolate;
  background: #e6e4de;
}
.car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-cinema);
}
.car:hover .car-photo img {
  transform: none;
}
.car-photo .badge {
  top: 16px;
  left: 16px;
  background: #f6f4eff5;
  font-size: 10px;
  padding: 6px 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #343639;
}
.car-photo .badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #656b70;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}
.car-photo .badge[data-status="Sprzedany"] {
  background: #282c2df0;
  color: #fff;
}
.car-photo .demo {
  left: 15px;
  bottom: 12px;
  font-size: 10px;
  background: #15191bcc;
  padding: 3px 8px;
  transition: opacity 300ms;
}
.photo-cta {
  position: absolute;
  bottom: 20px;
  right: 18px;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 300ms,
    transform 350ms;
}
.car-data {
  padding: 22px 0 0;
  border: 0;
}
.car-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.car-heading > div {
  min-width: 0;
}
.car-brand {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.car-data h3 {
  font-size: 30px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.car-year {
  font-size: 12px;
  color: var(--muted);
  align-self: end;
  padding-bottom: 3px;
}
.car-data .variant {
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 16px;
  min-height: 19px;
  overflow-wrap: anywhere;
}
.spec-line {
  font-size: 11px;
  gap: 0;
  flex-wrap: wrap;
  line-height: 1.8;
  margin-bottom: 20px;
}
.spec-line span + span::before {
  content: "·";
  padding: 0 10px;
  color: #a1a3a3;
}
.price-row {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  gap: 16px;
  align-items: center;
  position: relative;
}
.price-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.price-row strong {
  font-size: 25px;
  letter-spacing: -0.055em;
  line-height: 1.3;
  font-weight: 500;
}
.price-row strong small {
  font-size: 10px;
  letter-spacing: 0.03em;
  margin-left: 3px;
}
.price-row .text-link {
  font-size: 10px;
  white-space: nowrap;
}
.price-row .text-link::after {
  transform: scaleX(0);
}
.price-missing {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.demo-disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin: 27px 0 0;
}
.photo-placeholder {
  height: 100%;
  width: 100%;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  background: #e9e7e1;
  color: #626568;
  gap: 10px;
}
.photo-placeholder > span {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.photo-placeholder > small {
  font-size: 11px;
}
.editorial {
  background: var(--dark);
  color: var(--paper);
  grid-template-columns: 54% 46%;
  overflow: hidden;
}
.editorial-photo {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #363a3c;
}
.editorial-photo img {
  height: 100%;
  max-height: 820px;
  min-height: 610px;
  object-fit: cover;
  object-position: center;
}
.editorial-caption {
  position: absolute;
  bottom: 28px;
  left: 40px;
  font-size: 11px;
  color: #e1e2df;
  background: #15191b66;
  padding: 4px 7px;
}
.editorial-copy {
  padding: 74px 14%;
  align-self: center;
}
.editorial-copy .eyebrow {
  color: #b5b7b9;
}
.editorial-copy h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 4.7vw, 90px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 27px;
}
.editorial-copy p {
  color: #bfc1c2;
  font-size: 13px;
  line-height: 1.95;
  margin-bottom: 26px;
}
.editorial-copy .text-link {
  font-size: 12px;
}
.contact-strip {
  padding: 85px 0;
  align-items: end;
}
.contact-strip h2 {
  font-size: clamp(42px, 4.6vw, 78px);
  margin: 0;
}
.contact-strip-aside p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.8;
}
.contact-strip-aside {
  padding-bottom: 4px;
}
.footer {
  background: #202325;
  padding: 66px 0 23px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding-bottom: 64px;
  gap: 80px;
}
.footer .brand img {
  width: 236px;
}
.footer .brand-tagline {
  font-size: 11px;
  color: #c7c9cb;
  letter-spacing: 0.15em;
}
.footer p {
  font-size: 12px;
  line-height: 1.9;
  color: #a9adaf;
  margin-top: 25px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: start;
  font-size: 12px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #d0d2d3;
  overflow-wrap: anywhere;
}
.footer-contact p {
  margin: 0;
}
.footer-bottom {
  font-size: 11px;
  line-height: 1.7;
  gap: 25px;
}
.footer-bottom > div {
  display: flex;
  gap: 30px;
}
.footer a:hover {
  color: white;
}
/* Catalog, showroom and text pages share the same typographic rhythm. */
.page-head {
  padding: 57px 0 42px;
  border: 0;
}
.page-head h1 {
  font-size: clamp(44px, 5.6vw, 88px);
  font-weight: 500;
  max-width: 1100px;
  overflow-wrap: anywhere;
  margin-bottom: 22px;
}
.page-head p {
  font-size: 14px;
}
.catalog-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
}
.catalog-toolbar {
  padding: 15px 0 28px;
  align-items: center;
}
.catalog .cards {
  gap: 45px 32px;
}
.filters {
  padding-top: 24px;
}
.filter-title {
  gap: 12px;
  margin-bottom: 12px;
}
.filters h3 {
  font-size: 24px;
  margin: 0;
}
.filters label {
  font-size: 11px;
  margin-bottom: 17px;
}
.filters .btn {
  margin-top: 10px;
}
.filters input,
.filters select {
  font-size: 12px;
  background: #eeece6;
  border-color: #d1d0c9;
}
.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.catalog-toolbar select {
  margin: 0;
  border-color: #cecec8;
}
.pagination button {
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s;
}
.empty {
  padding: 55px 25px;
  background: #eeece7;
  border: 0;
  color: #65696b;
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
.empty h3 {
  font-size: 26px;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.empty p {
  font-size: 13px;
  margin: 0;
}
.vehicle-top {
  gap: 45px;
}
.vehicle-top > div:first-child {
  min-width: 0;
}
.vehicle-top h1 {
  font-size: clamp(40px, 4.7vw, 76px);
  max-width: 1100px;
}
.vehicle-top p {
  font-size: 14px;
  max-width: 760px;
}
.vehicle-price {
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.2;
  padding-bottom: 4px;
}
.vehicle-price small {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.vehicle-price .price-missing {
  font-size: 23px;
}
.breadcrumbs {
  font-size: 11px;
  margin-bottom: 33px;
}
.notice {
  font-size: 11px;
  background: #eae8e1;
  border-left: 1px solid #9e9f9c;
  padding: 13px 17px;
}
.showroom-gallery {
  height: clamp(460px, 41vw, 820px);
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
}
.showroom-gallery.single {
  grid-template-columns: 1fr;
}
.showroom-gallery.pair {
  grid-template-columns: 1fr 1fr;
}
.showroom-gallery > button {
  background: #e5e3dd;
}
.showroom-gallery.single > button img {
  object-fit: contain;
  background: #e5e3dd;
}
.showroom-gallery > button::before {
  content: "Otwórz galerię";
  position: absolute;
  bottom: 22px;
  right: 22px;
  color: #fff;
  background: #202426cf;
  padding: 9px 15px;
  font-size: 11px;
  z-index: 1;
  transition: background 0.2s;
}
.showroom-gallery > button:not(:first-child)::before {
  display: none;
}
.showroom-gallery > button:nth-child(3)::after {
  font-size: 12px;
  background: #0f15173d;
}
.showroom-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  gap: 75px;
  padding: 45px 0 40px;
}
.specs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 45px;
}
.specs div {
  padding: 19px 16px 19px 0;
}
.specs dt {
  font-size: 10px;
  line-height: 1.5;
}
.specs dd {
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.showroom-layout h2 {
  font-size: 40px;
  max-width: 550px;
}
.showroom-layout h3 {
  font-size: 26px;
  margin-top: 32px;
}
.vehicle-description {
  font-size: 14px;
  line-height: 1.9;
  max-width: 740px;
  overflow-wrap: anywhere;
}
.equipment {
  font-size: 12px;
  line-height: 1.85;
  column-gap: 30px;
}
.equipment li {
  break-inside: avoid;
  padding: 6px 0;
}
.inquiry-box {
  background: #eeece6;
  padding: 31px;
  border: 0;
}
.inquiry-box h2 {
  font-size: 31px;
}
.inquiry-box .eyebrow {
  font-size: 10px;
}
.inquiry-box input,
.inquiry-box textarea {
  background: var(--paper);
  border-color: #c8c8c1;
}
.inquiry-box label {
  font-size: 11px;
}
.inquiry-box .form-note {
  font-size: 10px;
  line-height: 1.7;
}
.inquiry-box .check {
  align-items: start;
  line-height: 1.8;
}
.contact-grid {
  gap: 100px;
  padding-top: 12px;
}
.contact-details h2 {
  font-size: 44px;
}
.contact-details > p {
  font-size: 14px;
  max-width: 330px;
}
.contact-details dd {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.contact-details dl {
  margin-bottom: 40px;
}
.contact-details dt {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.contact-form > button {
  min-width: 210px;
}
.contact-form .check {
  line-height: 1.8;
}
.contact-form .text-link {
  font-size: inherit;
  padding: 0;
}
.contact-form .error:not(:empty) {
  padding: 13px 15px;
  margin: 15px 0;
  background: #f1e4df;
  border-left: 2px solid #9e483d;
}
.error {
  font-size: 12px;
}
.success {
  background: #e7e9e3;
  color: #354338;
  border-color: #bbc3b7;
  font-size: 13px;
}
.about-lead {
  gap: 100px;
  align-items: start;
  margin-bottom: 90px;
}
.about-lead > img {
  aspect-ratio: 1.12;
  max-height: 720px;
  object-fit: cover;
}
.about-lead > div {
  padding-top: 30px;
}
.about-lead p {
  font-size: 15px;
  line-height: 1.9;
}
.about-lead h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 30px;
}
.page-body {
  max-width: 850px;
  font-size: 14px;
  line-height: 1.9;
}
.page-body h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
}
.form-note {
  font-size: 11px;
  line-height: 1.8;
}
.loading {
  min-height: 45vh;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
}
/* Motion is opt-in through JS; content is visible without it. */
.motion-hero .hero-visual {
  animation: hero-mask 1050ms var(--ease-cinema) both;
}
.motion-hero .hero-visual img {
  animation: hero-settle 1150ms var(--ease-cinema) both;
}
.motion-hero .hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.13em;
  margin-bottom: -0.13em;
}
.motion-hero .hero-line > span {
  display: block;
  animation: type-reveal 720ms var(--ease-cinema) both;
  animation-delay: calc(130ms + var(--line-index) * 90ms);
}
.motion-hero .hero-copy > .eyebrow {
  animation: soft-appear 450ms 80ms both;
}
.motion-hero .intro {
  animation: soft-appear 500ms 390ms both;
}
.motion-hero .btn {
  animation: soft-appear 450ms 470ms both;
}
.motion-hero .hero-caption {
  animation: soft-appear 450ms 550ms both;
}
.nav-arrive {
  animation: nav-settle 450ms 70ms both;
}
.will-reveal {
  opacity: 1;
}
.will-reveal .editorial-photo img,
.editorial-photo.will-reveal img {
  clip-path: inset(0 100% 0 0);
}
.editorial-photo.is-visible img {
  animation: editorial-unveil 850ms var(--ease-cinema) both;
}
.section-head.is-visible h2 {
  animation: heading-settle 650ms var(--ease-cinema) both;
}
.car.is-visible .car-photo {
  animation: card-reveal 550ms var(--ease-out) both;
}
.car.is-visible .car-data {
  animation: soft-appear 420ms 100ms both;
}
.contact-strip.is-visible .text-link::after {
  transform: scaleX(1);
}
#toast {
  font-size: 12px;
  background: #272b2e;
  border: 1px solid #53585b;
  border-radius: 0;
  animation: toast-enter 220ms var(--ease-out);
}
.admin-content {
  min-width: 0;
  animation: admin-enter 180ms ease-out;
}
.admin-side button,
.admin-table button {
  min-height: 44px;
}
.photo-editor {
  transition:
    border-color 150ms,
    opacity 150ms,
    transform 150ms;
}
.photo-editor.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}
.photo-editor.drop-target {
  border-color: #3e464c;
  background: #e5e5de;
}
.upload:has(input:disabled) {
  background: #e5e6e1;
}
.upload progress {
  accent-color: #5a6267;
  height: 6px;
}
.admin-content .error:not(:empty) {
  animation: soft-appear 160ms;
}
.admin-table td {
  vertical-align: middle;
}
.admin-content form[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}
.admin-content [data-save-state="saved"] {
  outline: 1px solid #8c9a8a;
  outline-offset: 5px;
}
#lightbox {
  background: #15191c;
  padding: 62px 55px 64px;
  overflow: hidden;
  touch-action: pan-y;
}
#lightbox::backdrop {
  background: #15191c;
}
#lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 130px);
  object-fit: contain;
  transform-origin: center;
  cursor: zoom-in;
  user-select: none;
}
#lightbox.zoomed img {
  cursor: zoom-out;
  transform: scale(1.8);
}
#lightbox.zoomed {
  touch-action: none;
}
#lightbox button {
  background: #292f33dd;
  border: 1px solid #5b6064;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  font-size: 25px;
  z-index: 3;
  color: #f2f3f2;
}
#lightbox .close {
  top: 17px;
  right: 22px;
}
#lightbox .prev {
  left: 15px;
}
#lightbox .next {
  right: 15px;
}
#lightbox .zoom-toggle {
  position: absolute;
  top: 17px;
  right: 80px;
  font-size: 16px;
}
#lightbox p {
  bottom: 15px;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #c4c8cb;
  margin: 0;
}
.gallery-enter::backdrop {
  animation: soft-appear 230ms both;
}
@keyframes hero-mask {
  from {
    clip-path: inset(0 0 8% 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes hero-settle {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}
@keyframes type-reveal {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes soft-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes editorial-unveil {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes heading-settle {
  from {
    opacity: 0.35;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-reveal {
  from {
    opacity: 0.25;
    clip-path: inset(0 0 7% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@keyframes toast-enter {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes admin-enter {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
::view-transition-group(vehicle-focus) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease-cinema);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
html[data-motion-navigation]::view-transition-old(root) {
  animation: soft-appear 150ms reverse both;
}
html[data-motion-navigation]::view-transition-new(root) {
  animation: soft-appear 200ms both;
}
::view-transition-old(vehicle-focus),
::view-transition-new(vehicle-focus) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
  animation-duration: 350ms;
}
::view-transition-group(results) {
  animation-duration: 220ms;
}
::view-transition-old(results) {
  animation: soft-appear 120ms reverse both;
}
::view-transition-new(results) {
  animation: soft-appear 180ms both;
}
@media (hover: hover) and (pointer: fine) {
  .car-link:hover .car-photo img {
    transform: scale(1.035);
  }
  .car-link:hover .photo-cta {
    opacity: 1;
    transform: none;
  }
  .car-link:hover .price-row::before {
    transform: scaleX(1);
  }
  .car-link:hover .car-photo .demo {
    opacity: 1;
  }
  .showroom-gallery > button:hover::before {
    background: #41494ef5;
  }
  .car-link:focus-visible .photo-cta {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1920px) {
  .hero-content {
    max-width: 2160px;
    width: calc(100% - 160px);
  }
  .cinematic .hero-copy {
    width: 35%;
  }
  .hero-caption {
    bottom: 40px;
  }
  .cinematic .intro {
    font-size: 16px;
    max-width: 420px;
  }
  .cinematic .btn {
    font-size: 13px;
    padding: 17px 32px;
  }
  .cinematic .eyebrow {
    font-size: 12px;
  }
  .nav {
    height: 115px;
  }
  .brand img {
    width: 200px;
  }
  .section {
    padding: 110px 0;
  }
  .cards {
    gap: 44px;
  }
  .car-photo {
    aspect-ratio: 1.46;
  }
  .editorial-copy {
    padding: 90px 16%;
  }
}
@media (max-width: 1200px) {
  .wrap {
    width: calc(100% - 72px);
  }
  .nav {
    height: 92px;
    gap: 25px;
  }
  .nav-links {
    gap: 28px;
  }
  .brand img {
    width: 164px;
  }
  .brand-tagline {
    font-size: 9px;
  }
  .hero.cinematic {
    height: 650px;
  }
  .cinematic h1 {
    font-size: 90px;
  }
  .cinematic .hero-copy {
    width: 40%;
  }
  .cinematic .intro {
    font-size: 12px;
  }
  .section-head {
    gap: 35px;
  }
  .cards {
    gap: 22px;
  }
  .car-data h3 {
    font-size: 26px;
  }
  .car-photo .badge {
    left: 12px;
    top: 12px;
    font-size: 9px;
  }
  .price-row {
    align-items: start;
    gap: 10px;
  }
  .price-row strong {
    font-size: 24px;
  }
  .price-row .text-link {
    font-size: 9px;
  }
  .editorial-copy {
    padding: 55px 12%;
  }
  .editorial-photo,
  .editorial-photo img {
    min-height: 560px;
  }
  .catalog-layout {
    gap: 32px;
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .showroom-layout {
    gap: 40px;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  }
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-top {
    gap: 45px;
  }
  .contact-grid {
    gap: 60px;
  }
  .about-lead {
    gap: 55px;
  }
  .inquiry-box {
    padding: 25px;
  }
  .showroom-layout h2 {
    font-size: 34px;
  }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .cinematic .hero-copy {
    width: 40%;
    padding-bottom: 35px;
  }
  .cinematic h1 {
    font-size: clamp(69px, 8vw, 88px);
  }
  .cinematic .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .hero.cinematic {
    height: 590px;
  }
  .hero-visual img {
    object-position: 58% 100% !important;
  }
  .cinematic .btn {
    padding: 13px 17px;
    font-size: 11px;
  }
  .cinematic .intro {
    max-width: 250px;
  }
  .brand img {
    width: 145px;
  }
  .nav-links {
    gap: 22px;
    font-size: 11px;
  }
  .nav .contact-link {
    padding: 10px 16px;
    font-size: 10px;
  }
  .cards {
    gap: 20px;
  }
  .car-photo {
    aspect-ratio: 1.15;
  }
  .price-row {
    flex-direction: column;
    gap: 4px;
  }
  .price-row strong {
    font-size: 23px;
  }
  .price-row .text-link {
    font-size: 10px;
  }
  .car-data .variant {
    font-size: 10px;
  }
  .spec-line {
    font-size: 10px;
  }
  .spec-line span + span::before {
    padding: 0 7px;
  }
  .editorial-copy h2 {
    font-size: 51px;
  }
  .editorial {
    grid-template-columns: 52% 48%;
  }
  .editorial-photo,
  .editorial-photo img {
    min-height: 530px;
  }
  .contact-strip h2 {
    font-size: 46px;
  }
  .contact-strip-aside p {
    font-size: 12px;
  }
  .showroom-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .inquiry-box {
    max-width: none;
  }
  .inquiry-box .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inquiry-box .full {
    grid-column: 1/-1;
  }
  .inquiry-box label {
    margin: 6px 0;
  }
  .inquiry-box .btn {
    width: auto;
  }
  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .catalog .cards {
    gap: 30px 22px;
  }
  .contact-grid {
    gap: 35px;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .footer-top {
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 30px;
  }
  .footer .brand img {
    width: 190px;
  }
  .about-lead h2 {
    font-size: 46px;
  }
  .about-lead > div {
    padding-top: 10px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .top-note {
    font-size: 9px;
    padding: 5px 15px;
  }
  .nav {
    height: 82px;
    gap: 20px;
  }
  .brand img {
    width: 158px;
  }
  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .brand {
    gap: 7px;
  }
  .nav .contact-link {
    display: none;
  }
  .menu {
    display: flex;
    gap: 14px;
    align-items: center;
    background: none;
    border: 0;
    padding: 12px 0 12px 16px;
    font-size: 11px;
    min-height: 44px;
  }
  .nav-links {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 22px 20px 30px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 15px #1c23260a;
    gap: 9px;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 220ms,
      transform 260ms var(--ease-out),
      visibility 260ms;
  }
  .nav-links.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
  }
  .nav-links > a {
    font-size: 24px;
    line-height: 1.4;
    padding: 9px 0;
    width: 100%;
  }
  .nav-links > a::after {
    display: none;
  }
  .nav-links > a.active {
    padding-bottom: 9px;
  }
  .nav-links > .mobile-contact {
    display: block;
    font-size: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--muted);
  }
  .hero.cinematic {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }
  .hero-content {
    display: contents;
  }
  .cinematic .hero-copy {
    width: auto;
    max-width: none;
    align-self: auto;
    order: 0;
    padding: 37px 20px 29px;
    position: relative;
    z-index: 1;
  }
  .cinematic .hero-visual {
    position: relative;
    inset: auto;
    order: 1;
    height: auto;
    aspect-ratio: 1.48;
    z-index: 0;
    background: #10161b;
    min-height: 0;
    display: block;
    overflow: hidden;
  }
  .cinematic .hero-visual img {
    object-fit: cover;
    object-position: 50% 58%;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }
  .hero-shade {
    display: none;
  }
  .cinematic .eyebrow {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 21px;
    color: #bec3c5;
  }
  .cinematic h1 {
    font-size: clamp(57px, 14.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 20px;
  }
  .cinematic h1 br:first-of-type {
    display: none;
  }
  .cinematic h1 br:first-of-type::after {
    content: " ";
  }
  .cinematic .intro {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 310px;
  }
  .cinematic .btn {
    min-height: 48px;
    font-size: 11px;
    padding: 12px 23px;
  }
  .hero-caption {
    position: relative;
    order: 2;
    padding: 12px 20px;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 12px;
    background: #151b20;
    font-size: 9px;
  }
  .hero-caption small {
    font-size: 9px;
  }
  .discovery-bar {
    padding: 16px 0;
    gap: 14px;
    align-items: start;
  }
  .discovery-bar p {
    font-size: 11px;
    max-width: 160px;
    line-height: 1.7;
  }
  .discovery-bar .text-link {
    font-size: 10px;
    white-space: nowrap;
    padding: 3px 0;
  }
  .discovery-bar .count {
    margin-left: 9px;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    gap: 18px;
    align-items: start;
    margin-bottom: 28px;
  }
  .section-head h2 {
    font-size: 43px;
    line-height: 1.08;
  }
  .section-head .eyebrow {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .section-head p {
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 12px;
  }
  .section-aside {
    max-width: none;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: end;
    width: 100%;
  }
  .section-aside .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .section-aside p {
    font-size: 10px;
    margin: 0;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .car-photo {
    aspect-ratio: 1.35;
  }
  .car-photo .badge {
    font-size: 10px;
    padding: 6px 10px;
  }
  .car-photo .demo {
    font-size: 9px;
  }
  .car-data {
    padding-top: 19px;
  }
  .car-heading {
    gap: 20px;
  }
  .car-data h3 {
    font-size: 31px;
  }
  .car-brand {
    font-size: 11px;
  }
  .car-year {
    font-size: 12px;
  }
  .car-data .variant {
    font-size: 11px;
    margin: 10px 0 13px;
  }
  .spec-line {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .price-row {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
  }
  .price-row strong {
    font-size: 26px;
  }
  .price-row .text-link {
    font-size: 10px;
  }
  .demo-disclaimer {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 23px;
  }
  .editorial {
    grid-template-columns: 1fr;
  }
  .editorial-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.3;
  }
  .editorial-photo img {
    min-height: 0;
    height: 100%;
    max-height: none;
    width: 100%;
  }
  .editorial-caption {
    left: 20px;
    bottom: 16px;
    font-size: 10px;
  }
  .editorial-copy {
    padding: 39px 25px 45px;
  }
  .editorial-copy h2 {
    font-size: 53px;
    line-height: 1.07;
    margin-bottom: 22px;
  }
  .editorial-copy h2 br:nth-child(2) {
    display: none;
  }
  .editorial-copy p {
    font-size: 12px;
    line-height: 1.9;
  }
  .editorial-copy .eyebrow {
    font-size: 10px;
  }
  .contact-strip {
    padding: 50px 0;
    gap: 25px;
    align-items: start;
  }
  .contact-strip h2 {
    font-size: 45px;
    line-height: 1.1;
  }
  .contact-strip-aside p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 22px;
  }
  .contact-strip .eyebrow {
    font-size: 10px;
  }
  .footer {
    padding: 43px 0 24px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
    padding-bottom: 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer .brand img {
    width: 225px;
  }
  .footer .brand-tagline {
    font-size: 10px;
  }
  .footer p {
    font-size: 11px;
    margin-top: 20px;
  }
  .footer-nav {
    font-size: 11px;
    gap: 13px;
  }
  .footer-contact {
    font-size: 11px;
  }
  .footer-contact p {
    font-size: 10px;
    margin: 0;
    line-height: 1.8;
  }
  .footer-bottom {
    font-size: 9px;
    gap: 18px;
    flex-direction: column;
    padding-top: 20px;
  }
  .footer-bottom > div {
    gap: 25px;
    font-size: 10px;
  }
  .page-head {
    padding: 35px 0 28px;
  }
  .page-head .eyebrow {
    font-size: 10px;
  }
  .page-head h1 {
    font-size: 43px;
    line-height: 1.1;
    margin-bottom: 18px;
  }
  .page-head p {
    font-size: 12px;
  }
  .catalog-layout {
    display: block;
  }
  .catalog .cards {
    gap: 34px;
  }
  .catalog-toolbar {
    gap: 12px;
    align-items: center;
    padding-top: 15px;
    font-size: 10px;
  }
  .catalog-toolbar label {
    display: block;
    font-size: 9px;
  }
  .catalog-toolbar select {
    width: 162px;
    font-size: 11px;
    min-height: 42px;
    margin-top: 4px;
    padding: 9px;
  }
  .mobile-filter {
    font-size: 11px;
    min-height: 46px;
  }
  .filters .filter-title {
    margin-bottom: 20px;
  }
  .filters label {
    font-size: 11px;
  }
  .vehicle-top {
    gap: 23px;
    align-items: start;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .vehicle-top h1 {
    font-size: 42px;
    line-height: 1.1;
  }
  .vehicle-top p {
    font-size: 12px;
  }
  .vehicle-price {
    font-size: 33px;
    white-space: normal;
    line-height: 1.25;
  }
  .vehicle-price small {
    font-size: 11px;
  }
  .breadcrumbs {
    font-size: 10px;
    line-height: 1.7;
    margin-bottom: 25px;
  }
  .notice {
    font-size: 10px;
    padding: 11px 13px;
  }
  .showroom-gallery {
    height: 300px;
    grid-template-columns: 1fr;
  }
  .showroom-gallery > button:not(:first-child) {
    display: none;
  }
  .showroom-gallery.pair {
    grid-template-columns: 1fr;
  }
  .showroom-gallery > button:first-child {
    grid-row: auto;
  }
  .showroom-gallery > button::before {
    right: 14px;
    bottom: 14px;
    font-size: 10px;
    padding: 8px 12px;
  }
  .showroom-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0 10px;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 31px;
  }
  .specs dd {
    font-size: 15px;
  }
  .specs dt {
    font-size: 10px;
  }
  .showroom-layout h2 {
    font-size: 34px;
  }
  .showroom-layout h3 {
    font-size: 25px;
  }
  .vehicle-description {
    font-size: 13px;
    line-height: 1.9;
  }
  .equipment {
    font-size: 12px;
    columns: 1;
  }
  .inquiry-box {
    padding: 25px 20px;
  }
  .inquiry-box h2 {
    font-size: 32px;
  }
  .inquiry-box .form-grid {
    display: block;
  }
  .inquiry-box .btn {
    width: 100%;
  }
  .inquiry-box .check {
    font-size: 10px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 0;
    padding-bottom: 50px;
  }
  .contact-details h2 {
    font-size: 38px;
  }
  .contact-details dd {
    font-size: 20px;
  }
  .contact-details p {
    font-size: 12px;
  }
  .contact-form .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-form label {
    font-size: 11px;
  }
  .contact-form .form-note {
    font-size: 10px;
  }
  .about-lead {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 50px;
  }
  .about-lead > div {
    padding-top: 0;
  }
  .about-lead > img {
    aspect-ratio: 1.25;
  }
  .about-lead h2 {
    font-size: 43px;
  }
  .about-lead p {
    font-size: 13px;
    line-height: 1.9;
  }
  .page-body {
    font-size: 12px;
    line-height: 1.9;
  }
  .page-body h2 {
    font-size: 27px;
  }
  .page-body p {
    overflow-wrap: anywhere;
  }
  #lightbox {
    padding: 65px 18px;
  }
  #lightbox img {
    max-height: calc(100dvh - 145px);
  }
  #lightbox .prev {
    left: 8px;
    bottom: 12px;
    top: auto;
  }
  #lightbox .next {
    right: 8px;
    bottom: 12px;
    top: auto;
  }
  #lightbox .close {
    right: 15px;
  }
  #lightbox .zoom-toggle {
    right: 70px;
  }
  #lightbox p {
    bottom: 25px;
  }
  .admin-content .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-content h1 {
    font-size: 32px;
  }
  .admin-side h2 {
    font-size: 24px;
  }
  .admin-shell {
    min-height: 60vh;
  }
  .admin-content .site-images {
    grid-template-columns: 1fr;
  }
  .admin-content .full {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .will-reveal,
  .will-reveal * {
    opacity: 1 !important;
    clip-path: none !important;
  }
  .cinematic .hero-visual img {
    transform: none !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .section-head,
  .contact-strip {
    flex-direction: column;
  }
  .mobile-filter {
    display: inline-flex;
  }
  .filters {
    display: none;
  }
  .filters.open {
    display: block;
  }
  .hero-line:first-child,
  .hero-line:nth-child(2) {
    display: block;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .cards,
  .catalog .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cinematic .hero-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    padding: 35px 36px;
  }
  .cinematic .hero-copy h1 {
    grid-row: span 3;
    font-size: 70px;
    margin: 0;
  }
  .cinematic .hero-copy > .eyebrow {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 20px;
  }
  .cinematic .intro {
    grid-column: 2;
    align-self: center;
  }
  .cinematic .btn {
    grid-column: 2;
    align-self: start;
    justify-self: start;
  }
  .cinematic .hero-visual {
    aspect-ratio: 1.8;
  }
  .section-aside {
    max-width: 410px;
  }
}
@media (max-width: 430px) {
  .cinematic h1 {
    font-size: 58px;
  }
  .cinematic .hero-copy {
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .cinematic .eyebrow {
    margin-bottom: 18px;
  }
  .cinematic .intro {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .cinematic .hero-caption > span {
    max-width: 180px;
  }
  .price-row .text-link {
    font-size: 9px;
  }
}

#lightbox img {
  transition: transform 240ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  #lightbox img {
    transition: none !important;
  }
}

.car-link[aria-busy="true"] .car-photo::after {
  content: "Wczytujemy samochód…";
  position: absolute;
  inset: auto 12px 12px auto;
  background: #22272ce8;
  color: white;
  padding: 7px 11px;
  font-size: 10px;
}
.car-link[aria-busy="true"] .photo-cta {
  display: none;
}

@keyframes nav-settle {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}
/* Permanent typography layout is separate from its one-off animation. */
.cinematic .hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.13em;
  margin-bottom: -0.13em;
  color: inherit;
}
.cinematic .hero-line > span {
  display: block;
  color: inherit;
}
.cinematic h1 .hero-line:last-child {
  color: #c6c8c9;
}
@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-line > span {
    clip-path: none !important;
    transform: none !important;
  }
}
