/* FONT: Archivo (SIL OFL, patrz fonts/OFL.txt), tylko znaki łacińskie i polskie */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 90% 100%;
  font-display: swap;
  src: url("/fonts/archivo.78e91ed14d.woff2") format("woff2");
}

/* ZMIENNE I USTAWIENIA PODSTAWOWE */
:root {
  --navy: #0f2d4a;
  --amber: #ff7a1a;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #14212e;
  --mute: #566575;
  --line: #d9e0e8;
  --focus: #0f2d4a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --amber: #ff8f3a;
    --bg: #0b1b2b;
    --card: #12283d;
    --ink: #e8eef5;
    --mute: #9fb0c1;
    --line: #25405a;
    --focus: #ffffff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .btn,
  .card,
  .card-img,
  a.tile {
    transform: none !important;
  }
}
body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Archivo, system-ui, sans-serif;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 56px 0;
}
h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.1;
  margin: 0 0 12px;
  font-stretch: 90%;
}
h1 {
  font-size: clamp(32px, 5.5vw, 56px);
}
h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}
h3 {
  font-size: 19px;
}
p {
  margin: 0 0 12px;
  max-width: 62ch;
}
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
  outline-color: #ffffff;
}

/* PRZYCISKI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffa04d, #ff7a1a);
  box-shadow: 0 3px 10px rgba(255, 122, 26, 0.35);
  color: #1a1200;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease,
    background-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 4px rgba(255, 122, 26, 0.35);
  filter: brightness(0.94);
}
.btn-outline {
  background: transparent;
  box-shadow: none;
  color: inherit;
  border-color: currentColor;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
/* :active po :hover, bo mają tę samą specyficzność i musi wygrać */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.45);
    filter: brightness(1.05);
  }
  .btn-outline:hover {
    box-shadow: none;
    filter: none;
    background: rgba(128, 128, 128, 0.12);
    background: color-mix(in srgb, currentColor 10%, transparent);
  }
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 4px rgba(255, 122, 26, 0.35);
  filter: brightness(0.94);
}
.btn-outline:active {
  box-shadow: none;
  filter: none;
  background: rgba(128, 128, 128, 0.22);
  background: color-mix(in srgb, currentColor 18%, transparent);
}

/* NAGŁÓWEK I LOGO */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.logo {
  display: block;
  height: 46px;
  width: auto;
}
@media (prefers-color-scheme: dark) {
  .logo {
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
  }
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(420px, 50vw, 720px);
  background: #e9eff6;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(233, 239, 246, 0.94) 0%,
    rgba(233, 239, 246, 0.78) 34%,
    rgba(233, 239, 246, 0) 58%
  );
}
.hero-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 1440px);
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text {
  max-width: 500px;
}
.hero h1 {
  color: #0f2d4a;
}
.hero p {
  color: #2c4258;
}
.hero .btn-outline {
  color: #0f2d4a;
}

/* LICZBY */
.stats {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-size: 30px;
  color: var(--navy);
}
.stat span {
  color: var(--mute);
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  .stat strong {
    color: var(--amber);
  }
}

/* KARTY OFERTY */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.card-img {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-img-biuro {
  object-position: 62% 40%;
}
.card-img-kawa {
  object-position: 50% 55%;
}
.card-img-urzadzenia {
  object-position: 35% 50%;
}
.card-img-serwis {
  object-position: 55% 45%;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.card p {
  font-size: 14.5px;
  color: var(--mute);
}
.card a {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-underline-offset: 3px;
}
.card a::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}
.card a:active {
  opacity: 0.7;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--amber);
    box-shadow: 0 10px 24px rgba(15, 45, 74, 0.14);
  }
  .card:hover .card-img {
    transform: scale(1.05);
  }
  .card a:hover {
    color: #c2410c;
  }
}
@media (prefers-color-scheme: dark) {
  .card a {
    color: var(--amber);
  }
  @media (hover: hover) {
    .card a:hover {
      color: #ffffff;
    }
  }
}

/* DOSTAWA */
.section-alt {
  background: var(--card);
}
.delivery {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.delivery-map,
.banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.delivery-map {
  border: 1px solid var(--line);
  background: #ffffff;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-left: 3px solid var(--amber);
}
.steps li {
  position: relative;
  padding: 0 0 16px 18px;
}
.steps li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--bg);
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps strong {
  display: block;
}

/* VERANO PRO */
.banner-title {
  margin-top: 28px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tile {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--ink);
}
.tile p {
  margin: 0;
  font-size: 14.5px;
  color: var(--mute);
}
@supports (grid-template-rows: subgrid) {
  .tiles > li.tile {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
}
a.tile {
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
a.tile:hover,
a.tile:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber);
}
a.tile:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
@media (hover: hover) {
  a.tile:hover {
    transform: translateY(-2px);
  }
}
a.tile:active {
  transform: scale(0.98);
}
.tile svg {
  width: 44px;
  height: 44px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.8;
}
@media (prefers-color-scheme: dark) {
  .tile svg {
    stroke: var(--amber);
  }
}
.models-label {
  margin-top: 24px;
}
.models {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 20px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--amber);
  color: #1a1200;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* SEKCJA CIEMNA */
.section-dark {
  background: var(--navy);
  color: #ffffff;
}
.section-dark p {
  color: #c8d6e4;
}

/* KONTAKT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.contact-grid address {
  max-width: 62ch;
  margin: 0 0 12px;
  font-style: normal;
}
.contact-grid p a:not(.btn),
.contact-grid address a {
  color: inherit;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .contact-grid p a:not(.btn):hover,
  .contact-grid address a:hover {
    text-decoration: underline;
  }
}

/* STOPKA */
.site-footer {
  padding: 28px 0;
  color: var(--mute);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .logo {
  height: 36px;
}

/* PASEK NA TELEFONIE */
.mobile-bar {
  display: none;
}

/* WĄSKIE EKRANY */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    align-items: stretch;
    height: auto;
  }
  .hero::before {
    display: none;
  }
  .hero-bg {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    aspect-ratio: 1800 / 1029;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero .container {
    padding-top: 28px;
    padding-bottom: 24px;
  }
}
@media (max-width: 820px) {
  html {
    scroll-padding-bottom: 80px;
  }
  .delivery,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .tiles,
  .stats .container {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  body {
    padding-bottom: 70px;
  }
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--navy);
  }
  .mobile-bar .btn {
    flex: 1;
  }
  .mobile-bar .btn-outline {
    color: #ffffff;
  }
}
@media (max-width: 520px) {
  .logo {
    height: 36px;
  }
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* Fokus na ciemnych tłach */
.section-dark a:focus-visible,
.mobile-bar a:focus-visible {
  outline-color: #ffffff;
}

/* Podświetlenie dotkniętego elementu w iOS: bez niego, gdy :active nie zadziała, dotyk nic nie pokazuje */
a {
  -webkit-tap-highlight-color: rgba(15, 45, 74, 0.2);
}
.section-dark a,
.mobile-bar a {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
}
