@font-face {
  font-family: "Open Sans Condensed";
  src: url("fonts/open-sans-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:is(.rally-page, .rally-shop) {
  --navy-deep: #10161f;
  --navy: #151e2a;
  --paper: #eef0f2;
  --line: #d5dae0;
  --ink: #16202a;
  --muted: #465363;
  --blue: #1e48c6;
  --blue-light: #a9c2ff;
  --edge: #364456;
  --surface: #1d2835;
  --display: "Open Sans Condensed", "Arial Narrow", sans-serif;
  font-family: "Open Sans", system-ui, sans-serif;
}
:is(.rally-page, .rally-shop) :is(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.015em;
}
:is(.rally-page, .rally-shop) h2 { font-size: clamp(2.5rem, 5vw, 4.65rem); }
:is(.rally-page, .rally-shop) h3 { font-size: clamp(1.65rem, 2.45vw, 2.25rem); }
:is(.rally-page, .rally-shop) header {
  background: var(--navy-deep);
  color: white;
  border-color: var(--edge);
}
:is(.rally-page, .rally-shop) header .wrap { width: min(94%, 83rem); }
:is(.rally-page, .rally-shop) header nav { gap: clamp(.85rem, 2vw, 1.8rem); }
:is(.rally-page, .rally-shop) header nav a { white-space: nowrap; }
:is(.rally-page, .rally-shop) header nav a:hover,
.rally-shop header nav a[aria-current="page"],
:is(.rally-page, .rally-shop) .brand-accent { color: var(--blue-light); }
:is(.rally-page, .rally-shop) .brand { font-family: var(--display); font-size: 1.85rem; }
:is(.rally-page, .rally-shop) .brand small { font-family: "Open Sans", sans-serif; }
:is(.rally-page, .rally-shop) .button,
:is(.rally-page, .rally-shop) .top-contact { padding: .75rem 1.2rem; border-radius: .5rem; }
:is(.rally-page, .rally-shop) .eyebrow { font-size: .83rem; }
:is(.rally-page, .rally-shop) .secondary:hover { border-color: transparent; }
.rally-page .hero {
  min-height: clamp(550px, 48vw, 720px);
  background: var(--navy-deep);
  border: 0;
}
.rally-page .hero-photo { width: 100%; object-position: center 60%; }
.rally-page .hero::before {
  background: linear-gradient(90deg, #10161ff5 1%, #10161fdb 27%, #10161f75 48%, #10161f12 72%),
    linear-gradient(0deg, #10161fc7, transparent 36%);
}
.rally-page .hero-inner { padding-block: 4rem; }
.rally-page .hero h1, .rally-shop .shop-intro h1 {
  font-size: clamp(4.3rem, 10vw, 10rem);
  line-height: .89;
  text-transform: uppercase;
}
.rally-page .hero h1 span, .rally-shop .shop-intro h1 span { color: var(--blue-light); }
.rally-page .hero .eyebrow { color: var(--blue-light); margin-bottom: 1.2rem; }
.rally-page .hero-inner > p:not(.eyebrow) { max-width: 41ch; font-size: 1.075rem; }
.rally-page .brands { background: var(--navy-deep); border-color: var(--edge); }
.rally-page .brands .wrap { min-height: 74px; }
.rally-page .brands p { color: #aab8c9; }
.rally-page .brands ul { color: white; font-size: 1.13rem; }
.rally-page #oferta { background: #f7f8fa; }
.service-tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.65rem;
}
.service-tiles article { grid-column: span 5; min-width: 0; }
.service-tiles article:nth-child(4n+1), .service-tiles article:nth-child(4n+4) { grid-column: span 7; }
.service-tiles a {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(220px, 25vw, 325px);
  overflow: hidden;
  isolation: isolate;
  border-radius: .8rem;
  color: white;
  background: var(--surface);
  text-decoration: none;
}
.service-tiles .service-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  object-position: center 52%;
  transition: transform .25s ease;
}
.service-tiles a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg,#10161ff7 0%,#10161fb5 30%,#10161f12 76%);
}
.service-tiles a:hover img { transform: scale(1.045); }
.service-tiles a:hover h3 { color: var(--blue-light); }
.tile-copy { padding: clamp(1.1rem, 2.6vw, 2rem); }
.tile-copy p { margin: .3rem 0 0; color: #e5ecf7; }
.rally-page .workshop-band { border: 0; background: var(--paper); }
.rally-page .workshop-reverse { background: white; }
.workshop-layout, .build-lead, .race-lead, .transport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.75rem);
  align-items: center;
}
.workshop-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.workshop-reverse .workshop-copy { order: 2; }
.workshop-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: .8rem;
}
.workshop-copy p:last-child { margin-bottom: 0; }
.workshop-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.workshop-specs article, .build-grid article {
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border-radius: .75rem;
  border-top: 3px solid var(--blue);
  background: white;
  box-shadow: 0 10px 28px #18253512;
}
.workshop-reverse .workshop-specs article { background: var(--paper); }
.workshop-specs :is(h3, p), .build-grid :is(h3, p), .race-stages :is(h3, p) { margin: 0; }
.workshop-specs article p, .build-grid article p, .race-stages article p { margin-top: .65rem; }
.workshop-specs .actions { grid-column: 1 / -1; margin-top: .4rem; }
.rally-page #baja {
  border: 0;
  background: var(--navy-deep);
  color: white;
}
.build-lead { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.build-lead p, .race-feature p { color: #cad5e2; }
.build-lead .eyebrow, .race-feature .eyebrow { color: var(--blue-light); }
.build-lead .button, .race-feature .button { margin-top: .4rem; }
.feature-photo { margin: 0; overflow: hidden; border-radius: .8rem; }
.feature-photo img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.build-grid, .race-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.build-grid article, .race-stages article {
  background: var(--surface);
  color: white;
  border: 1px solid var(--edge);
}
.build-grid article p { color: #cad5e2; }
.rally-page .race-feature { border-color: var(--edge); background: var(--navy); color: white; }
.rally-coverage { overflow: hidden; border-radius: .8rem; background: var(--surface); }
.rally-coverage .paddock { aspect-ratio: 16 / 9; margin: 0; }
.rally-coverage > div { padding: 1.2rem 1.4rem; }
.rally-coverage p { margin: .45rem 0 0; }
.race-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.race-stages article { padding: 1.3rem; border-radius: .75rem; }
.rally-page .transport { background: #e7eefc; border: 0; }
.transport-layout { align-items: start; }
.transport-steps { list-style: none; padding: 0; counter-reset: transport; }
.transport-steps li {
  counter-increment: transport;
  position: relative;
  padding: .2rem 0 1rem 3.1rem;
  border: 0;
}
.transport-steps li::before {
  content: counter(transport);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 700;
}
.rally-page .projects { background: var(--navy-deep); color: white; }
.rally-page .gallery { grid-auto-flow: dense; grid-auto-rows: clamp(140px, 18vw, 230px); gap: .7rem; }
.rally-page .gallery figure { grid-column: span 4; }
.rally-page .gallery figure:first-child { grid-column: span 8; grid-row: span 2; }
.rally-page .gallery figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.rally-page .gallery a, .rally-page .gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.rally-page .gallery a { border-radius: .65rem; background: var(--surface); }
.rally-page .gallery .dakar-photo { object-fit: cover; background: var(--surface); }
.rally-page .pricing { border: 0; background: var(--paper); }
.price-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.price-feature article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .35rem 1rem;
  padding: clamp(1rem, 2.7vw, 2rem);
  border-radius: .8rem;
  background: var(--navy);
  color: white;
}
.price-feature article:nth-child(2) { background: var(--blue); }
.price-feature p { grid-column: 1 / -1; margin: 0; color: #dbe5f5; }
.price-feature article > span { grid-column: 2; text-align: right; color: #e3edff; font-size: .88rem; }
.price-feature strong { font: 700 clamp(2.2rem, 5vw, 4.3rem)/1 var(--display); white-space: nowrap; }
.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.price-list li { display: grid; gap: .3rem; background: white; border: 1px solid var(--line); border-radius: .6rem; padding: .85rem 1.05rem; }
.price-list strong { color: var(--blue); }
.rally-page .faq-section { background: white; }
.rally-page .workshop-faq details { border: 1px solid var(--line); padding: .95rem 1.15rem; margin-bottom: .55rem; border-radius: .65rem; }
.rally-page .workshop-faq details[open] { background: var(--paper); }
.rally-page .contact { background: var(--navy); color: white; border: 0; }
.rally-page .contact p, .rally-page .contact .secondary { color: #dbe5f3; }
.rally-page .contact :is(.contact-phone, .contact-note a) { color: var(--blue-light); overflow-wrap: anywhere; }
.contact-phone { display: inline-block; font: 700 clamp(2.1rem, 5vw, 3.4rem)/1.12 var(--display); text-decoration: none; }
.rally-page .contact #inquiry, .rally-shop #shop-inquiry { background: white; color: var(--ink); border-radius: .8rem; padding: clamp(1.1rem, 3vw, 2rem); }
.rally-page .contact #inquiry #status { color: var(--muted); }
.rally-page .contact .actions { margin-top: 1.2rem; }
:is(.rally-page, .rally-shop) :is(input, select, textarea) { border-radius: .4rem; }
.rally-shop .shop-intro { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); }
.shop-cover { position: absolute; inset: 0 0 0 auto; width: 60%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.rally-shop .shop-intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, var(--navy-deep) 35%, #10161fd4 48%, #10161f32 100%);
}
.rally-shop .shop-intro h1 { font-size: clamp(3.1rem, 8.1vw, 8rem); }
.rally-shop .shop-intro .actions { margin-top: 1.45rem; }
.rally-shop .shop-intro .secondary { color: white; }
.rally-shop .shop-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rally-shop .shop-categories article { border-radius: .8rem; border-top: 3px solid var(--blue); }
.rally-shop .catalog-search { background: var(--navy); color: white; padding: 1.35rem 0; }
.rally-shop .catalog-search p { color: #cbd7e5; }
.rally-shop .catalog-section { background: #eef0f2; }
.rally-shop .catalog-section:nth-of-type(even) { background: #f7f8fa; }
.rally-shop .product { overflow: hidden; border-radius: .75rem; box-shadow: 0 8px 23px #1825350a; }
.rally-shop .product-spec { border-top: 3px solid #c1d0ee; }
.rally-shop .product > div { padding: 1.15rem; }
.rally-shop .product h4 { font-family: var(--display); font-size: 1.65rem; }
.rally-shop .product a { display: inline-block; color: white; background: var(--blue); padding: .5rem .7rem; border-radius: .4rem; text-decoration: none; }
.rally-shop .product a:hover { background: #163ba9; }
.rally-shop #dostawa { background: #e7eefc; }
.rally-shop #zapytanie { background: var(--paper); }
@media (max-width: 1030px) {
  :is(.rally-page, .rally-shop) header .bar { flex-wrap: wrap; padding-block: .75rem; }
  :is(.rally-page, .rally-shop) header nav { order: 3; width: 100%; flex-wrap: wrap; border-top: 1px solid var(--edge); padding-top: .55rem; }
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rally-shop .shop-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 770px) {
  .workshop-layout, .race-lead, .build-lead, .transport-layout { grid-template-columns: minmax(0, 1fr); }
  .workshop-reverse .workshop-copy { order: initial; }
  .build-lead figure { margin-top: .5rem; }
  .race-lead > :last-child { grid-row: 1; }
  .service-tiles article, .service-tiles article:nth-child(n) { grid-column: span 6; }
  .rally-page .gallery figure:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 560px) {
  .rally-page .hero { position: relative; min-height: 0; }
  .rally-page .hero-photo { position: static; height: auto; aspect-ratio: 16 / 10; object-position: center 60%; }
  .rally-page .hero-inner { padding-block: 1.8rem 2.4rem; }
  .rally-page .hero h1 { font-size: clamp(3.7rem, 14vw, 5rem); }
  .service-tiles { gap: .7rem; }
  .service-tiles article, .service-tiles article:nth-child(n) { grid-column: span 12; }
  .service-tiles a { min-height: 205px; }
  .workshop-specs, .build-grid, .race-stages, .price-feature, .price-list, .rally-shop .shop-categories { grid-template-columns: minmax(0, 1fr); }
  .rally-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(125px, 41vw, 190px); }
  .rally-page .gallery figure:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .rally-page .gallery figure:first-child { grid-column: span 2; }
  .shop-cover { width: 100%; }
  .rally-shop .shop-intro::before { background: linear-gradient(90deg, #10161fee 10%, #10161fc2 72%, #10161f6b); }
}
@media (prefers-reduced-motion: reduce) {
  .service-tiles .service-photo { transition: none; }
}
